if(isKnight(cid) == false or getPlayerLevel(cid) < 50 then
return false
end
if(not isKnight(cid) or getPlayerLevel(cid) < 50) then
return false
end
function onUse(cid, item, frompos, item2, topos)
if item.uid == 62624 then
queststatus = getPlayerStorageValue(cid,5641)
if queststatus == -1 then
if(not isKnight(cid) or getPlayerLevel(cid) < 50) then
return false
end
doPlayerSendTextMessage(cid,22,"You have found serpent sword.")
doPlayerAddItem(cid,2409,1)
setPlayerStorageValue(cid,5641,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end
function onUse(cid, item, frompos, toPosition)
if getPlayerStorageValue(cid,5641) == -1 then
if(not isKnight(cid) or getPlayerLevel(cid) < 50) then
doPlayerAddItem(cid,2409,1)
doPlayerSendTextMessage(cid,25, "You have found a Serpent Sword.")
setPlayerStorageValue(cid,5641,1)
end
else
doPlayerSendCancel(cid,"You already got your reward!")
else
doPlayerSendCancel(cid,"You are not Knight!")
end
end
function onUse(cid, item, frompos, item2, topos)
queststatus = getPlayerStorageValue(cid,5641)
if item.uid == 62624 then
if queststatus == -1 then
if isKnight(cid) then
if getPlayerLevel(cid) >= 50 then
doPlayerSendTextMessage(cid,22,"You have found serpent sword.")
doPlayerAddItem(cid,2409,1)
setPlayerStorageValue(cid,5641,1)
else
doPlayerSendTextMessage(cid,22,"You are not enough level")
end
else
doPlayerSendTextMessage(cid,22,"You are not a knight")
end
else
doPlayerSendTextMessage(cid,22,"It is empty")
end
end
return true
end
function onUse(cid, item, frompos, item2, topos)
if item.uid == 62625 then
queststatus = getPlayerStorageValue(cid,5642)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found spell rune.")
doPlayerAddItem(cid,2280,1)
setPlayerStorageValue(cid,5642,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
else
return 0
end
return 1
end