Olá, tenho o seguinte script de uma quest no servidor:
function onUse (cid,item,frompos,item2,topos)
pos = {x=210, y=488, z=6}
pos2 = getPlayerPosition(cid)
UID_DO_BAU = 6661
STORAGE_VALUE = 6886
ID_DO_PREMIO = 11641
if getPlayerLevel(cid) >= 100 then
if item.uid == UID_DO_BAU then
queststatus = getPlayerStorageValue(cid,STORAGE_VALUE)
if queststatus == -1 then
doTeleportThing(cid,pos)
doPlayerSendTextMessage(cid,22,"Parabens Você Conseguil Completar a Quest.") -- Msg que ira aparecer
doPlayerAddItem(cid,ID_DO_PREMIO,1)
setPlayerStorageValue(cid,STORAGE_VALUE,1)
doTeleportThing(cid, pos)
doSendMagicEffect(pos2, CONST_ME_TELEPORT)
else
doPlayerSendTextMessage(cid,22,"Você ja pegou os itens.")
end
end
else
doPlayerSendCancel(cid,'Somente levels 120+ conseguem desifrar a estatua.')
end
return 1
end
Como faço para o item de id 11641 venha como unique item?
OBS: Uso o PDA Sem Level do Slicer