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

Feature Anti Anti-Push bot | Works 100%

Not work


auto 100 listas "Anti Push" | if [$itemcount.3031 >= 2] {dropitemsxyzamount $posx $posy $posz 3031 2 | wait 300} | if [$itemcount.3035 >= 2] {dropitemsxyzamount $posx $posy $posz 3035 2 | wait 300} | if [$itemcount.283 >= 1] {dropitems 283 | wait 300} | if [$itemcount.284 >= 1] {dropitems 284 | wait 300} | if [$itemcount.285 >= 1] {dropitems 285 | wait 300}

And it bypass system :p has somebody fix?
 
This isn't working for me, but I don't have any errors on console... (using 0.3.7)
 
working version TFS 0.3.5
Lua:
// Anti-Push feature Prevention System by Xampy //
    if(g_config.getBool(ConfigManager::ANTI_PUSH))
    {
        int16_t indexItem = toIndex;
        std::string antiPushItems = g_config.getString(ConfigManager::ANTI_PUSH_ITEMS);
        if(antiPushItems.size())
        {
            IntegerVec tmpVec = vectorAtoi(explodeString(antiPushItems, ","));
            if(tmpVec[0] != 0)
            {           
                int i;
                int arraySize = tmpVec.size();
                i = 0;
                for(IntegerVec::iterator it = tmpVec.begin(); it != tmpVec.end(); ++it)
                {
                    i++;
                    if(indexItem < 1 && item->getID() == uint32_t(*it))
                    {
                        if(player->hasCondition(CONDITION_EXHAUST, 5))
                        {
                            player->sendTextMessage(MSG_INFO_DESCR, "You cannot move this object.\nAnti-Push prevention.");
                            return false;
                        }
                        else
                        {
                            ReturnValue ret = internalMoveItem(player, fromCylinder, toCylinder, toIndex, item, count, NULL);
                            if(ret == RET_NOERROR)
                            {
                                 int32_t ticks = g_config.getNumber(ConfigManager::ANTI_PUSH_DELAY);
                                player->addExhaust(ticks, 5);
                                return true;
                            } 
                            player->sendCancelMessage(ret);
                            return false;
                        }
                    }
                    else
                    {
                        if(arraySize == i)
                        {
                            ReturnValue ret = internalMoveItem(player, fromCylinder, toCylinder, toIndex, item, count, NULL);
                            if(ret == RET_NOERROR)
                                return true;
                            player->sendCancelMessage(ret);
                            return false;
                        }
                    }
                }
            }
        }
       }
       else
       {
        ReturnValue ret = internalMoveItem(player, fromCylinder, toCylinder, toIndex, item, count, NULL);
        if(ret == RET_NOERROR)
            return true;  
        player->sendCancelMessage(ret);
       
        return false;
    }
    
    return false;
// Anti-Push feature Prevention System by Xampy //

If you use 0.3.6 use this code.
 
Last edited:
I did a function on sources to prevent elfbot push-max using the same exhaust "EXHAUST_MOVE_ITEMS" (THANKS XAMPY).
But i did only check if player move the item to self position.
You guys think it's good to prevent to move to any position? (script check if is in range(1,1,0))
Thanks adv.
 
Back
Top