The error I got is
And this is the script.
Movements.
Does I need to make diffrent scripts for them?.. I meant seperate them?..
Code:
Warning: [Event::loadScript] Event onStepOut not found. data/movements/scripts/warriorq_strange1.lua.
And this is the script.
Code:
function onStepIn(cid, item, pos, frompos, item2, topos)
gatepos = {x=33016, y=32807, z=6, stackpos=2}
getgate = getThingfromPos(gatepos)
if isPlayer(cid) == TRUE then
if getPlayerStorageValue(cid,44447) == 1 and item.actionid == 14499 and getgate.itemid == 0 then
doCreateItem(1499,1,gatepos)
doTransformItem(item.uid,item.itemid-1)
doCreatureSay(cid, "OMG, WHAT HAVE YOU DONE YOUR IDIOT!", TALKTYPE_ORANGE_1)
monster1pos = {x=33015, y=32809, z=6} -- jugge
monster2pos = {x=33014, y=32808, z=6} -- jugge
monster3pos = {x=33013, y=32808, z=6} -- demon
monster4pos = {x=33013, y=32809, z=6} -- nightmare
monster5pos = {x=33012, y=32809, z=6} -- demon
doSummonCreature("Juggernaut", monster1pos)
doSummonCreature("Juggernaut", monster2pos)
doSummonCreature("Demon", monster3pos)
doSummonCreature("Nightmare", monster4pos)
doSummonCreature("Demon", monster5pos)
else
doCreatureSay(cid, "There is something wierd with me HELP!", TALKTYPE_ORANGE_1)
end
end
function onStepOut(cid, item, frompos, item2, topos)
gatepos = {x=33016, y=32807, z=6, stackpos=2}
getgate = getThingfromPos(gatepos)
if item.actionid == 14499 and getgate.itemid == 1499 then
doRemoveItem(getgate.uid,1)
doTransformItem(item.uid,item.itemid+1)
else
doPlayerSendCancel(cid,"Sorry not possible.")
end
end
Movements.
Code:
<movevent event="StepIn" actionid="14499" script="warriorq_strange1.lua" />
<movevent event="StepOut" actionid="14499" script="warriorq_strange1.lua" />
Does I need to make diffrent scripts for them?.. I meant seperate them?..