def __init__(self, id, name, descr): JQuest.__init__(self, id, name, descr) self.questItemIds = [ORC_AMULET, ORC_NECKLACE]
def __init__(self,id,name,descr) : JQuest.__init__(self,id,name,descr) def onAdvEvent (self,event,npc,player) :
def __init__(self, id, name, descr): JQuest.__init__(self, id, name, descr)
def __init__(self, id, name, descr): JQuest.__init__(self, id, name, descr) self.questItemIds = [GIANT_SPIDER_LEG]
def __init__(self, id, name, descr): JQuest.__init__(self, id, name, descr) self.questItemIds = [ Flower, SilverCross, BrokenSilverCross, Letter, Hairpin, Totem ]
def __init__(self, id, name, descr): self.arimanes_of_destruction = 21387 self.arimanes_of_destruction_b = 21655 JQuest.__init__(self, id, name, descr)
def __init__(self, id, name, descr): JQuest.__init__(self, id, name, descr) self.questItemIds = [BONES_OF_A_PLAINS_DINOSAUR]
def __init__(self, id, name, descr): self.isSpawned = False JQuest.__init__(self, id, name, descr)
def __init__(self, id, name, descr): JQuest.__init__(self, id, name, descr) self.questItemIds = [ HIDDEN_VEIN_MAP, CHRYSOLITE_ORE, TORN_MAP_FRAGMENT ]
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) self.questItemIds = [WATER_BOTTLE,HOLY_WATER_BOTTLE,SCRIPTURES]
def __init__(self,id,name,descr): self.turek_orc_footman = 20499 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)
def __init__(self, id, name, descr): JQuest.__init__(self, id, name, descr) self.questItemIds = [Certificate, MetalReport, Accessory]
def __init__(self, id, name, descr): self.delu_lizardman_special_agent = 21105 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)
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]
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) # DEFINE MEMBER VARIABLES FOR THIS AI # all mobs that can eat... self.tamedBeasts = range(16013, 16019) self.feedableBeasts = range(21451, 21508) + range( 21824, 21830) + self.tamedBeasts # all mobs that grow by eating # mobId: current_growth_level, {food: [list of possible mobs[possible sublist of tamed pets]]}, chance of growth self.growthCapableMobs = { # Alpen Kookabura 21451: [ 0, { GOLDEN_SPICE: [21452, 21453, 21454, 21455], CRYSTAL_SPICE: [21456, 21457, 21458, 21459] }, 100 ], 21452: [1, { GOLDEN_SPICE: [21460, 21462], CRYSTAL_SPICE: [] }, 40], 21453: [1, { GOLDEN_SPICE: [21461, 21463], CRYSTAL_SPICE: [] }, 40], 21454: [1, { GOLDEN_SPICE: [21460, 21462], CRYSTAL_SPICE: [] }, 40], 21455: [1, { GOLDEN_SPICE: [21461, 21463], CRYSTAL_SPICE: [] }, 40], 21456: [1, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [21464, 21466] }, 40], 21457: [1, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [21465, 21467] }, 40], 21458: [1, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [21464, 21466] }, 40], 21459: [1, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [21465, 21467] }, 40], 21460: [ 2, { GOLDEN_SPICE: [[21468, 21824], [16017, 16018]], CRYSTAL_SPICE: [] }, 25 ], 21461: [ 2, { GOLDEN_SPICE: [[21469, 21825], [16017, 16018]], CRYSTAL_SPICE: [] }, 25 ], 21462: [ 2, { GOLDEN_SPICE: [[21468, 21824], [16017, 16018]], CRYSTAL_SPICE: [] }, 25 ], 21463: [ 2, { GOLDEN_SPICE: [[21469, 21825], [16017, 16018]], CRYSTAL_SPICE: [] }, 25 ], 21464: [ 2, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [[21468, 21824], [16017, 16018]] }, 25 ], 21465: [ 2, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [[21469, 21825], [16017, 16018]] }, 25 ], 21466: [ 2, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [[21468, 21824], [16017, 16018]] }, 25 ], 21467: [ 2, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [[21469, 21825], [16017, 16018]] }, 25 ], # Alpen Buffalo 21470: [ 0, { GOLDEN_SPICE: [21471, 21472, 21473, 21474], CRYSTAL_SPICE: [21475, 21476, 21477, 21478] }, 100 ], 21471: [1, { GOLDEN_SPICE: [21479, 21481], CRYSTAL_SPICE: [] }, 40], 21472: [1, { GOLDEN_SPICE: [21481, 21482], CRYSTAL_SPICE: [] }, 40], 21473: [1, { GOLDEN_SPICE: [21479, 21481], CRYSTAL_SPICE: [] }, 40], 21474: [1, { GOLDEN_SPICE: [21480, 21482], CRYSTAL_SPICE: [] }, 40], 21475: [1, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [21483, 21485] }, 40], 21476: [1, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [21484, 21486] }, 40], 21477: [1, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [21483, 21485] }, 40], 21478: [1, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [21484, 21486] }, 40], 21479: [ 2, { GOLDEN_SPICE: [[21487, 21826], [16013, 16014]], CRYSTAL_SPICE: [] }, 25 ], 21480: [ 2, { GOLDEN_SPICE: [[21488, 21827], [16013, 16014]], CRYSTAL_SPICE: [] }, 25 ], 21481: [ 2, { GOLDEN_SPICE: [[21487, 21826], [16013, 16014]], CRYSTAL_SPICE: [] }, 25 ], 21482: [ 2, { GOLDEN_SPICE: [[21488, 21827], [16013, 16014]], CRYSTAL_SPICE: [] }, 25 ], 21483: [ 2, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [[21487, 21826], [16013, 16014]] }, 25 ], 21484: [ 2, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [[21488, 21827], [16013, 16014]] }, 25 ], 21485: [ 2, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [[21487, 21826], [16013, 16014]] }, 25 ], 21486: [ 2, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [[21488, 21827], [16013, 16014]] }, 25 ], # Alpen Cougar 21489: [ 0, { GOLDEN_SPICE: [21490, 21491, 21492, 21493], CRYSTAL_SPICE: [21494, 21495, 21496, 21497] }, 100 ], 21490: [1, { GOLDEN_SPICE: [21498, 21500], CRYSTAL_SPICE: [] }, 40], 21491: [1, { GOLDEN_SPICE: [21499, 21501], CRYSTAL_SPICE: [] }, 40], 21492: [1, { GOLDEN_SPICE: [21498, 21500], CRYSTAL_SPICE: [] }, 40], 21493: [1, { GOLDEN_SPICE: [21499, 21501], CRYSTAL_SPICE: [] }, 40], 21494: [1, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [21502, 21504] }, 40], 21495: [1, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [21503, 21505] }, 40], 21496: [1, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [21502, 21504] }, 40], 21497: [1, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [21503, 21505] }, 40], 21498: [ 2, { GOLDEN_SPICE: [[21506, 21828], [16015, 16016]], CRYSTAL_SPICE: [] }, 25 ], 21499: [ 2, { GOLDEN_SPICE: [[21507, 21829], [16015, 16016]], CRYSTAL_SPICE: [] }, 25 ], 21500: [ 2, { GOLDEN_SPICE: [[21506, 21828], [16015, 16016]], CRYSTAL_SPICE: [] }, 25 ], 21501: [ 2, { GOLDEN_SPICE: [[21507, 21829], [16015, 16016]], CRYSTAL_SPICE: [] }, 25 ], 21502: [ 2, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [[21506, 21828], [16015, 16016]] }, 25 ], 21503: [ 2, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [[21507, 21829], [16015, 16016]] }, 25 ], 21504: [ 2, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [[21506, 21828], [16015, 16016]] }, 25 ], 21505: [ 2, { GOLDEN_SPICE: [], CRYSTAL_SPICE: [[21507, 21829], [16015, 16016]] }, 25 ] } self.madCowPolymorph = { 21824: 21468, 21825: 21469, 21826: 21487, 21827: 21488, 21828: 21506, 21829: 21507 } self.Text = [ [ "What did you just do to me?", "You want to tame me, huh?", "Do not give me this. Perhaps you will be in danger.", "Bah bah. What is this unpalatable thing?", "My belly has been complaining. This hit the spot.", "What is this? Can I eat it?", "You don't need to worry about me.", "Delicious food, thanks.", "I am starting to like you!", "Gulp" ], [ "I do not think you have given up on the idea of taming me.", "That is just food to me. Perhaps I can eat your hand too.", "Will eating this make me fat? Ha ha", "Why do you always feed me?", "Do not trust me. I may betray you" ], [ "Destroy", "Look what you have done!", "Strange feeling...! Evil intentions grow in my heart...!", "It is happenning!", "This is sad...Good is sad...!" ] ] self.feedInfo = { } # : feedInfo[objectId of mob] = objectId of player feeding it for i in self.feedableBeasts: self.addSkillUseId(i) self.addKillId(i)
def __init__(self, id, name, descr): self.timak_orc_troop_leader = 20767 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)
def __init__(self, id, name, descr): self.necromancer_of_destruction = 21384 self.necromancer_of_destruction_b = 21654 JQuest.__init__(self, id, name, descr)
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onTalk (self,npc,player):
def __init__(self, id, name, descr): self.assassin_beetle = 21381 self.assassin_beetle_b = 21653 JQuest.__init__(self, id, name, descr)
def __init__(self, id, name, descr): JQuest.__init__(self, id, name, descr) self.questItemIds = range(3692, 3811) + [3471]
def __init__(self, id, name, descr): JQuest.__init__(self, id, name, descr) self.questItemIds = [BLACK_SOULSTONE, RED_SOULSTONE]
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)
def __init__(self, id, name, descr): self.ol_mahum_general = 20438 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)
def __init__(self, id, name, descr): JQuest.__init__(self, id, name, descr) self.isSpawned = 0 self.questItemIds = [ Starstone, Detector, Detector2, Letter, Starstone2 ]
def __init__(self, id, name, descr): JQuest.__init__(self, id, name, descr) self.questItemIds = [FRAGMENT, TOOL, REPORT, REPORT2]
def __init__(self, id, name, descr): JQuest.__init__(self, id, name, descr) self.questItemIds = [FRAGMENT]
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onEvent (self,event,st) :
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) self.questItemIds = [CURSED_DOLL]
def __init__(self, id, name, descr): JQuest.__init__(self, id, name, descr) self.questItemIds = [10866]
def __init__(self, id, name, descr): JQuest.__init__(self, id, name, descr) self.isAngelSpawned = 0 self.questItemIds = [ SEALED_PATH, PATH, EMPTY_CRYSTAL, MEDICINE, MESSAGE ]