Package net.bnubot.core

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


             * 0x0C: No Battle.net connection detected
             * 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");
             
              p = new MCPPacket(MCPCommandIDs.MCP_CHARLIST2);
View Full Code Here


             * (STRING)    Name
             * (WORD)     Flags
             * (STRING)    Character statstring
             */
            is.readWord();
            is.readDWord();
            int numChars = is.readWord();
           
            long minTime = 0;
            String maxCharname = null;
           
View Full Code Here

           
            long minTime = 0;
            String maxCharname = null;
           
            for(int i = 0; i < numChars; i++) {
              int secs = is.readDWord();
              String charname = is.readNTString();
              StatString statstr = new StatString("PX2D[Realm]," + charname + "," + is.readNTString());
             
              long time = new Date().getTime();
              time = (((long)secs) * 1000) - time;
View Full Code Here

     
      BNetInputStream is = new BNetInputStream(new FileInputStream(f));
      is.skip(4); //int headerSize = is.readDWord();
      int bniVersion = is.readWord();
      is.skip(2)// Alignment Padding (unused)
      int numIcons = is.readDWord();
      is.skip(4)//int dataOffset = is.readDWord();
     
      if(bniVersion != 1)
        throw new Exception("Unknown BNI version");
     
View Full Code Here

      }*/
      BNetIcon[] icons = new BNetIcon[numIcons];
     
      for(int i = 0; i < numIcons; i++) {
        BNetIcon icon = new BNetIcon();
        icon.flags = is.readDWord();
        icon.xSize = is.readDWord();
        icon.ySize = is.readDWord();
        if(icon.flags != 0)
          icon.sortIndex = i;
        else
View Full Code Here

      BNetIcon[] icons = new BNetIcon[numIcons];
     
      for(int i = 0; i < numIcons; i++) {
        BNetIcon icon = new BNetIcon();
        icon.flags = is.readDWord();
        icon.xSize = is.readDWord();
        icon.ySize = is.readDWord();
        if(icon.flags != 0)
          icon.sortIndex = i;
        else
          icon.sortIndex = numIcons;
View Full Code Here

     
      for(int i = 0; i < numIcons; i++) {
        BNetIcon icon = new BNetIcon();
        icon.flags = is.readDWord();
        icon.xSize = is.readDWord();
        icon.ySize = is.readDWord();
        if(icon.flags != 0)
          icon.sortIndex = i;
        else
          icon.sortIndex = numIcons;
        int numProducts;
View Full Code Here

        int numProducts;
        int products[] = new int[32];
       
        //Read in up to 32 products; stop if we see a null
        for(numProducts = 0; numProducts < 32; numProducts++) {
          products[numProducts] = is.readDWord();
          if(products[numProducts] == 0)
            break;
        }
       
        if(numProducts > 0) {
View Full Code Here

          break;
        }
       
        case BNCSCommandIDs.SID_PING: {
          BNCSPacket p = new BNCSPacket(BNCSCommandIDs.SID_PING);
          p.writeDWord(is.readDWord());
          p.SendPacket(dos, cs.packetLog);
          break;
        }
       
        case BNCSCommandIDs.SID_AUTH_INFO:
View Full Code Here

        }
       
        case BNCSCommandIDs.SID_AUTH_INFO:
        case BNCSCommandIDs.SID_STARTVERSIONING: {
          if(pr.packetId == BNCSCommandIDs.SID_AUTH_INFO) {
            nlsRevision = is.readDWord();
            serverToken = is.readDWord();
            is.skip(4)//int udpValue = is.readDWord();
          }
          long MPQFileTime = is.readQWord();
          String MPQFileName = is.readNTString();
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.