Esempio n. 1
0
def SemiNDSi(siSkill,dummySkill,delay,on,attackSpeed):
    Terminal.SetCheckBox("Auto Attack",False)
    Terminal.SetRadioButton("SIRadioMelee",True)
    Terminal.SetCheckBox("MonkeySpiritsNDcheck",False)
    count = 0
    if siSkill != 32120055:
        delay = 30*math.ceil(delay*1000 * (10+attackSpeed)/480)/1000
    print("The delay for skill {} is {}, starting si".format(siSkill,delay))
    if siSkill in [5311000,5301000]:
        sleepTime = 0.161
    elif siSkill not in [25101000,25121000]:
        sleepTime = 0.211
    else:
        sleepTime = 0.101
    while Field.GetCharacterCount()<=1 and Field.GetEliteState() !=2 and len(Field.GetMobs())>0 and not Terminal.IsRushing() and GameState.IsInGame() and not Terminal.GetRadioButton("SIRadioDragon") and on:
        Terminal.SetCheckBox("Skill Injection",True)
        Terminal.SetLineEdit("SISkillID",str(siSkill))
        Terminal.SetCheckBox("Melee No Delay",True)
        Terminal.SetSpinBox("SkillInjection",17)
        time.sleep(sleepTime)
        #Terminal.SetCheckBox("Melee No Delay",False)
        Terminal.SetLineEdit("SISkillID",str(dummySkill))
        time.sleep(0.043)
        Terminal.SetCheckBox("Skill Injection",False)
        time.sleep(delay+0.05)
        #if Terminal.IsRushing():
        #    break
        if (siSkill == 27111303 or siSkill == 27121303) and not(Character.HasBuff(2,20040220) or Character.HasBuff(2,20040219)):
            break
        count += 1
    print("Si ended due to break options")
Esempio n. 2
0
def attackSI(skillid,on,delay=100,siOption = "SIRadioMelee"):
    Terminal.SetLineEdit("SISkillID",str(skillid))
    Terminal.SetSpinBox("SkillInjection",delay)
    Terminal.SetCheckBox("Melee No Delay",False)
    Terminal.SetCheckBox("Auto Attack",False)
    Terminal.SetCheckBox("Skill Injection", on)
    Terminal.SetRadioButton(siOption,True)
Esempio n. 3
0
                 Quest.StartQuest(16742, 9010010)
     else:
         Result = Packet.WaitForRecv(0x05F0, 60000)
         if Result.GetRemaining() > 0:
             BytesWanted = []
             ParsePacket(Result)
             Result = Packet.WaitForRecv(0x04C6, 10000)
             if Result.GetRemaining() > 0:
                 Exploit(BytesWanted)
         Terminal.SetProperty("count",
                              Terminal.GetProperty("count", -1) + 1)
         #count += 1
         print("Count = ", Terminal.GetProperty("count", -1))
         if Terminal.GetProperty("count", -1) >= 6:
             time.sleep(1)
             LeaveDance()
             time.sleep(0.8)
             Terminal.SetProperty("danceDone", True)
 else:
     if Field.GetID() == 993050000:
         # if Character.GetPos().x != 2464:
         #     Character.Teleport(2464,35)
         # else:
         #     Character.EnterPortal()
         #     time.sleep(0.3)
         print("Need to leave map")
     else:
         time.sleep(1)
         Terminal.Logout()
         Terminal.SetLineEdit(
             "LoginChar", str(int(Terminal.GetLineEdit("LoginChar")) + 1))
