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

  • Developers

Hmm, I'm not sure what language that github one is for.

I've found this which seems to have an API, but I can't find info on how big their sample set is: https://uifaces.co/

This also has some sort of API, but for more cartoonish avatars: https://multiavatar.com/ - claims 12 billion unique combinations which is probably more than we'll ever need

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...