Zao the teleport does not work, and not of any error in console
<movement event="StepIn" actionid="7300" script="wrath/tpmuggy.lua" />
<movement event="StepIn" actionid="7300" script="wrath/tpmuggy.lua" />
Code:
function onStepIn(cid, item, position, fromPosition)
local newPosition = {x=33213, y=31067, z=9}
local noPosition = {x=33137, y=31249, z=6}
if getPlayerStorageValue(cid, 1) > 3 or getPlayerStorageValue(cid, 1) == 3 then
doTeleportThing(cid, newPosition, TRUE)
else
doTeleportThing(cid, noPosition, TRUE)
end
end