Esempio n. 4
0
    def StoreMeso(self):
        storage_map_id = 550000000
        storage_npc_id = 9270054
        ###########store mesos
        def store_mesos():
            while True:
                if Field.GetID() == storage_map_id:
                    print("Current Mesos before store = {}".format(Character.GetMeso()))
                    Packet.BlockRecvHeader(PACKET_HEADERS.block_header)
                    Character.Teleport(2268,17)
                    time.sleep(1)
                    Character.TalkToNpc(storage_npc_id)
                    time.sleep(1)
                    oPacket = Packet.COutPacket(PACKET_HEADERS.store_header)
                    oPacket.EncodeBuffer("07 FFFFFFF903DC5401")
                    Packet.SendPacket(oPacket)
                    oPacket1 = Packet.COutPacket(PACKET_HEADERS.store_header)
                    oPacket1.Encode2(8)
                    Packet.SendPacket(oPacket1)
                    print("Completed meso storing")
                    time.sleep(1)
                    print("Current Mesos after store = {}".format(Character.GetMeso()))
                    Packet.UnBlockRecvHeader(PACKET_HEADERS.block_header)
                    break
                else:
                    Terminal.Rush(storage_map_id)
                    print("Still rushing to storage")
                    time.sleep(2)

        def withdraw_mesos():
            if Field.GetID() ==101000000: #wait till character gets to ellinia
                #1032006
                time.sleep(2)
                Packet.BlockRecvHeader(PACKET_HEADERS.block_header)
                print("Current Mesos before withdraw = {}".format(Character.GetMeso()))
                Character.TalkToNpc(1032006)
                time.sleep(3)
                oPacket = Packet.COutPacket(PACKET_HEADERS.store_header)
                oPacket.EncodeBuffer("07 00000006FC23ABFF")
                Packet.SendPacket(oPacket)
                oPacket1 = Packet.COutPacket(PACKET_HEADERS.store_header)
                oPacket1.Encode2(8)
                #oPacket2.EncodeBuffer("08")
                Packet.SendPacket(oPacket1)
                time.sleep(1)
                print("Current Mesos after withdraw = {}".format(Character.GetMeso()))
                time.sleep(1)
                Packet.UnBlockRecvHeader(PACKET_HEADERS.block_header)

            else:
                Terminal.Rush(101000000)
                time.sleep(3)

        if Character.GetMeso() == 29999999999 and Character.GetJob() == 4212:
            #if mesos =29999999999, which is max, store them in the storage
            HELPER.ToggleRushByLevel(False)
            #Terminal.LoadProfile(r"C:\Users\Jacopo\Desktop\TerminalManager\terminalProfiles\StoreMesos.xml")
            if self.accountData['storing_meso'] == False:
                store_mesos()
            #Next step is to change the AutoChar Number and then logon into the new created luminous and release control
            #Read AutoChar Number, +1 write to file.
            time.sleep(3)
            if Character.GetMeso() == 0:
                self.accountData['storing_meso'] = True
                self.writeJson()
                print("logging out")
                if GameState.IsInGame():
                    Terminal.Logout()
                time.sleep(3)
        #print(GameState.GetLoginStep())
        if self.accountData['storing_meso'] and GameState.GetLoginStep() == 2:
            autochar_kanna = 19
            autochar_lumi = 11
            Terminal.SetCheckBox("Auto Login",False)
            Terminal.SetLineEdit("LoginChar", str(accountData['storage_number'] + 1))
            Terminal.SetComboBox("settings/autochar_job",autochar_lumi)
            Terminal.SetCheckBox("Auto Login",True)
            Terminal.SetCheckBox("settings/autochar",True)
        

        if self.accountData['storing_meso'] and Character.GetJob() == 2700 and Character.GetMeso() == 0:
            print("withdrawing mesos")
            HELPER.ToggleRushByLevel(False)
            withdraw_mesos()
            time.sleep(2)
            SCLib.UpdateVar("withdraw_flag",True)
        elif self.accountData['storing_meso'] and Character.GetJob() == 2700 and Character.GetMeso() == 29999999999 and SCLib.GetVar("withdraw_flag"):
            #safe to say that storage is empty and can switch back to kanna
            self.accountData['storage_number'] = self.accountData['storage_number'] + 1
            self.accountData['storing_meso'] = False
            self.writeJson()
            if GameState.IsInGame():
                Terminal.Logout()
            Terminal.SetLineEdit("LoginChar", self.accountData['kanna_pos'])
            SCLib.UpdateVar("withdraw_flag",False)
            print("Logging out and changing to Kanna farmer")
            time.sleep(2)
        elif self.accountData['storing_meso'] and Character.GetJob() == 2700 and Character.GetMeso() != 0 and not SCLib.GetVar("withdraw_flag"):
            #need to update bank number but did not withdraw mesos
            self.accountData['storage_number'] = self.accountData['storage_number'] + 1
            self.writeJson()
            if GameState.IsInGame():
                Terminal.Logout()
            print("Logging out and changing to next bank")
            time.sleep(2)

        def ChooseLightPath():
            choosePacket = Packet.COutPacket(PACKET_HEADERS.dialogue_header)
            choosePacket.EncodeBuffer("1A 01 00000000")
            Packet.SendPacket(choosePacket)

        if Field.GetID() == 927020000:
            ChooseLightPath()
            time.sleep(1)
