Package net.sf.l2j.gameserver.ai

Examples of net.sf.l2j.gameserver.ai.L2ControllableMobAI


        for (L2ControllableMobInstance mobInst : getMobs())
        {
          if (mobInst == null) continue;

            L2ControllableMobAI ai = (L2ControllableMobAI)mobInst.getAI();
            ai.setNotMoving(enabled);
        }
    }
View Full Code Here


        for (L2ControllableMobInstance mobInst : getMobs())
        {
          if (mobInst == null) continue;

            L2ControllableMobAI ai = (L2ControllableMobAI)mobInst.getAI();
            ai.forceAttackGroup(otherGrp);
            ai.setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
        }
    }
View Full Code Here

    }

    public String getStatus()
    {
        try {
            L2ControllableMobAI mobGroupAI = (L2ControllableMobAI)getMobs().get(0).getAI();

            switch (mobGroupAI.getAlternateAI())
            {
                case L2ControllableMobAI.AI_NORMAL:
                    return "Idle";
                case L2ControllableMobAI.AI_FORCEATTACK:
                    return "Force Attacking";
View Full Code Here

            {
                int x = player.getX() + Rnd.nextInt(50);
                int y = player.getY() + Rnd.nextInt(50);

                mobInst.teleToLocation(x, y, player.getZ(), true);
                L2ControllableMobAI ai = (L2ControllableMobAI)mobInst.getAI();
                ai.follow(player);
            }
        }
    }
View Full Code Here

        for (L2ControllableMobInstance mobInst : getMobs())
        {
          if (mobInst == null) continue;

            L2ControllableMobAI ai = (L2ControllableMobAI)mobInst.getAI();
            ai.setAlternateAI(L2ControllableMobAI.AI_NORMAL);
            ai.setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
        }
    }
View Full Code Here

        for (L2ControllableMobInstance mobInst : getMobs())
        {
          if (mobInst == null) continue;

            L2ControllableMobAI ai = (L2ControllableMobAI)mobInst.getAI();
            ai.forceAttack(target);
        }
    }
View Full Code Here

        for (L2ControllableMobInstance mobInst : getMobs())
        {
          if (mobInst == null) continue;

            L2ControllableMobAI ai = (L2ControllableMobAI)mobInst.getAI();
            ai.stop();
        }
    }
View Full Code Here

            int signX = (Rnd.nextInt(2) == 0) ? -1 : 1;
            int signY = (Rnd.nextInt(2) == 0) ? -1 : 1;
            int randX = Rnd.nextInt(MobGroupTable.RANDOM_RANGE);
            int randY = Rnd.nextInt(MobGroupTable.RANDOM_RANGE);

            L2ControllableMobAI ai = (L2ControllableMobAI)mobInst.getAI();
            ai.move(activeChar.getX() + signX * randX, activeChar.getY() + signY * randY, activeChar.getZ());
        }
    }
View Full Code Here

        for (L2ControllableMobInstance mobInst : getMobs())
        {
          if (mobInst == null) continue;

            L2ControllableMobAI ai = (L2ControllableMobAI)mobInst.getAI();
            ai.follow(character);
        }
    }
View Full Code Here

        for (L2ControllableMobInstance mobInst : getMobs())
        {
          if (mobInst == null) continue;

            L2ControllableMobAI ai = (L2ControllableMobAI)mobInst.getAI();
            ai.setAlternateAI(L2ControllableMobAI.AI_CAST);
        }
    }
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.ai.L2ControllableMobAI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.