Пример #1
0
def QuestStage(id):
    if Quest.GetQuestState(id) == 1:
        return 1
    elif Quest.GetQuestState(id) == 0:
        return -1
    else:
        print("something wrong with ", id)
        return 0
def acceptVJ():
    curMap = Field.GetID()
    if curMap != vjMap:
        Terminal.Rush(vjMap)
        return

    if Terminal.GetCheckBox("Kami Vac"):
        Terminal.SetCheckBox("Kami Vac", False)

    Terminal.SetCheckBox("Auto NPC", True)
    SunCat.Teleport(-1941, 60)
    time.sleep(0.1)
    if Quest.GetQuestState(34128) != 2:
        Quest.StartQuest(34128, vjNPC)
        time.sleep(1.5)
        Quest.CompleteQuest(34128, vjNPC)
    #Quest.StartQuest(34128, vjNPC)

    Npc.ClearSelection()
    #Npc.RegisterSelection("[Daily Quest] Vanishing Journey")
    Npc.RegisterSelection("Those are all")
    time.sleep(3)
    Quest.StartQuest(34129, vjNPC)
    time.sleep(3)
    #Character.TalkToNpc(vjNPC)
    #time.sleep(1)

    if SCLib.GetVar("UsingKami"):
        Terminal.SetCheckBox("Kami Vac", True)

    SCLib.UpdateVar("CurStep", "DoingVJ")
    def DoQuest(self):
        if Quest.GetQuestState(self.quest) == 1:
            curMap = Field.GetID()
            SCLib.UpdateVar("CurQuest", self.quest)
            if Quest.CheckCompleteDemand(self.quest, self.npc):
                if curMap != self.killmap:
                    Terminal.Rush(self.killmap)
            else:
                if curMap != self.completemap:
                    Terminal.Rush(self.completemap)
                else:
                    if Terminal.GetCheckBox("Kami Vac"):
                        Terminal.SetCheckBox("Kami Vac", False)

                    SunCat.Teleport(self.npcx, self.npcy)
                    time.sleep(1)
                    Quest.CompleteQuest(self.quest, self.npc)
                    time.sleep(2)
                    if SCLib.GetVar("UsingKami"):
                        Terminal.SetCheckBox("Kami Vac", True)

                    SCLib.UpdateVar("CurQuest", None)
Пример #4
0
def QuestCompleted(id):
    if Quest.GetQuestState(id) != 2:
        return False
    else:
        return True
Пример #5
0
def DoQuest(id):
    if Quest.GetQuestState(id) != 2:
        return True
    else:
        return False
Пример #6
0
def NeedQuest(id):
    if Quest.GetQuestState(id) == 0:
        return True
    else:
        return False
Пример #7
0
def doQuest(id):  # quest isn't complete/turned in
   print("Checking "+str(id))
   return Quest.GetQuestState(id) != 2
Пример #8
0
def needQuest(id):  # quest hasn't been accepted
   return Quest.GetQuestState(id) == 0
Пример #9
0
    if Field.GetID() == 4000030:
       Character.Teleport(2506, 287)
       time.sleep(3)
       Character.EnterPortal()      
if Field.GetID() == 4000031:
    if Character.GetLevel() ==3:
        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:
Пример #10
0
import Terminal

if not any("SunCat" in s for s in sys.path):
    sys.path.append(os.getcwd() + "/SunCat")

try:
    import SunCat, SCLib, SCHotkey
except:
    print("Couldn't find SunCat module")

SCLib.StartVars()
###persist variables
if SCLib.GetVar("QuestDone") is None:
    SCLib.PersistVar("QuestDone", False)

preq = Quest.GetQuestState(55610)
quest = Quest.GetQuestState(52743)
#CompleteQuest(55612, 9330600)
#CompleteQuest(52743, 9201269)
#CompleteQuest(52743, 9330277)
quest_number = 52743
quest_npc = 9201269
quest_npc2 = 9330277
grove_of_the_spirit_tree = 450005000
#print(SCLib.GetVar("QuestDone"))
if GameState.IsInGame() and SCLib.GetVar("QuestDone") == False:
    if SCLib.GetVar("QuestDone") == False:
        Quest.StartQuest(quest_number, quest_npc)
        Terminal.SetCheckBox("Rush By Level", True)

    if quest == 1:
