• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Quest for lvl 50 and vocation knight rep ++

mhamad

Member
Joined
May 15, 2010
Messages
165
Reaction score
14
Location
Germany
Hello i need a Quest script the give you jade hammer id 7422 only knights can take it

rep++ for help
 
its dont work can any one fix it
PHP:
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

ty ^^
 
try this one:

Lua:
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

if dont works report :)
 
@Up: That will give reward if the player is not a Knight and has level 49 or - , And you should check the elses too :p
This should work
Lua:
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
 
for alle vocation
PHP:
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
 
Back
Top