• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Paralyze source code fix

Xarly

Member
Joined
Mar 9, 2015
Messages
360
Reaction score
20
Hello guys, im asking if someone can help me, because the source of the paralyze come's buged on tfs 1.1 and tfs 1.0 and im new on c++ for fix it so its possible someone can give me the source code of the paralyze fixed for the tfs 1.0? so i can copy it and replace
 
Why would you create a thread with the same content 1 hour after posting the last thread?
Code:
setConditionParam(condition, CONDITION_PARAM_SPEED, -550)
This is the condition used.. If the player speed is lower then 550, their speed will go to 0.. or maybe negative, and is probably why your having problems.
I'm not entirely sure.. but If you could make it find the target's base speed then reduce it by 60% of the max value .. you'd have a much better paralyse.
 
protocolgame.cpp
Code:
void ProtocolGame::sendChangeSpeed(const Creature* creature, uint32_t speed)
{
    NetworkMessage msg;
    msg.AddByte(0x8F);
    msg.add<uint32_t>(creature->getID());
    msg.add<uint16_t>(creature->getBaseSpeed() / 2);
    msg.add<uint16_t>(speed / 2);
    writeToOutputBuffer(msg);
}
 
Why would you create a thread with the same content 1 hour after posting the last thread?
Code:
setConditionParam(condition, CONDITION_PARAM_SPEED, -550)
This is the condition used.. If the player speed is lower then 550, their speed will go to 0.. or maybe negative, and is probably why your having problems.
I'm not entirely sure.. but If you could make it find the target's base speed then reduce it by 60% of the max value .. you'd have a much better paralyse.
sorry for create 2 trheads mate they moved the trhead and i don't see that so sorry guys xd and thanks for your reply! i will check it
 
protocolgame.cpp
Code:
void ProtocolGame::sendChangeSpeed(const Creature* creature, uint32_t speed)
{
    NetworkMessage msg;
    msg.AddByte(0x8F);
    msg.add<uint32_t>(creature->getID());
    msg.add<uint16_t>(creature->getBaseSpeed() / 2);
    msg.add<uint16_t>(speed / 2);
    writeToOutputBuffer(msg);
}
thanks for your rely mate
 
protocolgame.cpp
Code:
void ProtocolGame::sendChangeSpeed(const Creature* creature, uint32_t speed)
{
    NetworkMessage msg;
    msg.AddByte(0x8F);
    msg.add<uint32_t>(creature->getID());
    msg.add<uint16_t>(creature->getBaseSpeed() / 2);
    msg.add<uint16_t>(speed / 2);
    writeToOutputBuffer(msg);
}
Help me so much my friend! ;P but if i paralyze a rat they move like a lvl 2000 when i push them haha its any way for fix that? thanks!
 
Well i just deleted this
setConditionParam(condition, CONDITION_PARAM_SPEED, -550)
And changed condition:setFormula(-0.9, 0, -0.9, 0) for condition:setFormula(-0.8, 0, -0.8, 0)
And its working fine now thanks for the help guys!
 
Back
Top