Пример #11
0
import Quest
import time
import GameState

inner1 = Quest.GetQuestState(12394)
inner2 = Quest.GetQuestState(12395)
inner3 = Quest.GetQuestState(12396)
if GameState.IsInGame():
    time.sleep(2)
    if inner1 != 2:
        Quest.StartQuest(12394, 9010000)
    elif inner2 != 2:
        Quest.StartQuest(12395, 9010000)
    elif inner3 != 2:
        Quest.StartQuest(12396, 9010000)
Пример #12
0
    currentMap = Field.GetID()
    jobid = Character.GetJob()
    level = Character.GetLevel()

    if jobid == -1 or level == -1:
        # not in game
        continue

    if Terminal.IsRushing():
        time.sleep(1)
        continue
    fieldid = Field.GetID()

    if level >= 220:

        festival = Quest.GetQuestState(34300)
        dreamsAndIllusions = Quest.GetQuestState(34301)
        partyNeverEnds = Quest.GetQuestState(34302)
        maskOfYourOwn = Quest.GetQuestState(34303)
        concentrationProblem = Quest.GetQuestState(34304)
        lucidDreams = Quest.GetQuestState(34305)

        centerStreet = Quest.GetQuestState(34306)
        awakenedOnes = Quest.GetQuestState(34307)
        findingAwakened = Quest.GetQuestState(34308)
        insideDream = Quest.GetQuestState(34309)
        oldMusicBox = Quest.GetQuestState(34310)
        elizabeth1 = Quest.GetQuestState(34311)
        elizabeth2 = Quest.GetQuestState(34312)
        elizabeth3 = Quest.GetQuestState(34313)
Пример #13
0
        Quest.CompleteQuest(qid, npc)
        return 0
    else:
        return -1


jobid = Character.GetJob()
level = Character.GetLevel()

if GameState.IsInGame() and (jobid != -1 or level != -1):
    time.sleep(1)
    if Terminal.IsRushing():
        time.sleep(1)
    print("hi")
    fieldid = Field.GetID()
    quest1 = Quest.GetQuestState(34450)
    quest2 = Quest.GetQuestState(34451)
    quest3 = Quest.GetQuestState(34452)
    quest4 = Quest.GetQuestState(34453)
    quest5 = Quest.GetQuestState(34454)
    quest6 = Quest.GetQuestState(34455)
    quest7 = Quest.GetQuestState(34456)
    quest8 = Quest.GetQuestState(34459)
    quest9 = Quest.GetQuestState(34460)
    quest10 = Quest.GetQuestState(34461)
    quest11 = Quest.GetQuestState(34462)
    quest12 = Quest.GetQuestState(34463)
    quest13 = Quest.GetQuestState(34464)
    quest14 = Quest.GetQuestState(34465)
    quest15 = Quest.GetQuestState(34466)
    quest16 = Quest.GetQuestState(34467)
Пример #14
0
 def doneQuest(id):  # quest isn't complete/turned in
     return Quest.GetQuestState(id) == 2
