Hi someone give me a script for premdoll but is not working but i paste evryting correct!here is a script maybe i done small mistake.When you supost to use premdoll you shoudla click on it a press use is that corect?
data/actions/actions.xml
<action itemid="9693" event="script" value="premdoll.lua"/>
i paste that on actions.xml on bottom of the tilte other
here is my second cript
data/actions/scripts (i named the cript premdoll.lua)
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
i just want to say my premdoll is a jesterdoll 9693 maybe i didint put item it someware.
Please tell me why is not working becouse i want to start my ots and this is last thing that i need it to create.thank you and i'm waiting for your help^_^
data/actions/actions.xml
<action itemid="9693" event="script" value="premdoll.lua"/>
i paste that on actions.xml on bottom of the tilte other
here is my second cript
data/actions/scripts (i named the cript premdoll.lua)
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
i just want to say my premdoll is a jesterdoll 9693 maybe i didint put item it someware.
Please tell me why is not working becouse i want to start my ots and this is last thing that i need it to create.thank you and i'm waiting for your help^_^