def test_qunMoZheng(self): # 初始化 wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) # 加载页面 wayOrCut.getHtml() dungeons = Dungeons() dungeons.qunMoZheng(wayOrCut)
def test_chiyao(self): # 初始化 wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) # 加载页面 wayOrCut.getHtml() for name in range(52, 53): dungeons = Dungeons() dungeons.eatDanYao(wayOrCut, str(name))
def test_fuben_single(self): wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) dungeons = Dungeons() # WU_DI_DONG = ['继续', '返回', '返回', '腾云', '无底洞', '激活【无底洞困难副本】', '继续',2,6,'【白鼠精】',4,2,2,6,6,2,4,'【黑鼠精】',6,6,8,8,6,8,8,4,'【田鼠精】',4,2,2,2,2,6,6,'【地涌夫人】'] # dungeons.commonBySkill(wayOrCut, WU_DI_DONG, SKILL_SINGLE) dungeons.commonBySkill(wayOrCut, TheOption.SI_TUO_DONG_VIP, SKILL_SINGLE)
def test_shifangzhen(self): wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) wayOrCut.getOperationsAndGo(['腾云', '十方', '十方', '十方', '继续']) wayOrCut.cutMonsterBySkill('十方', SKILL_SINGLE) wayOrCut.getByHrefNumberAndGo(1, "") wayOrCut.getByHrefNumberAndGo(0, "")
def test_fuben(self): wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) dungeons = Dungeons() dungeons.allDungeonsAuto(wayOrCut, SKILL_SINGLE)
def test_xinshouqu_cailiaoguai(self): # 初始化 wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) dungeons = Dungeons() # 打新手区 dungeons.xinshouqu(wayOrCut)
from baseOption.Urls import Urls from baseOption.TheWay import TheWay from baseOption.WayOrCut import WayOrCut wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) way = TheWay() wayOrCut.getHtml() # wayOrCut.gameContinue() # wayOrCut.getOperationAndGo("丹药") # wayOrCut.getOperationAndGo("丹药") # wayorcut.getOperation('将军府') # wayorcut.getHtml() # wayorcut.gameContinue() # wayorcut.getWay(2) # wayorcut.getHtml() # wayorcut.getOperationAndGo('大宝') # way.wayToCrab(wayorcut,way.wayToCrab) # i=0 # while i<=10: # way.cutMonsterByWay(wayOrCut,way.way4Plus4,"螃") # i=i+1 # print(i) # wayOrCut.getOperationAndGo("腾云") # wayOrCut.getOperationAndGo("地府") # way.gobyWay(wayOrCut, way.GuiMenGuanToTurning) # 地府刷怪 # while 1==1: # m=0 # while m<9: # m=m+1
def test_ge_ren_Boss(self): wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) wayOrCut.getOperationsAndGo(['状态', '十年', '挑战', '挑战']) for i in range(1, 7): wayOrCut.getOperationsAndGo(['挑战']) wayOrCut.cutMonsterBySkill('击杀', SKILL_SINGLE)
def test_tong_tian_ta(self): wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) wayOrCut.getOperationsAndGo(['状态', '十年', '挑战', '通天', '通天']) wayOrCut.cutFixSiteMonsterBySkill(1, SKILL_SINGLE, '查看地图传送(1)')
def test_qianghua(self): # 初始化 wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) # 加载页面 while wayOrCut.getByHrefNumberAndGo(4, "返回游戏"): continue
def test_jingjie(self): # 初始化 wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) # 加载页面 for name in range(0, 1500): wayOrCut.getOperationsAndGo(['进阶'])
def test_shengji(self): # 初始化 wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) # 加载页面 for name in range(0, 219): wayOrCut.getOperationsAndGo(['升级', '返回上级'])
def test_shentong(self): # 初始化 wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) # 加载页面 for name in range(0, 44): wayOrCut.getByHrefNumberAndGo(19, "返回游戏")
def test_shijuezhen(self): wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) wayOrCut.getOperationsAndGo(['状态', '十年', '挑战', '十绝', '十绝', '继续']) wayOrCut.cutMonsterBySkill('十绝', SKILL_SINGLE)
def test_ba_shi_yi_nan(self): wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) wayOrCut.getOperationsAndGo(['状态', '十年', '挑战', '八十一']) wayOrCut.cutFixSiteMonsterBySkill(1, SKILL_SINGLE, '孟婆')
def test_BossHome(self): wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) wayOrCut.cutBOSSHomeBySkill(SKILL_SINGLE)
def test_da_nao_di_fu(self): wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) wayOrCut.getOperationsAndGo(['状态', '十年', '挑战', '地府']) wayOrCut.cutFixSiteMonsterBySkill(1, SKILL_SINGLE, '孟婆')
def test_she_ji_tu(self): wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) wayOrCut.getOperationsAndGo(['状态', '十年', '挑战', '社稷图使者', '【社稷图】', '继续']) wayOrCut.cutFixSiteMonsterBySkill(1, SKILL_SINGLE, '孟婆') self.test_shan_he_tu() self.test_shan_he_tu_vip()
def test_tong_tian_ta_vip(self): wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) wayOrCut.getOperationsAndGo(['状态', '可点', '副本', '通 天 塔']) wayOrCut.cutFixSiteMonsterBySkill(1, SKILL_SINGLE, '进入【通天塔37层】')
from baseOption.Dungeons import Dungeons from baseOption.PreUrl import Urls from baseOption.TheWay import TheWay from baseOption.WayOrCut import WayOrCut url='http://f12.mxxy.paop.net/game_mxxy2/s12/c.rosyclouds?u=xxm233381&x=Q1UiVJnV8iLKR3On0oPw86_CXBD644m0nnnr_' wayOrCut = WayOrCut(url, Urls.preUrl8128) way = TheWay() dungeons=Dungeons() wayOrCut.getHtml() # wayOrCut.getOperationAndGo("") # while 1==1: # way.cutMonsterByWay(wayOrCut, way.way4Plus4, "\*【") # wayOrCut.getWayAndGo(4) # way.cutMonsterByWay(wayOrCut,way.way5Plus5,"\*【") # wayOrCut.getWayAndGo(6) #dungeons.bingJingTa(wayOrCut) #dungeons.huaShengShi(wayOrCut) # dungeons.bianYiZhuLin(wayOrCut) # print(wayOrCut.getOperation("刷新")) # wayOrCut.getHtml() print(wayOrCut.matchByhand(u'金豆'))
def test_shan_he_tu_vip(self): wayOrCut = WayOrCut(Urls.fullUrl828, Urls.preUrl8128) wayOrCut.getOperationsAndGo( ['继续', '返回', '返回', '状态', '可点', '副本', '继续', '山 河 图', '继续']) wayOrCut.cutFixSiteMonsterBySkill(1, SKILL_SINGLE, '孟婆')