Jump to content

Recommended Posts

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
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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.