• 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:
Found this on sources, creature.h

Code:
virtual bool isPushable() const {return (getWalkDelay() <= 0);}

Just edit to to the secs. that you want to.
 
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]));
 
Last edited:
Post the purple fire script, if you got one.
Otherwise the items.xml entries.
 
Can up pack the scripts and upload on Mediafire?
I don't have a account on 4shared.
Please do also post the .xml entries.
 
XML:
<item id="1506" article="a" name="searing fire">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1507" />
        <attribute key="duration" value="10" />
        <attribute key="replaceable" value="0" />
        <attribute key="field" value="fire">
            <attribute key="damage" value="300" />
        </attribute>
    </item>
    <item id="1507" article="a" name="searing fire">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1508" />
        <attribute key="duration" value="10" />
        <attribute key="replaceable" value="0" />
        <attribute key="field" value="fire">
            <attribute key="damage" value="300" />
        </attribute>
    </item>
    <item id="1508" name="ashes">
        <attribute key="type" value="magicfield" />
        <attribute key="decayTo" value="1506" />
        <attribute key="duration" value="5" />
        <attribute key="replaceable" value="0" />
    </item>

here it is!

reminding, the problems are:
- even when there is no fire, the ashes make damage
- and even with mana shield, it takes life damage
:)
 
Which version is it that you are using so I can find the correct lua function?
 
It may be because they're copying TFS 0.4, probably doing a lot of mistakes when trying to add things.
 
Back
Top