Пример #15
0
def Main():
    if GameState.IsInGame():
        if not Quest.GetQuestState(33284) == 2:
            if Terminal.IsRushing():
                Terminal.StopRush()

            CoreEnterance = 350060000
            Core = 350060160

            Lotus1 = 350060220
            Lotus2 = 350060240
            Lotus3 = 350060260

            BHCorrider = 350062000
            BHCorrider1 = 350062110
            BHCorrider2 = 350062120
            BHCorrider3 = 350062130
            BHCorrider4 = 350062150

            Quater = 350062400
            Gelimer = 350062410
            Gelimer2 = 350062500
            Escape1 = 350063000
            Escape2 = 350063001
            Escape3 = 350063002
            Escape4 = 350063003
            Escape5 = 350063004
            currentMap = Field.GetID()

            if not 350060000 <= Field.GetID() <= 350063500:
                Terminal.Rush(350061000)
                time.sleep(5)

            if currentMap == CoreEnterance:
                SetAttack(False)
                ToPortal("bossIn00")

            if currentMap in range(Core, Core + 10):
                SetAttack(True)

            if MapRange(Lotus1) or MapRange(Lotus2) or MapRange(Lotus3):
                SetAttack()

            if currentMap == 350061000:
                ToPortal("pt_350061000")

            elif currentMap == BHCorrider:
                SetAttack(False)
                ToPortal("In00")

            elif currentMap in range(BHCorrider1, BHCorrider1 + 10):
                if len(Field.GetMobs()) > 0:
                    SetAttack(True)
                else:
                    SetAttack(False)
                    ToPortal("east00")

            elif currentMap in range(BHCorrider3, BHCorrider3 + 10):
                if len(Field.GetMobs()) > 0:
                    SetAttack(True)
                else:
                    SetAttack(False)
                    ToPortal("east00")

            elif currentMap in range(BHCorrider4, BHCorrider4 + 10):
                if len(Field.GetMobs()) > 0:
                    SetAttack(True)
                else:
                    SetAttack(False)
                    ToPortal("east00")

            if currentMap == Quater:
                SetAttack(False)
                ToPortal("pt00")

            elif currentMap == Gelimer:
                Npc.ClearSelection()
                Npc.RegisterSelection("Please")
                time.sleep(2)
                SpamSpace()

            elif currentMap == Gelimer2:
                Character.MoveX(Field.FindPortal("pt00").x, 8000)
                # ToPortal("pt00")
                SpamSpace()

            elif currentMap == 350062900:
                ToPortal("out00")

            elif currentMap == Escape1:
                Character.MoveX(0, 5000)

            elif currentMap == Escape2:
                ToPortal("wet00")

            elif currentMap == Escape3:
                ToPortal("west00")

            elif currentMap == Escape4:
                time.sleep(2)
                ToPortal("pt00")

            elif currentMap == Escape5:
                SetAttack(False, False)
                Character.MoveX(200, 15000)
                # ToPortal("pt00")
                SpamKey("alt")

            elif currentMap == 350063200:
                quests = {
                    33281: 1540744,
                    33282: 1540745,
                    33283: 1540746,
                    33284: 1540729
                }

                for qid, npc in quests.items():
                    if DoQuest(qid):
                        StartQuest(qid, npc)
                        time.sleep(5)
Пример #16
0
import Field
import GameState
import time
import Login
import Terminal
import Quest
import Inventory

fameCharacter = "Mikkushu"  #"ElfBenKi"#"NikuBenKi"#'FibreOptics'
fameMap = 807000000
farmMap = 807020100
accountPIC = '000111'
channel = 14

if GameState.IsInGame():
    if Quest.GetQuestState(57402) != 2:
        Terminal.SetRushByLevel(False)
        if Field.GetID() == 807040000 or Field.GetID() == 807040100:
            quest1 = Quest.GetQuestState(57400)
            quest2 = Quest.GetQuestState(57401)
            quest3 = Quest.GetQuestState(57402)
            Terminal.SetCheckBox("Kami Vac", False)
            if Terminal.IsRushing():
                print("Stopping terminal rush")
                Terminal.StopRush()
            if quest1 != 2:
                if quest1 == 0:
                    Quest.StartQuest(57400, 0)
                    time.sleep(0.2)
            elif quest2 != 2:
                if quest2 == 0:
Пример #17
0
for option in options:
    if SCLib.GetVar(option) is None:
        SCLib.PersistVar(option, Terminal.GetCheckBox(option))
    else:
        SCLib.UpdateVar(option, Terminal.GetCheckBox(option))

SCHotkey.StartHotkeys(100)
def KillPersistVarThred():
	print("Restarting SCLib variables")
	SCLib.StopVars()
	time.sleep(1)

