• 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+ Low level walk through another player on level door

Kubakos

Well-Known Member
Joined
Mar 3, 2010
Messages
964
Solutions
2
Reaction score
56
Hello, I am using tfs 1.2 on tibia 10.99 and i have a problem with level doors.

The door is set for level 500 and if someone with that lvl stay on the door, an player with lowwer level than 500 can walk through the door.

I have this script to provide that, but its not working on all doors..

Code:
function onStepIn(creature, item, position, fromPosition)
    local player = creature:getPlayer()
    if player == nil then
        return false
    end

    if player:getLevel() < item.actionid - 1000 then
        player:sendTextMessage(MESSAGE_INFO_DESCR, "Only the worthy may pass.")
        player:teleportTo(fromPosition, true)
        return false
    end
    return true
end

For exemple its working on level door for lvl 50:

14:08 You see a gate of expertise for level 50.
Item ID: 9181, Action ID: 1050.

And the same door but for lvl 500 its not working :

14:08 You see a gate of expertise for level 500.
Item ID: 9181, Action ID: 1500.

Does any1 has got an idea what can be the problem ?
 
Thats weird. Try add this:
Code:
print(item.actionid, item.itemid, player:getName(), player:getLevel())
 
Then he have to make sure that the door id, is registerd in movements.xml
 
try making the floor under the door NOT protection zone, that worked for me :p
This is not the way to do it, it should work with only actionid on the door. Since that was the whole point of the PR i made and tested. So it should work as intended.

But great to see many of you found solution to a problem you should not have from the beginning :p
 
I already used non pvp or no pz sqms but the problem is that players can attack monsters from the door so its not really a solution.

As I said the door is added correctly in movements.xml, the problem is not in the door but in the script because as I said same door, for 30 level there is no problem and for 500 level they can walk through.

I have a solution to put sqm for levels but this is not kinda pretty to watch, doors are better. But if no 1 can help me with that I will use sqms :/

@Printer, where should I add the print ?
 
I am stupid, I can use sqms for lvl under doors. This is not fixing the bug buts its a great solution
 
Back
Top