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

Break a effect limit tfs 1.5 + otc

Dran Ryszard

Active Member
Joined
Apr 25, 2023
Messages
136
Reaction score
30
Location
Poland
Hi, i tried break a effect limit, and i think, all was changed to uint 16, but when i put in features in otc
"g_game.enableFeature(GameMagicEffectU16)"

then effect stop work, and when i using "exura" or other spell i got black screen in otc
Any ideas what i do wrong?
1748113409263.webp
Post automatically merged:

I forgott about one line, what i dont change, so propably its a problem, but when i change it, i got error :(

1>C:\Users\PC_USER\Desktop\OTS_FILES\src\protocolgame.cpp(1734,14): error C2275: 'uint16_t': expected an expression instead of a type
1>(compiling source file '/src/protocolgame.cpp')

Code:
=lua]
void ProtocolGame::sendMagicEffect(const Position& pos, uint16_t type)
{
    if (!canSee(pos)) {
        return;
    }

    NetworkMessage msg;
    msg.addByte(0x83);
    msg.addPosition(pos);
    msg.addByte<uint16_t>(type);
    writeToOutputBuffer(msg);
}


its that line - msg.addByte<uint16_t>(type);
normal is msg.addByte(type);
 
Last edited:
Back
Top