def changeChannel():
    print("Changing channel, please wait...")
    curChannel = GameState.GetChannel()

    while curChannel == GameState.GetChannel():
        Terminal.ChangeChannel(0)
        time.sleep(8)
Beispiel #2
0
def WaitForFollow(user, startTime):
    timer = 0
    time.sleep(3)
    while (Field.GetID() != user.mapid or GameState.GetChannel() != user.channel) \
        and time.time() - startTime < timeout:
        time.sleep(1)
        timer += 1
    if Terminal.IsRushing():
        #print(Field.GetID(), user.mapid, GameState.GetChannel(), user.channel)
        if Field.GetID() != user.mapid or GameState.GetChannel(
        ) != user.channel:
            print("Failed in chasing {0} at {1} Ch{2}".format(
                user.charname, user.mapid, user.channel),
                  flush=True)
        Terminal.StopRush()
def blubBlub():
   oPacket = Packet.COutPacket(ReactorSend)
   oPacket.Encode4(Terminal.GetProperty(str(GameState.GetChannel()), 0))
   oPacket.Encode4(2)
   oPacket.Encode2(0x106)
   oPacket.Encode4(0)
   Packet.SendPacket(oPacket)
def changeChannel():
	print("Changing channel, please wait...")
	curChannel = GameState.GetChannel()
	
	if curChannel != defaultCH:
		Terminal.ChangeChannel(defaultCH)
		time.sleep(8)
Beispiel #5
0
def PartyReady():
    map = Field.GetID()
    channel = GameState.GetChannel()
    for member in Party.GetPartyMembers():
        if member.mapid != map or member.channel != channel:
            return False
    return True
Beispiel #6
0
def FollowLead():
    if Party.IsInParty() and Party.GetPartyBossID() != Character.GetID():
        if FindClientID(Party.GetPartyBossID()) is not None:
            LeaderClient = Terminal.GetLocalUser(
                FindClientID(Party.GetPartyBossID()))
            if Field.GetID() == LeaderClient.mapid and GameState.GetChannel(
            ) != LeaderClient.channel:
                print("Switch to leader channel")
                Terminal.ChangeChannel(LeaderClient.channel)
def grabObjectID():
   iPacket = Packet.WaitForRecv(ReactorRecv, 10000)
   if iPacket.GetRemaining() > 0:
       objectID = iPacket.ReadLong(4)
       Terminal.SetProperty(str(GameState.GetChannel()), objectID)
ReactorSend = 0x042E
MovementSend = 0x00D5
delay = 0.01

def grabObjectID():
   iPacket = Packet.WaitForRecv(ReactorRecv, 10000)
   if iPacket.GetRemaining() > 0:
       objectID = iPacket.ReadLong(4)
       Terminal.SetProperty(str(GameState.GetChannel()), objectID)
    
def blubBlub():
   oPacket = Packet.COutPacket(ReactorSend)
   oPacket.Encode4(Terminal.GetProperty(str(GameState.GetChannel()), 0))
   oPacket.Encode4(2)
   oPacket.Encode2(0x106)
   oPacket.Encode4(0)
   Packet.SendPacket(oPacket)

while GameState.IsInGame():
   if Field.GetID() == 230040420:
       if Terminal.GetProperty(str(GameState.GetChannel()), 0) == 0:
           Terminal.SetCheckBox("Jump Down Anywhere", True)
           if Character.GetPos().y <= 78:
               Character.JumpDown()
               time.sleep(2)
           Character.JumpDown()
           grabObjectID()
       else:
           blubBlub()
           time.sleep(delay)
           Character.AMoveX(-491)
