Jump to content
×
×
  • Create New...
  • 0

Quest Button


jKing

Question

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?

Link to comment
  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Popular Days

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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


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.