Esempio n. 5
0
def setSIND(siSkill,delay,on):
    Terminal.SetRadioButton("SIRadioMelee",True)
    Terminal.SetLineEdit("SISkillID",siSkill)
    Terminal.SetCheckBox("Skill Injection",on)
    Terminal.SetCheckBox("Melee No Delay",on)
    Terminal.SetSpinBox("SkillInjection",delay)
Esempio n. 6
0
     #     attackSI(27101202,True,200)
     Terminal.SetCheckBox("Full Map Attack",False)
 elif job == 3122: #DA fourth job
     print("Setting up Settings for DA") 
     #attackSemiNDMagic(31211010,31211010,0.78,True)
     #Execution 31221012
     attackSemiNDMagic(31221012,31221012,0.84,True)
 elif job == 1112: #Dawn warrior
     attackSemiNDMagic(32120055,32120055,0.45,True)
 elif job == 3112: #DS fourth job
     print("Setting up Settings for DS")
     attackSemiNDMagic(400011018,400011018,0.40,True,attackSpeed = 6)
     
 elif job == 2312: #Mercedes 4th
     print("Setting up Settings for Mercedes")
     Terminal.SetLineEdit("SISkillID","400031024")
     Terminal.SetSpinBox("SkillInjection",110)
     Terminal.SetCheckBox("Melee No Delay",False)
     Terminal.SetRadioButton("SIRadioMelee",True)
     
     Terminal.SetCheckBox("Auto Attack",False)
     Terminal.SetCheckBox("Skill Injection", True)
 elif job == 11212: #BeastTamer
     print("Setting up Settings for BeastTamer")
     attackSemiNDMagic(32120055,32120055,0.45,True) 
 elif job == 4112: #Hayato 4th 41121011
     print("Setting up Settings for Hayato")
     
     attackSemiNDMagic(32120055,32120055,0.45,True)
     
 elif job == 3612:#Xenon 4th 36121000
Esempio n. 7
0

def takePortal(portalstr):
    portal = Field.FindPortal(portalstr)
    if portal.valid:
        Character.Teleport(portal.x, portal.y)
        time.sleep(1)
        Character.EnterPortal()
        time.sleep(1)


while Terminal.IsRushing():
    time.sleep(2)
if field_id == 350140100:
    time.sleep(15)  #todo
    Terminal.SetLineEdit('SISkillID', '80001945')
    #Terminal.SetLineEdit('SIDelay', '1000') Let's play guess what the form labels names are !
    #Terminal.SetCheckBox('SkillInject', 1)
    #Terminal.SetCheckBox('GFMA', 1)

    Character.TalkToNpc(1540899)
    Npc.ClearSelection()
    Npc.RegisterSelection("Fight together.")
    time.sleep(2)
    Character.TalkToNpc(1540896)
    Npc.ClearSelection()
    Npc.RegisterSelection("Fight together.")
    time.sleep(2)
    portal = Field.FindPortal("out_350140100")
    Character.Teleport(portal.x, portal.y - 10)
    Character.EnterPortal()
