i created premium doll on my ots but i got a problem i created in data/actions scripts premdoll.lua and paste this
function onUse(cid, item, fromPosition, itemEx, toPosition)
doRemoveItem(item.uid)
doCreatureSay(cid, 'You have received 30 premium days.', TALKTYPE_ORANGE_1)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
doPlayerAddPremiumDays(cid, 30)
return true
end
after i went to data/actions.xml and stick this
<action itemid="5958" event="script" value="premdoll.lua"/>
but it don't work at all can somwane tell me what i done wrong.please help
function onUse(cid, item, fromPosition, itemEx, toPosition)
doRemoveItem(item.uid)
doCreatureSay(cid, 'You have received 30 premium days.', TALKTYPE_ORANGE_1)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
doPlayerAddPremiumDays(cid, 30)
return true
end
after i went to data/actions.xml and stick this
<action itemid="5958" event="script" value="premdoll.lua"/>
but it don't work at all can somwane tell me what i done wrong.please help