Jump to content
metin2dev
Metin2International
  • 0
Sign in to follow this  
amosth

open button safebox inventory

Question

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 =/

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×