Darqneez
ShaC-Ohhhh
I am beginner at lua scripting. I've made this script to learn something, but I dont know where did I make a mistake. Script should give you sudden death rune for 6500 gp. but I am using an item with uid 7001, I have 6500 gp, but I cant buy sd rune. Why?
script is very simple, but I am still learning
script is very simple, but I am still learning
function onUse(cid, item, fromPosition, itemEx, toPosition)
if
item.itemuid == 7001 then
doPlayerRemoveMoney (cid, 6500)
doPlayerAddItem (cid, 7591, 1)
doPlayerSendTextMessage (cid, MESSAGE_INFO_DESCR, "You have bought a sudden death rune.")
else
doPlayerSendTextMessage (cid, MESSAGE_INFO_DESCR, "You can't buy this thing.")
end
return TRUE
end