Package net.bnubot.util

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


          nlsRevision = is.readDWord();
          serverToken = is.readDWord();
          is.skip(4); // int udpValue = is.readDWord();
        }
        long mpqFileTime = is.readQWord();
        String mpqFileName = is.readNTString();
        byte[] valueStr = is.readNTBytes();

        Out.debug(getClass(), "MPQ: " + mpqFileName);

        byte extraData[] = null;
View Full Code Here


      }

      case SID_REPORTVERSION:
      case SID_AUTH_CHECK: {
        int result = is.readDWord();
        String extraInfo = is.readNTString();
        assert (is.available() == 0);

        if (pr.packetId == BNCSPacketId.SID_AUTH_CHECK) {
          if (result != 0) {
            switch (result) {
View Full Code Here

         *
         * 0x01: Ok 0x02: Invalid key 0x03: Bad product 0x04: Banned
         * 0x05: In use
         */
        int result = is.readDWord();
        String keyOwner = is.readNTString();

        if (result != 1) {
          switch (result) {
          case 0x02:
            dispatchRecieveError("Invalid CD key.");
View Full Code Here

        break;
      }

      case SID_CREATEACCOUNT2: {
        int status = is.readDWord();
        /* String suggestion = */is.readNTString();

        switch (status) {
        case 0x00:
          dispatchRecieveInfo("Account created");
          connect.updateProgress("Logging in");
View Full Code Here

        sendSetEmail();
        break;
      }

      case SID_ENTERCHAT: {
        String uniqueUserName = is.readNTString();
        StatString myStatString = new StatString(is.readNTString());
        /* String accountName = */is.readNTString();

        myUser = new BNetUser(this, uniqueUserName, cs.myRealm);
        myUser.setStatString(myStatString);
View Full Code Here

        break;
      }

      case SID_ENTERCHAT: {
        String uniqueUserName = is.readNTString();
        StatString myStatString = new StatString(is.readNTString());
        /* String accountName = */is.readNTString();

        myUser = new BNetUser(this, uniqueUserName, cs.myRealm);
        myUser.setStatString(myStatString);
        dispatchEnterChat(myUser);
View Full Code Here

      }

      case SID_ENTERCHAT: {
        String uniqueUserName = is.readNTString();
        StatString myStatString = new StatString(is.readNTString());
        /* String accountName = */is.readNTString();

        myUser = new BNetUser(this, uniqueUserName, cs.myRealm);
        myUser.setStatString(myStatString);
        dispatchEnterChat(myUser);
        dispatchTitleChanged();
View Full Code Here

        int ping = is.readDWord();
        is.skip(12);
      // is.readDWord(); // IP Address (defunct)
      // is.readDWord(); // Account number (defunct)
      // is.readDWord(); // Registration authority (defunct)
        String username = is.readNTString();
        ByteArray data = null;
        StatString statstr = null;

        switch(eid) {
        case EID_SHOWUSER:
View Full Code Here

          MCPChunk2[7] = is.readDWord();
          MCPChunk2[8] = is.readDWord();
          MCPChunk2[9] = is.readDWord();
          MCPChunk2[10] = is.readDWord();
          MCPChunk2[11] = is.readDWord();
          String uniqueName = is.readNTString();
          dispatchLogonRealmEx(MCPChunk1, ip, port, MCPChunk2, uniqueName);
        }

        break;
      }
View Full Code Here

         */
        byte numEntries = is.readByte();
        FriendEntry[] entries = new FriendEntry[numEntries];

        for(int i = 0; i < numEntries; i++) {
          String uAccount = is.readNTString();
          byte uStatus = is.readByte();
          byte uLocation = is.readByte();
          int uProduct = is.readDWord();
          String uLocationName = is.readNTStringUTF8();

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.