donacool
Mapper Scripter Ot Owner
- Joined
- Jan 15, 2010
- Messages
- 97
- Reaction score
- 0
well i just made a script that if a monster step in a tile it teleports it to the last position (thats why i called it tile anti mob) but it seems to dont be teleporting the mobs to their last pos can someone tell me how to fix it?
heres the script:
tileantimob.lua
movements.xml
server info:
the server is the forgotten server 0.3.6pl1.r83 8.54
heres the script:
tileantimob.lua
Lua:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if isMonster(uid) then
if item.itemid == 405 and item.uid == 10001 then
doTeleportThing(cid, fromPosition, TRUE)
elseif item.itemid == 405 and item.uid == 10002 then
doTeleportThing(cid, fromPosition, TRUE)
end return true
end return true
end return true
XML:
<movement type="StepIn" uniqueid="10001" event="script" value="trainingmonks.lua"/>
<movement type="StepIn" uniqueid="10001" event="script" value="trainingmonks.lua"/>
the server is the forgotten server 0.3.6pl1.r83 8.54