• 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 load spell icon file?

lucas123

New Member
Joined
Jun 6, 2010
Messages
85
Reaction score
4
i'm getting table with opCode with icon number of spells.xml (server-side)
how i can use this same icon in setImageSource without creating all images .png again? thanks


edit: can close..
Code:
    icon:setImageSource('/images/game/spells/defaultspells')
	local spicon = Spells.getClientId(tabela[i].instantName)
    icon:setImageClip((((spicon -1)%12)*32) .. ' ' .. ((math.ceil(spicon/12)-1)*32) .. ' 32 32')
 
Last edited:
Check out the layout of the defaultspells.png and also the spells.lua in gamelib I think
 
Back
Top