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

Do the fast push game.cpp

You must also do the same with this function:
Code:
void Game::playerMoveCreature(Player* player, Creature* movingCreature, const Position& movingCreatureOrigPos, Tile* toTile)
In which line friend?
I can't find it.
 
I have searched and searched, and it does not appear anymore
tried in conf.lua in creature.cpp game.cpp and I have not been successful yet
:C
 
Search in config.lua "push" and remove delay to whatever desired I also found there may be a delay while pushing low levels or non hasted players try using haste on the player u are pushing
 
Will there be a way to push yourself without the need for level and speed like the video?
 
I still have the same problem, the thrust is still slow.
Here I leave the codes of my sources, I hope you can help me

GAME.CPP
C++:
if(Creature* movingCreature = thing->getCreature())
    {
        uint32_t delay = g_config.getNumber(ConfigManager::PUSH_CREATURE_DELAY);
        if(Position::areInRange<1,1,0>(movingCreature->getPosition(), player->getPosition()) && delay > 0
            && !player->hasCustomFlag(PlayerCustomFlag_CanThrowAnywhere))
        {
            SchedulerTask* task = createSchedulerTask(delay, boost::bind(&Game::playerMoveCreature, this,
                player->getID(), movingCreature->getID(), movingCreature->getPosition(), toCylinder->getPosition()));
            player->setNextActionTask(task);
        }
        else
            playerMoveCreature(playerId, movingCreature->getID(), movingCreature->getPosition(), toCylinder->getPosition());
    }
    else if(thing->getItem())
        playerMoveItem(playerId, fromPos, spriteId, fromStackpos, toPos, count);

    return true;
}

My config.lua
Lua:
    -- Battle
    -- NOTE: showHealingDamageForMonsters inheritates from showHealingDamage.
    -- loginProtectionPeriod is the famous Tibia anti-magebomb system.
    -- deathLostPercent set to nil enables manual mode.
    worldType = "open"
    protectionLevel = 1
    pvpTileIgnoreLevelAndVocationProtection = true
    pzLocked = 60 * 1000
    huntingDuration = 60 * 1000
    criticalHitChance = 7
    criticalHitMultiplier = 1
    displayCriticalHitNotify = true
    removeWeaponAmmunition = false
    removeWeaponCharges = false
    removeRuneCharges = false
    whiteSkullTime = 15 * 60 * 1000
    noDamageToSameLookfeet = false
    showHealingDamage = true
    showHealingDamageForMonsters = true
    healthHealingColor = COLOR_GREEN
    manaHealingColor = COLOR_DARKPURPLE
    fieldOwnershipDuration = 5 * 1000
    stopAttackingAtExit = false
    loginProtectionPeriod = 3 * 1000
    deathLostPercent = 10
    stairhopDelay = 1 * 1
    pushCreatureDelay = 1 * 1
    deathContainerId = 1987
    gainExperienceColor = 215
    addManaSpentInPvPZone = true
    squareColor = 0
    allowFightback = true
    fistBaseAttack = 7
    optionalWarAttackableAlly = false
 
just look for the following functions in your file game.cpp
Code:
Game::playerMoveThing
and
Code:
Game::playerMoveCreature
Within these functions there is another:
Code:
createSchedulerTask
The first argument that is passed to this function is the verification time.

examples:
1564445231278.png
1564445198325.png
 
Post the solution?
 
Sarah Wesker
Is there any way to push and move with dash as in other war servers? because when players are using dash and want to push you can't
 
Back
Top