예제 #1
0
def Stamp(slot):
    silverStamp = 2049501
    item = Inventory.GetItem(1, slot)
    stamp = Inventory.FindItemByID(silverStamp)

    while item.grade > 0 and item.option1 > 0  and item.option3==0 \
    and stamp.valid and GameState.IsInGame():
        oPacket = Packet.COutPacket(stampHeader)
        oPacket.Encode4(int(time.monotonic() * 1000))  #time
        oPacket.Encode2(stamp.pos)
        oPacket.Encode2(slot)
        Packet.SendPacket(oPacket)
        time.sleep(1)

        item = Inventory.GetItem(1, slot)
        stamp = Inventory.FindItemByID(silverStamp)
예제 #2
0
def use_expansion_packet():
    item = Inventory.FindItemByID(2350003)
    if item.valid:
        usePacket = Packet.COutPacket(useExpansionHeader)
        usePacket.EncodeBuffer("[{}00B3DB2300]".format(
            hex(item.pos).split('x')[1].zfill(2)))
        Packet.SendPacket(usePacket)
def finishChuChu():
    chuchuSymbol = Inventory.FindItemByID(1712002)
    if not useSymbol(chuchuSymbol):
        if SCLib.GetVar("UsingWhitelist"):
            Terminal.SetPushButton("Whitelist", True)
        SCLib.UpdateVar("CurDaily", "DD")
        SCLib.UpdateVar("CurStep", "StartingDD")
def doVJ():
    if dailyVJ:
        initVJ()

        counter = -1

        if SCLib.GetVar("CurStep") == "StartingVJ":
            print("Starting Vanishing Journey")
            acceptVJ()
        elif SCLib.GetVar("CurStep") == "DoingVJ":
            counter = 0
            for q in vjQuests:
                if q.IsActive():
                    counter += 1

                if SCLib.GetVar("CurQuest") == None or SCLib.GetVar(
                        "CurQuest") == q.quest:
                    q.DoQuest()
            if counter == 0:
                SCLib.UpdateVar("CurStep", "FinishedVJ")
        elif SCLib.GetVar("CurStep") == "FinishedVJ":
            print("Finishing VJ")
            if not Quest.CheckCompleteDemand(34129, vjNPC):
                Quest.CompleteQuest(34129, vjNPC)

            vjSymbol = Inventory.FindItemByID(1712001)
            if not useSymbol(vjSymbol):
                print("Finished VJ")
                SCLib.UpdateVar("CurDaily", "ChuChu")
                SCLib.UpdateVar("CurStep", "InitChuChu")

    else:
        print("Skipping VJ")
        SCLib.UpdateVar("CurDaily", "ChuChu")
        SCLib.UpdateVar("CurStep", "InitChuChu")
예제 #5
0
 def doCubing(self):
     necklace = "necklace"
     eye = 'eye'
     face = 'face'
     earring = 'earring'
     ring = 'ring'
     can_cube = not self.accountData['cubing_done'] and Character.GetLevel() >=145
     can_cube = can_cube and HELPER.FarmedEnoughAccessories()
     have_cubes = Inventory.FindItemByID(MISC.red_cube_id).valid or Character.GetMeso() > 800000000
     return can_cube and have_cubes
예제 #6
0
def UseCube(cubeid, slot):
    if smartCube:
        if item.grade < 2 and useOccult:
            for cube in epic_optimal:
                if Inventory.FindItemByID(cube).valid:
                    Inventory.UseCube(cube, slot)
                    break
        elif item.grade < 3:
            for cube in unique_optimal:
                if Inventory.FindItemByID(cube).valid:
                    Inventory.UseCube(cube, slot)
                    break
        elif item.grade < 4:
            for cube in legendary_optimal:
                if Inventory.FindItemByID(cube).valid:
                    Inventory.UseCube(cube, slot)
                    break
        else:
            Inventory.UseCube(cubeid, slot)
    else:
        Inventory.UseCube(cubeid, slot)
