Esempio n. 1
0
 def getStatus(self):
     bools = PixelData.get_point_bools(SysConfig.pixelIndex["playerStatus"],
                                       23)
     return {
         "dead": bools[0],
         "is_ghost": bools[1],
         "combat": bools[2],
         "ourtdoor": bools[3],
         "casting": bools[4],  #施法
         "channeled": bools[5],  # 引导
         # "interrupt ": bools[6], #是否可以打断
         "in_party ": bools[7],
         "in_raid ": bools[8],
         "xlss_quest_complete": bools[9],
         "mounted": bools[10],
         "need_sign_xlss_letter": bools[12],
         "need_blue_bottom": bools[13],
         "need_red_bottom": bools[14],
         "need_cookie": bools[15],
         "need_water": bools[16],
         "need_food": bools[17],
         "need_gem": bools[18],
         "need_bandage": bools[19],
         "need_repair": bools[20],
         "flying": bools[21],
         "talent": bools[22],
     }
Esempio n. 2
0
 def hasItem(self, itemName):
     keys = SysConfig.BagItems.keys()
     if itemName not in keys:
         return False
     b = PixelData.get_point_bools(SysConfig.pixelIndex["bagItem"], 23)
     if b[SysConfig.BagItems[itemName]] == 1:
         return True
     return False
Esempio n. 3
0
File: Target.py Progetto: sadnecc/pb
    def hasBuff(self, buffName):
        keys = SysConfig.TargetBuffs.keys()
        if buffName not in keys:
            return False
        b = PixelData.get_point_bools(SysConfig.pixelIndex["TargetBuffs"], 23)

        if b[SysConfig.TargetBuffs[buffName]] == 1:
            return True
        return False
Esempio n. 4
0
    def hasDebuff(self, name):
        keys = SysConfig.playerDebuffs.keys()
        if name not in keys:
            return False
        b = PixelData.get_point_bools(SysConfig.pixelIndex["playerDebuffs"],
                                      23)

        if b[SysConfig.playerDebuffs[name]] == 1:
            return True
        return False
Esempio n. 5
0
 def getStatus(self):
     bools = PixelData.get_point_bools(SysConfig.pixelIndex["petStatus"],
                                       23)
     return {
         "exists": bools[0],
         "dead": bools[1],
         "combat": bools[2],
         "visible": bools[3],
         "happy": bools[4],  # 猎人宠物有效 1 = unhappy, 2 = content, 3 = happy
         "slot4": bools[5],
         "slot5": bools[6],
         "slot6": bools[7],
         "slot7": bools[8],
     }
Esempio n. 6
0
File: Target.py Progetto: sadnecc/pb
 def getStatus(self):
     bools = PixelData.get_point_bools(SysConfig.pixelIndex["targetStatus"],
                                       24)
     status = {
         "combat": bools[0],
         "dead": bools[1],
         "is_enemy": bools[2],
         "can_attack": bools[3],
         "target_me": bools[4],
         "is_elite": bools[5],
         "is_player": bools[6],
         # "casting": bools[7],
         # "channeled": bools[8],
         # "interrupt": bools[9]
     }
     return status
Esempio n. 7
0
File: Party.py Progetto: sadnecc/pb
 def getStatus(self):
     bools = PixelData.get_point_bools(self.rang['start'] + 5, 23)
     return {"combat": bools[0], "dead": bools[1]}