SCHotkey.RegisterKeyEvent(HotKey, KillPersistVarThred) #F10

# check quest states
if Quest.GetQuestState(34120) != 2:
    print("You havn't completed VJ storyline quests yet. Disable VJ daily")
    VJ_Daily = False
if Quest.GetQuestState(34218) != 2:
    print("You havn't completed ChuChu storyline quests yet. Disable Chuchu daily")
    ChuChu_Daily = False
if Quest.GetQuestState(34330) != 2:
    print("You havn't completed Lachelein storyline quests yet. Disable Dream Defender daily")
    DreamDefender_Daily = False
if Quest.GetQuestState(34479) != 2:
    print("You havn't completed Arcana storyline quests yet. Disable Sirit Savior daily")
    SpiritSavior_Daily = False

Terminal.SetCheckBox("Rush By Level",False)

def RestoreSetting():
Пример #18
0
# If a lot of you end up commenting in favor of adding empress, I might
# do it depending on how free I am
#############################################################################

Terminal.SetRushByLevel(False)

while True:
    time.sleep(1)
    currentMap = Field.GetID()
    jobid = Character.GetJob()
    level = Character.GetLevel()

    #-----------------------
    # quest ID and states
    #-----------------------
    exploringFuture = Quest.GetQuestState(31103)
    chiefAlex = Quest.GetQuestState(31104)
    henesysInRuins = Quest.GetQuestState(31105)
    fallOfCygnus = Quest.GetQuestState(31106)

    scoutingStronghold = Quest.GetQuestState(31124)
    piercingDefenses = Quest.GetQuestState(31125)
    lostEmblem = Quest.GetQuestState(31126)

    # after the above quests, you can enter stronghold

    if jobid == -1 or level == -1:
        #not in game
        continue

    if Terminal.IsRushing():
Пример #19
0
    time.sleep(1)
    level = Character.GetLevel()

    if not GameState.IsInGame():
        continue

    if Terminal.IsRushing():
        continue

    if level < 140:
        continue

    fieldID = Field.GetID()

    # Gets statuses on quests required for solo voyages
    quest1 = Quest.GetQuestState(17600)
    quest2 = Quest.GetQuestState(17601)
    quest3 = Quest.GetQuestState(17602)
    quest4 = Quest.GetQuestState(17603)
    quest5 = Quest.GetQuestState(17608)
    quest6 = Quest.GetQuestState(17610)
    quest7 = Quest.GetQuestState(17611)
    quest8 = Quest.GetQuestState(17612)
    quest9 = Quest.GetQuestState(17613)
    quest10 = Quest.GetQuestState(17614)
    quest11 = Quest.GetQuestState(17003)
    quest12 = Quest.GetQuestState(17004)

    # Completing [Commerci Republic] Neinheart's Call
    if quest1 != 2:
        if quest1 == 0:
Пример #20
0
while True:
	time.sleep(1)
	currentMap  = Field.GetID()
	jobid = Character.GetJob()
	jobid = Character.GetJob()
	level = Character.GetLevel()
	pos = Character.GetPos()

	if level >=140: 
		Terminal.SetRushByLevel(False)
		
		
		# then, get the queststate for the first set of quests
		# THESE QUESTS ARE FOR MEMORY LANE + KAO QUESTS FOR MEMORY LANE
		#------------------------------------------------------------------
		pathToPast = Quest.GetQuestState(3500)
		memLane1 = Quest.GetQuestState(3501)
		memLane2 = Quest.GetQuestState(3502)
		memLane3 = Quest.GetQuestState(3503)
		memLane4 = Quest.GetQuestState(3504)
		memLane5 = Quest.GetQuestState(3505)
		
		lostMemory = Quest.GetQuestState(3506)
		memoryKeeper = Quest.GetQuestState(3507)	# not sure
		
		# valid for kanna only
		if jobid == 4212:
			seekingLostMemory = Quest.GetQuestState(57465)
		
		# BaM = 3212
		# WH = 3312