예제 #7
0
def Stamp(upToSlot):
    silverStamp = 2049501
    if stampEverything:
        upToSlot = Inventory.GetItemSlotCount(1)

    currentSlot = 0
    for item in Inventory.GetItems(1):
        stamp = Inventory.FindItemByID(silverStamp)

        currentSlot += 1
        if currentSlot > upToSlot:
            break
        while item.grade > 0 and item.option1 > 0  and item.option3==0 \
        and stamp.valid and GameState.IsInGame():
            item = Inventory.GetItem(1, item.pos)
            stamp = Inventory.FindItemByID(silverStamp)
            if stamp.valid:
                oPacket = Packet.COutPacket(stampHeader)
                oPacket.Encode4(int(time.monotonic() * 1000))  #time
                oPacket.Encode2(stamp.pos)
                oPacket.Encode2(item.pos)
                Packet.SendPacket(oPacket)
                time.sleep(1)
attbonus = 2023534
hs = 2311003
htr = 5040004
map = Field.GetID()

# Variables To Change
# Change these values accordingly
using_mule = False
mule_channel = 5

def ToggleRushByLevel(indicator):
    Terminal.SetCheckBox("Rush By Level",indicator)
    Terminal.SetRushByLevel(indicator)

if GameState.IsInGame():
    if Inventory.FindItemByID(htr).valid:
        # Checks for HS
        if using_mule:
            Terminal.ChangeChannel(mule_channel)
            if not Character.HasBuff(2, hs):
                time.sleep(3)

        # Checks for Fortune Buff
        if not Character.HasBuff(1, xpbonus):
            ToggleRushByLevel(False)
            if map is not buffmap_id:
                Terminal.Rush(buffmap_id)
        else:
            ToggleRushByLevel(True)
            time.sleep(1)
    else:
예제 #9
0
 quest9 = Quest.GetQuestState(34107)
 quest10 = Quest.GetQuestState(34108)
 quest11 = Quest.GetQuestState(34109)
 quest12 = Quest.GetQuestState(34110)
 quest13 = Quest.GetQuestState(34111)
 quest14 = Quest.GetQuestState(34112)
 quest15 = Quest.GetQuestState(34113)
 quest16 = Quest.GetQuestState(34114)
 quest17 = Quest.GetQuestState(34115)
 quest18 = Quest.GetQuestState(34116)
 quest19 = Quest.GetQuestState(34117)
 quest20 = Quest.GetQuestState(34118)
 quest21 = Quest.GetQuestState(34119)
 quest22 = Quest.GetQuestState(34120)
 # Fakesymbol, enter at correct place and replace FAKESYMBOLID with item ID
 fakesymbol = Inventory.FindItemByID(1712000)  # enter ID
 if fakesymbol.valid:
     Inventory.SendChangeSlotPositionRequest(1, fakesymbol.pos, -1600, -1)
 # RealSymbol, enter at correct place and replace REALSYMBOLID with item ID
 realsymbol = Inventory.FindItemByID(1712001)  # enter ID
 if realsymbol.valid:
     Inventory.SendChangeSlotPositionRequest(1, realsymbol.pos, -1600, -1)
 if fieldid == 450001000:
     time.sleep(1)
     if Character.GetPos().x != -338:
         Character.Teleport(-338, -3)
 if fieldid == 450001340:
     time.sleep(1)
     if Character.GetPos().x != 563:
         Character.Teleport(563, 177)
 if fieldid == 450001350:
예제 #10
0
                                                                                                )
                                                                                                if Field.GetID(
                                                                                                ) == 450008450:
                                                                                                    kami(
                                                                                                    )
                                                                                                if Field.GetID(
                                                                                                ) == 450007510:
                                                                                                    kamioff(
                                                                                                    )
                                                                                                    Character.TalkToNpc(
                                                                                                        3003563
                                                                                                    )
                                                                                                    Character.TalkToNpc(
                                                                                                        3003559
                                                                                                    )
                                                                                            arcsymbol = Inventory.FindItemByID(
                                                                                                1712006
                                                                                            )
                                                                                            if arcsymbol.valid:
                                                                                                Inventory.SendChangeSlotPositionRequest(
                                                                                                    1,
                                                                                                    arcsymbol
                                                                                                    .
                                                                                                    pos,
                                                                                                    -1605,
                                                                                                    -1
                                                                                                )
                                                                                            print(
                                                                                                "you got the orb"
                                                                                            )
