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

[HELP] Opacity on sprites (Custom OTClient)

eeddeerr

New Member
Joined
Jul 26, 2011
Messages
4
Reaction score
0
I'm trying to make a custom client, I want to achieve this:
S8mtu.png

I saw that image in a post (https://otland.net/threads/how-i-can-active-transparence.179465/)
But since that post is from 2013, the codes from the source appear to be already done to make that water have that opacity.
But...
11666081_918095131597166_6600179013063065974_n.jpg

I'm using this sources: https://github.com/edubart/otclient
I just compiled a client before I saw the codes already done (or that's what I think) to achieve the first image but doesn't worked.
I'm trying to achieve this on the 10.35 version, if someone knows how to achieve this please comment.
PD: I'm trying to accomplish this to create spells with opacity, being transparent and things like that.
Thanks everyone.
 
Last edited:
Its solved already, you need to set opacity on the client files which acts like css.

To achieve this, create a file called things.otml
Code:
Code:
items
622
opacity: 0.5
full-ground: false
Use it from a module.
Code:
Code:
connect(g_game, {onClientVersionChange = onClientVersionChange})

function onClientVersionChange(version)
g_things.loadOtml('/things/things.otml')
end
Create on your map item id 493 (water) which client id is 622.
That's it. :)
 
Its solved already, you need to set opacity on the client files which acts like css.

To achieve this, create a file called things.otml
Code:
Code:
items
622
opacity: 0.5
full-ground: false
Use it from a module.
Code:
Code:
connect(g_game, {onClientVersionChange = onClientVersionChange})

function onClientVersionChange(version)
g_things.loadOtml('/things/things.otml')
end
Create on your map item id 493 (water) which client id is 622.
That's it. :)

in that direction I think the things.otml file,
where he said the line
Code:
connect(g_game, {onClientVersionChange = onClientVersionChange})

function onClientVersionChange(version)
g_things.loadOtml('/things/things.otml')
end
 
To achieve this, create a file called things.otml
Saw that already, I supposed to put it in the "data/things" folder?
And the second code I have to put it on the source coding before compilate?
I'm new on this bro sorry for the ignorance :(
 
You can create where you want, just reference it properly here
g_things.loadOtml('/things/things.otml')

And the other code is not in source,but in the MODULE where you want
 
Its solved already, you need to set opacity on the client files which acts like css.

To achieve this, create a file called things.otml
Code:
Code:
items
622
opacity: 0.5
full-ground: false
Use it from a module.
Code:
Code:
connect(g_game, {onClientVersionChange = onClientVersionChange})

function onClientVersionChange(version)
g_things.loadOtml('/things/things.otml')
end
Create on your map item id 493 (water) which client id is 622.
That's it. :)
Can I do this for creatures?
 
Back
Top