• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Chest for lv 30+ with items for every vocation

ugurdrahs

New Member
Joined
May 6, 2010
Messages
555
Reaction score
2
Location
Netherland
Hello,

Does someone know how to make a chest with a full EQ inside for level 30+,
And every vocation receive his own sort of eq?

repp+ for the helper,
 
Last edited:
Search for it.... Someone post it like 2 days ago, but, he wanted it for level 45.... If u find it and know how to change it, good, but if u dont know how to edit it, post it here or send me a mp and i will help u....
 
ye you can use an firstitems script like this:

Code:
function onUse(cid, item, frompos, item2, topos)
	if item.uid ==53461 then
queststatus = getPlayerStorageValue(cid,53461)
if queststatus == 1 then
doPlayerSendTextMessage(cid,22,"O baú está vazio.") else
		if isSorcerer(cid) then
doPlayerSendTextMessage(cid,22,"Parabens.")
doSendMagicEffect(topos,12)

			local bag = doPlayerAddItem(cid, 11237, 1)

			doAddContainerItem(bag, 2160, 100)
			doAddContainerItem(bag, 11205, 1)
			doAddContainerItem(bag, 10140, 1)
		
			

		setPlayerStorageValue(cid, 53461, 1)

		elseif isDruid(cid) then
doPlayerSendTextMessage(cid,22,"Parabens.")
doSendMagicEffect(topos,12)

			local bag = doPlayerAddItem(cid, 11237, 1)
			doAddContainerItem(bag, 2160, 100)
			doAddContainerItem(bag, 11205, 1)
			doAddContainerItem(bag, 10140, 1)
		
			

			setPlayerStorageValue(cid, 53461, 1)

		elseif isPaladin(cid) then
doPlayerSendTextMessage(cid,22,"Parabens.")
doSendMagicEffect(topos,12)

			local bag = doPlayerAddItem(cid, 11237, 1)
			doAddContainerItem(bag, 2160, 100)
			doAddContainerItem(bag, 11205, 1)
			doAddContainerItem(bag, 8892, 1)
		
			
			setPlayerStorageValue(cid, 53461, 1)

		elseif isKnight(cid) then
doPlayerSendTextMessage(cid,22,"Parabens.")
doSendMagicEffect(topos,12)

			local bag = doPlayerAddItem(cid, 11237, 1)
			doAddContainerItem(bag, 2160, 100)
			doAddContainerItem(bag, 11205, 1)
			doAddContainerItem(bag, 10316, 1)
					

			setPlayerStorageValue(cid, 53461, 1)
		end
	end
 	return TRUE
end
end

add this like an action:
<action uniqueid="53461" event="script" value="lootvocation.lua"/>

You can set the level usung a door level, if you really nedd the level check in this script tell me , so i can add for you.

You just heave to set the items like this:

doAddContainerItem(bag, 2160, 100)


and define in what type of container the items will:

local bag = doPlayerAddItem(cid, 11237, 1)
 
Last edited:
ye you can use an firstitems script like this:

Code:
function onUse(cid, item, frompos, item2, topos)
	if item.uid ==53461 then
queststatus = getPlayerStorageValue(cid,53461)
if queststatus == 1 then
doPlayerSendTextMessage(cid,22,"O baú está vazio.") else
		if isSorcerer(cid) then
doPlayerSendTextMessage(cid,22,"Parabens.")
doSendMagicEffect(topos,12)

			local bag = doPlayerAddItem(cid, 11237, 1)

			doAddContainerItem(bag, 2160, 100)
			doAddContainerItem(bag, 11205, 1)
			doAddContainerItem(bag, 10140, 1)
		
			

		setPlayerStorageValue(cid, 53461, 1)

		elseif isDruid(cid) then
doPlayerSendTextMessage(cid,22,"Parabens.")
doSendMagicEffect(topos,12)

			local bag = doPlayerAddItem(cid, 11237, 1)
			doAddContainerItem(bag, 2160, 100)
			doAddContainerItem(bag, 11205, 1)
			doAddContainerItem(bag, 10140, 1)
		
			

			setPlayerStorageValue(cid, 53461, 1)

		elseif isPaladin(cid) then
doPlayerSendTextMessage(cid,22,"Parabens.")
doSendMagicEffect(topos,12)

			local bag = doPlayerAddItem(cid, 11237, 1)
			doAddContainerItem(bag, 2160, 100)
			doAddContainerItem(bag, 11205, 1)
			doAddContainerItem(bag, 8892, 1)
		
			
			setPlayerStorageValue(cid, 53461, 1)

		elseif isKnight(cid) then
doPlayerSendTextMessage(cid,22,"Parabens.")
doSendMagicEffect(topos,12)

			local bag = doPlayerAddItem(cid, 11237, 1)
			doAddContainerItem(bag, 2160, 100)
			doAddContainerItem(bag, 11205, 1)
			doAddContainerItem(bag, 10316, 1)
					

			setPlayerStorageValue(cid, 53461, 1)
		end
	end
 	return TRUE
end
end

add this like an action:
<action uniqueid="53461" event="script" value="lootvocation.lua"/>