Пример #21
0
         time.sleep(2)

      if mapID(mMaze):  # if you're in the maze
         Terminal.SetComboBox("eva_cmb", 0)  # no reaction
         time.sleep(2)

      elif not mapID(mMaze):  # if you're not in the maze
         Terminal.SetComboBox("eva_cmb", 3)  # next map cc
         time.sleep(2)

      if doQuest(q0):
         if needQuest(q0):
            setAttack(False)
            startQuest(q0, nPepper)
         elif hasQuest(q0):
            if mapID(301000000) and Quest.GetQuestState(31260) == 2:
               goThru(1360, 323)
            elif mapID(301070000):  # path to the altar
               goThru(682, 323)
            elif mapID(863100008):  # crimsonheart ruins exterior
               goThru(128, 118)
            elif mapID(863100001):  # shadow veil forest 1
               goThru(538, 118)
            elif mapID(mRefuge):
               tele(820, 58)
               completeQuest(q0, nPepper)

      elif doQuest(q1):
         chatQuest(q1, nPepper)

      elif doQuest(q2):
Пример #22
0
        Key.Down(right)
        time.sleep(0.1)
        Key.Up(right)


def leftmash():
    for _ in range(0, 40):
        left = 0x25
        Key.Down(left)
        time.sleep(0.1)
        Key.Up(left)


Terminal.SetRushByLevel(False)
if Character.GetLevel() >= 235:
    if Quest.GetQuestState(34562) == 0:
        Quest.CompleteQuest(34562, 3003541)
    if Quest.GetQuestState(34562) == 2:
        if Quest.GetQuestState(34563) == 0:
            Quest.StartQuest(34563, 3003541)
        if Quest.GetQuestState(34563) == 1:
            if Quest.CheckCompleteDemand(34563, 3003542) != 0:
                Terminal.Rush(450007010)
                kami()
            if Quest.CheckCompleteDemand(34563, 3003542) == 0:
                kamioff()
                Character.Teleport(-89, -205)
                Quest.CompleteQuest(34563, 3003542)
        if Quest.GetQuestState(34563) == 2:
            if Quest.GetQuestState(34564) == 0:
                Quest.StartQuest(34564, 3003542)
Пример #23
0
def hasQuest(id):  # quest is active
   return Quest.GetQuestState(id) == 1
Пример #24
0
import time, Quest, GameState, Packet

header = 0x0166

if GameState.IsInGame() and Quest.GetQuestState(1460) != 2:
    Tariq = Packet.COutPacket(header)
    Tariq.EncodeBuffer("01  000005B4 0020A761 0000 0000 0000 0000 0000")
    Packet.SendPacket(Tariq)
    time.sleep(3)
    bass711 = Packet.COutPacket(header)
    bass711.EncodeBuffer("02  000005B4 0020A761 0000 0000 0000 0000 0000")
    Packet.SendPacket(bass711)

if Quest.GetQuestState(1460) == 2:
    print("Complete")
else:
    print("Incomplete")
