Exemple #1
0
def Main():
    if GameState.IsInGame(
    ) and not Terminal.IsRushing() and not Terminal.IsSolvingRune():
        hieizanLastQuest = 58913
        ayame = 9130103
        princess = ayame + 1

        kannaring = 1113155
        hayatoshoulder = 1152171
        ayametreasure = 1132275

        _map = Field.GetID()
        if not QuestCompleted(hieizanLastQuest - 2) and QuestInProgress(
                hieizanLastQuest, ayame):
            Hieizan(_map)
        else:
            if onlyKanna:
                if Inventory.GetItemCount(kannaring) == 0:
                    KannaRing(_map, "kanna")
                else:
                    print('we are done')
            else:
                if Inventory.GetItemCount(
                        kannaring) > 0 and Inventory.GetItemCount(
                            hayatoshoulder) == 0:
                    KannaRing(_map, "hayato")
                elif Inventory.GetItemCount(
                        kannaring) > 0 and Inventory.GetItemCount(
                            hayatoshoulder) > 0 and Inventory.GetItemCount(
                                ayametreasure) == 0:
                    KannaRing(_map, "ayameHero")
                elif Inventory.GetItemCount(kannaring) == 0:
                    KannaRing(_map, "kanna")
                else:
                    # pno quest line
                    if Inventory.GetItemCount(4034142) > 0:
                        if not QuestCompleted(hieizanLastQuest):
                            CompletingQuest(hieizanLastQuest, ayame, _map)
                        else:
                            if not QuestCompleted(58950):
                                CompletingQuest(58950, princess, _map)
                    print("we're done here")