예제 #11
0
		inAName = Quest.GetQuestState(3556)
		
		
		# 5th job quests
		# quests
		erdaCall = Quest.GetQuestState(1460)
		goddessBlessing = Quest.GetQuestState(1461)
		
		mapleStoneQuest = Quest.GetQuestState(1462)
		grandisStoneQuest = Quest.GetQuestState(1463)
		tynerumStoneQuest = Quest.GetQuestState(1464)
		
		recordOfPower = Quest.GetQuestState(1465)
		
		# stones
		mapleStone = Inventory.FindItemByID(2435734)
		grandisStone = Inventory.FindItemByID(2435735)
		tynerumStone = Inventory.FindItemByID(2435736)
		
		if currentMap == 270010111:
			time.sleep(1)
			if pos.x != -493 and pos.y != -868:
				Character.Teleport(-493, -868)
			time.sleep(5)
		
		
		
		if Terminal.IsRushing():
			time.sleep(1)
			continue
		
예제 #12
0
        secondMusicBox = Quest.GetQuestState(34318)
        toTheBallroom = Quest.GetQuestState(34319)
        dressCode = Quest.GetQuestState(34320)
        masqueradeCitizen = Quest.GetQuestState(34321)
        darkMask = Quest.GetQuestState(34322)
        dreamkeepers = Quest.GetQuestState(34323)
        ballroomAgain = Quest.GetQuestState(34324)
        masqueradeMask = Quest.GetQuestState(34325)
        fallen = Quest.GetQuestState(34326)

        clocktower1 = Quest.GetQuestState(34327)
        clocktower2 = Quest.GetQuestState(34328)
        clocktower3 = Quest.GetQuestState(34329)
        clocktower4 = Quest.GetQuestState(34330)

        lachsymbol = Inventory.FindItemByID(1712003)  # enter ID
        if lachsymbol.valid:
            Inventory.SendChangeSlotPositionRequest(1, lachsymbol.pos, -1602,
                                                    -1)
            time.sleep(5)

        # First quest. Starts by rushing to lachelein main town
        if festival != 2:
            # if not accepted, rush to the town
            if festival == 0:
                Terminal.Rush(450003000)

            if festival == 1:
                if Quest.CheckCompleteDemand(34300, 3003202) == 0:
                    Quest.CompleteQuest(34300, 3003202)
                    # need to talk to the 3 NPC
예제 #13
0
        Character.Teleport(1962, 407)
        time.sleep(5)
        Quest.CompleteQuest(32211, 10305)
if Character.GetLevel() ==4:
    Quest.StartQuest(32212, 10305)
    time.sleep(5)
    Quest.CompleteQuest(32212, 10306)
if Character.GetLevel() ==5:
    Quest.StartQuest(32213, 10306)
    if Quest.GetQuestState(32213) == 1:
        if Field.GetID() == 4000031:
            Character.Teleport(34 ,527)
            time.sleep(3)
            Character.EnterPortal()
    if Field.GetID() == 4000030:
        if not Inventory.FindItemByID(4033914).valid:
            Character.Teleport(1895 ,407)
            time.sleep(5)
            Character.BasicAttack()
            item = Field.FindItem(4033914)
            if item.valid:
                Character.Teleport(item.x, item.y)
                Terminal.SetCheckBox("Auto Loot", True)
        if Inventory.FindItemByID(4033914).valid:
            if Field.GetID() == 4000030:
                Terminal.SetCheckBox("Auto Loot", False)
                Character.Teleport(2506, 287)
                time.sleep(3)
                Character.EnterPortal()      
    
