Jump to content

button safebox inventory


Recommended Posts

Insert quest safebox

 

6TIC6eXkTdS5q8ElEyD-kA.png

 

my quest id 17 in locale_list

quest armazem_portatil begin
	state start begin
		when button or info begin
			local map = pc.get_map_index()
			say("Deseja abrir o Armazém?")
			local armazem = select("Sim","Fechar")
			if armazem == 1 then
			if map == 21 then
			syschat("Você não pode abrir aqui.")
			return
			end
			syschat("Abriu o armazém")
			game.open_safebox()
			setskin(NOWINDOW)
			return
			end
		end -- w
	end -- s
end -- q
	def ClickMallButton(self):
		print "click_mall_button"
		net.SendChatPacket("/click_mall") 

to:

  

def ClickMallButton(self):
        import event
        event.QuestButtonClick(17)

No run =/

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.