Пример #25
0
def KillHorntail(bossDifficulty):

    SCLib.PersistVar("HasSpawned", False)
    SCLib.PersistVar("NowLockedVar", False)
    HasSpawned = SCLib.GetVar("HasSpawned")
    NowLockedVar = SCLib.GetVar("NowLockedVar")
    SCLib.StartVars()
    if bossDifficulty == 0:
        HorntailEasy = True
        HorntailNormal = False
        HorntailChaos = False
    elif bossDifficulty == 1:
        HorntailEasy = False
        HorntailNormal = True
        HorntailChaos = False
    else:
        HorntailEasy = False
        HorntailNormal = False
        HorntailChaos = True

    HorntailPreQuest = Quest.GetQuestState(7313)
    if HorntailPreQuest == 0:
        print(
            "Horntail Prequest not started or done, Starting quest before entery"
        )
        if Field.GetID() != CaveOfLifeEntrance1:
            Terminal.Rush(CaveOfLifeEntrance1)
        else:
            Quest.StartQuest(7313, 2081006)
            print("Horntail Prequest started")
    else:
        #ToggleKami(False)
        print("Doing Horntail")
        if HorntailEasy:
            print("Easy")
            if Field.GetID() != HorntailsCaveEasy:
                if Field.GetID() != TheCaveOfTrialEasy2:
                    if Field.GetID() != TheCaveOfTrialEasy1:
                        if Field.GetID() != EntranceToHorntailsCave:
                            GotoHorntail()
                        else:
                            if not NowLockedVar:
                                Npc.ClearSelection()
                                Npc.RegisterSelection(
                                    "Easy Mode (Level 130 or above)")
                                time.sleep(1)
                                Character.TalkToNpc(2083004)
                                time.sleep(1)
                            else:
                                print(
                                    "Seems like you diddnt finish your last attempt and are locked. Continueing other bosses"
                                )
                                SCLib.UpdateVar("KillHorntail", False)
                                ResetNowLockedFunction()
                    else:
                        NowLockedFunction()
                        boss = Field.FindMob(HorntailsLeftHeadEasy)
                        if boss.valid:
                            ToggleKami(False)

                            if Character.GetPos().x != 522:
                                Character.Teleport(522, -40)
                            print("Horntails left head still alive standby")
                        else:
                            ToggleFaceLeft(True)
                            ToggleKami(False)

                            if Character.GetPos().x != 840:
                                Character.Teleport(840, -165)
                            else:
                                Character.EnterPortal()
                else:
                    boss = Field.FindMob(HorntailsRightHeadEasy)
                    if boss.valid:
                        ToggleKami(False)
                        ToggleAttack(True)
                        if Character.GetPos().x != 9:
                            Character.Teleport(9, -40)
                        print("Horntails right head still alive standby")
                    else:
                        ToggleFaceLeft(False)
                        ToggleKami(False)

                        if Character.GetPos().x != -307:
                            Character.Teleport(-307, -165)
                        else:
                            Character.EnterPortal()
            else:
                boss = Field.FindMob(EasyHorntail)
                if boss.valid:
                    ToggleAttack(True)

                    DidSpawn()
                    ToggleKami(True)
                    print("Horntail still alive Standby")
                else:
                    if HasSpawned:
                        ToggleKami(False)
                        ToggleLoot(True)
                        print(
                            "Horntail Easy Is dead waiting 10 sec before continueing"
                        )
                        time.sleep(10)
                        Character.TalkToNpc(2083002)
                        time.sleep(1)
                        SCLib.UpdateVar("KillHorntail", False)
                        ToggleLoot(False)
                        ResetSpawn()
                        ResetNowLockedFunction()
                    else:
                        ToggleKami(False)
                        ToggleAttack(False)

                        crystal = Field.FindReactor(2401300)
                        if crystal.valid:
                            if Character.GetPos().x != 540:
                                Character.Teleport(540, 15)
                            else:
                                Character.BasicAttack()
                                time.sleep(2)
        elif HorntailNormal:
            print("Normal")
            if Field.GetID() not in HorntailsCaveNormal:
                if Field.GetID() not in TheCaveOfTrialNormal2:
                    if Field.GetID() not in TheCaveOfTrialNormal1:
                        if Field.GetID() != EntranceToHorntailsCave:
                            GotoHorntail()
                        else:
                            if not NowLockedVar:
                                Npc.ClearSelection()
                                Npc.RegisterSelection(
                                    "Normal Mode (Level 130 or above)")
                                time.sleep(1)
                                Character.TalkToNpc(2083004)
                                time.sleep(1)
                            else:
                                print(
                                    "Seems like you diddnt finish your last attempt and are locked. Continueing other bosses"
                                )
                                SCLib.UpdateVar("KillHorntail", False)
                                ResetNowLockedFunction()
                    else:
                        NowLockedFunction()
                        boss = Field.FindMob(HorntailsLeftHeadNormal)
                        if boss.valid:
                            ToggleKami(False)
                            ToggleAttack(True)
                            if Character.GetPos().x != 522:
                                Character.Teleport(522, -40)
                            print("Horntails left head still alive standby")
                        else:
                            ToggleFaceLeft(True)
                            ToggleKami(False)

                            if Character.GetPos().x != 840:
                                Character.Teleport(840, -165)
                            else:
                                Character.EnterPortal()
                else:
                    boss = Field.FindMob(HorntailsRightHeadNormal)
                    if boss.valid:
                        ToggleKami(False)

                        if Character.GetPos().x != 9:
                            Character.Teleport(9, -40)
                        print("Horntails right head still alive standby")
                    else:
                        ToggleFaceLeft(False)
                        ToggleKami(False)

                        if Character.GetPos().x != -307:
                            Character.Teleport(-307, -165)
                        else:
                            Character.EnterPortal()
            else:
                boss = Field.FindMob(NormalHorntail)
                if boss.valid:
                    ToggleAttack(True)
                    ToggleKami(True)

                    DidSpawn()
                    print("Horntail Normal still alive Standby")
                else:
                    if HasSpawned:
                        ToggleKami(False)
                        ToggleLoot(True)
                        print(
                            "Horntail Normal Is dead waiting 10 sec before continueing"
                        )
                        time.sleep(10)
                        Character.TalkToNpc(2083002)
                        time.sleep(1)
                        ToggleLoot(False)
                        SCLib.UpdateVar("KillHorntail", False)
                        ResetSpawn()
                        ResetNowLockedFunction()
                    else:
                        ToggleAttack(False)
                        ToggleKami(False)

                        crystal = Field.FindReactor(2401000)
                        if crystal.valid:
                            if Character.GetPos().x != 540:
                                Character.Teleport(540, 15)
                            else:
                                Character.BasicAttack()
                                time.sleep(2)
        elif HorntailChaos:
            print("Chaos")
            if Field.GetID() not in ChaosHorntailsCave:
                if Field.GetID() not in TheCaveOfTrialChaos2:
                    if Field.GetID() not in TheCaveOfTrialChaos1:
                        if Field.GetID() != EntranceToHorntailsCave:
                            GotoHorntail()
                        else:
                            if not NowLockedVar:
                                Npc.ClearSelection()
                                Npc.RegisterSelection(
                                    "Chaos Mode (Level 135 or above)")
                                time.sleep(1)
                                Character.TalkToNpc(2083004)
                                time.sleep(1)
                            else:
                                print(
                                    "Seems like you diddnt finish your last attempt and are locked. Continueing other bosses"
                                )
                                SCLib.UpdateVar("KillHorntail", False)
                                ResetNowLockedFunction()
                    else:
                        NowLockedFunction()
                        boss = Field.FindMob(ChaosHorntailsLeftHead)
                        if boss.valid:
                            ToggleKami(False)
                            ToggleAttack(True)
                            while Character.GetPos().x not in range(500, 570):
                                Character.AMoveX(522)
                            print("Horntails left head still alive standby")
                        else:
                            ToggleFaceLeft(True)
                            ToggleKami(False)

                            if Character.GetPos().x != 840:
                                Character.Teleport(840, -165)
                            else:
                                Character.EnterPortal()
                else:
                    boss = Field.FindMob(ChaosHorntailsRightHead)
                    if boss.valid:
                        ToggleKami(False)
                        ToggleAttack(True)
                        while Character.GetPos().x not in range(-40, 40):
                            Character.AMoveX(9)
                        print("Horntails right head still alive standby")
                    else:
                        ToggleFaceLeft(False)
                        ToggleKami(False)

                        if Character.GetPos().x != -307:
                            Character.Teleport(-307, -165)
                        else:
                            Character.EnterPortal()
            else:
                boss = Field.FindMob(ChaosHorntail)
                boss1 = Field.FindMob(ChaosHorntail1)
                boss2 = Field.FindMob(ChaosHorntail2)
                boss3 = Field.FindMob(ChaosHorntail3)
                boss4 = Field.FindMob(ChaosHorntail4)
                if boss.valid or boss1.valid or boss2.valid or boss3.valid or boss4.valid:
                    ToggleAttack(True)

                    #ToggleKami(True)
                    DidSpawn()
                    while Character.GetPos().x not in range(140, 220):
                        Character.AMoveX(183)
                    print("Horntail still alive, Standby")
                else:
                    if HasSpawned:
                        ToggleKami(False)
                        ToggleLoot(False)
                        #print("Horntail Is dead waiting 10 sec before continueing")
                        print("Looting")
                        Terminal.SetCheckBox("Auto Loot", True)
                        MoveToXLocation(Field.GetRect().left)
                        time.sleep(1.5)
                        MoveToXLocation(Field.GetRect().right)
                        time.sleep(1.5)
                        MoveToXLocation(Field.GetRect().left)
                        time.sleep(1.5)
                        MoveToXLocation(Field.GetRect().right)
                        time.sleep(1.5)
                        MoveToXLocation(Field.GetRect().left)
                        time.sleep(1.5)
                        #time.sleep(10)
                        Character.TalkToNpc(2083002)
                        time.sleep(1)
                        SCLib.UpdateVar("KillHorntail", False)
                        ToggleLoot(False)
                        ResetSpawn()
                        ResetNowLockedFunction()
                    else:
                        ToggleAttack(False)
                        ToggleKami(False)

                        crystal = Field.FindReactor(2401100)
                        if crystal.valid:
                            if Character.GetPos().x != 540:
                                Character.Teleport(540, 15)
                            else:
                                Character.BasicAttack()
                                time.sleep(2)
