Mateus Robeerto
Excellent OT User
Does anyone have this system available?
Note: I found this image in OT. I just took the image and put it here (not stolen), I just took the image.
or here
I tried using the method here, but it only came up with the item id. It didn't show the name, attack, defense, etc. Can someone help me?
Note: I found this image in OT. I just took the image and put it here (not stolen), I just took the image.
or here
I tried using the method here, but it only came up with the item id. It didn't show the name, attack, defense, etc. Can someone help me?
Lua:
local item = self:getItem()
if item and not self:getTooltip() then
local itemsList = {
[10842] = {name = "Demon Helmet", attack = 20, defense = 0, protection_all = 20, reflect = 10, drop_chance = 20}
}
local data = itemsList[item:getId()]
if data then
local description = 'This is ' .. item:getCount() .. 'x ' .. data.name .. ', Raridade ' .. data.raridade
if data.attack then
description = description .. ' Attack: ' .. data.attack .. '.'
end
if data.defense then
description = description .. ' Defense: ' .. data.defense .. '.'
end
self:setTooltip('Description: ' .. description)
else
print(item:getId())
self:setTooltip('No description')
end
end
Item stats on Hover-Mouse
Hello everybody, as in the topic, I am looking for a script that will bring up the stats of an item when hovering over it with the mouse. I'm not very good at programming but maybe some of you can help me. Perhaps the script inventory.lua in which my character's outfit is displayed will help...
otland.net