def RushAndComplete(completemap, questid, npcid):
    if map != completemap:
        Terminal.Rush(completemap)
    else:
        if completemap == 450001000:
            ToPortal("PV00", False)
            Quest.CompleteQuest(questid, npcid)
        else:
            ToNPC(npcid)
            Quest.CompleteQuest(questid, npcid)
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")
示例#3
0
def TeleQuest(startRush, killingMap, endRush, questState, questID, npcStartID,
              npcEndID, startX, startY, endX, endY):
    if currentMap != startRush and questState == 0:
        Terminal.Rush(startRush)
        time.sleep(2)

    if questState == 0:
        # accept it
        if startX != 0 and startY != 0:
            Character.Teleport(startX, startY)
            time.sleep(2)

        time.sleep(2)
        Quest.StartQuest(questID, npcStartID)
        time.sleep(2)

    elif Quest.CheckCompleteDemand(questID, npcEndID) == 0:
        if currentMap != endRush:
            Terminal.Rush(endRush)
            time.sleep(2)

        if endX != 0 and endY != 0:
            Character.Teleport(endX, endY)
            time.sleep(2)

        Quest.CompleteQuest(questID, npcEndID)

    else:
        Terminal.Rush(killingMap)
        time.sleep(5)
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")
def AutoQuestQ10():
    if HasQuest(q10):
        if InProgress(q10, 3003432):
            if Field.GetID() != 940204309:
                for map in [450006410, 450006420, 450006430]:
                    if Field.GetID() != map:
                        Rush(map)
                        time.sleep(1)
                    if Field.GetID() == map:
                        ToPortal("dq00")
                        time.sleep(2)
                        ToPortal("dq01")
                        time.sleep(2)

                    if Field.GetID() == 940204309:
                        break
            else:
                time.sleep(1)

            return True
        else:
            if Field.GetID() == 940204309:
                Npc.ClearSelection()
                Npc.RegisterSelection("To Trueffet Square")
                ToPortal("pt_out")
                time.sleep(2)
            else:
                returnmaps[q10] = town
                if Field.GetID() == town:
                    ToMid()
                    Quest.CompleteQuest(34285, 3003432)

            return False
def AutoQuestQ19():
    if HasQuest(q19):
        if InProgress(q19, 3003432):
            if Field.GetID() not in [940204430, 940204450, 940204470]:
                for map in [450006410, 450006420, 450006430]:
                    if Field.GetID() != map:
                        Rush(map)
                    if Field.GetID() == map:
                        ToPortal("dq00")
                        time.sleep(2)
                        ToPortal("dq01")
                        time.sleep(2)

                    if Field.GetID() == 940204430:
                        break
            elif len(Field.GetMobs()) == 0:
                ToPortal("pt00")
                ToPortal("pt01")

            return True
        else:
            returnmaps[q19] = town
            if Field.GetID() == town:
                ToMid()
                Quest.CompleteQuest(q19, 3003432)

            return False
示例#7
0
def KaoAndDo(startRush, endRush, questState, questID, npcStartID, npcEndID):
	if currentMap  != startRush and questState == 0:
		Terminal.Rush(startRush)
		time.sleep(1)
	
	if currentMap  == 270000000:
		pos = Character.GetPos()
		if pos.x != -2387 and pos.y != -177:
			Character.Teleport(-2387, -177)
		
	if currentMap  == 270010111:
		time.sleep(2)
		Character.Teleport(-493, -868)
		time.sleep(5)
			
	if questState == 0:
		# accept it
		time.sleep(1)
		Quest.StartQuest(questID, npcStartID)
		time.sleep(1)
		
	elif Quest.CheckCompleteDemand(questID, npcEndID) == 0:
		if currentMap  != endRush:
			Terminal.Rush(endRush)
			time.sleep(1)
		Quest.CompleteQuest(questID, npcEndID)
示例#8
0
def qcheck(qid, npc, map):
    if Quest.CheckCompleteDemand(qid, npc) == 0:
        if map == 940200216:
            enterbramble()
        else:
            rush(map)
        Quest.CompleteQuest(qid, npc)
        return 0
    else:
        return -1
def RushAndComplete(completemap, questid, npcid):
    if Field.GetID() != completemap:
        Terminal.Rush(completemap)
        while Terminal.IsRushing():
            time.sleep(1)
    else:
        if Character.GetPos().x < -800 or Character.GetPos().x > 675:
            Character.Teleport(-800, 153)
            time.sleep(2)
        Quest.CompleteQuest(questid, npcid)
        time.sleep(1)
示例#10
0
def CompleteQuest(id, npc, tp=False):
    flag = False
    if Field.FindNpc(npc).valid and tp:
        if Terminal.GetCheckBox("Kami Vac"):
            flag = True
            CheckBox("Kami Vac", False)
            time.sleep(1)
        Character.Teleport(npc.x, npc.y - 10)

    print("Completing quest " + str(id))
    Quest.CompleteQuest(id, npc)
    time.sleep(1)
