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

setImageSource containing itemid server-sided

lucas123

New Member
Joined
Jun 6, 2010
Messages
85
Reaction score
4
how i can do that?
how i can add image in UIImageView containing sprite of item from server, and count 100? thanks.
 
local item = g_ui.createWidget("Item", PARENT_HERE)
item:setItemId(xxxx)
item:setItemCount(100)

=> I am not quite sure if the setItemCount is correct or whether it is setCount, but it should work.
 
this is not possible with UIImageView?
/shop/shop.lua:53: attempt to call method 'setItemId' (a nil value)
(using UIImageView)
=/

thanks

edit: and this id is client-sided.. how i can convert to server-sided?
like 2160 = crystal coin.. (example)??
 
this is not possible with UIImageView?
/shop/shop.lua:53: attempt to call method 'setItemId' (a nil value)
(using UIImageView)
=/

thanks

edit: and this id is client-sided.. how i can convert to server-sided?
like 2160 = crystal coin.. (example)??

The client-sided id is the id on .dat

From the client i don't think you can find the serverid (even having a variable serverid on items, but seend like it is always 0), but from the server you can create a luafunction and send to the client via extended opcode.
 
Back
Top