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

how to make transparent sprites?

Gasparisio

GASParisio
Joined
Dec 15, 2013
Messages
175
Reaction score
177
good day guys,
someone could help me, I'm trying to leave the sprites transparent tibia with object builder (9.6).
How to load transparent sprites? And how to turn a SPR and DAT Alpha Channel?
I'm using version 0.6.5 of OTClient (one of the last build released)
 
Load your tibia.spr and tibia.dat and save as transparent in ObjectBuilder.
Now you can make sprites as .png so you can edit it with for example with Photoshop.
Now you have to activate AlphaChannel, there's many ways:
1. Lua
Code:
g_game.enableFeature(GameSpritesAlphaChannel)
2. C++
In void Game::setProtocolVersion(int version) search for your version and then add:
Code:
enableFeature(Otc::GameSpritesAlphaChannel);

That's all ;)
 
I love you!
you tell me how to make the transparent waters? about to see what's below (upper and lower floors)?
 
Last edited:
I love you more ^-^
I think you have to change part of your otserv's source.
I mean server is sending informations about tiles upper since 7 floor, down is forbidden.
In my sources it looks like that:
Code:
    /*underground 8->15*/
    if(player->pos.z > 7 && z < 6 /*8 - 2*/) {
        return false;
    }
    /*ground level and above 7->0*/
    else if(player->pos.z <= 7 && z > 7){
        return false;
    }
 
4drik
you know how to use the "things.otml" effect? Type, make certain to take effect in sprite after any action?
Change outfit color in an attack by example?
 
You can change outfit by titling "creatures" and "image".
I think image's value is then value of looktype (outfit), but I'm not sure how to change colors.
 
Back
Top