Esempio n. 1
0
       st.giveItems(VAROOL_FOULCLAWS_FANG,1)
       st.playSound("ItemSound.quest_middle")
   elif st.getRandom(10)>5 :
     st.giveItems(WERERAT_FANG,1)
     st.playSound("ItemSound.quest_itemget")
   return

QUEST       = Quest(316,"316_DestroyPlaguebringers","Destroy Plaguebringers")
CREATED     = State('Start', QUEST)
STARTING    = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)


QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7155)

CREATED.addTalkId(7155)
STARTING.addTalkId(7155)
STARTED.addTalkId(7155)
COMPLETED.addTalkId(7155)

STARTED.addKillId(40)
STARTED.addKillId(47)
STARTED.addKillId(5020)

STARTED.addQuestDrop(40,WERERAT_FANG,1)
STARTED.addQuestDrop(5020,VAROOL_FOULCLAWS_FANG,1)

print "importing quests: 316: Destroy Plaguebringers"
Esempio n. 2
0
         htmltext = "7305-05.htm"
   return htmltext

 def onKill (self,npc,st):
   npcId = npc.getNpcId()
   if int(st.get("cond")) == 1 :
      st.giveItems(NIGHTMARE_CRYSTAL,1)
      st.playSound("ItemSound.quest_middle")
      st.set("cond","2")
   return

QUEST       = Quest(170,"170_DangerousAllure","Dangerous Allure")
CREATED     = State('Start', QUEST)
STARTING     = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)


QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7305)

CREATED.addTalkId(7305)
STARTING.addTalkId(7305)
STARTED.addTalkId(7305)
COMPLETED.addTalkId(7305)

STARTED.addKillId(5022)
STARTED.addQuestDrop(5022,NIGHTMARE_CRYSTAL,1)

print "importing quests: 170: Dangerous Allure"
Esempio n. 3
0
        if count+qty==100 :
          st.playSound("ItemSound.quest_middle")
          st.set("cond","2")
        else :
          st.playSound("ItemSound.quest_itemget")
        st.giveItems(PREDATORS_FANG,qty)
   return

QUEST       = Quest(266,"266_PleaOfPixies","Plea Of Pixies")
CREATED     = State('Start', QUEST)
STARTING    = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(12091)

CREATED.addTalkId(12091)
STARTING.addTalkId(12091)
STARTED.addTalkId(12091)
COMPLETED.addTalkId(12091)

STARTED.addKillId(525)
STARTED.addKillId(530)
STARTED.addKillId(534)
STARTED.addKillId(537)

STARTED.addQuestDrop(530,PREDATORS_FANG,1)

print "importing quests: 266: Plea Of Pixies"
Esempio n. 4
0
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)

for i in [SIR_KRISTOF_RODEMAI, STATUE_OF_OFFERING]:
    QUEST.addStartNpc(i)
    CREATED.addTalkId(i)

for i in [WITCH_KALIS, WITCH_ATHREA]:
    CREATED.addTalkId(i)

for i in [SIR_KRISTOF_RODEMAI, WITCH_KALIS]:
    PART2.addTalkId(i)
    PART3.addTalkId(i)
    PART4.addTalkId(i)

CREATED.addQuestDrop(STATUE_OF_OFFERING, SYMBOL_OF_LOYALTY, 1)
PART3.addQuestDrop(WITCH_KALIS, ANTIDOTE_RECIPE, 1)
PART4.addQuestDrop(WITCH_KALIS, VOUCHER_OF_FAITH, 1)
PART4.addQuestDrop(WITCH_KALIS, POTION_OF_RECOVERY, 1)
PART4.addQuestDrop(WITCH_KALIS, ANTIDOTE_RECIPE, 1)

for i in range(len(MOBS)):
    CREATED.addKillId(MOBS[i][0])
    CREATED.addQuestDrop(MOBS[i][0], MOBS[i][1], 1)

for i in CHESTS:
    CREATED.addKillId(i)

print "importing quests: 501: " + qd
Esempio n. 5
0
                htmltext = "7095-0a.htm"
                st.exitQuest(1)
        elif cond == 1:
            if not st.getQuestItemsCount(TREASURE_CHEST):
                htmltext = "7095-2.htm"
            else:
                htmltext = "7095-4.htm"
        return htmltext

    def onKill(self, npc, st):
        chance = st.getRandom(100)
        if chance < CHANCE_OF_DROP:
            st.giveItems(TREASURE_CHEST, 1)
            st.playSound("ItemSound.quest_itemget")
        return


QUEST = Quest(365, "365_DevilsLegacy", "Devil's Legacy")
CREATED = State("Start", QUEST)
STARTED = State("Started", QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(RANDOLF)
CREATED.addTalkId(RANDOLF)
STARTED.addTalkId(RANDOLF)
for mob in MOBS:
    STARTED.addKillId(mob)

STARTED.addQuestDrop(RANDOLF, TREASURE_CHEST, 1)
print "importing quests: 365: Devil's Legacy"
Esempio n. 6
0
            st.giveItems(DARK_BEZOAR_ID,1)
            if st.getQuestItemsCount(DARK_BEZOAR_ID) == 13 :
              st.playSound("ItemSound.quest_middle")
            else:
              st.playSound("ItemSound.quest_itemget")
   return

QUEST       = Quest(165,"165_WildHunt","Wild Hunt")
CREATED     = State('Start', QUEST)
STARTING     = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)


QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7348)

STARTING.addTalkId(7348)

STARTED.addTalkId(7348)

STARTED.addKillId(456)
STARTED.addKillId(529)
STARTED.addKillId(532)
STARTED.addKillId(536)

STARTED.addQuestDrop(529,DARK_BEZOAR_ID,1)
STARTED.addQuestDrop(532,DARK_BEZOAR_ID,1)
STARTED.addQuestDrop(536,DARK_BEZOAR_ID,1)
STARTED.addQuestDrop(456,DARK_BEZOAR_ID,1)
Esempio n. 7
0
CREATED     = State('Start',     QUEST)
STARTING    = State('Starting',  QUEST)
STARTED     = State('Started',   QUEST)
COMPLETED   = State('Completed', QUEST)

# Quest initialization
QUEST.setInitialState(CREATED)
# Quest NPC starter initialization
QUEST.addStartNpc(PM_COOPER)
# Quest Item Drop initialization
for i in [3499]+range(3816,3832):
    STARTING.addQuestDrop(PM_COOPER,i,1)

# Quest mob initialization
#back skins
STARTING.addKillId(TD_LORD)
#fairy stone dlx destroyers
for i in range(589,600)+[719]:
    STARTING.addKillId(i)
#eggs
STARTED.addKillId(LO_LZRD_W)
STARTED.addKillId(RD_SCVNGR)
STARTED.addKillId(MS_SPIDER)
STARTED.addKillId(DD_SEEKER)
STARTED.addKillId(BO_OVERLD)

# Quest NPC initialization
CREATED.addTalkId(PM_COOPER)