Beispiel #9
0
    def __Items(self):
        IGN = Character.GetName()
        Channel = GameState.GetChannel()
        World = GameState.GetWorldID()
        Level = Character.GetLevel()
        CharID = Character.GetID()
        PercentageExp = self.__GetPercentage()
        VJSymbol = Inventory.GetItemCount(1712001)
        ChuSymbol = Inventory.GetItemCount(1712002)
        LachSymbol = Inventory.GetItemCount(1712003)
        ArcanaSymbol = Inventory.GetItemCount(1712004)
        MorrasSymbol = Inventory.GetItemCount(1712005)
        EsferaSymbol = Inventory.GetItemCount(1712006)
        StigmaAmount = Inventory.GetItemCount(4001868)
        CoreAmount = Inventory.GetItemCount(4001842)
        TradNodes = Inventory.GetItemCount(2435719)
        UntradNodes = Inventory.GetItemCount(2436324)
        MesoCount = Character.GetMeso()
        DropletCount = Inventory.GetItemCount(4001878)
        EsferaDropletCount = Inventory.GetItemCount(4001879)
        ProtAmount = Inventory.GetItemCount(2531000) + Inventory.GetItemCount(2531001) + \
            Inventory.GetItemCount(2531004) + Inventory.GetItemCount(2531005)
        CssAmount = Inventory.GetItemCount(2049004) + Inventory.GetItemCount(2049009) + Inventory.GetItemCount(2049011) + \
            Inventory.GetItemCount(2049018) + Inventory.GetItemCount(2049022)
        PotentialScrolls = Inventory.GetItemCount(2049401)

        items = {
            'IGN': IGN,
            'World': World,
            'CharID': CharID,
            'Channel': Channel,
            'Level': Level,
            'EXP': PercentageExp,
            'VJSymbols': VJSymbol,
            'ChuChuSymbols': ChuSymbol,
            'LacheleinSymbols': LachSymbol,
            'ArcanaSymbols': ArcanaSymbol,
            'MorrasSymbol': MorrasSymbol,
            'EsferaSymbols': EsferaSymbol,
            'StigmaCores': StigmaAmount,
            'ACores': CoreAmount,
            'TradableNodes': TradNodes,
            'UntradableNodes': UntradNodes,
            'Meso': MesoCount,
            'Droplets': DropletCount,
            'EsferaDroplets': EsferaDropletCount,
            'mapID': Field.GetID(),
            'ProtectionScrolls': ProtAmount,
            'CleanSlate': CssAmount,
            'PotentialScrolls': PotentialScrolls
        }

        try:
            self.__toFile('TMRemote/temp/logs', 'ab', items)
            return True
        except:
            try:
                with open('TMRemote/temp/logs', 'wb+') as temp:
                    pass
                self.__toFile('TMRemote/temp/logs', 'ab', items)
                return True
            except:
                return False
Beispiel #10
0
#												Do not change anything below this line!													#
#																																		#
#########################################################################################################################################

SCLib.PersistVar("noReactorInMap", False)
SCLib.PersistVar("MapNumber", 0)
SCLib.PersistVar("TeleportAttempt", 0)
SCLib.PersistVar("HarvestAttempt", 0)
SCLib.PersistVar("TeleportCount", 0)
SCLib.StartVars(20)
HasLooted = SCLib.GetVar("noReactorInMap")
TeleportAttempt = SCLib.GetVar("TeleportAttempt")
HarvestAttempt = SCLib.GetVar("HarvestAttempt")
fieldID = Field.GetID()
pos = Character.GetPos()
CurrentChannel = GameState.GetChannel()
NewChannel = CurrentChannel + 1


def ChangeChannels():
    if CurrentChannel == 20:
        if fieldID == LastMapID:
            print("Changing Channel to 1")
            time.sleep(0.5)
            Terminal.ChangeChannel(1)
            time.sleep(3)
            print("Resetting back to first map")
            SCLib.UpdateVar("MapNumber", 0)
            time.sleep(3)
        else:
            print("Changing channel to 1")
Beispiel #11
0
                            time.sleep(1)
                        '''
                        Terminal.SetRushByLevel(True)

    if Character.GetLevel() < 15:
        Terminal.SetCheckBox('Kami Vac', True)
        Terminal.Rush(farmMap)
        Terminal.SetComboBox("HackingOpt", 0)
    else:
        Terminal.SetCheckBox('Kami Vac', False)
        Terminal.Rush(fameMap)
        Terminal.SetComboBox("HackingOpt", 1)

        if Field.GetID() == fameMap:
            Terminal.SetComboBox("HackingOpt", 1)
            if channel != GameState.GetChannel():
                Terminal.ChangeChannel(channel)
                while Terminal.IsRushing():
                    time.sleep(1)
            famePerson = Field.FindCharacter(fameCharacter)
            if famePerson.valid:
                print("Faming Character {}".format(fameCharacter))
                #Character.Teleport(famePerson.x, famePerson.y)
                time.sleep(1)
                charPacket = Packet.COutPacket(0x015B)
                charPacket.Encode4(int(time.monotonic() * 1000))
                charPacket.Encode4(famePerson.id)
                charPacket.EncodeBuffer('FF 00 01 00 00')
                Packet.SendPacket(charPacket)
                time.sleep(1)
                famePacket = Packet.COutPacket(0x0159)
Beispiel #12
0
        Terminal.SetCheckBox("Auto Attack", False)
        Terminal.SetSpinBox("SkillInjection",100)
        Terminal.SetCheckBox("Melee No Delay",False)
        Terminal.SetRadioButton("SIRadioMelee",True)
        if on:
            if not Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
        else:
            if Terminal.GetCheckBox("Skill Injection"):
                Terminal.SetCheckBox("Skill Injection", on)
    '''


if GameState.IsInGame():
    map = Field.GetID()
    channel = GameState.GetChannel()
    #Terminal.SetCheckBox("Kami Vac",True)
    job = Character.GetJob()
    #toggleAttack(True)
    if Terminal.IsRushing():
        print("Rushing... Please wait...")
        time.sleep(4)
    # IF FOR SOME REASON U END UP IN HENE
    elif map == 100000000:
        Terminal.Rush(610050000)
    # IF AT BDF MAIN MAP
    elif map == 610050000:
        time.sleep(5)
        if channel == 20:
            channel = 1
        else: