• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

I have a problem with tower ferumbras

Could you specify yourself? Do you want monsters not to be able to enter the lightnings or?

If so, just add action id 195 on those tiles you don't want any monster to pass.

NOT Monster Tile
195
 
need that the player can enter but not leave ferumbras tower

only if you can go to teleport the rising ferumbras

undertand?

So he can walk into ferumbras tower and not leave.

teleport.lua (movements/scripts)
Code:
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

Put the xxxx xxxx x to the position where he will get teleported, prob 2 sqms after the wall... and add unique id 10033 to the tiles you want to be "teleport" tiles.

in movements.xml

Code:
<movevent type="StepIn" uniqueid="10033" event="script" value="teleport.lua" />
 
Code:
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
:S don't use globals
 
Back
Top