STARTING.addTalkId(PM_COOPER)
STARTING.addTalkId(SG_CRONOS)
Esempio n. 8
0
        if count < 40:
            st.giveItems(WOLF_PELT, 1)
            if count == 39:
                st.playSound("ItemSound.quest_middle")
                st.set("cond", "2")
            else:
                st.playSound("ItemSound.quest_itemget")
        return


QUEST = Quest(258, "258_BringWolfPelt1", "Bring Wolf Pelt1")
CREATED = State('Start', QUEST)
STARTING = State('Starting', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7001)

CREATED.addTalkId(7001)
STARTING.addTalkId(7001)
STARTED.addTalkId(7001)
COMPLETED.addTalkId(7001)

STARTED.addKillId(120)
STARTED.addKillId(442)

STARTED.addQuestDrop(120, WOLF_PELT, 1)

print "importing quests: 258: Bring Wolf Pelt1"
Esempio n. 9
0
         st.set ("cond","2")
       else:
         st.playSound("ItemSound.quest_itemget")
   return

QUEST       = Quest(162,"162_CurseOfFortress","Curse Of Fortress")
CREATED     = State('Start', QUEST)
STARTING    = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7147)

CREATED.addTalkId(7147)
STARTING.addTalkId(7147)
STARTED.addTalkId(7147)
COMPLETED.addTalkId(7147)

STARTED.addKillId(33)
STARTED.addKillId(345)
STARTED.addKillId(371)
STARTED.addKillId(463)
STARTED.addKillId(464)
STARTED.addKillId(504)

STARTED.addQuestDrop(371,ELF_SKULL,1)
STARTED.addQuestDrop(464,BONE_FRAGMENT3,1)

print "importing quests: 162: Curse Of Fortress"
Esempio n. 10
0
STARTING     = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)


QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7327)

CREATED.addTalkId(7327)
STARTING.addTalkId(7327)
COMPLETED.addTalkId(7327)

STARTED.addTalkId(7317)
STARTED.addTalkId(7327)

STARTED.addKillId(35)
STARTED.addKillId(42)
STARTED.addKillId(45)
STARTED.addKillId(51)
STARTED.addKillId(54)
STARTED.addKillId(60)
STARTED.addKillId(782)

STARTED.addQuestDrop(7327,SORIUS_LETTER1_ID,1)
STARTED.addQuestDrop(782,EMERALD_PIECE_ID,1)
STARTED.addQuestDrop(54,TOPAZ_PIECE_ID,1)
STARTED.addQuestDrop(7317,KLUTO_MEMO_ID,1)
STARTED.addQuestDrop(7317,KLUTO_BOX_ID,1)

print "importing quests: 406: Path To Elven Knight"
Esempio n. 11
0
            st.giveItems(TORN_MAP_FRAGMENT, 1)
            st.playSound("ItemSound.quest_itemget")
        return


QUEST = Quest(293, "293_HiddenVein", "Hidden Vein")
CREATED = State('Start', QUEST)
STARTING = State('Starting', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7535)

CREATED.addTalkId(7535)
STARTING.addTalkId(7535)
STARTED.addTalkId(7535)
COMPLETED.addTalkId(7535)

STARTED.addTalkId(7539)

STARTED.addKillId(446)
STARTED.addKillId(447)
STARTED.addKillId(448)

STARTED.addQuestDrop(7539, HIDDEN_VEIN_MAP, 1)
STARTED.addQuestDrop(446, CHRYSOLITE_ORE, 1)
STARTED.addQuestDrop(447, TORN_MAP_FRAGMENT, 1)

print "importing quests: 293: Hidden Vein"
Esempio n. 12
0
          qty=50-count
        if count+qty==50:
          st.playSound("ItemSound.quest_middle")
          st.set("cond","2")
        else :
          st.playSound("ItemSound.quest_itemget")
        st.giveItems(WOLF_CLAW,qty)
   return

QUEST       = Quest(264,"264_KeenClaws","Keen Claws")
CREATED     = State('Start', QUEST)
STARTING    = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7136)

CREATED.addTalkId(7136)
STARTING.addTalkId(7136)
STARTED.addTalkId(7136)
COMPLETED.addTalkId(7136)

STARTED.addKillId(3)
STARTED.addKillId(456)

STARTED.addQuestDrop(3,WOLF_CLAW,1)

print "importing quests: 264: Keen Claws"

Esempio n. 13
0
STARTED.addQuestDrop(SPIDER_LE2, SPIDER_LEG2, 1)
STARTED.addQuestDrop(SPIDER_LE3, SPIDER_LEG2, 1)

STARTED.addQuestDrop(SPIDER_DE1, SPIDER_LEG3, 1)
STARTED.addQuestDrop(SPIDER_DE2, SPIDER_LEG3, 1)
STARTED.addQuestDrop(SPIDER_DE3, SPIDER_LEG3, 1)

STARTED.addQuestDrop(SPIDER_O1, SPIDER_LEG4, 1)
STARTED.addQuestDrop(SPIDER_O2, SPIDER_LEG4, 1)
STARTED.addQuestDrop(SPIDER_O3, SPIDER_LEG4, 1)

STARTED.addQuestDrop(SPIDER_D1, SPIDER_LEG5, 1)
STARTED.addQuestDrop(SPIDER_D2, SPIDER_LEG5, 1)

# Quest mob initialization
STARTED.addKillId(SPIDER_H1)
STARTED.addKillId(SPIDER_H2)
STARTED.addKillId(SPIDER_H3)

STARTED.addKillId(SPIDER_LE1)
STARTED.addKillId(SPIDER_LE2)
STARTED.addKillId(SPIDER_LE3)

STARTED.addKillId(SPIDER_DE1)
STARTED.addKillId(SPIDER_DE2)
STARTED.addKillId(SPIDER_DE3)

STARTED.addKillId(SPIDER_O1)
STARTED.addKillId(SPIDER_O2)
STARTED.addKillId(SPIDER_O3)
Esempio n. 14
0
STARTING = State('Starting', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7022)

STARTING.addTalkId(7022)

STARTED.addTalkId(7017)
STARTED.addTalkId(7022)
STARTED.addTalkId(7030)
STARTED.addTalkId(7253)
STARTED.addTalkId(7333)
STARTED.addTalkId(7408)

STARTED.addKillId(26)
STARTED.addKillId(29)

STARTED.addQuestDrop(7408, LEMONIELLS_COVENANT_ID, 1)
STARTED.addQuestDrop(7022, LETTER_OF_ORDER2_ID, 1)
STARTED.addQuestDrop(7333, BOOK_OF_PRAGA_ID, 1)
STARTED.addQuestDrop(7030, BOOK_OF_VIVI_ID, 1)
STARTED.addQuestDrop(7253, BOOK_OF_SIMLON_ID, 1)
STARTED.addQuestDrop(7022, LETTER_OF_ORDER1_ID, 1)
STARTED.addQuestDrop(7333, NECKLACE_OF_MOTHER_ID, 1)
STARTED.addQuestDrop(26, PENDANT_OF_MOTHER_ID, 1)
STARTED.addQuestDrop(29, PENDANT_OF_MOTHER_ID, 1)
STARTED.addQuestDrop(7017, CERTIFICATE_OF_GALLINT_ID, 1)
STARTED.addQuestDrop(7408, BOOK_OF_LEMONIELL_ID, 1)
Esempio n. 15
0
   if st.getRandom(10)>4 :
     st.giveItems(item,1)
     st.playSound("ItemSound.quest_itemget")
   return

