Register for your free account! | Forgot your password?

You last visited: Today at 06:04

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Switchbot BUG

Discussion on Switchbot BUG within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2016
Posts: 1
Received Thanks: 0
Switchbot BUG

I implemented the switchbot with 5 slots but I have a problem.
No change bonuses.
Code for the charms subject is right in the file.





Sysser :

0820 14:23:35984 :: Traceback (most recent call last):

0820 14:23:35984 :: File "ui.py", line 1108, in OnToggleDown

0820 14:23:35984 :: File "switchbot.py", line 57, in Activate

0820 14:23:35984 :: AttributeError
0820 14:23:35984 :: :
0820 14:23:35984 :: 'int' object has no attribute 'gameWindow'
0820 14:23:35984 ::







ui.py : 1108

def OnToggleDown(self):
if self.eventDown:
self.eventDown()





switchbot.py : 57

if self.parentWindow.parentWindow.gameWindow != None:
self.sub_parent.blockBar.swib_normal.SetColor(COLO R_ACTIVE)
pass

FULL FUNCTION :



class BonusSelector(ui.Bar):
def Activate(self):
self.sub_parent.resetSwitch()
self.Status_new.SetColor(COLOR_ACTIVE)
self.sub_parent.StatusBar.SetColor(COLOR_ACTIVE)
self.sub_parent.StatusText.SetText("Activ")
self.Starter.SetText("Opreste schimbarea ("+str(self.index+1)+")")
self.sub_parent.boni_active = 1
if self.parentWindow.parentWindow.gameWindow != None:
self.sub_parent.blockBar.swib_normal.SetColor(COLO R_ACTIVE)
pass
def Deactivate(self):
self.sub_parent.resetSwitch()
self.Status_new.SetColor(COLOR_INACTIVE)
self.sub_parent.StatusBar.SetColor(COLOR_INACTIVE)
self.sub_parent.StatusText.SetText("Dezactivati")
self.Starter.SetText("Incepeti schimbarea ("+str(self.index+1)+")")
self.sub_parent.boni_active = 0
if self.sub_parent.parentWindow.parentWindow.gameWind ow != None:
self.sub_parent.blockBar.swib_normal.SetColor(COLO R_INACTIVE)
pass

def Activate_rare(self):
self.sub_parent.resetSwitch_rare()
self.sub_parent.StatusBar_rare.SetColor(COLOR_ACTI VE_RARE)
self.sub_parent.StatusText_rare.SetText("6/7 Activ")
self.Starter_rare_boni.SetText("Opreste 6/7")
self.sub_parent.boni_rare_active = 1
if self.parentWindow.parentWindow.gameWindow != None:
self.sub_parent.blockBar.swib_rare.SetColor(COLOR_ ACTIVE_RARE)
pass
def Deactivate_rare(self):
self.sub_parent.resetSwitch_rare()
# self.Status_new.SetColor(COLOR_INACTIVE)
self.sub_parent.StatusBar_rare.SetColor(COLOR_INAC TIVE_RARE)
self.sub_parent.StatusText_rare.SetText("6/7 inactiv")
self.Starter_rare_boni.SetText("alege 6/7")
self.Starter_rare_boni.SetUp()
self.sub_parent.boni_rare_active = 0
if self.sub_parent.parentWindow.parentWindow.gameWind ow != None:
self.sub_parent.blockBar.swib_rare.SetColor(COLOR_ INACTIVE_RARE)
pass

def Finish(self):
self.Status_new.SetColor(COLOR_FINISHED)
self.sub_parent.StatusBar.SetColor(COLOR_FINISHED)
self.sub_parent.StatusText.SetText("Terminat")
self.Starter.SetText("Bonusul ("+str(self.index+1)+") a fost schimbat.")
self.sub_parent.boni_active = 0
if self.sub_parent.parentWindow.parentWindow.gameWind ow != None:
self.sub_parent.blockBar.swib_normal.SetColor(COLO R_FINISHED)
pass

def Finish_rare(self):
# self.Status_new.SetColor(COLOR_FINISHED)
self.sub_parent.StatusBar_rare.SetColor(COLOR_FINI SHED)
self.sub_parent.StatusText_rare.SetText("6/7 terminat")
self.Starter_rare_boni.SetText("6/7 schimbat")
self.sub_parent.boni_rare_active = 0
if self.sub_parent.parentWindow.parentWindow.gameWind ow != None:
self.sub_parent.blockBar.swib_rare.SetColor(COLOR_ FINISHED)
pass
def Block(self):
self.BlockBar.Show()
self.Starter.Hide()
pass
def Unblock(self):
self.BlockBar.Hide()
self.Starter.Show()
pass
#TM2 is offline  
Reply


Similar Threads Similar Threads
[Switchbot]English Python Switchbot
11/24/2013 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 49 Replies
Guten Morgen liebe Com. Da mir gerade ein bischen Langweilig ist und ich dies noch nirgends gesehen habe, dachte ich mir ich Übersetze den Python Switchbot für InGame von DaRealFreak mal auf Englisch. Ich weiß mein Englisch ist nicht das beste aber immerhin. :P Es ist alles gleich, auser das die Sprache auf Englisch ist. Hier ein Bild wie es auf Metin2 (DE) InGame aussieht. http://img593.imageshack.us/img593/5720/englishbo t.jpg
What is switchbot?And where is it useful for it?
07/23/2012 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 1 Replies
Hello guyd i see much topics about switchbot,What is it and what can you do with it?
[Switchbot] Padmak switchbot v2.0
01/25/2012 - Metin2 Private Server - 19 Replies
Hallo liebe Com. ich brauche eure hilfe... ich habe ein problem mit dem Padmak boni switcher... ich versuche mich zu regestrieren im bot aber es geht nicht es kommt folgender fehler: Unbekannter Fehler: Server Unbekannt Schauen sie auf padmak.de od elitepvpers nach bla bla.... ich hab die neueste version aber es geht trotzdem nix... jeder Beitrag kriegt ein thx bitte wäre sehr hilfreich screen:
[Switchbot] Padmak switchbot v2.0
10/30/2011 - Metin2 Private Server - 3 Replies
Hey Leute, ich hab ich 2 probleme ersten befürchte ich das, dass die falsche section ist 2. der funzt bei mir nicht richtig der bot und zwar ist mein problem ich kann mich nicht regestrieren... Screen bitte helft mir hoffe auf schnelle antwort und nur welche die mich weiterbringen danke...



All times are GMT +1. The time now is 06:04.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.