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

Lua look

alcapone

Member
Joined
Jan 13, 2021
Messages
247
Reaction score
19
Lua:
function Player:onLookInTrade(partner, item, distance)
   
   
        if item.itemid >= 40114 and item.itemid <= 40125
      then
            description = description .. item:getDescription(distance)
            local charges = item:getCharges()
            if charges then
                description = string.format("%s\nThat has %d charges left.", description, charges)
            end
        else
            description = description .. item:getDescription(distance)
        end
        self:sendTextMessage(MESSAGE_LOOK, description)
   
   
   
end
solved

I'm trying to do it if the item has loads show it in the trade if it doesn't show the normal look
 
Last edited:
Back
Top