Jump to content

JeeH

Inactive Member
  • Posts

    5
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by JeeH

  1. this is the tutorial that I'm following to implement the bot

     

     

    Now to Game.py:

    Adds top of the file the following line:

     

      Quote

     

     

    from switchbot import Bot

     

    Now you're looking for the following:

     

      Quote

     

     

    def __init__(self, stream):

     

    and adds the following somewhere in this function code below:

     

      Quote

     

     

    self.switchbot = Bot()
    self.switchbot.Hide()

     

    Creating a new key listener

    Now for the keys!

    Searches the following line in the game.py:

     

      Quote

     

     

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

     

    Seek out the function a beautiful place and adds its following:

     

      Quote

     

     

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

     

     

    Now the AUTO F6 it would rise

    Creating the key listener function

    Now we need the function!

    Seek out for an empty seat in the game.py.

     

      Quote

     

     

    def __toggleSwitchbot(self):
    if self.switchbot.bot_shown == 1:
    self.switchbot.Hide()
    else:
    self.switchbot.Show()

    I fixed the tabs now I have this error:

    1030 11:27:24237 ::   File "system.py", line 160, in __hybrid_import

    1030 11:27:24237 ::   File "system.py", line 122, in _process_result

    1030 11:27:24238 ::   File "game.py", line 56, in <module>

    1030 11:27:24238 :: ImportError
    1030 11:27:24238 :: : 
    1030 11:27:24238 :: cannot import name Bot
    1030 11:27:24238 :: 

  2. 1029 23:52:12049 ::  CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4076

    1029 23:52:12049 ::  CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4077

    1029 23:52:12049 ::  CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4078

    1029 23:52:12049 ::  CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4079

    1029 23:52:12049 ::  CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4080

    1029 23:52:12049 ::  CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4081

    1029 23:52:12049 ::  CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4082

    1029 23:52:12049 ::  CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4083

    1029 23:52:12049 ::  CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4084

    1029 23:52:12049 ::  CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4085

    1029 23:52:12904 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/paymessage_warning.mse) Error
    1029 23:52:12904 :: CInstanceBase::RegisterEffect(eEftType=279, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/paymessage_warning.mse, isCache=1) - Error
    1029 23:52:12904 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/paymessage_decide.mse) Error
    1029 23:52:12904 :: CInstanceBase::RegisterEffect(eEftType=280, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/paymessage_decide.mse, isCache=1) - Error
    1029 23:52:37234 :: Traceback (most recent call last):

    1029 23:52:37234 ::   File "networkModule.py", line 261, in SetGamePhase

    1029 23:52:37234 ::   File "system.py", line 160, in __hybrid_import

    1029 23:52:37234 ::   File "
    1029 23:52:37234 :: game.py
    1029 23:52:37234 :: ", line 
    1029 23:52:37234 :: 3287
    1029 23:52:37234 :: 

    1029 23:52:37234 ::     
    1029 23:52:37234 :: self.switchbot.Hide()

    1029 23:52:37234 ::     
    1029 23:52:37234 ::  
    1029 23:52:37234 ::  
    1029 23:52:37234 ::  
    1029 23:52:37234 :: ^

    1029 23:52:37234 :: IndentationError
    1029 23:52:37234 :: : 
    1029 23:52:37234 :: expected an indented block
    1029 23:52:37234 :: 

     

×
×
  • 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.