if Character.GetLevel() == 6:
예제 #14
0
def KannaRing(_map, hero):
    dcMap = 811000013
    momijigaoka = 807000000
    childMap = 811000014
    ayameMap = 811000008

    child = 9130107
    child2 = child + 1
    ayame = 9130103
    princess = 9130116
    gourdid = 2432732
    qAyame = 58916

    if hero == "kanna":
        q1 = 58941
        q2 = q1 + 1
        q3 = q2 + 1
        q4 = q3 + 1
        q5 = q4 + 1
        q6 = q5 + 1
        q7 = q6 + 1
        q8 = 58963
        q9 = q8 + 1
        q10 = 58965
        q11 = q10 + 1
        q12 = q11 + 1
        q13 = q12 + 1
    elif hero == "hayato":
        q1 = 58928
        q2 = q1 + 1
        q3 = q2 + 1
        q4 = q3 + 1
        q5 = q4 + 1
        q6 = q5 + 1
        q7 = q6 + 1
        q8 = q7 + 1
        q9 = q8 + 1
        q10 = 58937
        q11 = q10 + 1
        q12 = q11 + 1
        q13 = q12 + 1
    elif hero == "ayameHero":
        q1 = 58914
        q2 = 58915
        q3 = 58917
        q4 = 58918
        q5 = 58919
        q6 = 58920
        q7 = q6 + 1
        q8 = q7 + 1
        q9 = q8 + 1
        q10 = q9 + 1
        q11 = q10 + 1
        q12 = q11 + 1
        q13 = q12 + 1

    if _map == momijigaoka:
        TerminalATK(False, True)
        EnterPortal("west00")
    elif _map == dcMap:
        TerminalATK(False, True)
        EnterPortal("out00")
    elif _map == ayameMap:
        TerminalATK(False, True)
        gourd = Inventory.FindItemByID(gourdid)
        if not gourd.valid:
            MoveToNpc(ayame)
            Npc.ClearSelection()
            time.sleep(talkTime)
            #Character.TalkToNpc(ayame)
            time.sleep(talkTime)
            Npc.RegisterSelection('Talk to Ayame.')
            time.sleep(talkTime)
            Character.TalkToNpc(ayame)
            #Npc.RegisterSelection('Metamorph')
            Npc.RegisterSelection('Receive another Metamorph Potion')
            time.sleep(talkTime)
        else:
            Npc.ClearSelection()
            Inventory.UseItem(gourdid)
            if hero == "kanna":
                Npc.RegisterSelection('Kanna')
            if hero == "hayato":
                Npc.RegisterSelection('Hayato')
            if hero == "ayameHero":
                Npc.RegisterSelection('Ayame')
    elif _map == 811000099:
        #bug might be here
        bugQuest = 58913
        if QuestStage(bugQuest) < 0:
            print('hi')
            StartingQuest(bugQuest, ayame)
        else:
            TerminalATK(False, True)
            print("setting up skills")
            if useGM:
                Terminal.SetCheckBox(gmType, True)
            if not useAli and not useGM:
                Key.Set(potionKey, 2, potionID)
            time.sleep(teleportTime)
            if hero == "hayato":
                Key.Set(autoAttackKey, 1, hayatoID)
            if hero == "kanna":
                Key.Set(autoAttackKey, 1, kannaID)
            if hero == "ayameHero":
                Key.Set(autoAttackKey, 1, ayameID)
            time.sleep(teleportTime)
            EnterPortal("out00")
    else:
        if not QuestCompleted(q1):
            mapid = 811000098
            StartingQuest(q1, child)
            if QuestInProgress(q1, child):
                if Character.GetPos().x != 91:
                    Character.Teleport(91, 62)
                    time.sleep(teleportTime)
                else:
                    if sendPacket:
                        print("sending packet")
                        SendingPacket()

            else:
                CompletingQuest(q1, child, childMap)

        if not QuestCompleted(q2) and QuestCompleted(q1):
            if hero == "ayameHero" and QuestCompleted(q2):
                if debugMSG:
                    print('we should be fcking done hre')
            else:
                if not QuestCompleted(q2) and not QuestCompleted(qAyame):
                    StartingQuest(q2, child)
                if hero == "ayameHero" and not QuestCompleted(qAyame):
                    #StartingQuest(q2, child)
                    StartingQuest(qAyame, child)
                    if QuestInProgress(qAyame, child):
                        mapid = 811000098
                        if _map != mapid:
                            CheckInstanceMap(mapid, "up")
                        else:
                            TerminalATK(True, True)
                    else:
                        mapid = childMap
                        TerminalATK(False, True)
                        CheckInstanceMap(childMap, "up", False)
                        if _map == childMap:
                            CompletingQuest(qAyame, child, _map)
                else:
                    if QuestInProgress(q2, child) and hero != "ayameHero":
                        mapid = 811000098
                        if _map != mapid:
                            CheckInstanceMap(mapid, "up")
                        else:
                            TerminalATK(True, True)
                    else:
                        if hero != "ayameHero":
                            TerminalATK(False, True)
                            CheckInstanceMap(childMap, "up", False)
                            if _map == childMap:
                                CompletingQuest(q2, child, childMap)

        if hero == "ayameHero":
            q2 = qAyame
        if not QuestCompleted(q3) and QuestCompleted(q2):
            StartingQuest(q3, child)
            if QuestInProgress(q3, child):
                mapid = 811000098
                if _map != mapid:
                    CheckInstanceMap(mapid, "up")
                else:
                    TerminalATK(True, True)
            else:
                TerminalATK(False, True)
                CheckInstanceMap(childMap, "up", False)
                CompletingQuest(q3, child, childMap)

        if not QuestCompleted(q4) and QuestCompleted(q3):
            StartingQuest(q4, child)
            if QuestInProgress(q4, child):
                mapid = 811000015
                if _map != mapid:
                    CheckInstanceMap(mapid, "down")
                else:
                    TerminalATK(True, True)
            else:
                TerminalATK(False, True)
                CheckInstanceMap(childMap, "down", False)
                CompletingQuest(q4, child, childMap)

        if not QuestCompleted(q5) and QuestCompleted(q4) and QuestCompleted(
                q3):
            StartingQuest(q5, child)
            if QuestInProgress(q5, child):
                mapid = 811000016
                if _map != mapid:
                    CheckInstanceMap(mapid, "down")
                else:
                    TerminalATK(True, True)
            else:
                TerminalATK(False, True)
                CheckInstanceMap(childMap, "down", False)
                CompletingQuest(q5, child, childMap)

        if not QuestCompleted(q6) and QuestCompleted(q5):
            StartingQuest(q6, child)
            if QuestInProgress(q6, child):
                mapid = 811000017
                if _map != mapid:
                    CheckInstanceMap(mapid, "down")
                else:
                    TerminalATK(True, True)
            else:
                TerminalATK(False, True)
                CheckInstanceMap(childMap, "down", False)
                CompletingQuest(q6, child, childMap)

        if not QuestCompleted(q7) and QuestCompleted(q6):
            TerminalATK(False, True)
            StartingQuest(q7, child)
            if QuestInProgress(q7, child):
                mapid = 811000018
                CheckInstanceMap(mapid, "down")
                CompletingQuest(q7, child2, mapid)

        if not QuestCompleted(q8) and QuestCompleted(q7):
            StartingQuest(q8, child2)
            if QuestInProgress(q8, child2):
                mapid = 811000018
                CheckInstanceMap(mapid, "down")
                if _map == mapid:
                    if Character.GetPos().x != 87:
                        Character.Teleport(87, 62)
                    else:
                        if sendPacket:
                            print("sending packet")
                            SendingPacket()

        if not QuestCompleted(q9) and QuestCompleted(q8):
            if Party.IsInParty():
                Party.LeaveParty()
            mapid = 811000020
            StartingQuest(q9, 0)
            if QuestInProgress(q9, 0):
                CheckInstanceMap(mapid, "mid")
                if _map == mapid:
                    if len(Field.GetMobs()) > 0:
                        TerminalATK(True, True)
                    else:
                        TerminalATK(False, True)
            else:
                CompletingQuest(q9, 0, mapid)
                CheckInstanceMap(mapid - 1, "mid", False)

        if not QuestCompleted(q10) and QuestCompleted(q9):
            mapid = 811000021
            StartingQuest(q10, 0)
            StartingQuest(58950, 0)  # extra quest somehow
            if QuestInProgress(q10, 0):
                CheckInstanceMap(mapid, "right")

        if not QuestCompleted(q11) and QuestCompleted(q10):
            mapid = 811000025
            StartingQuest(q11, 0)
            if QuestInProgress(q11, 0):
                CheckInstanceMap(mapid, "right")
                if len(Field.GetMobs()) > 0:
                    TerminalATK(True, True)
                else:
                    TerminalATK(False, True)
            else:
                CompletingQuest(q11, 0, mapid)

        if not QuestCompleted(q12) and QuestCompleted(q11):
            mapid = 811000025
            boss1 = mapid + 1
            boss2 = boss1 + 1
            boss3 = boss2 + 2
            if _map == mapid:
                EnterPortal("in00")
            elif _map == boss1:
                if len(Field.GetMobs()) > 0:
                    TerminalATK(True, True)
                else:
                    TerminalATK(False, True)
                    EnterPortal("next00")
            elif _map == boss2:
                if len(Field.GetMobs()) > 0:
                    TerminalATK(True, True)
                else:
                    TerminalATK(False, False)
                    EnterPortal("next00")
            elif _map == boss3:
                StartingQuest(q12, princess)

        if not QuestCompleted(q13) and QuestCompleted(q12):
            mapid = 811000025
            lastTemp = 811000028
            lastDest = 811000033
            StartingQuest(q13, 0)
            if QuestInProgress(q13, 0):
                if _map != mapid and _map != lastTemp and _map != lastDest:
                    CheckInstanceMap(mapid, "mid2", False)
                if (_map == mapid or _map == lastTemp) and _map != lastDest:
                    CheckInstanceMap(lastDest, "right")
                if _map == lastDest:
                    if len(Field.GetMobs()) > 0:
                        TerminalATK(True, True)
                    else:
                        TerminalATK(False, True)
            else:
                TerminalATK(False, True)
                if _map == lastDest and Character.GetPos().x != -147:
                    Character.Teleport(-147, -195)
                    time.sleep(teleportTime)
                else:
                    if _map != lastDest:
                        CheckInstanceMap(lastDest, "right")
                    else:
                        if sendPacket:
                            print("sending packet")
                            SendingPacket()

                        CompletingQuest(q13, 0, lastDest)
