this spell will send a wave of poiso, my problem is if the player walk the next wave change direction.
what i need to now is what i have to change to the addEvent(RunPart,300,combat3_poisonarea,cid,var) and the others to go from start position and not from new position the player are
function onCastSpell(creature, var)
local cid = creature:getId()
RunPart(combat0_poisonarea,cid,var)
addEvent(RunPart,300,combat3_poisonarea,cid,var)
addEvent(RunPart,600,combat6_poisonarea,cid,var)
addEvent(RunPart,900,combat9_poisonarea,cid,var)
addEvent(RunPart,1200,combat12_poisonarea,cid,var)
return true
what i need to now is what i have to change to the addEvent(RunPart,300,combat3_poisonarea,cid,var) and the others to go from start position and not from new position the player are
function onCastSpell(creature, var)
local cid = creature:getId()
RunPart(combat0_poisonarea,cid,var)
addEvent(RunPart,300,combat3_poisonarea,cid,var)
addEvent(RunPart,600,combat6_poisonarea,cid,var)
addEvent(RunPart,900,combat9_poisonarea,cid,var)
addEvent(RunPart,1200,combat12_poisonarea,cid,var)
return true