Hello!
As you all know, to do poi you need 4 vocations. Because only sorcerers can go trought sorc fire and pallys trough pally fire and so on... Cuz of some reason none of poi fires are working for me. If I go with knight on pally fire I dont die, it even does not take 300hp from me(it actualy had to kill me). Im getting following errors in my console:
Here is the script:
Also I would be thankfull if you posted your own poi script that works if this can't be fixed.
Thank you!
As you all know, to do poi you need 4 vocations. Because only sorcerers can go trought sorc fire and pallys trough pally fire and so on... Cuz of some reason none of poi fires are working for me. If I go with knight on pally fire I dont die, it even does not take 300hp from me(it actualy had to kill me). Im getting following errors in my console:
Code:
[26/04/2009 03:14:12] Lua Script Error: [MoveEvents Interface]
[26/04/2009 03:14:12] data/movements/scripts/poi/firesorc.lua:onStepIn
[26/04/2009 03:14:12] data/movements/scripts/poi/firesorc.lua:5: attempt to call global 'getPlayerHealth' (a nil value)
[26/04/2009 03:14:12] stack traceback:
[26/04/2009 03:14:12] data/movements/scripts/poi/firesorc.lua:5: in function <data/movements/scripts/poi/firesorc.lua:1>
Here is the script:
Code:
function onStepIn(cid, item, pos)
zabierz = 300
kolor = 180
zycie = getPlayerHealth(cid)
topos = getPlayerPosition(cid)
if item.actionid == 9876 and getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 6 or getPlayerVocation(cid) == 7 or getPlayerVocation(cid) == 8 then
doPlayerAddHealth(cid, -zycie)
doSendAnimatedText(topos, zycie, kolor)
doSendMagicEffect(getPlayerPosition(cid), 15)
end
if item.actionid == 9876 and getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 then
doPlayerAddHealth(cid, -zabierz)
doSendAnimatedText(topos, zabierz, kolor)
doSendMagicEffect(getPlayerPosition(cid), 15)
end
if item.actionid == 9876 and getPlayerVocation(cid) == 10 then
doSendMagicEffect(getPlayerPosition(cid), 0)
end
return 1
end
Also I would be thankfull if you posted your own poi script that works if this can't be fixed.
Thank you!
Last edited: