Exemple #1
0
# -*- coding:utf8 -*-

import sys
import os

sys.path.append(os.getcwd())
import lib
import time

if __name__ == '__main__':
    player = lib.Player()
    control = lib.Control(lib.DD())
    recorder = lib.PathRecorder(player=player, control=control, delay=0.5)
    print(recorder.inner_record())
Exemple #2
0
Fichier : QS.py Projet : sadnecc/pb
                if lib.Target().getStatus()['combat'] == 1 and lib.Target(
                ).getLiftPercent() < 0.9 and not self.hasBuff("命令圣印"):
                    self.spell.castSpell(13)
                self.spell.castSpell(61)
                # if self.spell.canCast(65,inRange=True):
                #     self.spell.castSpell(65)
                print("子循环砍:" + " " + str(datetime.datetime.now()))
        print("战斗循环结束,杀死敌人:ID:" + str(target.ID), file=hander)


if __name__ == '__main__':
    time.sleep(1)
    i = 0
    die_msg_send = full_msg_send = need_red_msg = need_food_msg = need_bandage_msg = need_repair_msg = 0
    driver = lib.Pyinput()
    controlManager = lib.Control(driver)
    spellManager = lib.Spell(control=controlManager)
    player = QS(controlManager, spellManager)
    enemyFinder = lib.EnemyFinder(player, controlManager)
    playerName = player.getName()
    playerLevel = player.getLevel()
    chater = lib.QingyunBot(controlManager)
    if UserConfig.enable_monitor:
        t = lib.Monitor(player)
        t.setDaemon(True)
        t.start()
        print("监控进程启动。。。")

    # from run.web import WebserverThread
    # t = WebserverThread.WebThread(
    #     player=player,