Jump to content
  • Status Definitions

    Pending = We have not yet reviewed the suggestion.

    Under Review = We are currently reviewing the suggestion. Check the suggestion's comments for updates from the team.

    Accepted = We've approved the suggestion and it will be implemented in a future update.

    Completed = The suggestion has now been implemented.

    Rejected = The suggestion has been rejected. Check the comments section for more information.

     

    Please do not post duplicate suggestions or report bugs. This area is for suggestions for changes/improvements to the game.

NPC uplift


Zoltan
  • Accepted



User Feedback

Recommended Comments

  • Administrators

Wicked, though I'd prefer the first example, it doesn't have an api, and it's pure svg so it'd be rather complicated to copy them.
I'll try to find something, here is one what works, it's not as good as that, but it has a free api: https://avatars.dicebear.com/

https://pravatar.cc/

 

WOW, actually I found something on github what supposed to get random avatars from the site I've mentioned first: https://github.com/maiconfriedel/random-avatar-generator

Link to comment
Share on other sites

  • Administrators

   Haha, those are not bad either, however the github one is pretty easy too and you have more customization, ie. transparent background.,
You install the package first with node.js (I'm assuming you know node.js, perhaps you already have it installed in the server, if not, then you need to install node.js and npm beforehand😞

npm i random-avatar-generator

Then you just use it with as simple javascript:

import { AvatarGenerator } from 'random-avatar-generator';

const generator = new AvatarGenerator();

// Simply get a random avatar

generator.generateRandomAvatar();


// Optionally specify a seed for the avatar. e.g. for always getting the same avatar for a user id.

// With seed 'avatar', always returns https://avataaars.io/?accessoriesType=Kurt&avatarStyle=Circle&clotheColor=Blue01&clotheType=Hoodie&eyeType=EyeRoll&eyebrowType=RaisedExcitedNatural&facialHairColor=Blonde&facialHairType=BeardMagestic&hairColor=Black&hatColor=White&mouthType=Sad&skinColor=Yellow&topType=ShortHairShortWaved

generator.generateRandomAvatar('avatar'); 

 

Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...