예제 #15
0
def Hieizan(_map):
    takeda = 9130102
    mouri = 9130008
    ayame = 9130103
    sakuno = 9130104

    momijigaoka = 807000000

    q1 = 58901
    q2 = q1 + 1
    q3 = q2 + 1
    q4 = q3 + 4
    q5 = q4 + 1
    q6 = q5 + 1
    q7 = q6 + 1
    q8 = q7 + 1
    q9 = q8 + 2

    if not QuestCompleted(q1):
        TerminalATK(False)
        mapid = 811000001
        CheckQuestMap(mapid)
        StartingQuest(q1, takeda)
        CompletingQuest(q1, takeda, mapid)

    if not QuestCompleted(q2) and QuestCompleted(q1):
        mapid = 811000001
        CheckQuestMap(mapid)
        StartingQuest(q2, takeda)
        itemid = 4034126
        if QuestInProgress(q2,
                           takeda):  # and Inventory.GetItemCount(itemid) < 30:
            TerminalATK(True)
        else:
            TerminalATK(False)
            CompletingQuest(q2, takeda, mapid)

    if not QuestCompleted(q3) and QuestCompleted(q2):
        itemid = 4009286
        StartingQuest(q3, takeda)
        if QuestInProgress(q3, takeda):
            if Inventory.GetItemCount(itemid) < 20:
                mapid = 811000004
                CheckQuestMap(mapid)
                TerminalATK(True)
            else:
                mapid = 811000006
                TerminalATK(False)
                CheckQuestMap(mapid)
                if _map == mapid:
                    if (Character.GetPos().x !=
                            -8) and Character.GetPos().y != -628:
                        Character.Teleport(-8, -628)
                        time.sleep(teleportTime)
                    else:
                        questItem = Inventory.FindItemByID(itemid)
                        if questItem.valid:
                            TerminalATK(False)
                            for x in range(20):
                                Inventory.SendChangeSlotPositionRequest(
                                    4, questItem.pos, 0, 1)
                                time.sleep(dropTime)
                                SendingPacket()
                                if not QuestInProgress(q3, takeda):
                                    break
                            mapid = 811000001
                            CheckQuestMap(mapid, False)
        else:
            mapid = 811000001
            herbid = 4034128
            if Inventory.GetItemCount(herbid) > 0:
                CheckQuestMap(mapid, False)
            else:
                CheckQuestMap(mapid)
            StartingQuest(q3, takeda)
            CompletingQuest(q3, takeda, mapid)

    if not QuestCompleted(q4) and QuestCompleted(q3):
        mapid = 811000001
        if _map > mapid:
            CheckQuestMap(mapid, False)
        StartingQuest(q4, takeda)
        time.sleep(questTime)
        CheckQuestMap(momijigaoka, False)
        CompletingQuest(q4, mouri, momijigaoka)
    elif QuestCompleted(q4):
        if _map == momijigaoka:
            EnterPortal("west00")

    if not QuestCompleted(q5) and QuestCompleted(q4):
        StartingQuest(q5, ayame)

    if not QuestCompleted(q6) and QuestCompleted(q5):
        StartingQuest(q6, sakuno)

    if not QuestCompleted(q7) and QuestCompleted(q6):
        StartingQuest(q7, ayame)

    if not QuestCompleted(q8) and QuestCompleted(q7):
        StartingQuest(q8, ayame)
        CompletingQuest(q8, ayame, _map)

    if not QuestCompleted(q9) and QuestCompleted(q8):
        StartingQuest(q9, ayame)
