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
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: