só fiz o do bau, o do NPC nao.
function onUse(cid, item, frompos, item2, topos)
local lvl = 100
local item = 2160
local quantidade = 100
if getPlayerLevel(cid) < lvl then
doPlayerSendTextMessage(cid, 20, "Desculpe Mas Voce Precisa Ser Nivel " ..lvl.. " Ou Mais Para Fazer Essa Quest!")
return true
end
if getPlayerStorageValue(cid, 119838) >= 0 then
doPlayerSendTextMessage(cid, 20, "Desculpe Mas Voce Ja Completou Esta Quest!")
return true
end
doPlayerAddItem(cid, item, quantidade)
setPlayerStorageValue(cid, 119838, 1)
doSendMagicEffect(getThingPos(cid), 29)
doPlayerSendTextMessage(cid, 20, "Parabéns Você Completou a Quest!")
return true
end
para configurar.
local lvl = 100
local item = 2160
local quantidade = 100