Package net.sf.l2j.gameserver.model

Examples of net.sf.l2j.gameserver.model.MobGroup


    catch (Exception e)
    {
      activeChar.sendMessage("Incorrect command arguments.");
      return;
    }
    MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
    if (group == null)
    {
      activeChar.sendMessage("Invalid group specified.");
      return;
    }
    group.returnGroup(activeChar);
  }
View Full Code Here


    catch (Exception e)
    {
      activeChar.sendMessage("Incorrect command arguments.");
      return;
    }
    MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
    if (group == null)
    {
      activeChar.sendMessage("Invalid group specified.");
      return;
    }
    group.setIdleMode();
  }
View Full Code Here

    }
    catch (Exception e) {
      activeChar.sendMessage("Incorrect command arguments.");
      return;
    }
    MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
    if (group == null)
    {
      activeChar.sendMessage("Invalid group specified.");
      return;
    }
    group.setAttackRandom();
  }
View Full Code Here

    catch (Exception e)
    {
      activeChar.sendMessage("Incorrect command arguments.");
      return;
    }
    MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
    if (group == null)
    {
      activeChar.sendMessage("Invalid group specified.");
      return;
    }
    group.setAttackTarget(target);
  }
View Full Code Here

    catch (Exception e)
    {
      activeChar.sendMessage("Incorrect command arguments.");
      return;
    }
    MobGroup group = MobGroupTable.getInstance().getGroup(groupId);
    if (group == null)
    {
      activeChar.sendMessage("Invalid group specified.");
      return;
    }
    group.setFollowMode(target);
  }
View Full Code Here

    {
      activeChar.sendMessage("Invalid NPC ID specified.");
      return;
    }

    MobGroup group = new MobGroup(groupId, template, mobCount);
    MobGroupTable.getInstance().addGroup(groupId, group);

    activeChar.sendMessage("Mob group " + groupId + " created.");
  }
View Full Code Here

    catch (Exception e) {
      activeChar.sendMessage("Usage: //mobgroup_remove <groupId>");
      return;
    }

    MobGroup group = MobGroupTable.getInstance().getGroup(groupId);

    if (group == null)
    {
      activeChar.sendMessage("Invalid group specified.");
      return;
    }

    doAnimation(activeChar);
    group.unspawnGroup();

    if (MobGroupTable.getInstance().removeGroup(groupId))
      activeChar.sendMessage("Mob group " + groupId + " unspawned and removed.");
  }
View Full Code Here

    catch (Exception e) {
      activeChar.sendMessage("Usage: //mobgroup_spawn <group> [ x y z ]");
      return;
    }

    MobGroup group = MobGroupTable.getInstance().getGroup(groupId);

    if (group == null)
    {
      activeChar.sendMessage("Invalid group specified.");
      return;
    }

    doAnimation(activeChar);

    if (topos)
      group.spawnGroup(posx, posy, posz);
    else
      group.spawnGroup(activeChar);

    activeChar.sendMessage("Mob group " + groupId + " spawned.");
  }
View Full Code Here

    catch (Exception e) {
      activeChar.sendMessage("Usage: //mobgroup_unspawn <groupId>");
      return;
    }

    MobGroup group = MobGroupTable.getInstance().getGroup(groupId);

    if (group == null)
    {
      activeChar.sendMessage("Invalid group specified.");
      return;
    }

    doAnimation(activeChar);
    group.unspawnGroup();

    activeChar.sendMessage("Mob group " + groupId + " unspawned.");
  }
View Full Code Here

    catch (Exception e) {
      activeChar.sendMessage("Usage: //mobgroup_kill <groupId>");
      return;
    }

    MobGroup group = MobGroupTable.getInstance().getGroup(groupId);

    if (group == null)
    {
      activeChar.sendMessage("Invalid group specified.");
      return;
    }

    doAnimation(activeChar);
    group.killGroup(activeChar);
  }
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.model.MobGroup

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.