Skip to content

How to add a new item

Anton K edited this page May 14, 2018 · 2 revisions

open up the file

/mud_advanture/shared/items.js

at the last item of items.mapping add , and use this format:

"name_of_item": { id: 0, dropAmount: 0, dropRate: 0, actions: {} }

id must be a unique int id

dropAmount the amount that will be added to players inventory

dropRate the chance the item will be added to players inventory

actions optional, see How to add actions tutorial.

Clone this wiki locally