Package com.l2jfrozen.gameserver.ai

Examples of com.l2jfrozen.gameserver.ai.L2ControllableMobAI


    {
      synchronized (this)
      {
        if(_ai == null && _aiBackup == null)
        {
          _ai = new L2ControllableMobAI(new ControllableAIAcessor());
          _aiBackup = (L2ControllableMobAI) _ai;
        }
        else
        {
          _ai = _aiBackup;
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);
        ai = null;
      }
    }
  }
View Full Code Here

      if(mobInst == null)
      {
        continue;
      }

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

      if(mobInst == null)
      {
        continue;
      }

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

      if(mobInst == null)
      {
        continue;
      }

      L2ControllableMobAI ai = (L2ControllableMobAI) mobInst.getAI();
      ai.stop();
      ai = null;
    }
  }
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());
      ai = null;
    }
  }
View Full Code Here

      if(mobInst == null)
      {
        continue;
      }

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

      if(mobInst == null)
      {
        continue;
      }

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

      if(mobInst == null)
      {
        continue;
      }

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

TOP

Related Classes of com.l2jfrozen.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.