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

Change player colors in-game

Erexo

Kage
Premium User
Joined
Mar 27, 2010
Messages
741
Solutions
5
Reaction score
193
Location
Pr0land
GitHub
Erexo
Hello,
Im looking for a function that changes player looktype and colors, is there any function in tfs to do that? 0.3.6
 
How to use:
Code:
local newOutfit = {looktype = 0, lookhead = 0, lookbody = 0, looklegs = 0, lookfeet = 0, addons = 0, mount = 0}
doCreatureChangeOutfit(cid, newOutfit)

looktype - ID of looktype, available values are depend your Tibia's version
lookhead - value in colors, between 0 and 255
lookbody - value in colors, between 0 and 255
looklegs - value in colors, between 0 and 255
lookfeet - value in colors, between 0 and 255
addons - "0" means no addons, "1" only first addon, "2" only second addon, "3" both addons
mount - ID of mount, you can also use any looktype ID
 
So basically in doCreatureChangeOutfit, int "looktype" can be repleaced by table "{looktype = 0, lookhead = 0, lookbody = 0, looklegs = 0, lookfeet = 0, addons = 0, mount = 0}" ?
I didnt know that, thank you very much guys
 
Back
Top