예제 #1
0
파일: BagItem.py 프로젝트: sadnecc/pb
 def __init__(self, scanItems=False):
     Base.__init__(self)
     self.scanItems = scanItems
     if scanItems:
         t = ItemThread()
         t.setDaemon(True)
         t.start()
예제 #2
0
파일: mysql.py 프로젝트: sadnecc/pb
 def __init__(self):
     Base.__init__(self)
     self.client = pymysql.connect(host=self.host,
                                   user=self.user,
                                   password=self.passwod,
                                   database=self.dbanme,
                                   port=self.port,
                                   charset="utf8mb4")
예제 #3
0
파일: NpcNameFinder.py 프로젝트: sadnecc/pb
 def __init__(self, needCpture=True):
     Base.__init__(self)
     print(clr.AddReference("lib\\NameFinder\\NpcNameFinder"))
     import NpcNameFinder
     self.dll = NpcNameFinder.Main()
     self.captur = False
     if needCpture:
         self.dll.StartScreenShotThread()
         self.captur = True
예제 #4
0
 def __init__(self,
              control: Control,
              player: Player,
              move_type=0,
              checkMount=True,
              type='p'):
     Base.__init__(self)
     self.player = player
     self.control = control
     self.move_type = move_type
     self.playerName = self.player.getName()
     self.checkMount = checkMount
     self.type = type
     self.hander_reapir = open(
         "tmp/logs/" + self.getFormatTime(False) +
         "_choice_pathfinding.log", 'a+')
예제 #5
0
 def someBodyWihsperMe(palyerName):
     whisper = PixelData.getPointByIndex(
         SysConfig.pixelIndex["sombody_whisper_me"]).getInt()
     if whisper > Player.whisper:
         Player.whisper = whisper
         from lib.tools.mail import sendmail
         from lib.base.Base import Base
         from run.config.UserConfig import UserConfig
         sendmail(UserConfig.email, palyerName + "some one whisper to me ",
                  "", Base.screenshot("sombody_whisper_me"))
예제 #6
0
파일: Control.py 프로젝트: sadnecc/pb
 def __init__(self, driver):
     Base.__init__(self)
     self.driver = driver
예제 #7
0
 def __init__(self):
     Base.__init__(self)
     self.handler = open(
         "tmp/logs/" + self.getFormatTime(False) + "_ChatWatcher.log", 'a+')
예제 #8
0
파일: Unit.py 프로젝트: sadnecc/pb
 def __init__(self):
     Base.__init__(self)
예제 #9
0
파일: Point.py 프로젝트: sadnecc/pb
 def __init__(self, x, y):
     Base.__init__(self)
     self.x = x
     self.y = y
예제 #10
0
파일: EnemyFinder.py 프로젝트: sadnecc/pb
 def __init__(self, player: Player, control: Control):
     Base.__init__(self)
     self.player = player
     self.control = control
     self.spell = Spell(control)
     self.move_count = 0
예제 #11
0
 def __init__(self, control: Control):
     Base.__init__(self)
     self.control = control
예제 #12
0
 def getRGB(self):
     return Base.get_color_RGB(self.x, self.y)
예제 #13
0
 def getFloat(self, mod=1):
     rgb = self.getRGB()
     return int(Base.RGB_to_Hex(rgb), 16) / mod
예제 #14
0
파일: BaseBot.py 프로젝트: sadnecc/pb
 def __init__(self, control: Control):
     Base.__init__(self)
     self.control = control
     self.handler = open(
         "tmp/logs/" + self.getFormatTime(False) + "_basebot.log", 'a+')
예제 #15
0
 def __init__(self, bagId):
     Base.__init__(self)
     self.id = bagId
예제 #16
0
파일: PathRecorder.py 프로젝트: sadnecc/pb
 def __init__(self, player: Player, control: Control, filename=None, delay=4):
     Base.__init__(self)
     self.player = player
     self.control = control
     self.filename = SysConfig.record_path + filename if filename is not None else SysConfig.record_path + "DynamicConfig.py"
     self.delay = delay
예제 #17
0
파일: CastingHander.py 프로젝트: sadnecc/pb
 def __init__(self):
     Base.__init__(self)
     self.player = Player()
예제 #18
0
 def __init__(self, control: Control):
     Base.__init__(self)
     self.control = control
     from lib.spell.CastingHander import CastingHander
     self.castingHander = CastingHander()
예제 #19
0
파일: NvBase.py 프로젝트: sadnecc/pb
 def __init__(self):
     Base.__init__(self)
     self.hander = open("tmp/logs/" + self.getFormatTime(False) + "_navbase.log", 'a+')