function onUse(cid, item, frompos, item2, topos)
-- bright sword quest
if item.uid == 5001 then
queststatus = getPlayerStorageValue(cid,5001)
if queststatus == -1 then
if getPlayerLevel(cid) >= 20 then
doPlayerSendTextMessage(cid,22,"You have found Bright Sword.")
doPlayerAddItem(cid,3233,1)
setPlayerStorageValue(cid,5001,1)
else
doPlayerSendTextMessage(cid,22,"You need level 20 to get prize.")
end
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
-- orc fortress quest
elseif item.uid == 5002 then
queststatus = getPlayerStorageValue(cid,5002)
if queststatus == -1 then
if getPlayerLevel(cid) >= 50 then
doPlayerSendTextMessage(cid,22,"You have found Golden Armor.")
doPlayerAddItem(cid,3298,1)
setPlayerStorageValue(cid,5002,1)
else
doPlayerSendTextMessage(cid,22,"You need level 50 to get prize.")
end
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
end
return 1
end
Nesztek level korlátos Quest Kódja xD