instalando Criei um arquivo action copia algum la.
Retire tudo que tem no script e substitua por esse
function onUse(cid, item, fromPosition, itemEx, toPosition)
local _ITEMS = { -- [vocation] = {{ITEMID, COUNT}, {ITEMID, COUNT}, {ITEMID, COUNT}} -- facil de adc
[1] = {{2160, 1}, {2159, 10}},
[2] = {{2160, 1}, {2159, 10}},
[3] = {{2160, 1}, {2159, 10}},
[4] = {{2160, 1}, {2159, 10}}
}
if _ITEMS[getPlayerVocation(cid)] then
if getPlayerStorageValue(cid, 82392) < 1 then
for _, items in pairs(_ITEMS[getPlayerVocation(cid)]) do
doPlayerAddItem(cid, items[1], items[2] or 1)
end
setPlayerStorageValue(cid, 82932, 1)
doPlayerSendTextMessage(cid, 27, "Here your first items.")
else
doPlayerSendTextMessage(cid, 27, "Sorry, you can't do it.")
end
end
return true
end
Tag
<action actionid="Se não me engano é o ID Da quest ou baú." event="script" value="script.lua"/>
Ou seja
Verde - É O Id da vocação ou seja voce vai criando varias tags para cada vocação.
Vermelho - É ID Do item que ira ganhar.
Azul - É a Quantidade Por exemplo quero que ganhe 2kk seria ,10.







info
Grupo: Campones
Registrado: 08/01/07
Posts: 58
Reputação: +3
Eae galera poderiam me ajuda preciso de um script para 1 quest :
Funciona assim para cada vocaçao diferente a quest dará 1 storage diferente tbm se possivel junta td em 1 quest só ^^ vlw obrigado