Пример #1
0
def wujiang(username,passwd):#武将训练信息
    action = fuben(username,passwd)
    action.action(c='muster',m='index')
    practiceinfo=action.action(c='practice',m='index')
    freetimes = practiceinfo['freetimes']#突飞卡
    turn = practiceinfo['list']['1']['turn']
    level = practiceinfo['list']['1']['level']
    print '剩余突飞卡 %s 武将等级 %s 转 %s 级'%(freetimes,turn,level)
Пример #2
0
def act(user, apass):
    action = fuben(user, apass)
    gid,uid = action.general()
    print gid,uid
    for i in uid:
        print uid
        action.strengthen(i)
        action.eqip(gid,i)
    action.saodang()
Пример #3
0
def uneq(username,passwd):#武将训练信息
    action = fuben(username,passwd)
    general_index = action.get_general()  # 获取装备列表信息
    general_index_list = general_index['list']['2']  # 穿戴装备列表
    print general_index
    eid2 = general_index_list['eid2']
    eid3 = general_index_list['eid3']
    gid=general_index_list['id']
    action.action(c='general', m='unequip', gid=gid, eid=eid2, position=0)
    action.action(c='general', m='unequip', gid=gid, eid=eid3, position=0)
Пример #4
0
def userinfo(username,password):
    act = shujufenx.fuben(username, password)
    info = act.action(c='blackmarket', m='index')  # 获取黑市首页
    memberInfo = act.action(c='member', m='index')
    name = memberInfo['nickname']#账号
    level = memberInfo['level']#等级
    act = memberInfo['act']#军令
    silver = memberInfo['silver']#银币
    gold = memberInfo['gold']#元宝

    print '账号:%s 名字:%s 等级:%s 军令:%s 银币: %s 元宝: %s 黄宝石: %s 紫宝石: %s\n---------- ' % (username,name,level,act,silver,gold,info['info']['get2'], info['info']['get3'])
Пример #5
0
def genarl(username,passwd):#装备穿戴3级别以上装备
    action = fuben(username,passwd)
    general_index = action.get_general()  # 获取装备列表信息
    general_index_list = general_index['list']['1']  # 穿戴装备列表
    general_index_equipments = general_index['equipments']  # 未穿戴装备列表
    gid = general_index_list['id']  # 获取武将id
    # eid1_quality = general_index_list['eid1']['quality']#佩戴武器的等级
    for k, equ in general_index_equipments.items():  # 遍历未穿戴装备列表
        if equ['quality'] == '3' or equ['quality'] == '4' or equ['quality'] == '5':
            eid1_quality_equipments = equ['id']  # 未穿戴的6级或是5级装备
            action.eqip(gid, eid1_quality_equipments)
Пример #6
0
def sanguo(username, password):#游历三国活动
    act = shujufenx.fuben(username, password)
    travelindex=act.action(c = 'act_travel', m = 'index')#获取活动
    details = act.action(c='act_travel', m='action_travel')['details']  # 开始活动
    print travelindex['info']['points']
    if travelindex['info']['free'] ==1:
        result = act.action(c='act_travel', m='action_dice')  # 掷骰子
    if  travelindex['info']['points'] != 0:
        # #走路顺序list[4,2,3,5,8,9,10,11,12,13,14]
        plain=[1,4,2,3,5,8,9,10,11,12,13,14]
        num = plain.index(int(details['current']))+1
        stats = act.action(c='act_travel',m ='plain' ,point=plain[num])
Пример #7
0
def act(username,passwd):
    action = fuben(username,passwd)
    try:
        print '账号:%s   等级为:%s' % (username, action.level())
    except :
        print 'zhanghao ######################################################################## ',username
    if  action.level() <10:
        action.saodang(1)#16级 失败退出
        action.levelgift(16)  # 领取16级奖励
    #扫荡失败以后获取2级别装备,然后强化后并穿戴上去
    if action.level() < 35:
        gid,uid = action.general(7)#第一次的都是2级装备
        for i in uid:
            action.strengthen(i)
            action.eqip(gid, i)
        action.saodang(1)#26级失败退出
        for i in uid:
            action.strengthen(i)
        action.saodang(2)#30级失败退出从第二个图开始
        action.levelgift(30)  # 领取30级奖励
        action.morra()#节节高
        action.muster()  # 武将出征并上阵,并突飞到30级
        gid, uid = action.general(25)#获取三级装备,再次强化,并给武将穿戴上
        for i in uid:
            action.strengthen(i)
            action.eqip(gid, i)
            action.saodang(2)  # 级失败退出
        for i in uid:
            action.strengthen(i)
    if action.level()<50:
        for i  in range(2):
            action.mainquest()#获取所有活动
        gid, uid = action.general(25)#获取25级需要穿戴的装备强化
        for i in uid:#遍历装备,强化并穿戴
            action.strengthen(i)
            action.eqip(gid, i)
        action.muster()  # 再次突飞
        action.saodang(2)
    if action.level()  <70:#领取前60次奖励
        #action.muster()#对武将突飞
        #action.morra()  # 节节高
        for i in range(3):#循环领取通过奖励
            action.mainquest()
        for i in range(4,13):
            action.levelgift(5*i)  # 领取60级奖励
        # #获取竞速元宝
        # # for i in range(10, 120, 10):
        # #     action.action(c='map',m='get_mission_reward',id=i)

                #action.strengthen(eid1_quality_equipments)#强化装备
        # action.strengthen(general_index_list['eid1']['id'])
        action.saodang(3)
Пример #8
0
def  heishi(username,password):
    act=shujufenx.fuben(username,password)
    info = act.action(c='blackmarket',m='index')#获取黑市首页
    print info
Пример #9
0
def fuka(username,passwd):
    #福卡活动
    action = fuben(username,passwd)
    action.fuka()
Пример #10
0
def joi(username,passwd):
    #国家海外贸易
    action = fuben(username,passwd)
    #action.join()加入国家
    print '账号:%s   等级为:%s' % (username, action.level())
    action.overseastrade()
Пример #11
0
def jinsu(username,passwd):
    """适用于有紫石头3500以上,可以购买孙权的"""
    action = fuben(username,passwd)
    action.saodang(3)#突飞出征
Пример #12
0
def zhengshou(username,passwd):#武将训练信息
    action = fuben(username,passwd)
    practtice_info = action.soul()
Пример #13
0
def buy(username,passwd):
    action = fuben(username, passwd)
    action.action(c = 'tavern', m = 'get_list' ,page = 1 , perpage = 100 , tab = 4)
    action.action(c='tavern',m='buy',generalid=79)#购买孙权武将武将