Code:
local vocs = 4, 8, 12
local words = "Sweet I aint dead!"
local health = -10000
local mana = -10000
function onStepIn(cid, item, position, fromPosition)
if getPlayerVocation(cid) == vocs then
doCreatureSay(cid, words, 3)
else
doCreatureAddHealth(cid, health)
doPlayerAddMana(cid, mana)
end
end
I've saved this in movements under "poi_knight_fire.lua"
I've added the following to movements.xml
Code:
<movement event="StepIn" uniqueid="3505" script="poi_knight_fire.lua"/>
I've tested this on my server but nothing happens when walking over the searing fire with uid 3505.
Can anyone see where I'm going wrong? thanks