QUEST       = Quest(260,"260_HuntForOrcs1","Hunt For Orcs1")
CREATED     = State('Start', QUEST)
STARTING    = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7221)

CREATED.addTalkId(7221)
STARTING.addTalkId(7221)
STARTED.addTalkId(7221)
COMPLETED.addTalkId(7221)

STARTED.addKillId(468)
STARTED.addKillId(469)
STARTED.addKillId(470)
STARTED.addKillId(471)
STARTED.addKillId(472)
STARTED.addKillId(473)

STARTED.addQuestDrop(468,ORC_AMULET,1)
STARTED.addQuestDrop(472,ORC_NECKLACE,1)

print "importing quests: 260: Hunt For Orcs1"
Esempio n. 16
0
   elif n < 5 :
     st.giveItems(TORN_MAP_FRAGMENT,1)
     st.playSound("ItemSound.quest_itemget")
   return

QUEST       = Quest(293,"293_HiddenVein","Hidden Vein")
CREATED     = State('Start', QUEST)
STARTING     = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7535)

CREATED.addTalkId(7535)
STARTING.addTalkId(7535)
STARTED.addTalkId(7535)
COMPLETED.addTalkId(7535)

STARTED.addTalkId(7539)

STARTED.addKillId(446)
STARTED.addKillId(447)
STARTED.addKillId(448)

STARTED.addQuestDrop(7539,HIDDEN_VEIN_MAP,1)
STARTED.addQuestDrop(446,CHRYSOLITE_ORE,1)
STARTED.addQuestDrop(447,TORN_MAP_FRAGMENT,1)

print "importing quests: 293: Hidden Vein"
Esempio n. 17
0
COMPLETED   = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7284)
CREATED.addTalkId(7284)

STARTED.addTalkId(7156)
STARTED.addTalkId(7217)
STARTED.addTalkId(7219)
STARTED.addTalkId(7221)
STARTED.addTalkId(7284)
STARTED.addTalkId(7285)

COMPLETED.addTalkId(7284)

STARTED.addKillId(13)
STARTED.addKillId(19)

STARTED.addQuestDrop(7284,ALBERRYUS_LETTER_ID,1)
STARTED.addQuestDrop(7156,EVERGREEN_AMULET_ID,1)
STARTED.addQuestDrop(13,DRYAD_TEARS_ID,1)
STARTED.addQuestDrop(19,DRYAD_TEARS_ID,1)
STARTED.addQuestDrop(7156,COBS_MEDICINE1_ID,1)
STARTED.addQuestDrop(7156,COBS_MEDICINE2_ID,1)
STARTED.addQuestDrop(7156,COBS_MEDICINE3_ID,1)
STARTED.addQuestDrop(7156,COBS_MEDICINE4_ID,1)
STARTED.addQuestDrop(7156,COBS_MEDICINE5_ID,1)
STARTED.addQuestDrop(7284,ALBERRYUS_LIST_ID,1)

print "importing quests: 102: Fungus Fever"
Esempio n. 18
0
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7460)

STARTING.addTalkId(7460)

STARTED.addTalkId(7154)
STARTED.addTalkId(7300)
STARTED.addTalkId(7371)
STARTED.addTalkId(7375)
STARTED.addTalkId(7419)
STARTED.addTalkId(7460)
STARTED.addTalkId(7655)

STARTED.addKillId(145)
STARTED.addKillId(176)
STARTED.addKillId(233)
STARTED.addKillId(5077)
STARTED.addKillId(550)
STARTED.addKillId(581)
STARTED.addKillId(582)
STARTED.addKillId(82)
STARTED.addKillId(84)
STARTED.addKillId(86)
STARTED.addKillId(87)
STARTED.addKillId(88)

STARTED.addQuestDrop(7154, CAMOMILE_CHARM_ID, 1)
STARTED.addQuestDrop(7460, CARDIENS_LETTER_ID, 1)
STARTED.addQuestDrop(7371, WATER_OF_LIFE_ID, 1)
Esempio n. 19
0
                        if count == maxcount - 1:
                            st.playSound("ItemSound.quest_middle")
                            st.set(var, str(isValue + 1))
                        else:
                            st.playSound("ItemSound.quest_itemget")
                        return


QUEST = Quest(233, "233_TestOfWarspirit", "Test Of Warspirit")
CREATED = State('Start', QUEST)
PART1 = State('Part1', QUEST)
PART2 = State('Part2', QUEST)
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7510)

CREATED.addTalkId(7510)

for npcId in NPC:
    PART1.addTalkId(npcId)
    PART2.addTalkId(npcId)

for mobId in PART1_MOBS:
    PART1.addKillId(mobId)

for mobId in PART2_MOBS:
    PART2.addKillId(mobId)

print "importing quests: 233: Test Of Warspirit"
Esempio n. 20
0
                    st.playSound("ItemSound.quest_itemget")
                else:
                    st.playSound("ItemSound.quest_middle")
                    st.set("cond", "2")
                st.giveItems(DARKWING_BAT_FANG, 5)
                st.takeItems(VARANGKAS_PARASITE, -1)
        return


QUEST = Quest(275, "275_BlackWingedSpies", "Black Winged Spies")
CREATED = State('Start', QUEST)
STARTING = State('Starting', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7567)

CREATED.addTalkId(7567)
STARTING.addTalkId(7567)
STARTED.addTalkId(7567)
COMPLETED.addTalkId(7567)

STARTED.addKillId(316)
STARTED.addKillId(5043)

STARTED.addQuestDrop(316, DARKWING_BAT_FANG, 1)
STARTED.addQuestDrop(316, VARANGKAS_PARASITE, 1)

print "importing quests: 275: Black Winged Spies"
Esempio n. 21
0
             # quest ends when you get the blooded fabric
             if cond == 25:
                 st.playSound("ItemSound.quest_finish")
                 st.exitQuest(1)
     if npcId == ANGEL_KILLER :
         return "Ha, that was fun! If you wish to find the key, search the corpse"
     return


# Quest class and state definition
QUEST       = Quest(QUEST_NUMBER, str(QUEST_NUMBER)+"_"+QUEST_NAME, QUEST_DESCRIPTION)

CREATED     = State('Start',     QUEST)
PROGRESS    = State('Progress',   QUEST)
COMPLETED   = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(HANELLIN)
CREATED.addTalkId(HANELLIN)
PROGRESS.addTalkId(HANELLIN)
PROGRESS.addTalkId(ARK_GUARDIANS_CORPSE)
for i in ARK_OWNERS.keys() :
    PROGRESS.addTalkId(i)
for i in ARKS.keys() :
    PROGRESS.addTalkId(i)

