Jump to content
Forgot your email address? ×
×
×
  • Create New...
  • 0

Bonus Page multiple opening


Adrian1428

Question

I have a problem with a bonus page:

 

Screen:

 

uMGAg.jpg

        def __BonusPage(self):
                import PaginaBonusuri
                global BPisLodaded
                try:
                        if BPisLodaded == 0:
                                BPisLodaded = 1
                                exec 'PaginaBonusuri.BonusBoardDialog().Show()'
                        else:
                                exec 'PaginaBonusuri.BonusBoardDialog().Hide()'
                                BPisLodaded = 0
                except ImportError:
                        import dbg,app
                        dbg.Trace('PaginaBonusuri.py Importing error')
                        app.Abort

Script:  http://pastebin.com/cWarBrvW

 

Thanks in advance.

Link to comment

11 answers to this question

Recommended Posts

  • 0
def __BonusPage(self):
	try: import PaginaBonusuri
	except:
		import dbg,app
		dbg.Trace('PaginaBonusuri.py Importing error')
		app.Abort
	global BPisLodaded
	if BPisLodaded == 0:
		BPisLodaded = 1
		PaginaBonusuri.BonusBoardDialog().Show()
	elif BPisLodaded == 1:
		PaginaBonusuri.BonusBoardDialog().Hide()
		BPisLodaded = 0

try with this

Link to comment

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

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


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.