• 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!

TFS 1.X+ Tile Enter Ferumbra Tower tfs 1.5

bpm91

Advanced OT User
Joined
May 23, 2019
Messages
1,046
Solutions
7
Reaction score
180
Location
Brazil
YouTube
caruniawikibr
hello, does anyone have the script or know how to make one where the monsters don't come out to ferumbras tower seal? in this case only players can pass
 
Solution
X
I tried both in movements and action and gave the same error :/

View attachment 68729
You have to put it inside a function...
XML:
<movevent event="StepIn" actionid="11111" script="scriptName.lua" />
LUA:
function onStepIn(creature, item, position, fromPosition)
    if not creature:isPlayer() then
        creature:teleportTo(fromPosition, false)
    end
    return true
end
I tried both in movements and action and gave the same error :/

View attachment 68729
You have to put it inside a function...
XML:
<movevent event="StepIn" actionid="11111" script="scriptName.lua" />
LUA:
function onStepIn(creature, item, position, fromPosition)
    if not creature:isPlayer() then
        creature:teleportTo(fromPosition, false)
    end
    return true
end
 
Solution
worked perfectly, but can I make the monster not look like this?

if I'm not mistaken in tibia global they keep walking inside but they don't make that kind of movement like someone who wants to cross

1655769610821.png
 
I'm pretty sure there is an invisible item that blocks path-finding for monsters... but I honestly can't remember what it is, and searching around couldn't find it.

So.. find that item.. or do a source edit, I guess lol
 
Back
Top