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

Lua push delay

xubeiga

New Member
Joined
Jun 17, 2009
Messages
137
Reaction score
1
hi! i want to change the speed of push in my server, but not when the player is standing next to the other, but when he is far, like:

SQM SQM SQM PLAYER1 PLAYER2 SQM SQM <-- player 2 cant push player 1 instantly.


SQM SQM SQM PLAYER1 SQM PLAYER2 SQM <-- now player2 can push player 1 instantly!

got it? there is an option in config lua, pushcreaturedelay, but i think that changing it, both modes above will happen.
how can i do this? thanks



AND OTHER BUG I JUST FOUND OUT:
in purple fires of Pits of Inferno quest, when u walk when there is no fire, it still take your life...( and if the player is with mana shield, it still take the player's life, not mana!)
how can i fix that too? ty!
 
Last edited:
poi fires.rar

Try those files.
Checking if the id is equal to the id of ashes => if so it does nothing
Also, I replaced the doPlayerAddHealth function though I am not sure if it work correctly and affects mana shield
 
poi fires.rar

Try those files.
Checking if the id is equal to the id of ashes => if so it does nothing
Also, I replaced the doPlayerAddHealth function though I am not sure if it work correctly and affects mana shield

ok, ill try it.
anything i post here! ty
what version does this otx 2.4 use? Ninja said they use tfs, but what tfs? :S

- - - Updated - - -

Pushing from distance requires changes within game.cpp. Just replace true with false.

Code:
            SchedulerTask* task = createSchedulerTask(std::max((int32_t)SCHEDULER_MINTICKS, player->getStepDuration()),
                boost::bind(&Game::playerMoveCreature, this, playerId, movingCreatureId, movingCreaturePos, toPos, [COLOR=#ff0000]true[/COLOR]));

wow, i just did it and it didnt work!
wtf?

Ninja, i will pm you


Summ, your scripts worked 50%.
when i walk when there is no fire, it doesnt damage anymore, but when i walk with mana shield throw the fire, it damages my life not the mana
 
Last edited:
Back
Top