Hey, i made a script with the function getPlayerSlotItem but it's not working. using 2.9.
here's the script
well, if the function was working, it would reproduce a magic effect of value 3 but is not, it's sending the cancel msg and the other magiceffect..
yea, im with a AOL equiped (id 2173) and the spells.xml is everything right
this is just a test script.
here's the script
Code:
function onCastSpell(cid, var)
if getPlayerSlotItem(cid, 2) == 2173 then
doSendMagicEffect(getPlayerPosition(cid), 3)
else
doPlayerSendCancel(cid, "blablabla")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
end
well, if the function was working, it would reproduce a magic effect of value 3 but is not, it's sending the cancel msg and the other magiceffect..
yea, im with a AOL equiped (id 2173) and the spells.xml is everything right
this is just a test script.