예제 #1
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [
         HERB_OF_VANOR, HERB_OF_HARIT, HERB_OF_OEL_MAHUM, SYMBOL_OF_LOYALTY,
         ANTIDOTE_RECIPE, VOUCHER_OF_FAITH, POTION_OF_RECOVERY,
         ANTIDOTE_RECIPE
     ]
     self.athrea = self.chests = 0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [Fire_Heart]
     test = self.loadGlobalQuestVar("616_respawn")
     if test.isdigit():
         remain = long(test) - System.currentTimeMillis()
         if remain <= 0:
             self.addSpawn(31558, 142368, -82512, -6487, 58000, False, 0)
         else:
             self.startQuestTimer("spawn_npc", remain, None, None)
     else:
         self.addSpawn(31558, 142368, -82512, -6487, 58000, False, 0)
예제 #3
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [Ice_Heart]
     test = self.loadGlobalQuestVar("610_respawn")
     if test.isdigit():
         remain = long(test) - System.currentTimeMillis()
         if remain <= 0:
             self.addSpawn(31560, 105452, -36775, -1050, 34000, False, 0)
         else:
             self.startQuestTimer("spawn_npc", remain, None, None)
     else:
         self.addSpawn(31560, 105452, -36775, -1050, 34000, False, 0)
예제 #4
0
 def __init__(self,id,name,descr):
    JQuest.__init__(self,id,name,descr)
    self.isGolemSpawned = 0
    test = self.loadGlobalQuestVar("Chaos_Golem")
    if test.isdigit() :
       remain = long(test) - System.currentTimeMillis()
       if remain <= 0 :
          self.addSpawn(Doctor_Chaos,96471,-111425,-3334,0,False,0)
       else :
          self.startQuestTimer("spawn_npc", remain, None, None)
    else :
       self.addSpawn(Doctor_Chaos,96471,-111425,-3334,0,False,0)
예제 #5
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = range(7193,7195)
     test = self.loadGlobalQuestVar("604_respawn")
     if test.isdigit() :
        remain = long(test) - System.currentTimeMillis()
        if remain <= 0 :
           self.addSpawn(31541,186304,-43744,-3193,0, False, 0)
        else :
           self.startQuestTimer("spawn_npc", remain, None, None)
     else :
        self.addSpawn(31541,186304,-43744,-3193,0, False, 0)
예제 #6
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [FOOD, MEAT]
     test = self.loadGlobalQuestVar("625_respawn")
     if test.isdigit():
         remain = long(test) - System.currentTimeMillis()
         if remain <= 0:
             self.addSpawn(31542, 157136, -121456, -2363, 0, False, 0)
         else:
             self.startQuestTimer("spawn_npc", remain, None, None)
     else:
         self.addSpawn(31542, 157136, -121456, -2363, 0, False, 0)
예제 #7
0
    def __init__(self, id, name, descr):
        # firstly, don't forget to call the parent constructor to prepare the event triggering
        # mechanisms etc.
        JQuest.__init__(self, id, name, descr)

        self.chests = [18265,18266,18267,18268,18269,18270,18271,18272,18273,18274, \
                       18275,18276,18277,18278,18279,18280,18281,18282,18283,18284, \
                       18285,18286,18287,18288,18289,18290,18291,18292,18293,18294, \
                       18295,18296,18297,18298,21671,21694,21717,21740,21763,21786, \
                       21801,21802,21803,21804,21805,21806,21807,21808,21809,21810, \
                       21811,21812,21813,21814,21815,21816,21817,21818,21819,21820, \
                       21821,21822]

        for i in self.chests:
            self.addSkillUseId(i)
            self.addAttackId(i)
