É uma action:
function onUse(cid, item)
local config = {
HundredId = 2148,
ThousandId = 2150
}
if item.itemid == config.HundredId then
if item.type == 100 then
doRemoveItem(item.uid)
doPlayerAddItem(cid, config.ThousandId, 1)
end
elseif item.itemid == config.ThousandId then
doRemoveItem(item.uid, 1)
doPlayerAddItem(cid, config.HundredId, 100)
end
return true
end
Acho que funciona.
flw




info
Grupo: Campones
Registrado: 03/05/11
Posts: 2
Reputação: 0
Olá galera do XTibia, seguinte:
Eu gostaria de saber como eu faço para um monte de 100HD virar 1 Nota só.
Ja tenho as sprites todas certinhas, so preciso saber como eu faço para configurar a tal ação.
Obrigado para quem ajudar !