예제 #16
0
        return False


def TierUpgrade(tier):
    if tier > Terminal.GetProperty("tier", 0):
        print("Upgrade tier")
        Terminal.SetProperty("tier", tier)
        return True
    else:
        return False


if GameState.IsInGame():
    Terminal.SetCheckBox("special/IAReset", False)

    miracle = Inventory.FindItemByID(miracleid)

    Packet.BlockRecvHeader(InnerRecv)
    while miracle.valid and not Terminal.GetProperty(
            Character.GetName() + str(innerid), False):
        RollAbility(miracle)
        innerResult = Packet.WaitForRecv(InnerRecv, 5000)
        if innerResult.GetRemaining() > 0:
            void = innerResult.ReadLong(4)
            op1 = innerResult.ReadLong(4)
            op1scale = innerResult.ReadLong(1)
            op1pos = innerResult.ReadLong(1)
            op1tier = innerResult.ReadLong(1)
            op2 = innerResult.ReadLong(4)
            op2scale = innerResult.ReadLong(1)
            op2pos = innerResult.ReadLong(1)
예제 #17
0
Lv50 = True
Lv60 = True
#############################################

if GameState.IsInGame():
    print("Running")
    if Lv20 and Quest.GetQuestState(61586) != 2 and Character.GetLevel() >= 20:
        Terminal.SetCheckBox("bot/puffram", False)
        Npc.ClearSelection()
        Npc.RegisterSelection("Cash Shop")
        Npc.RegisterSelection("Beauty Salon")
        Npc.RegisterSelection("Receive")
        Quest.StartQuest(61586, 9201253)
        time.sleep(10)
    elif OpenBox and Quest.GetQuestState(61586) == 2:
        if Inventory.FindItemByID(2430445).valid:
            Inventory.UseItem(2430445)

    if Lv30 and Quest.GetQuestState(61587) != 2 and Character.GetLevel() >= 30:
        Terminal.SetCheckBox("bot/puffram", True)
        time.sleep(10)
    elif OpenBox and Quest.GetQuestState(61587) == 2:
        if Inventory.FindItemByID(2430447).valid:
            Inventory.UseItem(2430447)

    if Lv40 and Quest.GetQuestState(61588) != 2 and Character.GetLevel() >= 40:
        Terminal.SetCheckBox("bot/puffram", False)
        Npc.ClearSelection()
        Npc.RegisterSelection("Safety Charm")
        Npc.RegisterSelection("Respawn Token")
        Npc.RegisterSelection("You get")