for i in DROPS.keys():
  PROGRESS.addKillId(i)

print str(QUEST_NUMBER)+": "+QUEST_DESCRIPTION
Esempio n. 22
0
			if chance > 0:
				if st.getRandom(100) < chance and st.getQuestItemsCount(dropId) == 0:
					st.giveItems(dropId,1)
					st.playSound("Itemsound.quest_itemget")
					if npcId == 12372:
						st.takeItems(PIPETTE_KNIFE,1)
			if spawnId > 0 :
				st.getPcSpawn().addSpawn(spawnId,npc.getX(),npc.getY(),npc.getZ(),120000)
		return		


QUEST		= Quest(234,"234_FatesWhisper","Fate's Whisper")
CREATED		= State('Start', QUEST)
STARTED		= State('Started', QUEST)
COMPLETED	= State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(NPC[0])

CREATED.addTalkId(NPC[0])

for npcId in NPC:
	STARTED.addTalkId(npcId)
	
for mobId in DROPLIST.keys() :
	STARTED.addKillId(mobId)

STARTED.addAttackId(12372)	
	
print "importing quests: 234: Fate's Whisper"
Esempio n. 23
0
        npcId = npc.getNpcId()
        cond = int(st.get("cond"))
        if cond == 2:
            pieces = st.getQuestItemsCount(GEMSTONE_FRAGMENT)
            if pieces < MAX_COUNT - 1:
                st.giveItems(GEMSTONE_FRAGMENT, 1)
                st.playSound("ItemSound.quest_itemget")
            elif pieces == MAX_COUNT - 1:
                st.giveItems(GEMSTONE_FRAGMENT, 1)
                st.playSound("ItemSound.quest_middle")
                st.set("cond", "3")


QUEST = Quest(44, "44_HelpTheSon", "Help The Son!")
CREATED = State('Start', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(LUNDY)

CREATED.addTalkId(LUNDY)

STARTED.addTalkId(LUNDY)
STARTED.addTalkId(DRIKUS)

STARTED.addKillId(MAILLE_GUARD)
STARTED.addKillId(MAILLE_SCOUT)
STARTED.addKillId(MAILLE_LIZARDMAN)

print "importing quests: 44: Help The Son!"
Esempio n. 24
0
                st.playSound("ItemSound.quest_middle")
                if part == 1:
                    count = 0
                    for items in [GOLDEN_SEED1_ID, GOLDEN_SEED2_ID, GOLDEN_SEED3_ID]:
                        count += st.getQuestItemsCount(items)
                    if count > 2:
                        st.set("cond", "5")
            else:
                st.giveItems(item, 1)
                st.playSound("ItemSound.quest_itemget")
        return


QUEST = Quest(228, "228_TestOfMagus", "Test Of Magus")
CREATED = State("Start", QUEST)
STARTING = State("Starting", QUEST)
STARTED = State("Started", QUEST)
COMPLETED = State("Completed", QUEST)


QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7629)

STARTING.addTalkId(7629)

for npcId in [7391, 7409, 7411, 7412, 7413, 7612, 7629]:
    STARTED.addTalkId(npcId)

for mobId in [145, 157, 176, 230, 231, 232, 234, 5095, 5096, 5097, 5098, 553, 564, 565, 566]:
    STARTED.addKillId(mobId)
Esempio n. 25
0
      elif n<58 :
         st.giveItems(BROKEN_HEARTSTONE,1)
         st.playSound("ItemSound.quest_itemget")
   elif npcId == 83 :
      if n<6 :
         st.giveItems(GOLEM_HEARTSTONE,1)
         st.playSound("ItemSound.quest_itemget")
      elif n<56 :
         st.giveItems(BROKEN_HEARTSTONE,1)
         st.playSound("ItemSound.quest_itemget")
   return

QUEST       = Quest(329,"329_CuriosityOfDwarf","Curiosity Of Dwarf")
CREATED     = State('Start', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)

QUEST.setInitialState(CREATED)

QUEST.addStartNpc(7437)
CREATED.addTalkId(7437)
STARTED.addTalkId(7437)

STARTED.addKillId(83)
STARTED.addKillId(85)

STARTED.addQuestDrop(85,BROKEN_HEARTSTONE,1)
STARTED.addQuestDrop(85,GOLEM_HEARTSTONE,1)

print "importing quests: 329: Curiosity Of Dwarf"
Esempio n. 26
0
     return htmltext

 def onKill (self,npc,st):
     npcId = npc.getNpcId()
     random = st.getRandom(100)
     if random<=CHANCE :
         st.giveItems(LIENRIK_EGG1,1)
     if random<=CHANCE2 :
         st.giveItems(LIENRIK_EGG2,1)
     return