Esempio n. 8
0
def toggleKillSettings(on):
    if job == 3712:
        Terminal.SetLineEdit("SISkillID", "37121003")
        Terminal.SetCheckBox("Auto Attack", False)
        Terminal.SetSpinBox("SkillInjection", 1)
        Terminal.SetCheckBox("Melee No Delay", False)
        Terminal.SetRadioButton("SIRadioMelee", True)
        Terminal.SetCheckBox("Kami Vac", on)
        if on:
            if not Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
        else:
            if Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
    elif job == 6512:
        Terminal.SetLineEdit("SISkillID", "65121008")
        Terminal.SetCheckBox("Auto Attack", False)
        Terminal.SetSpinBox("SkillInjection", 1)
        Terminal.SetCheckBox("Melee No Delay", False)
        Terminal.SetRadioButton("SIRadioMelee", True)
        Terminal.SetCheckBox("Kami Vac", on)
        if on:
            if not Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
        else:
            if Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
    elif job == 3512:
        mech_att(on)
        Terminal.SetCheckBox("Auto Attack", False)
        Terminal.SetSpinBox("SkillInjection", 1)
        Terminal.SetCheckBox("Melee No Delay", False)
        Terminal.SetRadioButton("SIRadioMelee", True)
        Terminal.SetCheckBox("Skill Injection", False)
        Terminal.SetCheckBox("Kami Vac", on)
    elif job == 2512:
        Terminal.SetLineEdit("SISkillID", "25120003")
        Terminal.SetCheckBox("Auto Attack", False)
        Terminal.SetSpinBox("SkillInjection", 100)
        Terminal.SetCheckBox("Melee No Delay", False)
        Terminal.SetRadioButton("SIRadioMelee", True)
        Terminal.SetCheckBox("Kami Vac", on)
        if on:
            if not Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
        else:
            if Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
    elif job == 4112:
        Terminal.SetLineEdit("SISkillID", "41121011")
        Terminal.SetCheckBox("Auto Attack", False)
        Terminal.SetSpinBox("SkillInjection", 100)
        Terminal.SetCheckBox("Melee No Delay", False)
        Terminal.SetRadioButton("SIRadioMelee", True)
        Terminal.SetCheckBox("Kami Vac", on)
        if on:
            if not Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
        else:
            if Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
    elif job == 11212:  #beast tamer
        Terminal.SetLineEdit("SISkillID", "112000002")
        Terminal.SetCheckBox("Auto Attack", False)
        Terminal.SetSpinBox("SkillInjection", 200)
        Terminal.SetCheckBox("Skill Injection", False)
        Terminal.SetCheckBox("Melee No Delay", False)
        Terminal.SetRadioButton("SIRadioMelee", True)
        Terminal.SetCheckBox("Kami Vac", on)
        count = 0
        if on:
            while count < 50 and Field.GetMobCount() > 0:
                Key.Down(0x44)
                time.sleep(0.1)
                Key.Up(0x44)
                time.sleep(0.1)
                Key.Press(0x44)
                count += 1
    elif job == 15212:
        Terminal.SetLineEdit("SISkillID", "152121041")
        Terminal.SetCheckBox("Auto Attack", False)
        Terminal.SetSpinBox("SkillInjection", 30)
        Terminal.SetRadioButton("SIRadioMelee", True)
        Terminal.SetCheckBox("Kami Vac", on)
        if on:
            if not Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
                Terminal.SetCheckBox("Melee No Delay", on)
        else:
            if Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
                Terminal.SetCheckBox("Melee No Delay", on)
    elif job == 3112:
        Terminal.SetLineEdit("SISkillID", "31121010")
        Terminal.SetCheckBox("Auto Attack", False)
        Terminal.SetSpinBox("SkillInjection", 0)
        Terminal.SetCheckBox("Melee No Delay", False)
        Terminal.SetRadioButton("SIRadioMelee", True)
        Terminal.SetCheckBox("Kami Vac", on)
        if on:
            if not Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
        else:
            if Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
    elif job == 1212:
        Terminal.SetLineEdit("SISkillID", "12121055")
        Terminal.SetCheckBox("Auto Attack", False)
        Terminal.SetSpinBox("SkillInjection", 0)
        Terminal.SetRadioButton("SIRadioMelee", True)
        Terminal.SetCheckBox("Kami Vac", on)
        if on:
            if not Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
                Terminal.SetCheckBox("Melee No Delay", on)
        else:
            if Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
                Terminal.SetCheckBox("Melee No Delay", on)
    elif job == 572:
        Terminal.SetLineEdit("SISkillID", "5710020")
        Terminal.SetCheckBox("Auto Attack", False)
        Terminal.SetSpinBox("SkillInjection", 100)
        Terminal.SetRadioButton("SIRadioMelee", True)
        Terminal.SetCheckBox("Kami Vac", on)
        if on:
            if not Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
                Terminal.SetCheckBox("Melee No Delay", on)
        else:
            if Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
                Terminal.SetCheckBox("Melee No Delay", on)
    elif job == 132 or job == 2412:  #DK or phantom
        Terminal.SetLineEdit("SISkillID", "1311011")
        Terminal.SetCheckBox("Auto Attack", False)
        Terminal.SetSpinBox("SkillInjection", 100)
        Terminal.SetRadioButton("SIRadioMelee", True)
        Terminal.SetCheckBox("Kami Vac", on)
        if on:
            if not Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
                Terminal.SetCheckBox("Melee No Delay", on)
        else:
            if Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
                Terminal.SetCheckBox("Melee No Delay", on)
    elif job == 15512:  #ark
        Terminal.SetLineEdit("SISkillID", "155121007")
        Terminal.SetCheckBox("Auto Attack", False)
        Terminal.SetSpinBox("SkillInjection", 100)
        Terminal.SetRadioButton("SIRadioMelee", True)
        Terminal.SetCheckBox("Kami Vac", on)
        if on:
            if not Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
                Terminal.SetCheckBox("Melee No Delay", on)
        else:
            if Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
                Terminal.SetCheckBox("Melee No Delay", on)
    elif job == 6412:  #Cadena
        Terminal.SetLineEdit("SISkillID", "64121011")
        Terminal.SetCheckBox("Auto Attack", False)
        Terminal.SetSpinBox("SkillInjection", 150)
        Terminal.SetRadioButton("bot/si_cadena", True)
        Terminal.SetCheckBox("Kami Vac", on)
        if on:
            if not Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
                Terminal.SetCheckBox("Melee No Delay", on)
        else:
            if Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
                Terminal.SetCheckBox("Melee No Delay", on)

    elif job not in KannaJobs:
        Terminal.SetCheckBox("Skill Injection", False)
        Terminal.SetCheckBox("Melee No Delay", False)
        Terminal.SetCheckBox("Kami Vac", on)
        if on:
            if not Terminal.GetCheckBox("Auto Attack"):
                print("Toggle Skill Injection " + str(on))
                Terminal.SetCheckBox("Auto Attack", on)
        else:
            if Terminal.GetCheckBox("Auto Attack"):
                print("Toggle Skill Injection " + str(on))
                Terminal.SetCheckBox("Auto Attack", on)
    if job not in KannaJobs:
        Terminal.SetCheckBox("MonkeySpiritsNDcheck", False)