예제 #8
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     # All of these are overridden in the subclasses
     self.NPC = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
     self.Items = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
     self.Mob = [0, 1, 2]
     self.classid = 0
     self.prevclass = 0
     self.qn = "SagasSuperclass"
     self.X = [0, 1, 2]
     self.Y = [0, 1, 2]
     self.Z = [0, 1, 2]
     self.Text = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
     self.Spawn_List = []
     #all these are not overridden by the subclasses (either cause they are constant or used only for this script)
     self.CREATED     = State('Start', self)
     self.STARTED     = State('Started', self)
     self.COMPLETED   = State('Completed', self)
예제 #9
0
 def __init__(self, id, name, descr):
     self.MobSpawns = {
         20432: {
             'HP': 100,
             'chance': 100
         },  # Elpy
         20058: {
             'HP': 50,
             'chance': 10
         }  # Ol Mahum Guard
     }
     # made a second dictionary for the texts
     self.MobTexts = {
         20058: [
             "I'll be back", "You are stronger than expected"
         ]  # I don't recall the retail text they say, so I made custom ones to test it
     }
     # finally, don't forget to call the parent constructor to prepare the event triggering
     # mechanisms etc.
     JQuest.__init__(self, id, name, descr)
예제 #10
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [CRYSTAL, OXYDE, CRYPT]
예제 #11
0
 def __init__(self,id,name,descr):
     self.AlwaysSpawn = False
     JQuest.__init__(self,id,name,descr)
예제 #12
0
 def __init__(self,id,name,descr):  
    JQuest.__init__(self,id,name,descr)
    self.questItemIds = [SilverKey,LidiaHairPin,LidiaDiary,SilverSpear] 
예제 #13
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [CARGO, CRYSTAL, MAP, SONIN_CR, ALEX_CR, PANO_CR]
 def __init__(self, id, name, descr):
     self.magma_drake = 21393
     self.magma_drake_b = 21657
     JQuest.__init__(self, id, name, descr)
예제 #15
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [BrokenMetal]
예제 #16
0
 def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)

 def onAdvEvent (self,event,npc,player) :
예제 #17
0
 def __init__(self, id, name, descr):
     self.vlc = []
     self.ptr = []
     self.trx = []
     self.slrn = []
     JQuest.__init__(self, id, name, descr)
예제 #18
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [Flower, Report, Report2, Enigma, Heart, Necklace]
예제 #19
0
 def __init__(self,id,name,descr):
 	JQuest.__init__(self,id,name,descr)
 	self.questItemIds = range(8283,8286)
예제 #20
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = [ANTIQUE_BROOCH,SEALED_BOX,7256,7257,7258,7259,GRAVE_PASS]
예제 #21
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.questItemIds = [Medal]
     #a dynamic dictionary mapping player names to board status and selected numbers - name : [[game],[guesses],bet]
     self.gameStatus = {}
예제 #22
0
 def __init__(self, id, name, descr):
     self.antharasAI = QuestManager.getInstance().getQuest("antharas")
     self.valakasAI = QuestManager.getInstance().getQuest("valakas")
     self.count = 0
     self.count2 = 0
     JQuest.__init__(self, id, name, descr)
예제 #23
0
 def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)

 def onEvent (self,event,st) :
예제 #24
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [Letter, Letter2, Tablet, Report]
예제 #25
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [KASHA_CRYSTAL_ID, KASHA_PARASITE_ID]
예제 #26
0
 def __init__(self,id,name,descr): 
    JQuest.__init__(self,id,name,descr)
    self.katenar = self.harkil = 0
    self.questItemId = [BLACK_ECHO_CRYSTAL, SHINING_MEDALLION]
 def __init__(self, id, name, descr):
     self.turek_orc_supplier = 20498
     self.FirstAttacked = False
     # finally, don't forget to call the parent constructor to prepare the event triggering
     # mechanisms etc.
     JQuest.__init__(self, id, name, descr)
예제 #28
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     # Выросшие
     self.adultSmallSquash = [12775,12776]
     self.adultLargeSquash = [12778,12779]
예제 #29
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
예제 #30
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [10869]