Polymorphing Angels

    Share
    avatar
    Karakan

    Posts : 403
    Join date : 2013-10-04

    Polymorphing Angels

    Post  Karakan on 30th October 2014, 18:48

    newNpc.addDamageHate(killer,0,99999)

    Have fun building 99999 Aggro on mob. Smile
    With that value Tanks are useless against ToI Angel's, since they only attack the "Killer".


    Using 100 , feels way more retail way.

    Code:
        def onKill (self,npc,player,isPet):
            npcId = npc.getNpcId()
            if self.AngelSpawns.has_key(npcId) :
                newNpc = self.addSpawn(self.AngelSpawns[npcId],npc)
                killer = player
                if isPet :
                    killer = player.getPet()
                newNpc.setRunning()
                newNpc.addDamageHate(killer,0,100)
                newNpc.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, killer)
            return

      Current date/time is 28th July 2017, 15:57