Assim ?
function onUse(cid) if getPlayerStorageValue(cid, 7998) < 1 then local bag = doPlayerAddItem(cid, 9774, 1) doAddContainerItem(bag, 2544, 2000) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a KIT ARROWS.") doPlayerSetStorageValue(cid, 7998, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end return true end
Tópico movido para a seção de dúvidas e pedidos resolvidos.


info
Grupo: Campones
Registrado: 14/04/13
Posts: 89
Reputação: 0
Char no Tibia: GM Strikker
Como eu faço pras arrows do meu server vir dentro de uma bag especial a id 9774, vim a bag lotada de arrows?
function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerStorageValue(cid, 7998) < 1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a KIT ARROWS.") doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerAddItem(cid, 2544, 100) doPlayerSetStorageValue(cid, 7998, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end return TRUE end