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

Anti push tfs 1.2

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
Hi folks! I found this thread with a script by @Jetro made for the version 1.2, but this script just does not work, I tryed make it but I couldn't, there is a fix for it?

Thanks.
 
Under what circumstances does it not work?
Please give more information, and examples of what you have attempted.
 
It does not works at all, players with MageBot still can use it.

I used anti push of the Magebot and it keeps dropping items on the ground, does not give the message of error with delay. I tryed make some edits and did not works.
 
It does not works at all, players with MageBot still can use it.

I used anti push of the Magebot and it keeps dropping items on the ground, does not give the message of error with delay. I tryed make some edits and did not works.
So um put some print functions in at each level of execution and use some of the values as arguments... print(er) is your friend :p
 
The print screen:
o3PoKH7.png


Script:
Code:
if tile then
        print("1")
   
        if (tile:getTopCreature()) then
            local p = Player(tile:getTopCreature():getId())
            print("2")
           
            if (p) then
                print("3")
                if (start == 0) then
                    print("4")
                    start = os.time()
                elseif (start == os.time()) then
                    print("5")
                    items = items + 1
                elseif(os.time() > start) then
                    print("6")
                    start = 0
                    items = 0
                end

                if (items > maxItemsPerSecond) then
                    print("7")
                    self:setStorageValue(stor, os.time() + exhaust)
                end

                if (self:getStorageValue(stor) > os.time()) then
                    print("8")
                    self:sendCancelMessage("You can't do that so fast.")
                    return false
                end
            end
        end
    end

Can someone help me with that?
 
Back
Top