QUEST       = Quest(352,"352_HelpRoodRaiseANewPet","Help Rood Raise A New Pet")
CREATED     = State('Start', QUEST)
STARTED     = State('Started', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(8067)

CREATED.addTalkId(8067)
STARTED.addTalkId(8067)

STARTED.addQuestDrop(8067,LIENRIK_EGG1,1)
STARTED.addQuestDrop(8067,LIENRIK_EGG2,1)

STARTED.addKillId(786)
STARTED.addKillId(787)

print "importing quests: 352: Help Rood Raise A New Pet"


Esempio n. 27
0
         st.giveItems(MONSTER_EYE_LENS,1)
   elif npcId == 70 :
      if n<50 :
         st.giveItems(BASILISK_GIZZARD,1)
         st.playSound("ItemSound.quest_itemget")
   elif npcId == 72 :
      if n<53 :
         st.giveItems(BASILISK_GIZZARD,1)
         st.playSound("ItemSound.quest_itemget")
   return

QUEST       = Quest(328,"328_SenseForBusiness","Sense For Business")
CREATED     = State('Start', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)

QUEST.setInitialState(CREATED)

QUEST.addStartNpc(7436)
CREATED.addTalkId(7436)
STARTED.addTalkId(7436)

for i in [ 0,4,12,13,15,17 ] :
    STARTED.addKillId(55+i)

STARTED.addQuestDrop(55,MONSTER_EYE_CARCASS,1)
STARTED.addQuestDrop(55,MONSTER_EYE_LENS,1)
STARTED.addQuestDrop(70,BASILISK_GIZZARD,1)

print "importing quests: 328: Sense For Business"
Esempio n. 28
0
                    st.set("cond", "12")
                else:
                    st.giveItems(FELIM_TOOTH_ID, 1)
                    st.playSound("ItemSound.quest_itemget")
        return


QUEST = Quest(415, "415_PathToOrcMonk", "Path To Orc Monk")
CREATED = State('Start', QUEST)
STARTING = State('Starting', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7587)

STARTING.addTalkId(7587)

STARTED.addTalkId(7501)
STARTED.addTalkId(7587)
STARTED.addTalkId(7590)
STARTED.addTalkId(7591)

STARTED.addKillId(14)
STARTED.addKillId(17)
STARTED.addKillId(24)
STARTED.addKillId(359)
STARTED.addKillId(415)
STARTED.addKillId(478)
STARTED.addKillId(479)
Esempio n. 29
0
	def onKill(self, npc, st):
		npcId = npc.getNpcId()
		cond=int(st.get("cond"))
		if cond==2:
			pieces=st.getQuestItemsCount(MAP_PIECE)
			if pieces<MAX_COUNT-1:
				st.giveItems(MAP_PIECE,1)
				st.playSound("ItemSound.quest_itemget")
			elif pieces==MAX_COUNT-1:
				st.giveItems(MAP_PIECE,1)
				st.playSound("ItemSound.quest_middle")
				st.set("cond", "3")

QUEST=Quest(43,"43_HelpTheSister","Help The Sister!")
CREATED=State('Start', QUEST)
STARTED=State('Started', QUEST)
COMPLETED=State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(COOPER)

CREATED.addTalkId(COOPER)

STARTED.addTalkId(COOPER)
STARTED.addTalkId(GALLADUCCI)

STARTED.addKillId(SPECTER)
STARTED.addKillId(SORROW_MAIDEN)

print "importing quests: 43: Help The Sister!"
Esempio n. 30
0
                if cond == 25:
                    st.playSound("ItemSound.quest_finish")
                    st.exitQuest(1)
        if npcId == ANGEL_KILLER:
            return "Ha, that was fun! If you wish to find the key, search the corpse"
        return


# Quest class and state definition
QUEST = Quest(QUEST_NUMBER,
              str(QUEST_NUMBER) + "_" + QUEST_NAME, QUEST_DESCRIPTION)

CREATED = State('Start', QUEST)
PROGRESS = State('Progress', QUEST)
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(HANELLIN)
CREATED.addTalkId(HANELLIN)
PROGRESS.addTalkId(HANELLIN)
PROGRESS.addTalkId(ARK_GUARDIANS_CORPSE)
for i in ARK_OWNERS.keys():
    PROGRESS.addTalkId(i)
for i in ARKS.keys():
    PROGRESS.addTalkId(i)

for i in DROPS.keys():
    PROGRESS.addKillId(i)

print str(QUEST_NUMBER) + ": " + QUEST_DESCRIPTION
Esempio n. 31
0
            item = ORC_AMULET
        if st.getRandom(10) > 4:
            st.giveItems(item, 1)
            st.playSound("ItemSound.quest_itemget")
        return


QUEST = Quest(263, "263_KillAllSylphs1", "Kill All Sylphs1")
CREATED = State('Start', QUEST)
STARTING = State('Starting', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7346)

CREATED.addTalkId(7346)
STARTING.addTalkId(7346)
STARTED.addTalkId(7346)
COMPLETED.addTalkId(7346)

STARTED.addKillId(385)
STARTED.addKillId(386)
STARTED.addKillId(387)
STARTED.addKillId(388)

STARTED.addQuestDrop(385, ORC_AMULET, 1)
STARTED.addQuestDrop(386, ORC_NECKLACE, 1)

print "importing quests: 263: Kill All Sylphs1"
Esempio n. 32
0
                    st.playSound("ItemSound.quest_middle")
                    st.set("cond", "3")
        return


QUEST = Quest(106, "106_ForgottenTruth", "Forgotten Truth")
CREATED = State('Start', QUEST)
STARTING = State('Starting', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7358)

CREATED.addTalkId(7358)
STARTING.addTalkId(7358)
COMPLETED.addTalkId(7358)

STARTED.addTalkId(7133)
STARTED.addTalkId(7358)

STARTED.addKillId(5070)

STARTED.addQuestDrop(7133, KARTAS_TRANSLATION, 1)
STARTED.addQuestDrop(7358, ONYX_TALISMAN1, 1)
STARTED.addQuestDrop(7133, ONYX_TALISMAN2, 1)
STARTED.addQuestDrop(5070, ANCIENT_SCROLL, 1)
STARTED.addQuestDrop(5070, ANCIENT_CLAY_TABLET, 1)

print "importing quests: 106: Forgotten Truth"
Esempio n. 33
0
        return htmltext

    def onKill(self, npc, st):

        npcId = npc.getNpcId()
        if npcId == 5016:
            st.set("id", "0")
            if int(st.get("cond")) != 0 and st.getQuestItemsCount(
                    CLAY_TABLET_ID) == 0:
                st.giveItems(CLAY_TABLET_ID, 1)
                st.playSound("ItemSound.quest_middle")
        return


QUEST = Quest(158, "158_SeedOfEvil", "Seed Of Evil")
CREATED = State('Start', QUEST)
STARTING = State('Starting', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7031)

STARTING.addTalkId(7031)

STARTED.addTalkId(7031)

STARTED.addKillId(5016)

STARTED.addQuestDrop(5016, CLAY_TABLET_ID, 1)
Esempio n. 34
0
                st.getPcSpawn().addSpawn(5044)
                st.takeItems(KASHA_PARASITE_ID,count)
        else :
                st.giveItems(KASHA_PARASITE_ID,1)
                st.playSound("ItemSound.quest_itemget")
   elif npcId == 5044 :
      if int(st.get("cond"))==1 and st.getQuestItemsCount(KASHA_CRYSTAL_ID) == 0 :
        st.giveItems(KASHA_CRYSTAL_ID,1)
        st.playSound("ItemSound.quest_middle")
        st.set("cond","2")
   return

QUEST       = Quest(276,"276_HestuiTotem","Hestui Totem")
CREATED     = State('Start', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)

QUEST.setInitialState(CREATED)

QUEST.addStartNpc(7571)
CREATED.addTalkId(7571)
STARTED.addTalkId(7571)

STARTED.addKillId(479)
STARTED.addKillId(5044)

STARTED.addQuestDrop(5044,KASHA_CRYSTAL_ID,1)
STARTED.addQuestDrop(479,KASHA_PARASITE_ID,1)

print "importing quests: 276: Hestui Totem"
Esempio n. 35
0
CREATED     = State('Start', QUEST)
STARTING    = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)


QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7293)

STARTING.addTalkId(7293)

STARTED.addTalkId(7293)
STARTED.addTalkId(7424)
STARTED.addTalkId(7428)

STARTED.addKillId(5032)
STARTED.addKillId(5033)
STARTED.addKillId(5034)
STARTED.addKillId(5035)

STARTED.addQuestDrop(7428,MONEY_OF_SWINDLER_ID,1)
STARTED.addQuestDrop(7424,DAIRY_OF_ALLANA_ID,1)
STARTED.addQuestDrop(5032,LIZARD_CAPTAIN_ORDER_ID,1)
STARTED.addQuestDrop(5033,LIZARD_CAPTAIN_ORDER_ID,1)
STARTED.addQuestDrop(5034,LIZARD_CAPTAIN_ORDER_ID,1)
STARTED.addQuestDrop(7293,CRYSTAL_MEDALLION_ID,1)
STARTED.addQuestDrop(7424,HALF_OF_DAIRY_ID,1)
STARTED.addQuestDrop(5035,TAMATOS_NECKLACE_ID,1)