Пример #26
0
import time
import Packet
import GameState, Party

Terminal.SetRushByLevel(False)

if GameState.IsInGame():
    time.sleep(1)
    jobid = Character.GetJob()
    level = Character.GetLevel()

    if Terminal.IsRushing():
        time.sleep(1)

    fieldid = Field.GetID()
    quest1 = Quest.GetQuestState(1466)
    quest2 = Quest.GetQuestState(34100)
    quest3 = Quest.GetQuestState(34101)
    quest4 = Quest.GetQuestState(34102)
    quest5 = Quest.GetQuestState(34103)
    quest6 = Quest.GetQuestState(34104)
    quest7 = Quest.GetQuestState(34105)
    quest8 = Quest.GetQuestState(34106)
    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)
Пример #27
0
def HasQuest(id):
    if Quest.GetQuestState(id) == 1:
        return True
    else:
        return False
 def IsActive(self):
     if Quest.GetQuestState(self.quest) == 1:
         return True
     return False
Пример #29
0
if not GameState.IsInGame():
    Terminal.SetProperty("count", 0)
    Terminal.SetProperty("danceDone", False)
    Terminal.SetProperty("Once", True)
#print(Terminal.GetProperty("danceDone",None))
if GameState.IsInGame():
    if not Terminal.GetProperty("danceDone", None):
        if Field.GetID() not in range(danceMap, danceMap + 20):
            #print("Not in dance map")
            if Field.GetID() == 993050000:
                if Character.GetPos().x != 1704:
                    Character.Teleport(1704, 35)
                    time.sleep(0.3)
                else:
                    if Quest.GetQuestState(
                            16817) == 0 and Terminal.GetProperty("Once", True):
                        Npc.ClearSelection()
                        Npc.RegisterSelection("all")
                        Quest.StartQuest(16817, 9062081)
                        Terminal.SetProperty("Once", False)
                    else:
                        Quest.StartQuest(16827, 9062081)
            else:
                #print("Not done quest")
                if Quest.GetQuestState(16731) != 2:
                    print("1")
                    Quest.StartQuest(16731, 9010010)
                else:
                    Quest.StartQuest(16742, 9010010)
        else:
            Result = Packet.WaitForRecv(0x05F0, 60000)
Пример #30
0
# 8/18/2018

# Set it True or False if you like to have equip boxes open automatically
OpenBox = True

# Set True or False for ToT quest of the level to be done
Lv20 = True
Lv30 = True
Lv40 = True
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: