function onUse(cid, item, frompos, item2, topos)
if item.uid == [B]9010[/B] then
queststatus = getPlayerStorageValue(cid,[B]9010[/B])
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"Znalazles Serpent Sword.")
doPlayerAddItem(cid,[COLOR="DarkOrange"]2409[/COLOR],[COLOR="Red"]1[/COLOR])
setPlayerStorageValue(cid,[B]9010[/B],1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
return 1
else
return 0
end
end
<action uniqueid="9010" script="[COLOR="Lime"]quest1[/COLOR].lua"/>
function onUse(cid, item, frompos, item2, topos)
if item.uid == 6010 then
queststatus = getPlayerStorageValue(cid,6010)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"Znalazles Spell rune.")
doPlayerAddItem(cid,2270,1)
setPlayerStorageValue(cid,6010,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
return 1
else
return 0
end
end
<action uniqueid="6010" script="quest1.lua"/>
function onUse(cid, item, frompos, item2, topos)
-- Desert q 1
if item.uid == 34871 then
queststatus = getPlayerStorageValue(cid,34871)
if queststatus == -1 then
if getPlayerLevel(cid) >= 50 then
doPlayerSendTextMessage(cid,22,"You have found your reward.")
doPlayerAddItem(cid,2160,15)
setPlayerStorageValue(cid,34871,1)
else
doPlayerSendTextMessage(cid,22,"You need level 50 to get prize.")
end
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
end
end
if item.uid == 9010 then
queststatus = getPlayerStorageValue(cid,9010)