Jump to content

Recommended Posts

  • Active Member

Hello guys, 

i made a new buttons panel in my client like this:

xcxhhjgcex03_t.jpg

some functions works clearly, but im gonna ask you what i did bad in "Polymorph Delete" button.

Here is my codes:

game.py

"Polimorfia"			: self.__Polimorfia,
	def __Polimorfia(self, value):
		constInfo.Polimorfia = int(value)

uiinventory.py

self.PolimorfiaButton = self.GetChild2("PolimorfiaButton")
		# PolimorfiaButton
		if self.PolimorfiaButton:
			self.PolimorfiaButton.SetEvent(ui.__mem_func__(self.ClickPolimorfiaButton))
		self.PolimorfiaButton = None
	def ClickPolimorfiaButton(self):
		qid7 = constInfo.POLIMORFIA
		event.QuestButtonClick(qid7)
	def PolimorfiaButton(self):
		import event
		import constInfo
		qid = constInfo.Polimorfia
		event.QuestButtonClick(qid)

constinfo.py

POLIMORFIA = 0

Quest

quest polimorfia begin
	state start begin
		when login begin
			cmdchat("Polimorfia "..q.getcurrentquestindex())
		end
		when button or info begin
			pc.remove_polymorph()
		end
	end
end

Can you just tell me how to fix it?

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/13967-quest-button/
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.