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

Itens from quest

labbadia

New Member
Joined
Aug 29, 2010
Messages
51
Reaction score
1
Hello!!!
1- I want one script to put the reward itens of the quest more power of the normal... For example: One focus cape normal add ml + 1...I want put in quest one focus cape to add ml + 2 !
How i do that?

2 - i want to know if i configure one quest in RME with a chest with unique id "9001" and put one item in that...Have i to create one action in actions.xml/scripts for that or dont need?
 
Last edited:
1- Just change the focus cape in items.xml and set its ml+ to 2 (?

2- If you put a chest with unique id 9001, then yes you have to go to your actions.xml and put:

Code:
<action uniqueid="9001" script="focus cape chests.lua" />

then at data/actions/scripts/focus cape chests.lua

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

   	if item.uid == 9001 then
   		queststatus = getPlayerStorageValue(cid,5025)
   		if queststatus == -1 then
			doPlayerSendTextMessage(cid,22,"You have found a focus cape.")
			doPlayerAddItem(cid,xxxx,1) ---------ID of focus cape/1 = how many focus capes
			setPlayerStorageValue(cid,5025,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
   else
		return 0
   	end

   	return 1
end


Rep+ if I helped.
 
thansk for the second question...but the first question...i dont want change alll focus cape to ml + 2...just the one of the quest

Another question..how i put one quest to give one letter with same words...like "Here lives a Demon" or something like that
 
Last edited:
Back
Top