示例#11
0
def CompletingQuest(quest, npc, map):
    if not QuestCompleted(quest):
        _map = Field.GetID()
        _npc = Field.FindNpc(npc)
        if _map != map:
            #Terminal.Rush(map)
            #time.sleep(rushTime)
            if debugMSG:
                print("wrongmap")
        else:
            if _npc.valid:
                MoveToNpc(npc)
            if debugMSG:
                print("Completed Quest: ", quest)
            Quest.CompleteQuest(quest, npc)
            time.sleep(questTime)
示例#12
0
def AutoQuest(qid, questmap, endmap, npc, townpos="mid"):
    if HasQuest(qid):
        if InProgress(qid, npc):
            questmaps[qid] = questmap
            returnmaps[qid] = endmap
        else:
            questmaps[qid] = 0
            returnmaps[qid] = endmap
            if Field.GetID() == endmap:
                if Field.GetID() == 450006130:
                    if townpos == "mid":
                        ToMid()
                    else:
                        ToPortal("east00", False)
                Quest.CompleteQuest(qid, npc)
                time.sleep(1)
    else:
        returnmaps[qid] = 0
示例#13
0
def AutoQuestQ21():
    if HasQuest(q21):
        if InProgress(q21, 3003469):
            if DoQuest(34246) and Field.GetID() not in [
                    450006240, 940204550, 940204570
            ]:
                Rush(450006240)
                Quest.StartQuest(34246, 3003469)
            elif Field.GetID() == 940204550:
                time.sleep(1)
            elif Field.GetID() == 940204570:
                Character.TalkToNpc(3003474)

            return True
        else:
            returnmaps[q21] = research
            if Field.GetID() == research:
                Quest.CompleteQuest(34296, 3003469)

            return False
    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)
示例#15
0
def NonTeleQuest(startRush, killingMap, endRush, questState, questID,
                 npcStartID, npcEndID):
    if currentMap != startRush and questState == 0:
        Terminal.Rush(startRush)
        time.sleep(2)

    if questState == 0:
        # accept it
        time.sleep(2)
        Quest.StartQuest(questID, npcStartID)
        time.sleep(2)

    elif Quest.CheckCompleteDemand(questID, npcEndID) == 0:
        if currentMap != endRush:
            Terminal.Rush(endRush)
            time.sleep(2)
        Quest.CompleteQuest(questID, npcEndID)

    else:
        # quest is in progress
        Terminal.Rush(killingMap)
        time.sleep(5)
示例#16
0
def AutoQuestQ20():
    if HasQuest(q20):
        if InProgress(q20, 3003469):
            if Field.GetID() not in [940204490, 940204510, 940204530]:
                for map in [450006300, 450006310, 450006320]:
                    if Field.GetID() != map:
                        Rush(map)
                    if Field.GetID() == map:
                        ToPortal("dq00")
                        time.sleep(2)

                    if Field.GetID() == 940204490:
                        break
            elif len(Field.GetMobs()) == 0:
                ToPortal("pt00")

            return True
        else:
            returnmaps[q20] = research
            if Field.GetID() == research:
                Quest.CompleteQuest(q20, 3003469)

            return False
示例#17
0
print("Starting kanna ring script")
Terminal.SetCheckBox("Kami Loot", False)
Terminal.SetCheckBox("Auto Loot", False)

if GameState.IsInGame():
    if quest1 != 2:
        if quest1 == 0:
            print("Starting first quest")
            Quest.StartQuest(58901, 9130102)
        elif quest1 == 1:
            print("Doing first quest")
            if Quest.CheckCompleteDemand(58901, 9130102) == 0:
                if Field.GetID() == 807000000:
                    TP_EnterPortal(-1688, 32)
                elif Field.GetID() == 811000001:
                    Quest.CompleteQuest(58901, 9130102)
                else:
                    Terminal.Rush(807000000)
    if quest2 != 2:
        if quest2 == 0:
            print("Starting second quest")
            #if Field.GetID() == 811000001:
            Quest.StartQuest(58902, 9130102)
        elif quest2 == 1:
            print("Doing second quest")
            if Quest.CheckCompleteDemand(58902, 9130102) == 0:
                SunCat.StopTP()
                Character.Teleport(633, -268)
                Quest.CompleteQuest(58902, 9130102)
            else:
                quest_done_flag = False
