Jump to content

Sistema switchbot 6/7


Metin2
 Share

Recommended Posts

  • 3 weeks later...
  • 1 month later...
Citar

Tutorial:

 

1- ir ao root e abrir o arquivo game.py

 

Localizar a linha "from _weakref import proxy"

 

depois colar em baixo "from switchbot import Bot"

 

2- depois localizar "self.quickSlotPageIndex = 0"

 

Colar abaixo

self.switchbit = Bot()

self.switchbot.hide()

 

3- Localizar onPressKeyDict[app.DIK_F4] =lambda : self.__PressQuickSlot(7)

 

abaixo cole

 

onPressKeyDict[app.DIK_F6] =lambda : self.__toogleSwitchbot()

 

4- no final do game.py cole isto

 

# switchbot
def __toggleSwitchbot(self):
if self.switchbot.bot_shown == 1:
self.switchbot.Hide()
else:
self.switchbot.Show()
# end switchbot
 
downlod swuitchbot.py

 

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...