Package net.sf.l2j.gameserver.serverpackets

Examples of net.sf.l2j.gameserver.serverpackets.SystemMessage.addString()


      broadcastToPartyMembers(target, msg);
    }
    else
    {
      SystemMessage msg = new SystemMessage(SystemMessageId.S1_PICKED_UP_S2);
      msg.addString(target.getName());
      msg.addItemName(item.getItemId());
      broadcastToPartyMembers(target, msg);
    }
  }
View Full Code Here


    // Send messages to other aprty members about reward
    if (item.getCount() > 1)
    {
      SystemMessage msg = spoil ?  new SystemMessage(SystemMessageId.S1_SWEEPED_UP_S2_S3)
                                : new SystemMessage(SystemMessageId.S1_PICKED_UP_S2_S3);
      msg.addString(looter.getName());
      msg.addItemName(item.getItemId());
      msg.addNumber(item.getCount());
      broadcastToPartyMembers(looter, msg);
    }
    else
View Full Code Here

    }
    else
    {
      SystemMessage msg = spoil ?  new SystemMessage(SystemMessageId.S1_SWEEPED_UP_S2)
                                : new SystemMessage(SystemMessageId.S1_PICKED_UP_S2);
      msg.addString(looter.getName());
      msg.addItemName(item.getItemId());
      broadcastToPartyMembers(looter, msg);
    }
  }
View Full Code Here

        if (friend == null)
        {
            //  (Currently: Offline)
            sm = new SystemMessage(SystemMessageId.S1_OFFLINE);
            sm.addString(friendName);
        }
        else
        {
            //(Currently: Online)
            sm = new SystemMessage(SystemMessageId.S1_ONLINE);
View Full Code Here

        }
        else
        {
            //(Currently: Online)
            sm = new SystemMessage(SystemMessageId.S1_ONLINE);
            sm.addString(friendName);
        }

        activeChar.sendPacket(sm);
      }
View Full Code Here

            {
                activeOwner.removeAutoSoulShot(itemId);
                activeOwner.sendPacket(new ExAutoSoulShot(itemId, 0));

                SystemMessage sm = new SystemMessage(SystemMessageId.AUTO_USE_OF_S1_CANCELLED);
                sm.addString(item.getItem().getName());
                activeOwner.sendPacket(sm);
                return;
            }

            activeOwner.sendPacket(new SystemMessage(SystemMessageId.NOT_ENOUGH_SOULSHOTS));
View Full Code Here

        L2PcInstance plyr = L2World.getInstance().getPlayer(player);
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
        if (plyr != null)
        {
          plyr.logout();
          sm.addString("You kicked " + plyr.getName() + " from the game.");
        }
        else
          sm.addString("Player " + player + " was not found in the game.");
        activeChar.sendPacket(sm);
      }
View Full Code Here

        {
          plyr.logout();
          sm.addString("You kicked " + plyr.getName() + " from the game.");
        }
        else
          sm.addString("Player " + player + " was not found in the game.");
        activeChar.sendPacket(sm);
      }
      showMainPage(activeChar);
    }
    else if (command.startsWith("admin_ban_menu"))
View Full Code Here

        String acc_name = result.getString(1);
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
        if(acc_name.length() > 0)
        {
          LoginServerThread.getInstance().sendAccessLevel(acc_name, banLevel);
          sm.addString("Account Access Level for "+player+" set to "+banLevel+".");
        }
        else
          sm.addString("Couldn't find player: "+player+".");
        activeChar.sendPacket(sm);
      }
View Full Code Here

        {
          LoginServerThread.getInstance().sendAccessLevel(acc_name, banLevel);
          sm.addString("Account Access Level for "+player+" set to "+banLevel+".");
        }
        else
          sm.addString("Couldn't find player: "+player+".");
        activeChar.sendPacket(sm);
      }
      else
        activeChar.sendMessage("Specified player name didn't lead to a valid account.");
      statement.close();
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.