示例#18
0
 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:
         Quest.StartQuest(57401, 9130082)
         time.sleep(0.2)
     else:
         Quest.CompleteQuest(57401, 9130082)
         time.sleep(0.2)
 elif quest3 != 2:
     if quest3 == 0:
         Quest.StartQuest(57402, 0)
         time.sleep(0.6)
     elif quest3 == 1:
         if Field.GetID() != 807040100:
             Terminal.Rush(807040100)
             time.sleep(0.3)
         else:
             Quest.CompleteQuest(57402, 9130083)
             time.sleep(0.2)
             '''
             fan = Inventory.FindItemByID(1552000)
             time.sleep(1)
示例#19
0
        talkquest(quest3, 34452, 450005015, 450005015, 3003301, 3003301)

    elif quest4 != 2:
        talkquest(quest4, 34453, 450005015, 450005015, 3003301, 3003301)

    elif quest5 != 2:
        talkquest(quest5, 34454, 450005015, 450005100, 3003302, 3003304)

    elif quest6 != 2:
        if quest6 == 0:
            rush(450005100)
            Quest.StartQuest(34455, 3003303)
        if quest6 == 1:
            if Quest.CheckCompleteDemand(34455, 3003303) == 0:
                rush(450005100)
                Quest.CompleteQuest(34455, 3003303)
            else:
                while Inventory.GetItemCount(4036096) != 10:
                    rush(450005110)
                    time.sleep(1)
                while Inventory.GetItemCount(4036097) != 10:
                    rush(450005120)
                    time.sleep(1)
                while Inventory.GetItemCount(4036098) != 10:
                    rush(450005130)
                    time.sleep(1)

    elif quest7 != 2:
        if quest7 == 0:
            rush(450005100)
            Quest.StartQuest(34456, 3003303)
示例#20
0
                if not inQuest:
                    inQuest = AutoQuestQ10()
                if not inQuest:
                    inQuest = AutoQuestQ19()
                if not inQuest:
                    inQuest = AutoQuestQ20()
                if not inQuest:
                    inQuest = AutoQuestQ21()

                if not inQuest:
                    for map in sorted(returnmaps.values(), reverse=True):
                        if map == research:
                            Rush(research)
                            break
                        elif map == town:
                            Rush(town)
                            break

                    #Turn in quests
                    SortQuest()
                    AutoQuestQ10()
                    AutoQuestQ19()
                    AutoQuestQ20()
                    AutoQuestQ21()

            else:
                Rush(450006130)
                ToMid()
                Quest.CompleteQuest(34275, 3003432)
示例#21
0
    time.sleep(3)
    Character.EnterPortal()
if Field.GetID() == 4000026:
    Character.Teleport(765, 215)
    time.sleep(3)
    Character.EnterPortal()
if Character.GetLevel() ==3:
    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)
示例#22
0
    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:
            Quest.StartQuest(17600, 1101002)
        elif quest1 == 1:
            Quest.CompleteQuest(17600, 1101002)

    # Completing [Commerci Republic] In the Name of the Empress
    elif quest2 != 2:
        if quest2 == 0:
            if fieldID != 130000000:
                Terminal.Rush(130000000)
            else:
                Quest.StartQuest(17601, 1101000)
        elif quest2 == 1:
            Quest.CompleteQuest(17601, 1101000)

    # Completing [Commerci Republic] Neinheart's Request
    elif quest3 != 2:
        if quest3 == 0:
            if fieldID != 130000000:
示例#23
0
				
			if memoryKeeper == 0:
				pos = Character.GetPos()
				if pos.x != -493 and pos.y != -868:
					Character.Teleport(-493, -868)
				time.sleep(5)
				Quest.StartQuest(3507, 2140001)
				time.sleep(1)
				
			elif Quest.CheckCompleteDemand(3507, 2140001) == 0:
				if currentMap  != 270010111:
					Terminal.Rush(270010111)
					time.sleep(1)
				time.sleep(10)
				Character.Teleport(-493,-868)
				Quest.CompleteQuest(3507, 2140001)
				
			elif seekingLostMemory !=2:
				if seekingLostMemory == 0:
					# KANNA
					if jobid == 4212:
						if currentMap  != 807000000:
							Terminal.Rush(807000000)
							time.sleep(1)
							continue
						Quest.StartQuest(57465, 9130008)
						time.sleep(2)
					
					# BaM = 3212
					# WH = 3312
					# Mech = 3512
示例#24
0
        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
                else:
                    # cat mask
                    Character.TalkToNpc(3003225)
                    time.sleep(3)

                    # rabbit mask
                    Character.TalkToNpc(3003226)
                    time.sleep(3)

                    # flutist mask
                    Character.TalkToNpc(3003227)
                    time.sleep(3)
            else:
                continue
示例#25
0
    if fieldid == 450001350:
        time.sleep(1)
        if Character.GetPos().x != 1200:
            Character.Teleport(1200, 177)
    if quest1 != 2:
        if quest1 == 0:
            if fieldid != 270010111:
                Terminal.Rush(270010111)
            else:
                Quest.StartQuest(1466, 2140001)
        elif quest1 == 1:
            if Quest.CheckCompleteDemand(1466, 2140001) == 0:
                if fieldid != 270010111:
                    Terminal.Rush(270010111)
                else:
                    Quest.CompleteQuest(1466, 2140001)
                    time.sleep(3)
                    oPacket = Packet.COutPacket(0x00F4)
                    oPacket.Encode4(0x291000E6)
                    oPacket.Encode1(0x01)
                    oPacket.Encode2(0x0001)
                    oPacket.Encode2(0xF9C0)
                    oPacket.Encode2(0xFFFF)
                    Packet.SendPacket(oPacket)
                    time.sleep(3)

            else:
                if fieldid != 450001010:
                    Terminal.Rush(450001010)
    elif quest2 != 2:
        if fieldid != 450001000:
示例#26
0
        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)
            if Quest.GetQuestState(34564) == 1:
示例#27
0
        daily20 = Quest.GetQuestState(34799)
        completedaily = Quest.GetQuestState(34773)

        while Field.GetID() < 450007000:
            esfera = Packet.COutPacket(0x02CC)
            esfera.EncodeBuffer("00 00 00 90 D2 1A")
            Packet.SendPacket(esfera)
            time.sleep(5)

        while Quest.GetQuestState(34772) != 2:
            RushCheck(450007040)
            if Quest.GetQuestState(34772) == 0:
                Quest.StartQuest(34772, 3003530)
                time.sleep(1)
            else:
                Quest.CompleteQuest(34772, 3003530)
                time.sleep(1)

        if completedaily == 0:
            Terminal.ChangeStatus('Esfera Daily Started')
            Quest.StartQuest(34773, 3003530)
            Npc.ClearSelection()
            Npc.RegisterSelection(
                "Those are all the requests I want to swap out.")
            time.sleep(5)

        if daily1 == 1:
            if Quest.CheckCompleteDemand(34780, 3003530):
                RushCheck(450007010)
            elif Quest.CheckCompleteDemand(34780, 3003530) == False:
                RushAndComplete(450007040, 34780, 3003530)
示例#28
0
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:
        if Quest.CheckCompleteDemand(quest_number, quest_npc) == 0:
            Quest.CompleteQuest(quest_number, quest_npc2)
            Terminal.SetCheckBox("Rush By Level", False)
            Terminal.Rush(grove_of_the_spirit_tree)
            SCLib.UpdateVar("QuestDone", True)

        if Quest.CheckCompleteDemand(quest_number, quest_npc2) == 0:
            Quest.CompleteQuest(quest_number, quest_npc2)
            Terminal.SetCheckBox("Rush By Level", False)
            Terminal.Rush(grove_of_the_spirit_tree)
            SCLib.UpdateVar("QuestDone", True)
    else:
        time.sleep(1)
示例#29
0
            if fieldid != 450002000:
                Terminal.Rush(450002000)
            elif fieldid == 450002000:
                Quest.StartQuest(34202, 3003152)
    elif quest4 != 2:
        if quest4 == 0:
            if fieldid != 450002000:
                Terminal.Rush(450002000)
            elif fieldid == 450002000:
                Quest.StartQuest(34203, 3003152)
        elif quest4 == 1:
            if Quest.CheckCompleteDemand(34203, 3003152) == 0:
                if fieldid != 450002000:
                    Terminal.Rush(450002000)
                else:
                    Quest.CompleteQuest(34203, 3003152)
            else:
                if fieldid != 450002001:
                    Terminal.Rush(450002001)

    elif quest5 != 2:
        if quest5 == 0:
            if fieldid != 450002000:
                Terminal.Rush(450002000)
            elif fieldid == 450002000:
                Quest.StartQuest(34204, 3003152)

    elif quest6 != 2:
        if quest6 == 0:
            if fieldid != 450002023:
                Terminal.Rush(450002023)
示例#30
0
        continue

    if level >= 165:
        # if character is above level 165, rush to future henesys
        # this will automatically accept Exploring the future

        if currentMap == 271010000:
            Character.Teleport(-596, 154)

        # if this quest is not completed,
        if exploringFuture != 2:
            if currentMap != 271010000:
                Terminal.Rush(271010000)
                continue
            # if we are in the map, hand in the quest to alex
            Quest.CompleteQuest(31103, 2142001)

        elif chiefAlex != 2:
            # if not in map, rush to it
            if currentMap != 271010000:
                Terminal.Rush(271010000)
                continue

            if chiefAlex == 0:
                Quest.StartQuest(31104, 2142001)

            elif Quest.CheckCompleteDemand(31104, 2142001) == 0:
                # answer his quiz
                Npc.ClearSelection()
                Npc.RegisterSelection("Kerning City")
                Npc.RegisterSelection("You were a runaway")