예제 #18
0
 if Field.GetID() == 811000001:
     SunCat.StopTP()
     TP_EnterPortal(-843, -688)
 elif Field.GetID() == 811000004:
     reactor = Field.FindReactor(8650012)
     if reactor.valid and SCLib.GetVar("HuntDone"):
         print("found reactor")
         pos = Character.GetPos()
         if pos.x not in range(reactor.x - 5, reactor.x + 5):
             print("Teleporting to herb")
             Character.Teleport(reactor.x, reactor.y - 30)
         elif pos.y not in range(reactor.y - 5, reactor.y + 5):
             print("Teleporting to herb")
             Character.Teleport(reactor.x, reactor.y - 30)
         else:
             quest_item = Inventory.FindItemByID(4009286)
             if quest_item.valid:
                 print("Throwing the quest items to reactor")
                 Inventory.SendChangeSlotPositionRequest(
                     4, quest_item.pos, 0, 1)
                 time.sleep(2)
             else:
                 print("Done throwing the quest items")
                 #packet to interact with the herb 03E3 [5995E50B]
                 #
                 time.sleep(10)
                 oPacket = Packet.COutPacket(herb_header)
                 oPacket.EncodeBuffer(
                     "[5995E50B]"
                 )  #03E3 [C7323C0B] channel7 #03E3 [4835CA0B] channel2 03E3 [F2A6DC0B] #03E3 [FC0E430B]
                 print(
예제 #19
0

#Change this number for the amount of nodes you want to use that are dropped from monsters (transferable within account)
AmountDropped = 100
#Change this number for the amount of nodes you want to use that are crafted (tradable)
AmountCrafted = 0

if GameState.IsInGame:
    Packet.BlockRecvHeader(0x006C)
    Packet.BlockRecvHeader(0x0332)
    Packet.BlockRecvHeader(0x0196)
    if Inventory.GetItemCount(2436324) >= AmountDropped:
        for i in range(AmountDropped):
            useNode = Packet.COutPacket(0x0111)
            useNode.Encode4(random.randint(162366415, 171995320))
            useNode.Encode2(Inventory.FindItemByID(2436324).pos)
            useNode.EncodeBuffer("00252CE4 00000001")
            Packet.SendPacket(useNode)
            time.sleep(0.05)
    if Inventory.GetItemCount(2435719) >= AmountCrafted:
        for i in range(AmountCrafted):
            useNode2 = Packet.COutPacket(0x0111)
            useNode2.Encode4(random.randint(162366415, 171995320))
            useNode2.Encode2(Inventory.FindItemByID(2435719).pos)
            useNode2.EncodeBuffer("00252A87 00000001")
            Packet.SendPacket(useNode2)
            time.sleep(0.05)
    time.sleep(15)
    Packet.UnBlockRecvHeader(0x006C)
    Packet.UnBlockRecvHeader(0x0332)
    Packet.UnBlockRecvHeader(0x0196)
예제 #20
0
    quest17 = Quest.GetQuestState(34216)
    quest18 = Quest.GetQuestState(34217)
    quest19 = Quest.GetQuestState(34218)

    if fieldid == 450002000:
        if Character.GetPos().x != 1084:
            Character.Teleport(1084, 138)
            time.sleep(2)

    if fieldid == 450002010:
        Character.Teleport(667, -588)
        time.sleep(3)
        Key.Press(0x26)
        time.sleep(1)

    fakesymbol = Inventory.FindItemByID(1712002)  # enter ID
    if fakesymbol.valid:
        Inventory.SendChangeSlotPositionRequest(1, fakesymbol.pos, -1601, -1)

    if quest8 == 0 and quest7 == 2 and quest9 != 2:
        time.sleep(1)
        Npc.RegisterSelection("Delicious")
        time.sleep(1)
        Npc.RegisterSelection("Beefy")
        time.sleep(1)
        Npc.RegisterSelection("Bite of Heaven")

    if quest1 != 2:
        if quest1 == 0:
            Terminal.Rush(450002000)
            time.sleep(5)