Package be.demmel.jgws.packets.gameserver.outbound

Examples of be.demmel.jgws.packets.gameserver.outbound.P081_GeneralChatMessage


      String prefix = character.getChatPrefix();
      byte chatColor = character.getChatColor();
      // MapData map = GameServer.getMap((int) character.getMapID()); //FIXME: only players on the same map should qualify

      for (Channel channel : channels) {
        P081_GeneralChatMessage generalChatMessage = new P081_GeneralChatMessage();
        generalChatMessage.setMessage("Ĉć" + prefix + realMessage + '\u0001');
        try {
          channel.write(generalChatMessage);
        } catch (Exception e) {
          // TODO: what to do in this case? review the exceptions possible?
        }
View Full Code Here


            String[] welcomeMessage = GameServer.WELCOME_MESSAGE;
            // Send each line to the client
            for (String welcomeLine : welcomeMessage) {
              //List<Packet> packets = new ArrayList<>();
             
                P081_GeneralChatMessage generalChatMessage = new P081_GeneralChatMessage();
                //TODO: the prefix and suffix is always the same?
                generalChatMessage.setMessage("Ĉć" + welcomeLine + '\u0001');
                this.newPlayerData.write(generalChatMessage);

                P082_GeneralChatNoOwner generalChatOwner = new P082_GeneralChatNoOwner();
                generalChatOwner.setUnknown2(ChatColor.DARKORANGE_DARKORANGE.getValue());
                this.newPlayerData.write(generalChatOwner);
View Full Code Here

TOP

Related Classes of be.demmel.jgws.packets.gameserver.outbound.P081_GeneralChatMessage

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.