fernando27
New Member
- Joined
- Nov 13, 2009
- Messages
- 9
- Reaction score
- 0
I need to explain how not to leave by lightning tower ferumbras
need that the player can enter but not leave ferumbras tower
only if you can go to teleport the rising ferumbras
undertand?
function onStepIn(cid, item, frompos, item2, topos)
playerpos = getPlayerPosition(cid)
novapos = {x=xxxx, y=xxxx, z=x}
if item.uid == 10033 then
getThingfromPos(playerpos)
doSendMagicEffect(playerpos,2)
doTeleportThing(cid,novapos)
doSendMagicEffect(novapos,10)
end
end
<movevent type="StepIn" uniqueid="10033" event="script" value="teleport.lua" />
local newPos = {x=xxxxx, y=yyyyy, z=z}
function onStepIn(cid, item, position, fromPosition)
doSendMagicEffect(position, CONST_ME_POFF)
doTeleportThing(cid, newPos)
doSendMagicEffect(newPos, CONST_ME_TELEPORT)
end