print "importing quests: 409: Path To Oracle"
Esempio n. 36
0
            st.giveItems(FOX_FUR_ID,1)
            if st.getQuestItemsCount(FOX_FUR_ID) == 10 :
              st.playSound("ItemSound.quest_middle")
            else:
              st.playSound("ItemSound.quest_itemget")
   return

QUEST       = Quest(154,"154_SacrificeToSea","Sacrifice To Sea")
CREATED     = State('Start', QUEST)
STARTING     = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)


QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7312)

STARTING.addTalkId(7312)

STARTED.addTalkId(7051)
STARTED.addTalkId(7055)
STARTED.addTalkId(7312)

STARTED.addKillId(481)
STARTED.addKillId(545)

STARTED.addQuestDrop(481,FOX_FUR_ID,1)
STARTED.addQuestDrop(545,FOX_FUR_ID,1)
STARTED.addQuestDrop(7051,FOX_FUR_YARN_ID,1)
STARTED.addQuestDrop(7055,MAIDEN_DOLL_ID,1)
Esempio n. 37
0
     st.playSound("ItemSound.quest_itemget")
   elif n > 45 :
     st.giveItems(TARANTULA_SPIDER_SILK,1)
     st.playSound("ItemSound.quest_itemget")
   return

QUEST       = Quest(296,"296_SilkOfTarantula","Silk Of Tarantula")
CREATED     = State('Start', QUEST)
STARTING    = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7519)

CREATED.addTalkId(7519)
STARTING.addTalkId(7519)
COMPLETED.addTalkId(7519)

STARTED.addTalkId(7519)
STARTED.addTalkId(7548)

STARTED.addKillId(394)
STARTED.addKillId(403)
STARTED.addKillId(508)

STARTED.addQuestDrop(508,TARANTULA_SPIDER_SILK,1)
STARTED.addQuestDrop(394,TARANTULA_SPINNERETTE,1)

print "importing quests: 296: Silk Of Tarantula"
Esempio n. 38
0
QUEST.addStartNpc(7476)

STARTING.addTalkId(7476)

STARTED.addTalkId(12084)
STARTED.addTalkId(12089)
STARTED.addTalkId(7114)
STARTED.addTalkId(7210)
STARTED.addTalkId(7358)
STARTED.addTalkId(7419)
STARTED.addTalkId(7463)
STARTED.addTalkId(7476)
STARTED.addTalkId(7613)
STARTED.addTalkId(7614)

STARTED.addKillId(144)
STARTED.addKillId(157)
STARTED.addKillId(158)
STARTED.addKillId(192)
STARTED.addKillId(193)
STARTED.addKillId(202)
STARTED.addKillId(230)
STARTED.addKillId(232)
STARTED.addKillId(233)
STARTED.addKillId(234)
STARTED.addKillId(270)
STARTED.addKillId(5079)
STARTED.addKillId(554)
STARTED.addKillId(582)
STARTED.addKillId(600)
Esempio n. 39
0
     if random<=CHANCE :
         st.giveItems(LIZARD_FANG,st.getRandom(5)+1)
         st.playSound("ItemSound.quest_itemget")
     if random<=CHANCE2 :
         st.giveItems(BARREL_OF_LEAGUE,1)
     return

QUEST       = Quest(351,"351_BlackSwan","Black Swan")
CREATED     = State('Start', QUEST)
STARTED     = State('Started', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7916)

CREATED.addTalkId(7916)
STARTED.addTalkId(7916)

STARTED.addTalkId(7969)
STARTED.addQuestDrop(7916,ORDER_OF_GOSTA,1)
STARTED.addQuestDrop(7916,BARREL_OF_LEAGUE,1)
STARTED.addQuestDrop(7916,LIZARD_FANG,1)

STARTED.addKillId(784)
STARTED.addKillId(785)
STARTED.addKillId(1639)
STARTED.addKillId(1640)
STARTED.addKillId(1642)
STARTED.addKillId(1643)

print "importing quests: 351: Black Swan"
Esempio n. 40
0
   count=st.getQuestItemsCount(BONE_FRAGMENT)
   if count<10 and st.getRandom(10)>7 :
      st.giveItems(BONE_FRAGMENT,1)
      if count == 9 :
        st.playSound("ItemSound.quest_middle")
        st.set("cond","2")
      else :
        st.playSound("ItemSound.quest_itemget")
   return

QUEST       = Quest(320,"320_BonesTellFuture","Bones Tell Future")
CREATED     = State('Start', QUEST)
STARTING    = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7359)

CREATED.addTalkId(7359)
STARTING.addTalkId(7359)
STARTED.addTalkId(7359)
COMPLETED.addTalkId(7359)

STARTED.addKillId(517)
STARTED.addKillId(518)

STARTED.addQuestDrop(517,BONE_FRAGMENT,1)

print "importing quests: 320: Bones Tell Future"
Esempio n. 41
0
QUEST.setInitialState(CREATED)

for i in [SIR_KRISTOF_RODEMAI,STATUE_OF_OFFERING] :
    QUEST.addStartNpc(i)
    CREATED.addTalkId(i)

for i in [WITCH_KALIS,WITCH_ATHREA] :
    CREATED.addTalkId(i)
    
for i in [SIR_KRISTOF_RODEMAI,WITCH_KALIS] :
    PART2.addTalkId(i)
    PART3.addTalkId(i)
    PART4.addTalkId(i)


CREATED.addQuestDrop(STATUE_OF_OFFERING,SYMBOL_OF_LOYALTY,1)
PART3.addQuestDrop(WITCH_KALIS,ANTIDOTE_RECIPE,1)
PART4.addQuestDrop(WITCH_KALIS,VOUCHER_OF_FAITH,1)
PART4.addQuestDrop(WITCH_KALIS,POTION_OF_RECOVERY,1)
PART4.addQuestDrop(WITCH_KALIS,ANTIDOTE_RECIPE,1)

for i in range(len(MOBS)) :
    CREATED.addKillId(MOBS[i][0])
    CREATED.addQuestDrop(MOBS[i][0],MOBS[i][1],1)

for i in CHESTS :
    CREATED.addKillId(i)

print "importing quests: 501: "+qd
Esempio n. 42
0
         st.playSound("ItemSound.quest_itemget")
   if npcId in [922,923,924] :
     count = st.getQuestItemsCount(SHINING_GEM)
     if count < 50 :
       st.giveItems(SHINING_GEM,1)
       if count == 49 and st.getQuestItemsCount(SHINING_RED_GEM) == 50 :
         st.playSound("ItemSound.quest_middle")
         st.set("cond","3")
       else :
         st.playSound("ItemSound.quest_itemget")
   return

QUEST       = Quest(298,"298_LizardmensConspiracy","Lizardmen's Conspiracy")
CREATED     = State('Start', QUEST)
STARTED     = State('Started', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7333)

CREATED.addTalkId(7333)
STARTED.addTalkId(7333)
STARTED.addTalkId(7344)

for i in range(922,927) :
    STARTED.addKillId(i)

STARTED.addQuestDrop(925,SHINING_RED_GEM,1)
STARTED.addQuestDrop(924,SHINING_GEM,1)

