psychosisneamia
~Beginner~
- Joined
- Jun 7, 2012
- Messages
- 162
- Reaction score
- 7
I added a new coin my server but I can not get the npc to recognize that the coin is money.. What do you think I did wrong?
000constant
Items.xml
Actions.xml
Changegold.lua
000constant
Code:
ITEM_GOLD_COIN = 2148
ITEM_PLAT_COIN = 2152
ITEM_CRYS_COIN = 2160
ITEM_DEMO_COIN = 18547
Items.xml
Code:
<item id="18547" name="Demonic Coin" />
<attribute key="weight" value="10" />
<attribute key="worth" value="1000000" />
Actions.xml
Code:
<action itemid="18547" event="script" value="other/changegold.lua"/>
Changegold.lua
Code:
GOLD_COIN = 2148
PLAT_COIN = 2152
CRYS_COIN = 2160
DEMO_COIN = 18547