• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Quest chest with level

G3NU1N3

New Member
Joined
May 3, 2008
Messages
63
Reaction score
0
AS the little says i need a quest box to have a level requirement
and how to impliment to my server.
 
Thankss. I am well aware of the multi reward system :| (read your other thread) i just need people to have a certain level so they dont abuse the quest with multi chars :p
 
If you read it carefully, each chest does have a certain level.
 
If this is totaly wrong please dont laugh this is my first day of lua scripting

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

     if item.uid == 50003 then
        if getplayerlevel (cid) = >=50 then
		if getPlayerStorageValue(cid,50111) == -1 then
                   doplayersendtextmessage (cid,25, "You have found ."
                   doplayeradditem (cid, ITEMID,HOW MANY)
		   setPlayerStorageValue(cid,50111,1)
     else  
                   doplayersendcancel (cid,25, "You need level *")
      end
  end
return true
end

Code:
<action uniqueid="50003" script="Starter Quest.lua" />
 
Back
Top