hes using same source as me:
Code:
public void initialize() {
// first packet sent
server.setConfig.initializeClientConfiguration(playerId);
if(splitChat == 1){
setClientConfig(287, 1);
}
if(autoRetaliate == 0){
setClientConfig(172, 1);
}
setClientConfig(43, FightType-1);
setClientConfig(166, brightness);
outStream.createFrame(249);
outStream.writeByteA(playerIsMember); // 1 for members, zero for free
outStream.writeWordBigEndianA(playerId);
// here is the place for seting up the UI, stats, etc...
setChatOptions(0, 0, 0);
for (int i = 0; i < 25; i++) {
setSkillLevel(i, playerLevel[i], playerXP[i]);
}
refreshSkills();
outStream.createFrame(107); // resets something in the client
setSidebarInterface(0, 2423); // attack tab
setSidebarInterface(1, 3917); // skills tab
setSidebarInterface(2, 638); // quest tab
setSidebarInterface(3, 3213); // backpack tab
setSidebarInterface(13, 3209); //Music tab
setSidebarInterface(4, 1644); // items wearing tab
setSidebarInterface(5, 5608); // pray tab
if (playerAncientMagics == 0) {
setSidebarInterface(6, 1151);
playerAncientMagics = 0;
}
if (playerAncientMagics == 1 && q3 == 15) {
setSidebarInterface(6, 12855);
playerAncientMagics = 1;
}
if (playerAncientMagics == 2 && q10 == 15) {
setSidebarInterface(6, 18787);
playerAncientMagics = 2;
}
setSidebarInterface(7, 18500); // clan chat
setSidebarInterface(8, 5065); // friend
setSidebarInterface(9, 5715); // ignore
setSidebarInterface(10, 2449); // logout tab
setSidebarInterface(11, 4445); // wrench tab
setSidebarInterface(12, 147); // run tab
setSidebarInterface(13, -1); // harp tab
// add player commands...
outStream.createFrameVarSize(104);
outStream.writeByteC(4); // command slot (does it matter which one?)
outStream.writeByteA(0); // 0 or 1; 0 if command should be placed on top in context menu
outStream.writeString("Follow");
outStream.endFrameVarSize();
outStream.createFrameVarSize(104);
outStream.writeByteC(5); // command slot (does it matter which one?)
outStream.writeByteA(0); // 0 or 1; 0 if command should be placed on top in context menu
outStream.writeString("Trade with");
outStream.endFrameVarSize();
int dots = 0;
int start[] = { 0, 0, 0, 0 };
int IPPart1 = 127;
int IPPart2 = 0;
int IPPart3 = 0;
int IPPart4 = 1;
if (playerLastConnect.length() < 7) {
playerLastConnect = connectedFrom;
}
if (playerLastConnect.length() <= 15) {
for (int j = 0; j <= playerLastConnect.length(); j++) {
if ((j + 1) <= playerLastConnect.length()) {
if (playerLastConnect.substring(j, (j + 1)).equals(".")) {
start[dots] = j;
dots++;
}
if (dots == 3) {
break;
}
}
}
if (dots == 3) {
IPPart1 = Integer.parseInt(playerLastConnect.substring(0,
start[0]));
IPPart2 = Integer.parseInt(playerLastConnect.substring(
(start[0] + 1), start[1]));
IPPart3 = Integer.parseInt(playerLastConnect.substring(
(start[1] + 1), start[2]));
IPPart4 = Integer.parseInt(playerLastConnect
.substring((start[2] + 1)));
}
} else {
for (int j = 0; j <= playerLastConnect.length(); j++) {
if ((j + 1) <= playerLastConnect.length()) {
if (playerLastConnect.substring(j, (j + 1)).equals("-")) {
start[dots] = j;
dots++;
}
if (dots == 4) {
break;
}
}
}
if (dots == 4) {
try {
IPPart1 = Integer.parseInt(playerLastConnect.substring(0,
start[0]));
IPPart2 = Integer.parseInt(playerLastConnect.substring(
(start[0] + 1), start[1]));
IPPart3 = Integer.parseInt(playerLastConnect.substring(
(start[1] + 1), start[2]));
IPPart4 = Integer.parseInt(playerLastConnect.substring(
(start[2] + 1), (start[3])));
} catch (NumberFormatException e) {
}
}
}
btw im not sure if that was the whole void.