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

[Tibia.dat/spr] How to add custom effects?

andu

Sold 649 scripts, 25 maps and 9 events!
Joined
Aug 7, 2009
Messages
969
Solutions
17
Reaction score
355
GitHub
olrios
Twitch
olrios
Okey, I made half work - effects are added to Tibia.dat and spr.
But I'm unable to execute these effects on server. Have I edit something in OTS?
Adding new outfits was very easy, only dat+spr and new lookType quickly appeared on my server (w/o editting OTS files)
How is with effects? And what I have to do?
 
Solution
const.h
[CPP]MAGIC_EFFECT_DRAGONHEAD = 0x45, //69
MAGIC_EFFECT_LAST = MAGIC_EFFECT_DRAGONHEAD,[/CPP]

It's possible that you need to add it in tools.cpp aswell. :p
const.h
[CPP]MAGIC_EFFECT_DRAGONHEAD = 0x45, //69
MAGIC_EFFECT_LAST = MAGIC_EFFECT_DRAGONHEAD,[/CPP]

It's possible that you need to add it in tools.cpp aswell. :p
 
Solution
did you tested with /z or tried to set a spell to use the new effect number?
is possible that /z "talkaction" is limited to a certain number to not crash your client
you would need to test it on a spell/weapon or edit talkactions/sources to grant you the access to effects beyond the default limit
 
Back
Top