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

Object Builder & adding new effects

Linxsis

Banned User
Joined
Nov 18, 2017
Messages
243
Solutions
10
Reaction score
116
So I am working on this 8.6 server and I used Object Builder to add in some additional effects from 10.98. I added them to const.h and registered them in luascript.cpp & tools.cpp but when i tested it using the normal tibia client they don't work. I don't get any errors or anything but also don't see any effects. The spells casts and do damage just as they would with effects.

In short I am stumped :(

I am compiling otclient on windows now to see if the client is the issue.

Nope still not working.
 
Last edited by a moderator:
I was testing TFS 1.3 with 10.41 and added some effects after the last and didn't even changed anything in sources, just used !z and they worked. I can't go after 255 though, even if I add more once i try to test effect 257 it's starting repeating from 1. Maybe it's related to protocol, or 8.6 limits it somehow. No idea really.
 
I was testing TFS 1.3 with 10.41 and added some effects after the last and didn't even changed anything in sources, just used !z and they worked. I can't go after 255 though, even if I add more once i try to test effect 257 it's starting repeating from 1. Maybe it's related to protocol, or 8.6 limits it somehow. No idea really.
That's because they are declared as a byte so the range value is only 0 - 255.
LUA:
MagicEffectClasses : uint8_t
A little tired right now been coding all day and messing around with the sprites so I'll figure out this tomorrow or just move on since I have more important aspects to focus on.
 
Back
Top