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

how to script gates of expertise

To Make Gate Of Expertise Actionid Needs To Be 1000
To Make It So lvl 50 And Higher Can Get Through Make Action Id 1050
If You Want One For Lvl 150 Put Actionid As 1150
Do You Get It Now If So Give Me Rep
 
1740, it's the quest chest id,
and then click properties in the chest, and put the UniqueID of the item you wish to put

example:
Code:
UniqueID: 2160 -- will give 1cc
 
Thanks Epic I added rep but how do I do for a chest like anihi (choose one of the four cheat quest) Help Please :P

LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
   	if item.uid == 2000 then
		queststatus = getPlayerStorageValue(cid,6076)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a demon armor.")
   			doPlayerAddItem(cid,2494,1)
   			setPlayerStorageValue(cid,6076,1)
   		else
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
   		end
   	elseif item.uid == 2001 then
		queststatus = getPlayerStorageValue(cid,6076)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a  magic sword.")
   			doPlayerAddItem(cid,2400,1)
   			setPlayerStorageValue(cid,6076,1)
   		else
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
   		end
   	elseif item.uid == 2002 then
		queststatus = getPlayerStorageValue(cid,6076)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a stonecutter axe.")
   			doPlayerAddItem(cid,2431,1)
   			setPlayerStorageValue(cid,6076,1)
   		else
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
		end
   	elseif item.uid == 2003 then
		queststatus = getPlayerStorageValue(cid,6076)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a present.")
   			doPlayerAddItem(cid,1990,1)
   			setPlayerStorageValue(cid,6076,1)
   		else
   			doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty.")
   		end
	end
   	return 1
end

I think it's this xd
 
LUA:
local playerPosition =
{
	{x = xxxx, y = yyyy, z = z, stackpos = STACKPOS_TOP_CREATURE},
	{x = xxxx, y = yyyy, z = z, stackpos = STACKPOS_TOP_CREATURE},
	{x = xxxx, y = yyyy, z = z, stackpos = STACKPOS_TOP_CREATURE},
	{x = xxxx, y = yyyy, z = z, stackpos = STACKPOS_TOP_CREATURE}
}

local newPosition =
{
	{x = xxxx, y = yyyy, z = z},
 	{x = xxxx, y = yyyy, z = z},
	{x = xxxx, y = yyyy, z = z},
	{x = xxxx, y = yyyy, z = z}
}

-- Do not modify the declaration lines below.
local player = {0, 0, 0, 0}
local failed = FALSE

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.itemid == 1945 then
		for i = 1, 4 do
			failed = TRUE
			player[i] = getThingfromPos(playerPosition[i])
			if player[i].itemid > 0 then
				if isPlayer(player[i].uid) == TRUE then
					if getPlayerStorageValue(player[i].uid, 30015) == -1 then
						if getPlayerLevel(player[i].uid) >= 100 then
							failed = FALSE
						end
					end
				end
			end
			if failed == TRUE then
				doPlayerSendCancel(cid, "Sorry, not possible.")
				return TRUE
			end
		end
		for i = 1, 4 do
			doSendMagicEffect(playerPosition[i], CONST_ME_POFF)
			doTeleportThing(player[i].uid, newPosition[i], FALSE)
			doSendMagicEffect(newPosition[i], CONST_ME_ENERGYAREA)
		end
		doTransformItem(item.uid, item.itemid + 1)
	elseif item.itemid == 1946 then
		doPlayerSendCancel(cid, "Sorry, not possible.")
	end
	return TRUE
end

For the 4 spots and the lever XD, you may use Search button :P
 
OOOH AND Do i put the 2 things to gather? The first lua code then the second lua code?

And where do i save it?

why im asking too much of questions I'm a new (so im a newbie XD)
 
First Of All Thanks For the multi chest(anihi thing)



Second of all This Thing wont work


It does o.O

chestid.png
 
Back
Top