You can set the level usung a door level, if you really nedd the level check in this script tell me , so i can add for you.

You just heave to set the items like this:

doAddContainerItem(bag, 2160, 100)


and define in what type of container the items will:

local bag = doPlayerAddItem(cid, 11237, 1)



not working.
 
LUA:
function onUse(cid, item, frompos, item2, topos)

voc = getPlayerVocation(cid)
queststatus = getPlayerStorageValue(cid,11554)


if voc == 1 then
if queststatus == -1 and getPlayerLevel(cid) >= 30 then
doPlayerAddItem(cid,2152,50)
doPlayerAddItem(cid,8820,1)
doPlayerAddItem(cid,8819,1)
doPlayerAddItem(cid,2647,1)
doPlayerAddItem(cid,2190,1)
doPlayerAddItem(cid,2175,1)
setPlayerStorageValue(cid,11554,1)
else
doPlayerSendTextMessage(cid,22,"This chest is empty")
end
elseif voc == 2 then
if queststatus == -1 and getPlayerLevel(cid) >= 30 then
doPlayerAddItem(cid,2152,50)
doPlayerAddItem(cid,8820,1)
doPlayerAddItem(cid,8819,1)
doPlayerAddItem(cid,2647,1)
doPlayerAddItem(cid,2175,1)
doPlayerAddItem(cid,2182,1)
setPlayerStorageValue(cid,11554,1)
else
doPlayerSendTextMessage(cid,22,"This chest is empty")
end
elseif voc == 3 then
if queststatus == -1 and getPlayerLevel(cid) >= 30 then
doPlayerAddItem(cid,2152,50)
doPlayerAddItem(cid,8872,1)
doPlayerAddItem(cid,2457,1)
doPlayerAddItem(cid,2647,1)
doPlayerAddItem(cid,2525,1)
doPlayerAddItem(cid,2389,1)
setPlayerStorageValue(cid,11554,1)
else
doPlayerSendTextMessage(cid,22,"This chest is empty")
end
elseif voc == 4 then
if queststatus == -1 and getPlayerLevel(cid) >= 30 then
doPlayerAddItem(cid,2152,50)
doPlayerAddItem(cid,2457,1)
doPlayerAddItem(cid,2463,1)
doPlayerAddItem(cid,2647,1)
doPlayerAddItem(cid,2525,1)
doPlayerAddItem(cid,2428,1)
doPlayerAddItem(cid,2417,1)
doPlayerAddItem(cid,3963,1)

setPlayerStorageValue(cid,11554,1) else
doPlayerSendTextMessage(cid,22,"This chest is empty")
end
else
return 0
end

return 1
end



old script, but works
 
LUA:
function onUse(cid, item, frompos, item2, topos)

voc = getPlayerVocation(cid)
queststatus = getPlayerStorageValue(cid,11554)


if voc == 1 then
if queststatus == -1 and getPlayerLevel(cid) >= 30 then
doPlayerAddItem(cid,2152,50)
doPlayerAddItem(cid,8820,1)
doPlayerAddItem(cid,8819,1)
doPlayerAddItem(cid,2647,1)
doPlayerAddItem(cid,2190,1)
doPlayerAddItem(cid,2175,1)
setPlayerStorageValue(cid,11554,1)
else
doPlayerSendTextMessage(cid,22,"This chest is empty")
end
elseif voc == 2 then
if queststatus == -1 and getPlayerLevel(cid) >= 30 then
doPlayerAddItem(cid,2152,50)
doPlayerAddItem(cid,8820,1)
doPlayerAddItem(cid,8819,1)
doPlayerAddItem(cid,2647,1)
doPlayerAddItem(cid,2175,1)
doPlayerAddItem(cid,2182,1)
setPlayerStorageValue(cid,11554,1)
else
doPlayerSendTextMessage(cid,22,"This chest is empty")
end
elseif voc == 3 then
if queststatus == -1 and getPlayerLevel(cid) >= 30 then
doPlayerAddItem(cid,2152,50)
doPlayerAddItem(cid,8872,1)
doPlayerAddItem(cid,2457,1)
doPlayerAddItem(cid,2647,1)
doPlayerAddItem(cid,2525,1)
doPlayerAddItem(cid,2389,1)
setPlayerStorageValue(cid,11554,1)
else
doPlayerSendTextMessage(cid,22,"This chest is empty")
end
elseif voc == 4 then
if queststatus == -1 and getPlayerLevel(cid) >= 30 then
doPlayerAddItem(cid,2152,50)
doPlayerAddItem(cid,2457,1)
doPlayerAddItem(cid,2463,1)
doPlayerAddItem(cid,2647,1)
doPlayerAddItem(cid,2525,1)
doPlayerAddItem(cid,2428,1)
doPlayerAddItem(cid,2417,1)
doPlayerAddItem(cid,3963,1)

setPlayerStorageValue(cid,11554,1) else
doPlayerSendTextMessage(cid,22,"This chest is empty")
end
else
return 0
end

return 1
end



old script, but works


but umm how do I have to import it?
like need to set a unique id on the chest?
or action id?

Its not so clear,

repp+ for help
 
Back
Top