Olá pessoal,necessito da assistencia de vocês.
criei esse scripit para premiação dos players no final da quest,
mas quando aperta no bau não acontece nada
agradeço des de já
function onUse (cid, item, item2)
UID_DO_BAU = 19511
STORAGE_VALUE = 19511
ID_DO_PREMIO2 = 14211
ID_DO_PREMIO3 = 14261
if getPlayerLevel(cid) >= 200 then
if item.uid == UID_DO_BAU then
queststatus = getPlayerStorageValue(cid,STORAGE_VALUE)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"Parabens voce terminou a Box 9 Quest") -- Msg que ira aparecer
doPlayerAddItem(cid,ID_DO_PREMIO2,1)
doPlayerAddItem(cid,ID_DO_PREMIO3,5)
doPlayerAddExperience(cid, 8000000)
setPlayerStorageValue(cid,STORAGE_VALUE,1)
else
doPlayerSendTextMessage(cid,22,"Ta vazio.")
end
end
else
doPlayerSendCancel(cid,'Quest lvl 200+')
end
return 1
end