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

Speed attribute bugged TFS 1.3

Mythana

New Member
Joined
Dec 9, 2021
Messages
5
Reaction score
2
I have a problem where I need to put 40 speed in items.xml speed for an item to have 20 speed ingame when looking at it however in OTclient it sees that item as 40 speed still (in total player speed), I'm wondering if theres a way to change that.

EX: if you search for boots of haste on this forgottenserver/data/items/items.xml at master · otland/forgottenserver (https://github.com/otland/forgottenserver/blob/master/data/items/items.xml) it has 40 speed but ingame it has 20.

Thanks in advance.
 
then OTC is bugged, not TFS

speed has ALWAYS worked that way, we always declare it as double value and client is in charge of halving it, cip client does it

C++:
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);
}
it's just every ot engine having the wrong formula and halving values to compensate for it
 
Back
Top