as some of you already know you need an vial of blood to get down to the pits of inferno, and im not so skilled at lua scripts (im learning)
so can anyone help me what is wrong whit this code
i did get it to work whit an empty vial using this in actions.xml
so im sure the problem is there since everything on the script up did work as i should
so what do i need to put in actions.xml?
so can anyone help me what is wrong whit this code
PHP:
local newpos = {x=32791, y=32334, z=10}
local blood = {x=32791, y=32333, z=9}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(itemEx.uid <= 3056 or itemEx.actionid > 0) and (itemEx.itemid == 1409) then
doTeleportThing(cid, newpos)
doSendMagicEffect(newpos,10)
doSendMagicEffect(blood,0)
end
end
i did get it to work whit an empty vial using this in actions.xml
so im sure the problem is there since everything on the script up did work as i should
PHP:
<action itemid="2006" script="poi/gravestonepoi.lua"/>
so what do i need to put in actions.xml?