Package net.bnubot.util

Examples of net.bnubot.util.BNetInputStream.readDWord()


    BNLSConnection bnls = BNLSManager.getWardenConnection();
    int cookie_out = c.getConnectionSettings().botNum;
    BNetInputStream is = bnls.sendWarden1(cookie_out, payload);

    byte u = is.readByte();
    int cookie = is.readDWord();
    byte result = is.readByte();
    short dataLen = is.readWord();
    byte[] data = new byte[dataLen];
    is.read(data);
View Full Code Here


           * 0x02 : Silent
           * 0x04 : Admin
           */

          String channel = is.readNTString();
          int flags = is.readDWord();
          String motd = is.readNTString();

          dispatchJoinedChannel(channel, flags);
          dispatchRecieveInfo(motd);
          break;
View Full Code Here

           * 0x08 : NetOp
           */
          int numUsers = is.readByte();
          for(int i = 0; i < numUsers; i++) {
            String username = is.readNTString();
            int flags = is.readDWord();

            dispatchChannelUser(findCreateBNUser(username, flags));
          }
          break;
        }
View Full Code Here

        case PKT_USERUPDATE: {
          /* (CString)  Username
           * (UInt32)  Flags
           */
          String username = is.readNTString();
          int flags = is.readDWord();

          dispatchChannelUser(findCreateBNUser(username, flags));
          break;
        }

View Full Code Here

        case PKT_CHANNELJOIN: {
          /* (CString)  Username
           * (UInt32)  Flags
           */
          String username = is.readNTString();
          int flags = is.readDWord();

          dispatchChannelJoin(findCreateBNUser(username, flags));
          break;
        }

View Full Code Here

          break;
        }

        case PKT_UNKNOWN_0x22: {
          int unknown = is.readDWord();
          String text = is.readNTString();
          switch(unknown) {
          case 0x00:
            dispatchRecieveInfo(text);
            break;
View Full Code Here

             * 0x7E: CDKey banned from realm play.
             * 0x7F: Temporary IP ban "Your connection has been
             *  temporarily restricted from this realm. Please
             *  try to log in at another time"
             */
            int result = is.readDWord();
            switch(result) {
            case 0:
              recieveRealmInfo("Realm logon success");

              try (MCPPacket p = new MCPPacket(MCPPacketID.MCP_CHARLIST2)) {
View Full Code Here

             * (STRING)    Name
             * (WORD)     Flags
             * (STRING)    Character statstring
             */
            is.readWord();
            is.readDWord();
            int numChars = is.readWord();

            List<MCPCharacter> chars = new ArrayList<MCPCharacter>(numChars);

            for(int i = 0; i < numChars; i++) {
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.