Here is a script.
Its function is that if u step in on that field (the coords are given in that) u fall down and on the field u stepped in there will "spawn" a stone with the id 1285
K now my problem.
When i walk on the tile
nothin happens.The console doesnt say anything!
Btw its a movement and in movements.xml i wrote
<movevent event="StepIn" actionid="10257" script="PitsOfInferno/falldown.lua"/>
and gave the tile the actioid 10257 of course.
Any help?!
Its function is that if u step in on that field (the coords are given in that) u fall down and on the field u stepped in there will "spawn" a stone with the id 1285
function onStepIn(cid, item, frompos, topos)
local position = {x = 32826, y = 32273, z = 11}
if isPlayer == 1 then
doTeleportThing(cid, {x = 32826, y = 32273, z = 11 - 1})
doCreateItem(1285,position,1)
end
end
K now my problem.
When i walk on the tile
nothin happens.The console doesnt say anything!
Btw its a movement and in movements.xml i wrote
<movevent event="StepIn" actionid="10257" script="PitsOfInferno/falldown.lua"/>
and gave the tile the actioid 10257 of course.
Any help?!