print "importing quests: 298: Lizardmen's Conspiracy"
Esempio n. 43
0
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7106)

CREATED.addTalkId(7106)
STARTING.addTalkId(7106)
COMPLETED.addTalkId(7106)

STARTED.addTalkId(7064)
STARTED.addTalkId(7106)
STARTED.addTalkId(7526)
STARTED.addTalkId(7684)
STARTED.addTalkId(7715)

STARTED.addKillId(158)
STARTED.addKillId(198)
STARTED.addKillId(211)
STARTED.addKillId(234)
STARTED.addKillId(249)
STARTED.addKillId(270)
STARTED.addKillId(495)
STARTED.addKillId(580)
STARTED.addKillId(80)
STARTED.addKillId(88)

STARTED.addQuestDrop(7064, TERYS_REPORT_ID, 1)
STARTED.addQuestDrop(7106, DUFNERS_LETTER_ID, 1)
STARTED.addQuestDrop(198, MYSTERIOUS_RUNESTONE_ID, 1)
STARTED.addQuestDrop(7064, TERYS_ORDER1_ID, 1)
STARTED.addQuestDrop(211, OL_MAHUM_RUNESTONE_ID, 1)
Esempio n. 44
0
QUEST = Quest(326, "326_VanquishRemnants", "Vanquish Remnants")
CREATED = State('Start', QUEST)
STARTING = State('Starting', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7435)

CREATED.addTalkId(7435)
STARTING.addTalkId(7435)
STARTED.addTalkId(7435)
COMPLETED.addTalkId(7435)

STARTED.addKillId(436)
STARTED.addKillId(437)
STARTED.addKillId(438)
STARTED.addKillId(439)
STARTED.addKillId(53)
STARTED.addKillId(58)
STARTED.addKillId(61)
STARTED.addKillId(63)
STARTED.addKillId(66)

STARTED.addQuestDrop(53, RED_CROSS_BADGE, 1)
STARTED.addQuestDrop(61, BLUE_CROSS_BADGE, 1)
STARTED.addQuestDrop(66, BLACK_CROSS_BADGE, 1)

print "importing quests: 326: Vanquish Remnants"
Esempio n. 45
0
QUEST       = Quest(257,"257_GuardIsBusy1","Guard Is Busy1")
CREATED     = State('Start', QUEST)
STARTING    = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7039)

CREATED.addTalkId(7039)
STARTING.addTalkId(7039)
STARTED.addTalkId(7039)
COMPLETED.addTalkId(7039)

STARTED.addKillId(130)
STARTED.addKillId(131)
STARTED.addKillId(132)
STARTED.addKillId(342)
STARTED.addKillId(343)
STARTED.addKillId(6)
STARTED.addKillId(93)
STARTED.addKillId(96)
STARTED.addKillId(98)

STARTED.addQuestDrop(130,ORC_AMULET,1)
STARTED.addQuestDrop(93,ORC_NECKLACE,1)
STARTED.addQuestDrop(132,WEREWOLF_FANG,1)
STARTED.addQuestDrop(7039,GLUDIO_LORDS_MARK,1)

print "importing quests: 257: Guard Is Busy1"
Esempio n. 46
0
            st.giveItems(CHAPTER_OF_WIND, 1)
            st.playSound("ItemSound.quest_itemget")
        elif chance in range(75, 90) and st.getQuestItemsCount(CHAPTER_OF_EARTH) == 0:
            st.giveItems(CHAPTER_OF_EARTH, 1)
            st.playSound("ItemSound.quest_itemget")
        if (
            st.getQuestItemsCount(CHAPTER_OF_FIRE)
            and st.getQuestItemsCount(CHAPTER_OF_WATER)
            and st.getQuestItemsCount(CHAPTER_OF_WIND)
            and st.getQuestItemsCount(CHAPTER_OF_EARTH)
        ):
            st.playSound("ItemSound.quest_middle")
        return


QUEST = Quest(370, "370_AWisemanSowsSeeds", "A Wiseman Sows Seeds")
CREATED = State("Start", QUEST)
STARTED = State("Started", QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(CASIAN)
CREATED.addTalkId(CASIAN)
STARTED.addTalkId(CASIAN)
for i in MOBS:
    STARTED.addKillId(i)

for i in range(5917, 5921):
    STARTED.addQuestDrop(CASIAN, i, 1)

print "importing quests: 370: A Wiseman Sows Seeds"
Esempio n. 47
0

QUEST = Quest(230, "230_TestOfSummoner", "Test Of Summoner")
CREATED = State('Start', QUEST)
PROGRESS = State('Progress', QUEST)
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(NPC[1])

# adds all npcs, mobs to the progress state
CREATED.addTalkId(NPC[1])
for npcId in NPC:
    PROGRESS.addTalkId(npcId)
for mobId in DROPLIST_LARA.keys():
    PROGRESS.addKillId(mobId)
for mobId in DROPLIST_SUMMON.keys():
    PROGRESS.addKillId(mobId)
    PROGRESS.addAttackId(mobId)
#for summonId in PLAYER_SUMMONS:
#   PROGRESS.addKillId(summonId)

# this will add the player to the list of notified objects in onDeath Part
#addNotifyOfDeath(st.getPlayer())

#This is just to formal add the drops, in case that a player abort this quest.. the items should disappear
STARTED = State('Started', QUEST)

STARTED.addQuestDrop(7063, LARS_LIST1_ID, 1)
STARTED.addQuestDrop(7063, LARS_LIST2_ID, 1)
STARTED.addQuestDrop(7063, LARS_LIST3_ID, 1)
Esempio n. 48
0
       st.playSound("ItemSound.quest_itemget")
     else:
       st.playSound("ItemSound.quest_middle")
       st.set("cond","2")
     st.giveItems(MARAKU_WEREWOLF_HEAD,1)
     if st.getRandom(100) <= 5 :
       st.giveItems(MARAKU_WOLFMEN_TOTEM,1)
   return

QUEST       = Quest(274,"274_AgainstWolfMen","Against Wolf Men")
CREATED     = State('Start', QUEST)
STARTING    = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7569)

CREATED.addTalkId(7569)
STARTING.addTalkId(7569)
STARTED.addTalkId(7569)
COMPLETED.addTalkId(7569)

STARTED.addKillId(363)
STARTED.addKillId(364)

STARTED.addQuestDrop(363,MARAKU_WEREWOLF_HEAD,1)
STARTED.addQuestDrop(364,MARAKU_WEREWOLF_HEAD,1)

print "importing quests: 274: Against Wolf Men"
Esempio n. 49
0
QUEST       = Quest(292,"292_CrushBrigands","Crush Brigands")
CREATED     = State('Start', QUEST)
STARTING    = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7532)

CREATED.addTalkId(7532)
STARTING.addTalkId(7532)
STARTED.addTalkId(7532)
COMPLETED.addTalkId(7532)

STARTED.addTalkId(7533)

STARTED.addKillId(322)
STARTED.addKillId(323)
STARTED.addKillId(324)
STARTED.addKillId(327)
STARTED.addKillId(528)

