donacool
Mapper Scripter Ot Owner
- Joined
- Jan 15, 2010
- Messages
- 97
- Reaction score
- 0
hello otlanders i just got an issue with a script the server is tfs compiled with warsystem 8.54. i have it added in xml and the code in lua.
heres the code of my script
thats the sricpt and i saved it as tileteleporter.lua
and added this to movements.xml
and in the map i gived it the uid and all but when i step in the tile it dont teleports me!
someone can tell me why?
i use notepad ++
heres the code of my script
Code:
local toPos = {x = 35000, y = 35000, z = 6}
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if isPlayer(cid) then
if item.itemuid == 1002 then <!-- tile id -->
doTeleportThing(cid, toPos)
doSendMagicEffect(cid, CONST_ME_MAGIC_BLUE)
end return true
end
end
and added this to movements.xml
Code:
<movement type="StepIn" itemuid="1002" event="script" value="tileteleporter.lua"/>
someone can tell me why?
i use notepad ++