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

Solved Quest Problem

Status
Not open for further replies.

Mattt

I'm cool I swear
Joined
Apr 28, 2008
Messages
1,163
Reaction score
7
Location
USA
Hello Everyone,

I have a delima..obviously...well....When i go to open my quest chest it opens the chest but has the items in it and not as the quest action..if u know what i mean..I've tried Action id 2000. and plain just the id of the item in the unique slot in the chest..and ive searched for it..and couldnt find it...So I did use the search function for the ones who like to bitch..

But yeah..ive tried it....and i cant get it!

So i decided to ask the great people of OTland :]

Any help is greatly appreciated!!

Thanks:]

-Matt
 
Last edited:
If your trying to put items with map editor in the chests, then it will not work. You only need to set unique id with map editor and then goto data/actions/actions.xml and put the unique id at there and then make .lua file of the quest script.

actions.xml
Code:
<action uniqueid="7001" event="script" value="yourquestname.lua"/>

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


	if item.uid == 7001 then
		if getPlayerStorageValue(cid,7001) == -1 then
			doPlayerSendTextMessage(cid,25,"You have found a crusader helmet.")
			doPlayerAddItem(cid,2497,1)
			setPlayerStorageValue(cid,7001,1)
		else
			doPlayerSendTextMessage(cid,25,"The pile of bones is empty.")
		end
	
	end
	return TRUE
end
 
ValhallaOT, Thank you!

Rep++

That script u gave me i like much better than regular map editor one. Thank you:]
 
Status
Not open for further replies.
Back
Top