Wieners, Brats, Franks, we've got 'em all.
0 Members and 1 Guest are viewing this topic.
BNetBuffer buf = new BNetBuffer((byte) 0x26); buf.addDWord(1); buf.addDWord(4); buf.addNTString(account); buf.addNTString("profile\\sex"); buf.addNTString("profile\\age"); buf.addNTString("profile\\location"); buf.addNTString("profile\\description"); sendNow(buf);
case 0x26:data.removeDWord(); // Num. accountsint numKeys = data.removeDWord(); // Num. of keysdata.removeDWord(); // Request ID String[] keys = new String[numKeys];for (int z=0; z < numKeys; z++) {keys[z] = data.removeNTString();print(keys[z]);}
Error, keyboard not connected. Press F1 to continue.
public void sendProfileRequest(String account) { try { BNetBuffer buf = new BNetBuffer((byte) 0x26); buf.addDWord(1); buf.addDWord(4); buf.addDWord(156); // some random number :) buf.addNTString(account); buf.addNTString("profile\\sex"); buf.addNTString("profile\\age"); buf.addNTString("profile\\location"); buf.addNTString("profile\\description"); sendNow(buf); } catch (IOException ex) { ex.printStackTrace(); } }
Do you understand the difference between your code and the working code?Shear luck is the only reason you were even getting a response with your code instead of being timebanned
I'd personally do as Joe suggests
You might be right about that, Joe.
Leave it to Ron to come up with sex first in the list of all those. ^_^.
Yeah, who'd think I'd do it in the same order the Blizzard did, and who'd think that they'd do it in the order of the fields in the profile?
I have a programming folder, and I have nothing of value there
Our species really annoys me.
Leave it to Blizzard to come up with sex first in the list of all those. ^_^.