Gabriel Tibiano
New Member
- Joined
- Nov 21, 2009
- Messages
- 420
- Reaction score
- 4
My question is about this function
What i've to do to get the colors from PlayerOutfit?
something like this:
or maybe like this:
Anyone could help me?
Lua:
doCreatureChangeOutfit(cid, outfit)
What i've to do to get the colors from PlayerOutfit?
something like this:
Lua:
local outfit = {lookType = 136, lookHead = GET_PLAYER_COLOR, lookBody = GET_PLAYER_COLOR, lookLegs = GET_PLAYER_COLOR, lookFeet = GET_PLAYER_COLOR, lookAddons = 3}
or maybe like this:
Lua:
local val = db.getResult("SELECT `lookHead` FROM `players` WHERE `id` = "..getPlayerGUID(cid)..";")
local outfit = {lookType = 136, lookHead = val:getDataString("lookHead")}
Anyone could help me?
Last edited: