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

I need this 7.6 chest script! Rep+++

Printer

if Printer then print("LUA") end
Senator
Premium User
Joined
Dec 27, 2009
Messages
5,780
Solutions
31
Reaction score
2,299
Location
Sweden?
When the open the chest they get a bag, in the bag its have items! (if you can do when the open the chest they get teleported too)

Rep+++
 
LUA:
function onUse(cid, item, item2, fromPos, toPos)
if item.uid == 1444 then
 queststatus = getPlayerStorageValue(cid,123412)
 if queststatus ~= 1 then
  doPlayerSendTextMessage(cid,22,"You have found a bag.")
	local bag = doPlayerAddItem(cid,1987,1)
	local pos = {x=xxx, y=yyy, z=z}
	doAddContainerItem(bag,2160,2)
	doAddContainerItem(bag,2160,30)
	doTeleportThing(cid,pos)

  setPlayerStorageValue(cid,123412,1)
 else
  doPlayerSendTextMessage(cid,22,"It is empty.")
 end
end
end

Just add unique id 1444 to a chest :P

actions.xml
Code:
<action uniqueid="1444" script="quest.lua" />

Don't know that it will work on 7.6 :/ so try it
 
it didnt work you could open it 100 times and you get only the bag!
 
Back
Top