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

Quests

Quickshot

Member
Joined
Nov 8, 2008
Messages
595
Reaction score
8
Hi i would like to know how to have more then 1 quests box and all having different items but you only can choose one
 
You need a scrpit for that, this is my poi scrpit works like this.... make 3 chest on ur map editer with unique 9500,9501,9502 then put the item you want as price and just edit the scrpit:D


PHP:
function onUse(cid, item, frompos, item2, topos)

   	if item.uid == 9500 then
   		queststatus = getPlayerStorageValue(cid,5050)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Arcane staff.")
   			doPlayerAddItem(cid,2453,1)
   			setPlayerStorageValue(cid,5050,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
   	elseif item.uid == 9501 then
   		queststatus = getPlayerStorageValue(cid,5050)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Avenger.")
   			doPlayerAddItem(cid,6528,1)
   			setPlayerStorageValue(cid,5050,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
   	elseif item.uid == 9502 then
   		queststatus = getPlayerStorageValue(cid,5050)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Arbalest.")
   			doPlayerAddItem(cid,5803,1)
   			setPlayerStorageValue(cid,5050,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
	else
		return 0
   	end

   	return 1
end
 
Back
Top