Package net.sf.l2j.gameserver.model

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


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

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

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

    group.setCastMode();
  }
View Full Code Here


    catch (Exception e) {
      activeChar.sendMessage("Usage: //mobgroup_nomove <groupId> <on|off>");
      return;
    }

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

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

    if (enabled.equalsIgnoreCase("on") || enabled.equalsIgnoreCase("true"))
      group.setNoMoveMode(true);
    else if (enabled.equalsIgnoreCase("off") || enabled.equalsIgnoreCase("false"))
      group.setNoMoveMode(false);
    else
      activeChar.sendMessage("Incorrect command arguments.");
  }
View Full Code Here

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

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

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

    MobGroup othGroup = MobGroupTable.getInstance().getGroup(othGroupId);

    if (othGroup == null)
    {
      activeChar.sendMessage("Incorrect target group.");
      return;
View Full Code Here

    catch (Exception e) {
      activeChar.sendMessage("Usage: //mobgroup_invul <groupId> <on|off>");
      return;
    }

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

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

    if (enabled.equalsIgnoreCase("on") || enabled.equalsIgnoreCase("true"))
      group.setInvul(true);
    else if (enabled.equalsIgnoreCase("off") || enabled.equalsIgnoreCase("false"))
      group.setInvul(false);
    else
      activeChar.sendMessage("Incorrect command arguments.");
  }
View Full Code Here

    catch (Exception e) {
      activeChar.sendMessage("Usage: //mobgroup_teleport <groupId> [playerName]");
      return;
    }

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

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

    group.teleportGroup(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.