Package net.sf.l2j.gameserver.model.actor.instance

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.sendMessage()


          player = (L2PcInstance)target;
        } else {
          return false;
        }
        player.setRecomHave(recVal);
        player.sendMessage("You have been recommended by a GM");
        player.broadcastUserInfo();
      } catch (Exception e)
      {
        activeChar.sendMessage("Usage: //rec number");
      }
View Full Code Here


          player.setClassId(classidval);
          if (!player.isSubClassActive())
            player.setBaseClass(classidval);
          String newclass = player.getTemplate().className;
          player.store();
          player.sendMessage("A GM changed your class to "+newclass);
          player.broadcastUserInfo();
          activeChar.sendMessage(player.getName()+" is a "+newclass);
        }
        activeChar.sendMessage("Usage: //setclass <valid_new_classid>");
      }
View Full Code Here

          player = (L2PcInstance)target;
        } else {
          return false;
        }
        player.setTitle(val);
        player.sendMessage("Your title has been changed by a GM");
        player.broadcastTitleInfo();
      }
      catch (StringIndexOutOfBoundsException e)
      {   //Case of empty character title
        activeChar.sendMessage("You need to specify the new title.");
View Full Code Here

          player = (L2PcInstance)target;
        } else {
          return false;
        }
        player.setName(val);
        player.sendMessage("Your name has been changed by a GM");
        player.broadcastUserInfo();
        player.store();
      }
      catch (StringIndexOutOfBoundsException e)
      {   //Case of empty character name
View Full Code Here

        player = (L2PcInstance)target;
      } else {
        return false;
      }
      player.getAppearance().setSex(player.getAppearance().getSex()? false : true);
      player.sendMessage("Your gender has been changed by a GM");
      player.broadcastUserInfo();
      player.decayMe();
      player.spawnMe(player.getX(),player.getY(),player.getZ());
    }
    else if (command.startsWith("admin_setcolor"))
View Full Code Here

          player = (L2PcInstance)target;
        } else {
          return false;
        }
        player.getAppearance().setNameColor(Integer.decode("0x"+val));
        player.sendMessage("Your name color has been changed by a GM");
        player.broadcastUserInfo();
      }
      catch (StringIndexOutOfBoundsException e)
      {   //Case of empty color
        activeChar.sendMessage("You need to specify the new color.");
View Full Code Here

    int pvpflagval = Integer.parseInt(pvpflag);
    int pvpkillsval = Integer.parseInt(pvpkills);
    int pkkillsval = Integer.parseInt(pkkills);

    //Common character information
    player.sendMessage("Admin has changed your stats." +
        "  HP: " + hpval + "  MP: " + mpval + "  CP: " + cpval +
        "  PvP Flag: " + pvpflagval + " PvP/PK " + pvpkillsval + "/" + pkkillsval);
    player.setCurrentHp(hpval);
    player.setCurrentMp(mpval);
    player.setCurrentCp(cpval);
View Full Code Here

    su.addAttribute(StatusUpdate.CUR_CP, cpval);
    su.addAttribute(StatusUpdate.MAX_CP, player.getMaxCp());
    player.sendPacket(su);

    //Admin information
    player.sendMessage("Changed stats of " + player.getName() + "." +
        "  HP: " + hpval + "  MP: " + mpval + "  CP: " + cpval +
        "  PvP: " + pvpflagval + " / " + pvpkillsval );

    if (Config.DEBUG)
      _log.fine("[GM]"+activeChar.getName()+" changed stats of "+player.getName()+". " +
View Full Code Here

    activeChar.onPlayerEnter();

    if (Olympiad.getInstance().playerInStadia(activeChar))
        {
            activeChar.teleToLocation(MapRegionTable.TeleportWhereType.Town);
            activeChar.sendMessage("You have been teleported to the nearest town due to you being in an Olympiad Stadium");
        }

        if (DimensionalRiftManager.getInstance().checkIfInRiftZone(activeChar.getX(), activeChar.getY(), activeChar.getZ(), false))
        {
            DimensionalRiftManager.getInstance().teleportToWaitingRoom(activeChar);
View Full Code Here

            player.sendPacket(new UserInfo(player));

            // informations
            activeChar.sendMessage("Changed enchantment of " + player.getName() + "'s "
                + itemInstance.getItem().getName() + " from " + curEnchant + " to " + ench + ".");
            player.sendMessage("Admin has changed the enchantment of your "
                + itemInstance.getItem().getName() + " from " + curEnchant + " to " + ench + ".");

            // log
            GMAudit.auditGMAction(activeChar.getName(), "enchant", player.getName(), itemInstance.getItem().getName() + " from " + curEnchant + " to " + ench);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.