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

Custom (spell-)effects

Damon

Check my status to contact me :)
Joined
Mar 26, 2011
Messages
6,214
Solutions
1
Reaction score
2,033
Location
Germany
Alright,
So I am not really working on any server atm. but I wanna try to import custom (spell-/visual-) effects.
How can I do this? And what requirements would the effects need to meet to be able to be imported? Any file size limit or any height/width ?

Kind regards,
Damon
 
You might want to extract sprites from Tibia.spr to see how magic effects are in there. Basically there is an image for every frame of an effect.

Magic effects are enumerated in const.h
 
You might want to extract sprites from Tibia.spr to see how magic effects are in there. Basically there is an image for every frame of an effect.

Magic effects are enumerated in const.h
Aight thanks for the reply though I didnt really get it. Im guessing const.h is as what the effects from tibia.spr are saved? or are they saved as .gifs? What file format is used to import them into tibia.spr?
 
No. const.h is server-side, while SPR file is client-side. When a magic effect is to be shown on the client, the server sends a message containing the ID of what magic effect is that. That is where const.h enters, mapping names such as CONST_ME_HOLYAREA to the number to send to the client, in this example 50 (https://github.com/ranisalt/forgottenserver/blob/master/src/const.h#L77)

I didn't try it, but this tool should do the trick. Extract your Tibia.SPR and search for te magic effects images.
 
Back
Top