Hello, I will now be teaching you how to add a 459 gameframe to your refractored client. I hope you will be enjoying it and getting in use with it. If anyone gets any errors it would be your problem, because I have just tryed the tutorial and it worked out perfectly.
Open up Client.java and find 'drawChannelButtons' once you've found that remove the whole method.
Once you've removed that you would get one error, by fixing that error search for 'drawChannelButtons();' it should be located in drawChatArea simply remove it from there.
Find 'void rightClickChatButtons' and remove the whole method.
Now find 'rightClickChatButtons();' you should see something like this:
Code:
if(super.mouseX > 4 && super.mouseY > 480 && super.mouseX < 516 && super.mouseY < 503)
rightClickChatButtons();
Once you've found that, remove it.
Find 'chatButtons = new Sprite[4];' and remove it, now find 'private Sprite[] chatButtons;' remove that too, find 'chatButtons = null;' and remove and for the end find:
Code:
for(int c1 = 0; c1 <= 3; c1++)
chatButtons[c1] = new Sprite(streamLoader_2, "chatbuttons", c1);
and simply remove that too.
Now once you login there will be no buttons or fonts in your chatarea. But now it's the time to add them as in a 317 client.
Now find 'void drawGameScreen' and at the bottom of drawGameScreen replace:
Replace it with:
Code:
aBoolean1233 = false;
aRSImageProducer_1123.initDrawingArea();
backBase1.drawBackground(0, 0);
aTextDrawingArea_1271.method382(0xffffff, 55, "Public chat", 28, true);
if(publicChatMode == 0)
aTextDrawingArea_1271.method382(65280, 55, "On", 41, true);
if(publicChatMode == 1)
aTextDrawingArea_1271.method382(0xffff00, 55, "Friends", 41, true);
if(publicChatMode == 2)
aTextDrawingArea_1271.method382(0xff0000, 55, "Off", 41, true);
if(publicChatMode == 3)
aTextDrawingArea_1271.method382(65535, 55, "Hide", 41, true);
aTextDrawingArea_1271.method382(0xffffff, 184, "Private chat", 28, true);
if(privateChatMode == 0)
aTextDrawingArea_1271.method382(65280, 184, "On", 41, true);
if(privateChatMode == 1)
aTextDrawingArea_1271.method382(0xffff00, 184, "Friends", 41, true);
if(privateChatMode == 2)
aTextDrawingArea_1271.method382(0xff0000, 184, "Off", 41, true);
aTextDrawingArea_1271.method382(0xffffff, 324, "Trade/compete", 28, true);
if(tradeMode == 0)
aTextDrawingArea_1271.method382(65280, 324, "On", 41, true);
if(tradeMode == 1)
aTextDrawingArea_1271.method382(0xffff00, 324, "Friends", 41, true);
if(tradeMode == 2)
aTextDrawingArea_1271.method382(0xff0000, 324, "Off", 41, true);
aTextDrawingArea_1271.method382(0xffffff, 458, "Report abuse", 33, true);
aRSImageProducer_1123.drawGraphics(451, super.graphics, 0);
aRSImageProducer_1165.initDrawingArea();
anInt945 = 0;
}
This gives you the 459 chatbuttons with fonts and clicking working but it will still not be working once you login because we have not added the chatbuttons sprites and loading yet.
Find 'mapBack = null;' and bellow add:
Find 'mapArea = new Sprite("maparea");' bellow add:
Code:
backBase1 = new Background(streamLoader_2, "backbase1", 0);
Now once you start the client you will get a loading error becuase that we have not loaded the sprite from the cache yet, so that's what we're going to do now.
Open your cache with Tom's Cache Suite go to View/Edit Image Archives -> Media -> once you're there add a new sprite, it will ask you under what name do you want the sprite and type in backbase1 once it is added add the sprite to backbase1.
Sprite Download - http://www.upload.ee/image/1004553/backbase1
Okay, now when the chatbuttons are done, we are going to move on with the chatarea.
Replace your current chatarea sprite with the one which you can download bellow.
Sprite ChatArea - http://www.upload.ee/image/1004558/chatarea.png
Just replace it with your current one in your sprites folder.
Now we are going to make the chatarea talking 5 lined and to fix things up in it so it looks like a 459 chatarea.
Find 'void drawChatArea' and replace it with:
Code:
private void drawChatArea() {
aRSImageProducer_1166.initDrawingArea();
Texture.anIntArray1472 = anIntArray1180;
chatArea.drawSprite(0, 0);
if(messagePromptRaised) {
chatTextDrawingArea.drawText(0, aString1121, 60, 259);
chatTextDrawingArea.drawText(128, promptInput + "*", 80, 259);
} else if(inputDialogState == 1) {
chatTextDrawingArea.drawText(0, "Enter amount:", 60, 259);
chatTextDrawingArea.drawText(128, amountOrNameInput + "*", 80, 259);
} else if(inputDialogState == 2) {
chatTextDrawingArea.drawText(0, "Enter name:", 60, 259);
chatTextDrawingArea.drawText(128, amountOrNameInput + "*", 80, 259);
} else if(aString844 != null) {
chatTextDrawingArea.drawText(0, aString844, 60, 259);
chatTextDrawingArea.drawText(128, "Click to continue", 80, 259);
} else if(backDialogID != -1) {
drawInterface(0, 20, RSInterface.interfaceCache[backDialogID], 20);
} else if(dialogID != -1) {
drawInterface(0, 20, RSInterface.interfaceCache[dialogID], 20);
} else {
int j77 = -3;
TextDrawingArea textDrawingArea = aTextDrawingArea_1271;
int j = 0;
DrawingArea.setDrawingArea(92, 0, 463, 20);
for(int k = 0; k < 100; k++)
if(chatMessages[k] != null)
{
int l = chatTypes[k];
int i1 = (90 - j * 15) + anInt1089;
String s1 = chatNames[k];
byte byte0 = 0;
if(s1 != null && s1.startsWith("@cr1@"))
{
s1 = s1.substring(5);
byte0 = 1;
}
if(s1 != null && s1.startsWith("@cr2@"))
{
s1 = s1.substring(5);
byte0 = 2;
}
if(l == 0)
{
if(i1 > 0 && i1 < 110)
textDrawingArea.method385(0, chatMessages[k], i1, 19);
j++;
}
if((l == 1 || l == 2) && (l == 1 || publicChatMode == 0 || publicChatMode == 1 && isFriendOrSelf(s1)))
{
if(i1 > 0 && i1 < 110)
{
int j1 = 19;
if(byte0 == 1)
{
modIcons[0].drawBackground(j1, i1 - 12);
j1 += 19;
}
if(byte0 == 2)
{
modIcons[1].drawBackground(j1, i1 - 12);
j1 += 19;
}
textDrawingArea.method385(0, s1 + ":", i1, j1);
j1 += textDrawingArea.getTextWidth(s1) + 8;
textDrawingArea.method385(255, chatMessages[k], i1, j1);
}
j++;
}
if((l == 3 || l == 7) && splitPrivateChat == 0 && (l == 7 || privateChatMode == 0 || privateChatMode == 1 && isFriendOrSelf(s1)))
{
if(i1 > 0 && i1 < 110)
{
int k1 = 4;
textDrawingArea.method385(0, "From", i1, k1);
k1 += textDrawingArea.getTextWidth("From ");
if(byte0 == 1)
{
modIcons[0].drawBackground(k1, i1 - 12);
k1 += 19;
}
if(byte0 == 2)
{
modIcons[1].drawBackground(k1, i1 - 12);
k1 += 19;
}
textDrawingArea.method385(0, s1 + ":", i1, k1);
k1 += textDrawingArea.getTextWidth(s1) + 8;
textDrawingArea.method385(0x800000, chatMessages[k], i1, k1);
}
j++;
}
if(l == 4 && (tradeMode == 0 || tradeMode == 1 && isFriendOrSelf(s1)))
{
if(i1 > 0 && i1 < 110)
textDrawingArea.method385(0x800080, s1 + " " + chatMessages[k], i1, 4);
j++;
}
if(l == 5 && splitPrivateChat == 0 && privateChatMode < 2)
{
if(i1 > 0 && i1 < 110)
textDrawingArea.method385(0x800000, chatMessages[k], i1, 4);
j++;
}
if(l == 6 && splitPrivateChat == 0 && privateChatMode < 2)
{
if(i1 > 0 && i1 < 110)
{
textDrawingArea.method385(0, "To " + s1 + ":", i1, 4);
textDrawingArea.method385(0x800000, chatMessages[k], i1, 12 + textDrawingArea.getTextWidth("To " + s1));
}
j++;
}
if(l == 8 && (tradeMode == 0 || tradeMode == 1 && isFriendOrSelf(s1)))
{
if(i1 > 0 && i1 < 110)
textDrawingArea.method385(0x7e3200, s1 + " " + chatMessages[k], i1, 4);
j++;
}
}
DrawingArea.defaultDrawingAreaSize();
anInt1211 = j * 14 + 7;
if(anInt1211 < 77)
anInt1211 = 77;
drawScrollbar(81, anInt1211 - anInt1089 - 79, 13, 480, anInt1211);
String s;
if(myPlayer != null && myPlayer.name != null)
s = myPlayer.name;
else
s = TextClass.fixName(myUsername);
textDrawingArea.method385(0, s + ":", 110, 19);
textDrawingArea.drawChatInput(255, 20 + textDrawingArea.getTextWidth(s + ": "), inputString + "*", 110, false);
DrawingArea.method339(94, 0x000000, 479, 17);
}
if(menuOpen && menuScreenArea == 2) {
drawMenu();
}
aRSImageProducer_1166.drawGraphics(338, super.graphics, 0);
aRSImageProducer_1165.initDrawingArea();
Texture.anIntArray1472 = anIntArray1182;
}
Time to fix the scrollbar so it doesn't look like a 474 scrollbar.
Find 'void drawScrollbar' and replace it with this one:
Code:
private void drawScrollbar(int j, int k, int l, int i1, int j1)
{
scrollBar1.drawSprite(i1, l);
scrollBar2.drawSprite(i1, (l + j) - 16);
DrawingArea.drawPixels(j - 32, l + 16, i1, anInt1002, 16);
int k1 = ((j - 32) * j) / j1;
if(k1 < 8)
k1 = 8;
int l1 = ((j - 32 - k1) * k) / (j1 - j);
DrawingArea.drawPixels(k1, l + 16 + l1, i1, barFillColor, 16);
DrawingArea.method341(l + 16 + l1, anInt902, k1, i1);
DrawingArea.method341(l + 16 + l1, anInt902, k1, i1 + 1);
DrawingArea.method339(l + 16 + l1, anInt902, 16, i1);
DrawingArea.method339(l + 17 + l1, anInt902, 16, i1);
DrawingArea.method341(l + 16 + l1, anInt927, k1, i1 + 15);
DrawingArea.method341(l + 17 + l1, anInt927, k1 - 1, i1 + 14);
DrawingArea.method339(l + 15 + l1 + k1, anInt927, 16, i1);
DrawingArea.method339(l + 14 + l1 + k1, anInt927, 15, i1 + 1);
}
Once again, go to your cache View/Edit Image Archives -> Media -> and find scrollbar.dat click it.. In there are 2 sprites of the scrollbar arrows, replace them with these two bellow..
Scrollbar 0 - http://www.upload.ee/image/1004564/0
Scrollbar 1 - http://www.upload.ee/image/1004566/1
Now to fix the scrollbar and so it isn't being bugged find 'void drawGameScreen' and replace it with:
Code:
private void drawGameScreen()
{
if (fullscreenInterfaceID != -1 && (loadingStage == 2 || super.fullGameScreen != null)) {
if (loadingStage == 2) {
method119(anInt945, fullscreenInterfaceID);
if (openInterfaceID != -1) {
method119(anInt945, openInterfaceID);
}
anInt945 = 0;
resetAllImageProducers();
super.fullGameScreen.initDrawingArea();
Texture.anIntArray1472 = fullScreenTextureArray;
DrawingArea.setAllPixelsToZero();
welcomeScreenRaised = true;
if (openInterfaceID != -1) {
RSInterface rsInterface_1 = RSInterface.interfaceCache[openInterfaceID];
if (rsInterface_1.width == 512 && rsInterface_1.height == 334 && rsInterface_1.type == 0) {
rsInterface_1.width = 765;
rsInterface_1.height = 503;
}
drawInterface(0, 0, rsInterface_1, 8);
}
RSInterface rsInterface = RSInterface.interfaceCache[fullscreenInterfaceID];
if (rsInterface.width == 512 && rsInterface.height == 334 && rsInterface.type == 0) {
rsInterface.width = 765;
rsInterface.height = 503;
}
drawInterface(0, 0, rsInterface, 8);
if (!menuOpen) {
processRightClick();
drawTooltip();
} else {
drawMenu();
}
}
drawCount++;
super.fullGameScreen.drawGraphics(0, super.graphics, 0);
return;
} else {
if (drawCount != 0) {
resetImageProducers2();
}
}
if(welcomeScreenRaised) {
welcomeScreenRaised = false;
topFrame.drawGraphics(0, super.graphics, 0);
leftFrame.drawGraphics(4, super.graphics, 0);
rightFrame.drawGraphics(4, super.graphics, 516);
mapEdgeIP.drawGraphics(4, super.graphics, 519);
needDrawTabArea = true;
inputTaken = true;
tabAreaAltered = true;
aBoolean1233 = true;
if(loadingStage != 2) {
aRSImageProducer_1165.drawGraphics(4, super.graphics, 4);
aRSImageProducer_1164.drawGraphics(4, super.graphics, 545);
}
}
if(loadingStage == 2)
method146();
if(menuOpen && menuScreenArea == 1)
needDrawTabArea = true;
if(invOverlayInterfaceID != -1)
{
boolean flag1 = method119(anInt945, invOverlayInterfaceID);
if(flag1)
needDrawTabArea = true;
}
if(atInventoryInterfaceType == 2)
needDrawTabArea = true;
if(activeInterfaceType == 2)
needDrawTabArea = true;
if(needDrawTabArea)
{
drawTabArea();
needDrawTabArea = false;
}
if(backDialogID == -1)
{
aClass9_1059.scrollPosition = anInt1211 - anInt1089 - 77;
if(super.mouseX > 448 && super.mouseX < 560 && super.mouseY > 332)
method65(463, 77, super.mouseX - 17, super.mouseY - 357, aClass9_1059, 0, false, anInt1211);
int i = anInt1211 - 77 - aClass9_1059.scrollPosition;
if(i < 0)
i = 0;
if(i > anInt1211 - 77)
i = anInt1211 - 77;
if(anInt1089 != i)
{
anInt1089 = i;
inputTaken = true;
}
}
if(backDialogID != -1) {
boolean flag2 = method119(anInt945, backDialogID);
if(flag2)
inputTaken = true;
}
if(atInventoryInterfaceType == 3)
inputTaken = true;
if(activeInterfaceType == 3)
inputTaken = true;
if(aString844 != null)
inputTaken = true;
if(menuOpen && menuScreenArea == 2)
inputTaken = true;
if(inputTaken) {
drawChatArea();
inputTaken = false;
}
if(loadingStage == 2)
method146();
if(loadingStage == 2) {
drawMinimap();
aRSImageProducer_1164.drawGraphics(4, super.graphics, 545);
}
if(anInt1054 != -1)
tabAreaAltered = true;
if(tabAreaAltered)
{
if(anInt1054 != -1 && anInt1054 == tabID)
{
anInt1054 = -1;
stream.createFrame(120);
stream.writeWordBigEndian(tabID);
}
tabAreaAltered = false;
aRSImageProducer_1125.initDrawingArea();
aRSImageProducer_1165.initDrawingArea();
}
aBoolean1233 = false;
aRSImageProducer_1123.initDrawingArea();
backBase1.drawBackground(0, 0);
aTextDrawingArea_1271.method382(0xffffff, 55, "Public chat", 28, true);
if(publicChatMode == 0)
aTextDrawingArea_1271.method382(65280, 55, "On", 41, true);
if(publicChatMode == 1)
aTextDrawingArea_1271.method382(0xffff00, 55, "Friends", 41, true);
if(publicChatMode == 2)
aTextDrawingArea_1271.method382(0xff0000, 55, "Off", 41, true);
if(publicChatMode == 3)
aTextDrawingArea_1271.method382(65535, 55, "Hide", 41, true);
aTextDrawingArea_1271.method382(0xffffff, 184, "Private chat", 28, true);
if(privateChatMode == 0)
aTextDrawingArea_1271.method382(65280, 184, "On", 41, true);
if(privateChatMode == 1)
aTextDrawingArea_1271.method382(0xffff00, 184, "Friends", 41, true);
if(privateChatMode == 2)
aTextDrawingArea_1271.method382(0xff0000, 184, "Off", 41, true);
aTextDrawingArea_1271.method382(0xffffff, 324, "Trade/compete", 28, true);
if(tradeMode == 0)
aTextDrawingArea_1271.method382(65280, 324, "On", 41, true);
if(tradeMode == 1)
aTextDrawingArea_1271.method382(0xffff00, 324, "Friends", 41, true);
if(tradeMode == 2)
aTextDrawingArea_1271.method382(0xff0000, 324, "Off", 41, true);
aTextDrawingArea_1271.method382(0xffffff, 458, "Report abuse", 33, true);
aRSImageProducer_1123.drawGraphics(451, super.graphics, 0);
aRSImageProducer_1165.initDrawingArea();
anInt945 = 0;
}
Find 'void processChatModeClick' it should look like this:
Code:
private int cButtonHPos;
private int cButtonHCPos;
private int cButtonCPos;
private void processChatModeClick() {
if(super.mouseX >= 5 && super.mouseX <= 61 && super.mouseY >= 482 && super.mouseY <= 503) {
cButtonHPos = 0;
aBoolean1233 = true;
inputTaken = true;
} else if(super.mouseX >= 71 && super.mouseX <= 127 && super.mouseY >= 482 && super.mouseY <= 503) {
cButtonHPos = 1;
aBoolean1233 = true;
inputTaken = true;
} else if(super.mouseX >= 137 && super.mouseX <= 193 && super.mouseY >= 482 && super.mouseY <= 503) {
cButtonHPos = 2;
aBoolean1233 = true;
inputTaken = true;
} else if(super.mouseX >= 203 && super.mouseX <= 259 && super.mouseY >= 482 && super.mouseY <= 503) {
cButtonHPos = 3;
aBoolean1233 = true;
inputTaken = true;
} else if(super.mouseX >= 269 && super.mouseX <= 325 && super.mouseY >= 482 && super.mouseY <= 503) {
cButtonHPos = 4;
aBoolean1233 = true;
inputTaken = true;
} else if(super.mouseX >= 335 && super.mouseX <= 391 && super.mouseY >= 482 && super.mouseY <= 503) {
cButtonHPos = 5;
aBoolean1233 = true;
inputTaken = true;
} else if(super.mouseX >= 404 && super.mouseX <= 515 && super.mouseY >= 482 && super.mouseY <= 503) {
cButtonHPos = 6;
aBoolean1233 = true;
inputTaken = true;
} else {
cButtonHPos = -1;
aBoolean1233 = true;
inputTaken = true;
}
if(super.clickMode3 == 1) {
if(super.saveClickX >= 5 && super.saveClickX <= 61 && super.saveClickY >= 482 && super.saveClickY <= 505) {
cButtonCPos = 0;
chatTypeView = 0;
aBoolean1233 = true;
inputTaken = true;
} else if(super.saveClickX >= 71 && super.saveClickX <= 127 && super.saveClickY >= 482 && super.saveClickY <= 505) {
cButtonCPos = 1;
chatTypeView = 5;
aBoolean1233 = true;
inputTaken = true;
} else if(super.saveClickX >= 137 && super.saveClickX <= 193 && super.saveClickY >= 482 && super.saveClickY <= 505) {
cButtonCPos = 2;
chatTypeView = 1;
aBoolean1233 = true;
inputTaken = true;
} else if(super.saveClickX >= 203 && super.saveClickX <= 259 && super.saveClickY >= 482 && super.saveClickY <= 505) {
cButtonCPos = 3;
chatTypeView = 2;
aBoolean1233 = true;
inputTaken = true;
} else if(super.saveClickX >= 269 && super.saveClickX <= 325 && super.saveClickY >= 482 && super.saveClickY <= 505) {
cButtonCPos = 4;
chatTypeView = 11;
aBoolean1233 = true;
inputTaken = true;
} else if(super.saveClickX >= 335 && super.saveClickX <= 391 && super.saveClickY >= 482 && super.saveClickY <= 505) {
cButtonCPos = 5;
chatTypeView = 3;
aBoolean1233 = true;
inputTaken = true;
} else if(super.saveClickX >= 404 && super.saveClickX <= 515 && super.saveClickY >= 482 && super.saveClickY <= 505) {
if(openInterfaceID == -1) {
clearTopInterfaces();
reportAbuseInput = "";
canMute = false;
for(int i = 0; i < RSInterface.interfaceCache.length; i++) {
if(RSInterface.interfaceCache[i] == null || RSInterface.interfaceCache[i].contentType != 600)
continue;
reportAbuseInterfaceID = openInterfaceID = RSInterface.interfaceCache[i].parentID;
break;
}
} else {
pushMessage("Please close the interface you have open before using 'report abuse'", 0, "");
}
}
}
}
Replace the 'void processChatModeClick' with:
Code:
private void processChatModeClick()
{
if(super.clickMode3 == 1)
{
if(super.saveClickX >= 6 && super.saveClickX <= 106 && super.saveClickY >= 467 && super.saveClickY <= 499)
{
publicChatMode = (publicChatMode + 1) % 4;
aBoolean1233 = true;
inputTaken = true;
stream.createFrame(95);
stream.writeWordBigEndian(publicChatMode);
stream.writeWordBigEndian(privateChatMode);
stream.writeWordBigEndian(tradeMode);
}
if(super.saveClickX >= 135 && super.saveClickX <= 235 && super.saveClickY >= 467 && super.saveClickY <= 499)
{
privateChatMode = (privateChatMode + 1) % 3;
aBoolean1233 = true;
inputTaken = true;
stream.createFrame(95);
stream.writeWordBigEndian(publicChatMode);
stream.writeWordBigEndian(privateChatMode);
stream.writeWordBigEndian(tradeMode);
}
if(super.saveClickX >= 273 && super.saveClickX <= 373 && super.saveClickY >= 467 && super.saveClickY <= 499)
{
tradeMode = (tradeMode + 1) % 3;
aBoolean1233 = true;
inputTaken = true;
stream.createFrame(95);
stream.writeWordBigEndian(publicChatMode);
stream.writeWordBigEndian(privateChatMode);
stream.writeWordBigEndian(tradeMode);
}
if(anInt940 > 1386)
{
anInt940 = 0;
stream.createFrame(165);
stream.writeWordBigEndian(0);
int j = stream.currentOffset;
stream.writeWordBigEndian(139);
stream.writeWordBigEndian(150);
stream.writeWord(32131);
stream.writeWordBigEndian((int)(Math.random() * 256D));
stream.writeWord(3250);
stream.writeWordBigEndian(177);
stream.writeWord(24859);
stream.writeWordBigEndian(119);
if((int)(Math.random() * 2D) == 0)
stream.writeWord(47234);
if((int)(Math.random() * 2D) == 0)
stream.writeWordBigEndian(21);
stream.writeBytes(stream.currentOffset - j);
}
}
}
Now find 'if(l == 1003) {' and you should see this:
Code:
if(l == 1003) {
clanChatMode = 2;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 1002) {
clanChatMode = 1;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 1001) {
clanChatMode = 0;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 1000) {
cButtonCPos = 4;
chatTypeView = 11;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 999) {
cButtonCPos = 0;
chatTypeView = 0;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 998) {
cButtonCPos = 1;
chatTypeView = 5;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 997) {
publicChatMode = 3;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 996) {
publicChatMode = 2;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 995) {
publicChatMode = 1;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 994) {
publicChatMode = 0;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 993) {
cButtonCPos = 2;
chatTypeView = 1;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 992) {
privateChatMode = 2;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 991) {
privateChatMode = 1;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 990) {
privateChatMode = 0;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 989) {
cButtonCPos = 3;
chatTypeView = 2;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 987) {
tradeMode = 2;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 986) {
tradeMode = 1;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 985) {
tradeMode = 0;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 984) {
cButtonCPos = 5;
chatTypeView = 3;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 983) {
duelMode = 2;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 982) {
duelMode = 1;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 981) {
duelMode = 0;
aBoolean1233 = true;
inputTaken = true;
}
if(l == 980) {
cButtonCPos = 6;
chatTypeView = 4;
aBoolean1233 = true;
inputTaken = true;
}
Once you found the above, remove all of them to stay without any errors.
Find 'public client' and remove the:
Code:
cButtonHPos = -1;
cButtonHCPos = -1;
cButtonCPos = 0;
Okay, now for the tabarea. Find your tabArea.png in sprites folder and replace it with the one bellow.
Sprite tabArea - http://www.upload.ee/thumb/1004637/tabarea.png
Find 'void drawSideIcons' and replace it with:
Code:
public void drawSideIcons(){
/* Top sideIcons */
if(tabInterfaceIDs[0] != -1)//attack
sideIcons[0].drawSprite(27, 7);
if(tabInterfaceIDs[1] != -1)//stat
sideIcons[1].drawSprite(54, 5);
if(tabInterfaceIDs[2] != -1)//quest
sideIcons[2].drawSprite(82, 4);
if(tabInterfaceIDs[3] != -1)//inventory
sideIcons[3].drawSprite(116, 4);
if(tabInterfaceIDs[4] != -1)//equipment
sideIcons[4].drawSprite(152, 2);
if(tabInterfaceIDs[5] != -1)//prayer
sideIcons[5].drawSprite(179, 3);
if(tabInterfaceIDs[6] != -1)//magic
sideIcons[6].drawSprite(207, 6);
/* Bottom sideIcons */
//if(tabInterfaceIDs[7] != -1)//clan
// sideIcons[7].drawSprite(31, 300);
if(tabInterfaceIDs[8] != -1)//friends
sideIcons[8].drawSprite(57, 305);
if(tabInterfaceIDs[9] != -1)//ignore
sideIcons[9].drawSprite(85, 305);
if(tabInterfaceIDs[10] != -1)//logout
sideIcons[10].drawSprite(121, 302);
if(tabInterfaceIDs[11] != -1)//options
sideIcons[11].drawSprite(157, 304);
if(tabInterfaceIDs[12] != -1)//emotes
sideIcons[12].drawSprite(187, 300);
if(tabInterfaceIDs[13] != -1)//music
sideIcons[13].drawSprite(207, 301);
}
Now you need the 459 sideicons to make everything look as it should. Download the 459 sideicons bellow and replace them with your current ones in the cache.
Sideicons - UPLOAD.EE - Download sideicons.rar
Find 'void drawRedStones' and replace it with:
Code:
public void drawRedStones() {
if(tabInterfaceIDs[tabID] != -1) {
switch(tabID) {
case 0:
redStones[0].drawSprite(22, 0);
break;
case 1:
redStones[4].drawSprite(54, 1);
break;
case 2:
redStones[4].drawSprite(81, 1);
break;
case 3:
redStones[2].drawSprite(109, 0);
break;
case 4:
redStones[3].drawSprite(154, 1);
break;
case 5:
redStones[3].drawSprite(180, 1);
break;
case 6:
redStones[1].drawSprite(208, 2);
break;
case 7:
redStones[2].drawSprite(9, 297);
break;
case 8:
redStones[3].drawSprite(53, 297);
break;
case 9:
redStones[4].drawSprite(81, 297);
break;
case 10:
redStones[2].drawSprite(109, 299);
break;
case 11:
redStones[4].drawSprite(154, 297);
break;
case 12:
redStones[4].drawSprite(181, 297);
break;
//case 13:
// redStones[3].drawSprite(213, 297);
// break;
}
}
}
Replace you current redstones in your sprites folder with these bellow.
Redstones - UPLOAD.EE - Download redstones.rar
In 'void drawTabArea' you should see this:
Code:
if(invOverlayInterfaceID != -1)
drawInterface(0, 28, RSInterface.interfaceCache[invOverlayInterfaceID], 37);
else if(tabInterfaceIDs[tabID] != -1)
drawInterface(0, 28, RSInterface.interfaceCache[tabInterfaceIDs[tabID]], 37);
Change the red marked numbers to 38.
Results:
Now you have a full 459 gameframe, I really hope you will be enjoying it and rep would be appreicated. Have fun guys!