• 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 Box Problems

UpAndDown

New Member
Joined
Mar 12, 2009
Messages
66
Reaction score
0
In this thread;
http://otland.net/f137/tutorial-come-closer-whit-rme-editor-whit-screenshots-25393/

I found something about the quest boxes, for my own custom made quest. I have followed exactly what was written there, but I can't open the quest box at all, I can even move it around.

So my question is, how can I get the quest box to work properly? It has to give a key in a black bag. If anyone can help, that would be great! (And REP ofc)

Sincerely,
UpAndDown!
 
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)

local uid = 1000 (Change to what you want)
local storage = 1000 (Change to what you want)
local bag = doPlayerAddItem(cid, 5927, 1) <-Pirate Bag

if item.uid == uid then
	if getPlayerStorageValue(cid, storage) == - 1 then

	doAddContainerItem(bag,2088,1) <- Silver Key change to what you need
	setPlayerStorageValue(cid, storage, 1)
	doPlayerSendTextMessage(cid,22,"You have found a 'item' (change 'item' to whatever you want to say.")
else
	doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "The chest is empty.")
	
		end
	end
end
 
and in Actions.xml say
PHP:
<action uniqueid="Whatever it is on the thing" script="quests/the file.lua"/>
Hope i helped!
Also on your map change the Action id to 2000 (means its a quest box) You can move it on God characters but on normal characters you wont be able to move it
And make the chests Unique id to what you put it as in the file
:)
 
Back
Top