Gubailovo
Well-Known Member
- Joined
- Dec 19, 2013
- Messages
- 407
- Solutions
- 2
- Reaction score
- 62
how do i add a function onStepIn?
I don't have it on the server, so I use function onWalkIn.
but for the teleport it does not work correctly
or I am using the wrong script
thank you in advance
I don't have it on the server, so I use function onWalkIn.
but for the teleport it does not work correctly
or I am using the wrong script
Lua:
function onWalkIn(cid, item, frompos, item2, topos)
playerpos = getPlayerPosition(cid)
novapos = {x=4016, y=3912, z=7}
if item.uid == 1137 then
getThingfromPos(playerpos)
doSendMagicEffect(playerpos,2)
doTeleportThing(cid,novapos)
doSendMagicEffect(novapos,10)
end
end
thank you in advance