ziggy46802
Active Member
- Joined
- Aug 19, 2012
- Messages
- 418
- Reaction score
- 27
How would I go about making a simple spell that changes 105 gold coins into 1 platinum coin?
I looked at spells.xml and saw "conjurerune" and "conjurefood" and all this crazy stuff so I dont even know where to begin. Is it even possible?
Figured it out, and heres the scripting part of the spell if anyone wants to use it:
Very simple script, but it may be useful to somebody that cant script at all I guess.
I looked at spells.xml and saw "conjurerune" and "conjurefood" and all this crazy stuff so I dont even know where to begin. Is it even possible?
Figured it out, and heres the scripting part of the spell if anyone wants to use it:
Code:
if getPlayerItemCount(cid, ITEM_GOLD_COIN) >= 105
then
doPlayerRemoveItem(cid, ITEM_GOLD_COIN, 105)
doPlayerAddItem(cid, ITEM_PLATINUM_COIN, 1)
return true
end
Very simple script, but it may be useful to somebody that cant script at all I guess.
Last edited: