Beispiel #1
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.Teleport = []
     self.Benomm = []
     castleOwner = CastleManager.getInstance().getCastleById(8).getOwnerId()
     siegeDate = CastleManager.getInstance().getCastleById(
         8).getSiegeDate().getTimeInMillis()
     benomTeleporterSpawn = (siegeDate -
                             System.currentTimeMillis()) - 86400000
     benomRaidRoomSpawn = (siegeDate -
                           System.currentTimeMillis()) - 86400000
     benomRaidSiegeSpawn = (siegeDate - System.currentTimeMillis())
     if benomTeleporterSpawn < 0:
         benomTeleporterSpawn = 1
     if benomRaidSiegeSpawn < 0:
         benomRaidSiegeSpawn = 1
     self.BenomWalkRouteStep = 0
     self.BenomIsSpawned = 0
     if castleOwner > 0:
         if benomTeleporterSpawn >= 1:
             self.startQuestTimer("BenomTeleSpawn", benomTeleporterSpawn,
                                  None, None)
         if (siegeDate - System.currentTimeMillis()) > 0:
             self.startQuestTimer("BenomRaidRoomSpawn", benomRaidRoomSpawn,
                                  None, None)
         self.startQuestTimer("BenomRaidSiegeSpawn", benomRaidSiegeSpawn,
                              None, None)
     self.Benom = Benom
Beispiel #2
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, 40000)
       else :
          self.startQuestTimer("spawn_npc", remain, None, None)
    else:
       self.addSpawn(31542,157136,-121456,-2363,0, False, 40000)
Beispiel #3
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, 57000)
         else:
             self.startQuestTimer("spawn_npc", remain, None, None)
     else:
         self.addSpawn(31541, 186304, -43744, -3193, 0, False, 57000)
Beispiel #4
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)
Beispiel #5
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)
Beispiel #6
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)
Beispiel #7
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [Metal]
Beispiel #8
0
 def __init__(self,id,name,descr):
     self.karul_bugbear = 20600
     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)
Beispiel #9
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     # list to hold the player and pet instance of the player in the duel and an "isFoul" flag, indexed by npcId
     self.inProgressDuelMobs = {}  # [player, player.getPet(), True/False]
Beispiel #10
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     # Выросшие
     self.adultSmallSquash = [12775, 12776]
     self.adultLargeSquash = [12778, 12779]
Beispiel #11
0
 def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)

 def onTalk (Self,npc,player):
Beispiel #12
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [
         DAIMONS_EYES, HESTIAS_FAIRY_STONE, NUCLEUS_OF_LESSER_GOLEM,
         FALSTON_FANG, SHAIDS_TALON
     ]
Beispiel #13
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [Flower, Report, Report2, Enigma, Heart, Necklace]
Beispiel #14
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.priest = ""
     self.tifaren = 0
     self.soul = 0
     self.well = 0
Beispiel #15
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [CURSED_DOLL]
Beispiel #16
0
 def __init__(self, id, name, descr):
     self.AlwaysSpawn = False
     # finally, don't forget to call the parent constructor to prepare the event triggering
     # mechanisms etc.
     JQuest.__init__(self, id, name, descr)
Beispiel #17
0
 def __init__(self,id,name,descr):
    JQuest.__init__(self,id,name,descr)
    self.questItemIds = [DINOSAUR_FANG_NECKLACE]
 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)
Beispiel #19
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.ImpGraveKepperStat = 1
Beispiel #20
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.isGolemSpawned = 0
     self.isChaosSpawned = 1
Beispiel #21
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]
Beispiel #22
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [WATER_BOTTLE, HOLY_WATER_BOTTLE, SCRIPTURES]
Beispiel #23
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.Party = []
     self.questItemIds = [FRAGMENT]
Beispiel #24
0
 def __init__(self, id, name, descr):
     self.delu_lizardman_special_commander = 21107
     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)
Beispiel #25
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [EVIL_SPIRIT, BROKEN_CRYSTAL]
Beispiel #26
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.questItemIds = [Letter, Letter2, Tablet, Report]
Beispiel #27
0
 def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)

 def onEvent (self,event,st):
Beispiel #28
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
     ]
Beispiel #29
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
Beispiel #30
0
 def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)

 def onAdvEvent (self, event, npc, player) :