• 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!

Need Quest Box

Relidy

Banned User
Joined
Jun 26, 2010
Messages
45
Reaction score
0
Hello i need a box when go have this quest box in carlin, thais and edron, the inicials cities of my server... but im needing the script, when the play use the box he is get a 10k... but he need have lvl 40 and when the player obtain the 10k in carlin he can't make the quest in thais or edron....

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

   	if item.uid == 3543 then
			if getPlayerLevel(cid) >= 40 then
				queststatus = getPlayerStorageValue(cid,3542)
				if queststatus == -1 then
					doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found an advanced rod!")
					doPlayerAddItem(cid,7874,1)
					setPlayerStorageValue(cid,3542,1)
				else
					doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have already chosen!")
				end
			else
				doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You are not level 40 or higher!")
			end
	end
   	return 1
end

There ya go:peace: rep++ me please and i will give it back :D
 
Lua:
function onUse(cid,item,itemEx,fromPosition,toPosition)
local s,v = 1215,getThingPos(cid)
	if getPlayerLevel(cid) >= 40 then
		if not(getPlayerStorageValue(cid,s) > 0)then
			doPlayerSendTextMessage(cid,27,'You gained 1 crystal coin.')
			doPlayerAddItem(cid,2160,1)
			doSendMagicEffect(v,12)
			setPlayerStorageValue(cid,s,1)
		else
			doPlayerSendTextMessage(cid,27,'You\'ve already gained your reward.')
			doSendMagicEffect(v,2)
		end
	else
		doPlayerSendTextMessage(cid,27,'You\'ve got to be atleast level 40 or higher in order to gain this reward.')
		doSendMagicEffect(v,2)
	end
	return true
end
 
Lua:
function onUse(cid,item,itemEx,fromPosition,toPosition)
local s,v = 1215,getThingPos(cid)
	if getPlayerLevel(cid) >= 40 then
		if not(getPlayerStorageValue(cid,s) > 0)then
			doPlayerSendTextMessage(cid,27,'You gained 1 crystal coin.')
			doPlayerAddItem(cid,2160,1)
			doSendMagicEffect(v,12)
			setPlayerStorageValue(cid,s,1)
		else
			doPlayerSendTextMessage(cid,27,'You\'ve already gained your reward.')
			doSendMagicEffect(v,2)
		end
	else
		doPlayerSendTextMessage(cid,27,'You\'ve got to be atleast level 40 or higher in order to gain this reward.')
		doSendMagicEffect(v,2)
	end
	return true
end

what is "v"?
 
Back
Top