STARTED.addQuestDrop(327,GOBLIN_NECKLACE,1)
STARTED.addQuestDrop(323,GOBLIN_PENDANT,1)
STARTED.addQuestDrop(528,GOBLIN_LORD_PENDANT,1)
STARTED.addQuestDrop(528,SUSPICIOUS_CONTRACT,1)
STARTED.addQuestDrop(327,SUSPICIOUS_MEMO,1)

print "importing quests: 292: Crush Brigands"
Esempio n. 50
0
            if int(st.get("cond")
                   ) == 1 and st.getQuestItemsCount(SILVER_CRYSTAL_ID) < 50:
                st.giveItems(SILVER_CRYSTAL_ID, 1)
                if st.getQuestItemsCount(SILVER_CRYSTAL_ID) == 50:
                    st.playSound("ItemSound.quest_middle")
                    st.set("cond", "2")
                else:
                    st.playSound("ItemSound.quest_itemget")
        return


QUEST = Quest(431, "431_WeddingMarch", "Wedding March")
CREATED = State('Start', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(8042)

CREATED.addTalkId(8042)
COMPLETED.addTalkId(8042)

STARTED.addTalkId(8042)

STARTED.addKillId(786)
STARTED.addKillId(787)

STARTED.addQuestDrop(786, SILVER_CRYSTAL_ID, 1)
STARTED.addQuestDrop(787, SILVER_CRYSTAL_ID, 1)

print "importing quests: 431: Wedding March"
Esempio n. 51
0
			else:
				if npcId == 5181:								# Imperial Gravekeeper
					st.getPcSpawn().addSpawn(7765,6000000,["Curse of the gods on the one that defiles the property of the empire!"],0)
					setLeaderVar(st,"ImpGraveKeeper","3")
				else:
					st.getPcSpawn().addSpawn(5179)
		return

QUEST		= Quest(503,qn,"Pursuit of Clan Ambition")
CREATED		= State('Start', QUEST)
PROGRESS	= State('Progress', QUEST)
COMPLETED	= State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(NPC[3])

CREATED.addTalkId(NPC[3])

for npcId in NPC:
	PROGRESS.addTalkId(npcId)

for mobId in DROPLIST.keys():
	PROGRESS.addKillId(mobId)

PROGRESS.addAttackId(5181)

for i in range(3839,3848)+range(3866,3870):
    PROGRESS.addQuestDrop(5181,i,1)

print "importing quests: 503: " + qd
Esempio n. 52
0
   count = st.getQuestItemsCount(WOLF_PELT)
   if count<40 :
     st.giveItems(WOLF_PELT,1)
     if count == 39 :
       st.playSound("ItemSound.quest_middle")
       st.set("cond","2")
     else:
       st.playSound("ItemSound.quest_itemget")
   return

QUEST       = Quest(258,"258_BringWolfPelt1","Bring Wolf Pelt1")
CREATED     = State('Start', QUEST)
STARTING    = State('Starting', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7001)

CREATED.addTalkId(7001)
STARTING.addTalkId(7001)
STARTED.addTalkId(7001)
COMPLETED.addTalkId(7001)

STARTED.addKillId(120)
STARTED.addKillId(442)

STARTED.addQuestDrop(120,WOLF_PELT,1)

print "importing quests: 258: Bring Wolf Pelt1"
Esempio n. 53
0
                if st.getQuestItemsCount(
                        HATOSS_ORDER3_ID) and st.getQuestItemsCount(
                            LETTER_TO_ELF_ID) == 0:
                    st.giveItems(LETTER_TO_ELF_ID, 1)
                    st.playSound("ItemSound.quest_itemget")
        return


QUEST = Quest(107, "107_ShowNoMercy", "Show No Mercy")
CREATED = State('Start', QUEST)
STARTING = State('Starting', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7568)

STARTING.addTalkId(7568)

STARTED.addTalkId(7568)
STARTED.addTalkId(7580)

STARTED.addKillId(5041)

STARTED.addQuestDrop(7568, HATOSS_ORDER2_ID, 1)
STARTED.addQuestDrop(5041, LETTER_TO_DARKELF_ID, 1)
STARTED.addQuestDrop(5041, LETTER_TO_HUMAN_ID, 1)
STARTED.addQuestDrop(5041, LETTER_TO_ELF_ID, 1)
STARTED.addQuestDrop(7568, HATOSS_ORDER1_ID, 1)
STARTED.addQuestDrop(7568, HATOSS_ORDER3_ID, 1)
Esempio n. 54
0
   return htmltext

 def onKill (self,npc,st):
   st.giveItems(SUPPLY_ITEM,1)  
   if st.getRandom(10) == 1 :        # % chance is custom
     st.giveItems(SUSPICIOUS_DOCUMENT,1)
     if st.getQuestItemsCount(SUSPICIOUS_DOCUMENT) == 5 :
       st.takeItems(SUSPICIOUS_DOCUMENT,5)
       st.giveItems(RECIPE_OF_SUPPLY,1)
       st.playSound("ItemSound.quest_itemget")
   st.playSound("ItemSound.quest_itemget")
   return

QUEST       = Quest(360,"360_PlunderTheirSupplies","Plunder Their Supplies")
CREATED     = State('Start', QUEST)
STARTED     = State('Started', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(COLEMAN)
CREATED.addTalkId(COLEMAN)
STARTED.addTalkId(COLEMAN)

STARTED.addKillId(TAIK_SEEKER)
STARTED.addKillId(TAIK_LEADER)

STARTED.addQuestDrop(COLEMAN,RECIPE_OF_SUPPLY,1)
STARTED.addQuestDrop(COLEMAN,SUPPLY_ITEM,1)
STARTED.addQuestDrop(COLEMAN,SUSPICIOUS_DOCUMENT,1)

print "importing quests: 360: Plunder Their Supplies"
Esempio n. 55
0
                st.set("cond", "3")
        return


QUEST = Quest(101, "101_SwordOfSolidarityQuest", "Sword Of Solidarity Quest")
CREATED = State('Start', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7008)

CREATED.addTalkId(7008)

STARTED.addTalkId(7008)
STARTED.addTalkId(7283)

STARTED.addKillId(361)
STARTED.addKillId(362)

STARTED.addQuestDrop(7283, ALLTRANS_NOTE_ID, 1)
STARTED.addQuestDrop(7283, HOWTOGO_RUINS_ID, 1)
STARTED.addQuestDrop(362, BROKEN_BLADE_TOP_ID, 1)
STARTED.addQuestDrop(361, BROKEN_BLADE_TOP_ID, 1)
STARTED.addQuestDrop(362, BROKEN_BLADE_BOTTOM_ID, 1)
STARTED.addQuestDrop(361, BROKEN_BLADE_BOTTOM_ID, 1)
STARTED.addQuestDrop(7008, ROIENS_LETTER_ID, 1)
STARTED.addQuestDrop(7008, BROKEN_SWORD_HANDLE_ID, 1)

print "importing quests: 101: Sword Of Solidarity Quest"