Abra o action.xml e adicione essa tag:
<action itemid="9693" event="script" value="addons.lua"/>
Crie um arquivo .lua na pasta script de Actions, com nome addons.lua e adicione isso:
function onUse(cid, item, frompos, item2, topos)
local level = 10 -- Level necessário para poder usar o item.
if item.itemid == 9693 then
if getPlayerLevel(cid) >= level then
doPlayerAddAddons(cid, 1) -- 1 Significa apenas os 1 addons.
doSendMagicEffect(getThingPos(cid), 28)
doPlayerSendCancel(cid, "Você recebeu todos os addons.")
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid, "Você não tem level suficiente.")
end
end
return true
end
LEGENDA:
doPlayerAddAddons(cid, 1)
1 = First addon
2 = Second addon
3 = Full Addon
if item.itemid == 9693 then
9693 é o item que dará o addon.
Créditos: Jamison Collins(eu acho)