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

Sending outfit in character list

4drik

Advanced OT User
Joined
Jun 30, 2014
Messages
254
Reaction score
202
Hello.
I want to send outfit when you log in.
I've found
Lua:
subWidget:setOutfit(value)
in characterlist.lua so I did sent msg with looktype but then I've got an error:
ERROR: C++ call failed: LUA ERROR: attempt to cast a 'number' lua value to 'Outfit'

Do we know how to fix it?
 
To use setOutfit you need send a table like parameter, example:
Code:
local outfit = {
mount  =  0,
type   =  144,
feet    = 78,
addons  =  3
legs   = 95
auxType =  0,
head  = 78,
body =  114}
The table has the looktype, colors, addons and mount
 
Awwww, perfect, works.

Thank you.
 
Last edited:
Back
Top