Esempio n. 9
0
            time.sleep(1)
    if Character.GetLevel() < 200 and train_to_200:

        Terminal.SetCheckBox("Rush By Level", True)
        Terminal.SetCheckBox("Kami Vac", True)
        if job == 4200:  #kanna first job
            attackAuto(42001000, True)
        elif job in KannaJobs and field_id in curbrockhideout:
            attackAuto(42001000, True)
        elif job == 4210:  #kanna 2nd
            Terminal.SetCheckBox("Auto Attack", False)
            Terminal.SetSpinBox("charm_delay", 100)
            Terminal.SetCheckBox("charm_fma", True)
            Terminal.SetCheckBox("MonkeySpiritsNDcheck", False)
            Terminal.SetSpinBox("SkillInjection", 100)
            Terminal.SetLineEdit("SISkillID", "42001006")
            Terminal.SetCheckBox("Skill Injection", True)
            Terminal.SetComboBox("AttackKey", 33)
            Terminal.SetSpinBox("autoattack_spin", 100)
        elif job == 4211:  #kanna 3rd
            Terminal.SetSpinBox("charm_delay", 100)
            Terminal.SetCheckBox("charm_fma", True)
            Terminal.SetCheckBox("Summon Kishin", False)
            Terminal.SetCheckBox("MonkeySpiritsNDcheck", False)
            Terminal.SetCheckBox("Auto Attack", True)
            Terminal.SetSpinBox("autoattack_spin", 7500)
            Terminal.SetComboBox("AttackKey", 36)
            Terminal.SetCheckBox("Skill Injection", False)
            Key.Set(0x47, 1, 42111003)  #kishin
        elif job == 4212:  #kanna 4th
            if level >= 160 and Character.GetSkillLevel(
Esempio n. 10
0
    #Read AutoChar Number, +1 write to file.
    CharName = Character.GetName()
    print("Changing profiles for {}".format(CharName))
    while True:
        try:
            f = open(
                r'C:\Users\Jacopo\Desktop\Scripts\StoreMeso\%s.txt' % CharName,
                'r')
            print("Successfully read meso bank number")
        except OSError:  #initialization if there is no existing file yet
            f = open(
                r'C:\Users\Jacopo\Desktop\Scripts\StoreMeso\%s.txt' % CharName,
                'w')
            f.write('0')
            f.close()
            print("Successfully initialized meso bank number to 0")
        else:  #if no need for initialization, then read the value and change AutoChar Number
            f = open(
                r'C:\Users\Jacopo\Desktop\Scripts\StoreMeso\%s.txt' % CharName,
                'r')
            temp = f.read()  #save read value to a temp holder
            Terminal.SetLineEdit("LoginChar", str(int(temp) + 1))
            f.close()
            #done with the creation of new character and the script ends
            print(
                "done with the creation of new character and the script ends")
            break

    #end of code
#00E8 [08] close storage
#block 05E7