This script lets you create awards/achievements and give them to players.
Installing
Put the files you downloaded in their respective places
Add require('awards') to client_packages/index.js
Open packages/awards/database.js and put your MySQL config
All done
API - Exported
You need to load awards/api.js in your script with using require() for these.
/*
awardDefinitions object contains all defined awards.
Keys of this object are valid award IDs.
*/
awardDefinitions
/*
Defines an award. Awards can be single or multi tier depending on what you send to requiredProgress.
If you send an array of numbers, it will be a multi tier award. (then tierColor must be an array of numbers too, tierColors length being the same as equire
Пока никто не оставил комментарий — станьте первым.