Olhar Ai addons sistema do stigal
vc poder usar addons box sistema feito por min
function onUse(cid, item, fromPosition, itemEx, toPosition)
local config = {
premium = false, -- se precisa ser premium account (true or false)
battle = false, -- se precisa estar sem battle (true). Se colocar false, poderá usar addons box no meio de batalhas
level = 10, -- level para poder usar addons box
}
local items = {12591,12592,12593,12594,12596,12597} ----id do addon
if getPlayerLevel(cid) < config.level then
doPlayerSendCancel(cid, "precisar ser level ".. config.level ..".")
return true
end
if config.premium and not isPremium(cid) then
doPlayerSendCancel(cid, "Somente player premium.")
return true
end
if config.battle and getCreatureCondition(cid, CONDITION_INFIGHT) then
doPlayerSendCancel(cid, "Your pokemon can't concentrate during battles.")
return true
end
doPlayerAddItem(cid, items[math.random(#items)])
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce Abriu Addon Box")
doRemoveItem(item.uid, 1)
end
link:




info
Grupo: Infante
Registrado: 27/08/11
Posts: 1.9k
Reputação: +85
Gênero: Masculino
Char no Tibia: Bruno Maciel
Eu estava olhando o forum e pesquisando e na achei mais o tutorial de como coloca o systema de addons no PDA - poketibia!!!
Se alguem tiver aii o tutorial do systema de addons poketibia!!
Rep+