예제 #1
0
 def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)

 def onEvent (self,event,st) :
예제 #2
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
예제 #3
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.ImpGraveKepperStat = 1
예제 #4
0
 def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)

 def onAdvEvent (self,event,npc,player) :
예제 #5
0
파일: core.py 프로젝트: gryphonjp/l2jbrasil
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     self.Core = 29006
     self.Minions = [29007,29008,29011]
     self.FirstAttacked = False
예제 #6
0
 def __init__(self, id, name, descr): JQuest.__init__(self, id, name, descr)

 def onTalk (Self, npc, player):
예제 #7
0
 def __init__(self,id,name,descr):
     JQuest.__init__(self,id,name,descr)
     # a hashtable tracking this quest's (chest) spawns, indexed by leaderST
     self.spawn_tracker = {}    
예제 #8
0
 def __init__(self, id, name, descr):
     JQuest.__init__(self, id, name, descr)
     self.priest = ""
     self.tifaren = 0
     self.soul = 0
     self.well = 0
예제 #9
0
  def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)

  def init_LoadGlobalData(self) :
예제 #10
0
 def __init__(self, id, name, descr):
     self.antharas = 29019
     JQuest.__init__(self, id, name, descr)
예제 #11
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)
        # 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)