Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.Summon.broadcastCharInfo()


            }
            if (activeChar.isInStoreMode())
            {
              activeChar.setPrivateStoreType(Player.STORE_PRIVATE_NONE);
              activeChar.standUp();
              activeChar.broadcastCharInfo();
            }
            else if (!TradeHelper.checksIfCanOpenStore(activeChar, Player.STORE_PRIVATE_MANUFACTURE))
            {
              activeChar.sendActionFailed();
              return;
View Full Code Here


          case 68:
            if (activeChar.isClanAirShipDriver())
            {
              ClanAirShip boat = (ClanAirShip) activeChar.getBoat();
              boat.setDriver(null);
              activeChar.broadcastCharInfo();
            }
            break;
          case 69:
            if (activeChar.isClanAirShipDriver() && activeChar.getBoat().isDocked())
            {
View Full Code Here

      curEnchant = itemInstance.getEnchantLevel();
      player.getInventory().unEquipItem(itemInstance);
      itemInstance.setEnchantLevel(ench);
      player.getInventory().equipItem(itemInstance);
      player.sendPacket(new InventoryUpdate().addModifiedItem(itemInstance));
      player.broadcastCharInfo();
      activeChar.sendMessage("Changed enchantment of " + player.getName() + "'s " + itemInstance.getName() + " from " + curEnchant + " to " + ench + ".");
      player.sendMessage("Admin has changed the enchantment of your " + itemInstance.getName() + " from " + curEnchant + " to " + ench + ".");
    }
  }
 
View Full Code Here

            return false;
          }
          Player player = target.getPlayer();
          player.setClassId(id, true, false);
          player.sendMessage("Your class has been changed by a GM");
          player.broadcastCharInfo();
          return true;
        }
        catch (StringIndexOutOfBoundsException e)
        {
          activeChar.sendMessage("You need to specify the new class id.");
View Full Code Here

      {
        return false;
      }
      player.setRecomHave(player.getRecomHave() + 1);
      player.sendMessage("You have been recommended by a GM");
      player.broadcastCharInfo();
    }
    else if (fullString.startsWith("admin_rec"))
    {
      try
      {
View Full Code Here

        {
          return false;
        }
        player.setRecomHave(player.getRecomHave() + recVal);
        player.sendMessage("You have been recommended by a GM");
        player.broadcastCharInfo();
      }
      catch (NumberFormatException e)
      {
        activeChar.sendMessage("Command format is //rec <number>");
      }
View Full Code Here

    if (vals[5] != null)
    {
      player.setClassId(vals[5], true, false);
    }
    editCharacter(activeChar);
    player.broadcastCharInfo();
    player.decayMe();
    player.spawnMe(activeChar.getLoc());
  }
 
  /**
 
View Full Code Here

      buyer.setBuyList(buyList);
      buyer.saveTradeList();
      buyer.setPrivateStoreType(Player.STORE_PRIVATE_BUY);
      buyer.broadcastPacket(new PrivateStoreMsgBuy(buyer));
      buyer.sitDown(null);
      buyer.broadcastCharInfo();
    }
    buyer.sendActionFailed();
  }
}
View Full Code Here

    }
    else if (targ.isInStoreMode())
    {
      targ.setPrivateStoreType(Player.STORE_PRIVATE_NONE);
      targ.standUp();
      targ.broadcastCharInfo();
      targ.getBuyList().clear();
    }
    if (Config.BANCHAT_ANNOUNCE_FOR_ALL_WORLD)
    {
      Announcements.getInstance().announceToAll(msg);
View Full Code Here

      case 5248:
        player.setHairStyle(6);
        break;
    }
    player.broadcastPacket(new MagicSkillUse(player, player, 2003, 1, 1, 0));
    player.broadcastCharInfo();
    return true;
  }
 
  /**
   * Method getItemIds.
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.