rendered paste body
public final class RSInterface
{
public int transAmount;
public String popupString;
public String hoverText;
public static StreamLoader aClass44;
public boolean drawsTransparent;
public Sprite sprite1;
public int anInt208;
public Sprite sprites[];
public static RSInterface interfaceCache[];
public int anIntArray212[];
public int contentType;
public int spritesX[];
public int anInt216;
public int atActionType;
public String spellName;
public int anInt219;
public int width;
public String tooltip;
public String selectedActionName;
public boolean centerText;
public int scrollPosition;
public String actions[];
public int valueIndexArray[][];
public boolean aBoolean227;
public String aString228;
public int mOverInterToTrigger;
public int invSpritePadX;
public int textColor;
public int anInt233;
public int mediaID;
public boolean aBoolean235;
public int parentID;
public int spellUsableOn;
private static MRUNodes aMRUNodes_238;
public int anInt239;
public int children[];
public int childX[];
public boolean usableItemInterface;
public TextDrawingArea textDrawingAreas;
public int invSpritePadY;
public int anIntArray245[];
public int anInt246;
public int spritesY[];
public String message;
public boolean isInventoryInterface;
public int id;
public int invStackSizes[];
public int inv[];
public byte aByte254;
private int anInt255;
private int anInt256;
public int anInt257;
public int anInt258;
public boolean aBoolean259;
public Sprite sprite2;
public int scrollMax;
public int type;
public int anInt263;
private static final MRUNodes aMRUNodes_264 = new MRUNodes(30);
public int anInt265;
public boolean isMouseoverTriggered;
public int height;
public boolean textShadow;
public int modelZoom;
public int modelRotation1;
public int modelRotation2;
public int childY[];
public static void addHoverText(int id, String text, String tooltip, TextDrawingArea tda[], int idx, int color, boolean center, boolean textShadow, int width) {
RSInterface rsinterface = addInterface(id);
rsinterface.id = id;
rsinterface.parentID = id;
rsinterface.type = 4;
rsinterface.atActionType = 1;
rsinterface.width = width;
rsinterface.height = 11;
rsinterface.contentType = 0;
rsinterface.aByte254 = 0;
rsinterface.mOverInterToTrigger = -1;
rsinterface.centerText = center;
rsinterface.textShadow = textShadow;
rsinterface.textDrawingAreas = tda[idx];
rsinterface.message = text;
rsinterface.aString228 = "";
rsinterface.textColor = color;
rsinterface.anInt219 = 0;
rsinterface.anInt216 = 0xffffff;
rsinterface.anInt239 = 0;
rsinterface.tooltip = tooltip;
}
public static void questTab(TextDrawingArea[] TDA){
RSInterface Interface = addInterface(638);
setChildren(4, Interface);
addText(29155, "Quests", 0xFF981F, false, true, 52, TDA, 2);
addButton(29156, 2, "Interfaces/QuestTab/QUEST", 18, 18, "Swap to Information", 1);
addSprite(29157, 0, "Interfaces/QuestTab/QUEST");
setBounds(29155, 10, 5, 0, Interface);
setBounds(29156, 165, 5, 1, Interface);
setBounds(29157, 3, 24, 2, Interface);
setBounds(29160, 5, 29, 3, Interface);
Interface = addInterface(29160);
Interface.height = 214;
Interface.width = 165;
Interface.scrollMax = 1700;
setChildren(105, Interface);
addText(29161, "Information:", 0xFF981F, false, true, 52, TDA, 2);
addHoverText(29162, "Do ::vote for 5 Vote Points!", "Vote by doing ::vote", TDA, 0, 0xff0000, false, true, 150);
addText(29163, "Register on :", 0xFF981F, false, true, 52, TDA, 2);
addHoverText(29164, "www.formationx.net", "Register", TDA, 0, 0xff0000, false, true, 150);
addText(29165, "Register on :", 0xFF981F, false, true, 52, TDA, 2);
addHoverText(29166, "www.formationx.net", "Register", TDA, 0, 0xff0000, false, true, 150);
setBounds(29161, 4, 4, 0, Interface);
setBounds(29162, 8, 22, 1, Interface);
setBounds(29163, 4, 35, 2, Interface);
setBounds(29164, 8, 53, 3, Interface);
setBounds(663, 4, 67, 4, Interface);
int Ypos = 83;
int frameID = 5;
for(int iD = 29165; iD <= 29264;iD++){
addHoverText(iD, "", "Continue"/*"View Quest Journal, "+iD*/, TDA, 0, 0xff0000, false, true, 150);
setBounds(iD, 8, Ypos, frameID, Interface);
frameID++;
Ypos += 15;
Ypos++;
}
Interface = addInterface(29265);
try {
setChildren(4, Interface);
addText(29266, "Coming soon!", 0xFF981F, false, true, -1, TDA, 2);
addButton(29267, 1, "Interfaces/QuestTab/QUEST", 18, 18, "Swap to Player Info", 1);
addSprite(29269, 0, "Interfaces/QuestTab/QUEST");
setBounds(29266, 10, 5, 0, Interface);
setBounds(29267, 165, 5, 1, Interface);
setBounds(29269, 3, 24, 2, Interface);
setBounds(29268, 5, 29, 3, Interface);
Interface = addInterface(29268);
Interface.height = 214;
Interface.width = 165;
Interface.scrollMax = 1700;
setChildren(20, Interface);
setBounds(29295, 8, 4, 0, Interface);
setBounds(29296, 8, 16, 1, Interface);
setBounds(29297, 8, 29, 2, Interface);
setBounds(29298, 8, 42, 3, Interface);
setBounds(29299, 8, 54, 4, Interface);
setBounds(29300, 8, 66, 5, Interface);
setBounds(29301, 8, 78, 6, Interface);
setBounds(29302, 8, 90, 7, Interface);
setBounds(29303, 8, 102, 8, Interface);
setBounds(29304, 8, 114, 9, Interface);
setBounds(29305, 8, 126, 10, Interface);
setBounds(29306, 8, 138, 11, Interface);
setBounds(29307, 8, 150, 12, Interface);
setBounds(29308, 8, 162, 13, Interface);
setBounds(29309, 8, 174, 14, Interface);
setBounds(29310, 8, 186, 15, Interface);
setBounds(29311, 8, 198, 16, Interface);
setBounds(29312, 8, 210, 17, Interface);
setBounds(29313, 8, 222, 18, Interface);
setBounds(29314, 8, 234, 19, Interface);
addHoverText(29295, "Please register at", "Please Register", TDA, 1, 0xFF981F, false, true, 150);
addHoverText(29296, "Formationx.net", "", TDA, 0, 0xff0000, false, true, 150);
addHoverText(29297, "And advertise/vote daily!", "", TDA, 0, 0xff0000, false, true, 150);
addHoverText(29298, "::vote for more players!", "", TDA, 0, 0xff0000, false, true, 150);
addHoverText(29299, "More players=More updates!", "", TDA, 0, 0xff0000, false, true, 150);
addHoverText(29300, "", "", TDA, 0, 0xff0000, false, true, 150);
addHoverText(29301, "", "", TDA, 1, 0xFF981F, false, true, 150);
addHoverText(29302, "", "", TDA, 0, 0xff0000, false, true, 150);
addHoverText(29303, "", "", TDA, 0, 0xff0000, false, true, 150);
addHoverText(29304, "", "", TDA, 0, 0xff0000, false, true, 150);
addHoverText(29305, "", "", TDA, 0, 0xff0000, false, true, 150);
addHoverText(29306, "", "", TDA,1, 0xFF981F, false, true, 150);
addHoverText(29307, "", "", TDA, 0, 0xff0000, false, true, 150);
addHoverText(29308, "", "", TDA, 0, 0xff0000, false, true, 150);
addHoverText(29309, "", "", TDA, 0, 0xff0000, false, true, 150);
addHoverText(29310, "", "", TDA, 0, 0xff0000, false, true, 150);
addHoverText(29311, "", "", TDA, 0, 0xff0000, false, true, 150);
addHoverText(29312, "", "", TDA, 0, 0xff0000, false, true, 150);
addHoverText(29313, "", "", TDA, 0, 0xff0000, false, true, 150);
addHoverText(29314, "", "", TDA, 0, 0xff0000, false, true, 150);
} catch(Exception e){
e.printStackTrace();
}
}
public void swapInventoryItems(int i, int j)
{
int k = inv[i];
inv[i] = inv[j];
inv[j] = k;
k = invStackSizes[i];
invStackSizes[i] = invStackSizes[j];
invStackSizes[j] = k;
}
public static void ColorChanger(TextDrawingArea[] tda) {
RSInterface tab = addTabInterface(31000);
addSprite(31001, "PrivateChat/Private");
addSprite(31057, "sample 0");
addHoverButton(31002, "PrivateChat/Color 0", 16, 16, "Use", -1, 31003, 1);
addHoveredButton(31003, "PrivateChat/GoldBox", 19, 20, 31004);
addHoverButton(31005, "PrivateChat/Color 1", 16, 16, "Use", -1, 31006, 1);
addHoveredButton(31006, "PrivateChat/GoldBox", 19, 20, 31007);
addHoverButton(31008, "PrivateChat/Color 2", 16, 16, "Use", -1, 31009, 1);
addHoveredButton(31009, "PrivateChat/GoldBox", 19, 20, 31010);
addHoverButton(31011, "PrivateChat/Color 3", 16, 16, "Use", -1, 31012, 1);
addHoveredButton(31012, "PrivateChat/GoldBox", 19, 20, 31013);
addHoverButton(31014, "PrivateChat/Color 4", 16, 16, "Use", -1, 31015, 1);
addHoveredButton(31015, "PrivateChat/GoldBox", 19, 20, 31016);
addHoverButton(31017, "PrivateChat/Color 5", 16, 16, "Use", -1, 31018, 1);
addHoveredButton(31018, "PrivateChat/GoldBox", 19, 20, 31019);
addHoverButton(31020, "PrivateChat/Color 6", 16, 16, "Use", -1, 31021, 1);
addHoveredButton(31021, "PrivateChat/GoldBox", 19, 20, 31022);
addHoverButton(31023, "PrivateChat/Color 7", 16, 16, "Use", -1, 31024, 1);
addHoveredButton(31024, "PrivateChat/GoldBox", 19, 20, 31025);
addHoverButton(31026, "PrivateChat/Color 8", 16, 16, "Use", -1, 31027, 1);
addHoveredButton(31027, "PrivateChat/GoldBox", 19, 20, 31028);
addHoverButton(31029, "PrivateChat/Color 9", 16, 16, "Use", -1, 31030, 1);
addHoveredButton(31030, "PrivateChat/GoldBox", 19, 20, 31031);
addHoverButton(31032, "PrivateChat/Color 10", 16, 16, "Use", -1, 31033, 1);
addHoveredButton(31033, "PrivateChat/GoldBox", 19, 20, 31034);
addHoverButton(31035, "PrivateChat/Color 11", 16, 16, "Use", -1, 31036, 1);
addHoveredButton(31036, "PrivateChat/GoldBox", 19, 20, 31037);
addHoverButton(31038, "PrivateChat/Color 12", 16, 16, "Use", -1, 31039, 1);
addHoveredButton(31039, "PrivateChat/GoldBox", 19, 20, 31040);
addHoverButton(31041, "PrivateChat/Color 13", 16, 16, "Use", -1, 31042, 1);
addHoveredButton(31042, "PrivateChat/GoldBox", 19, 20, 31043);
addHoverButton(31044, "PrivateChat/Color 14", 16, 16, "Use", -1, 31045, 1);
addHoveredButton(31045, "PrivateChat/GoldBox", 19, 20, 31046);
addHoverButton(31047, "PrivateChat/X", 16, 15, "Close", -1, 31048, 1);
addHoveredButton(31048, "PrivateChat/HX", 16, 15, 31049);
addToggleButton(31050, 0, 2, "PrivateChat/CHECK", "Toggle", 1, 4, 500);
addHoverButton(31054, "close", 0, 200, 30, "Back", -1, 31055, 1);
addHoveredButton(31055, "close", 1, 200, 30, 31056);
addText(31059, "Sample Text", client.getChatColor(), false, true, -1, tda, 0);
tab.totalChildren(38);
tab.child(0, 31001, 0, 2);
tab.child(1, 31002, 26, 119);
tab.child(2, 31003, 25, 117);
tab.child(3, 31005, 56, 119);
tab.child(4, 31006, 55, 117);
tab.child(5, 31008, 86, 119);
tab.child(6, 31009, 85, 117);
tab.child(7, 31011, 116, 119);
tab.child(8, 31012, 115, 117);
tab.child(9, 31014, 146, 119);
tab.child(10, 31015, 145, 117);
tab.child(11, 31017, 26, 149);
tab.child(12, 31018, 25, 147);
tab.child(13, 31020, 56, 149);
tab.child(14, 31021, 55, 147);
tab.child(15, 31023, 86, 149);
tab.child(16, 31024, 85, 147);
tab.child(17, 31026, 116, 149);
tab.child(18, 31027, 115, 147);
tab.child(19, 31029, 146, 149);
tab.child(20, 31030, 145, 147);
tab.child(21, 31032, 26, 179);
tab.child(22, 31033, 25, 177);
tab.child(23, 31035, 56, 179);
tab.child(24, 31036, 55, 177);
tab.child(25, 31038, 86, 179);
tab.child(26, 31039, 85, 177);
tab.child(27, 31041, 116, 179);
tab.child(28, 31042, 115, 177);
tab.child(29, 31044, 146, 179);
tab.child(30, 31045, 145, 177);
tab.child(31, 31047, 167, 10);
tab.child(32, 31048, 167, 10);
tab.child(33, 31050, 167, 50);
tab.child(34, 31054, 170, 5);
tab.child(35, 31055, 170, 5);
tab.child(36, 31057, 20, 220);
tab.child(37, 31059, 64, 225);
}
private static Sprite imageLoader(String s) {
long l = (TextClass.method585(s) << 8);
Sprite sprite = (Sprite) aMRUNodes_238.insertFromCache(l);
if (sprite != null)
return sprite;
try {
sprite = new Sprite(s);
aMRUNodes_238.removeFromCache(sprite, l);
} catch (Exception exception) {
return null;
}
return sprite;
}
public static void addHoveredButton(int i, String imageName, int w, int h, int IMAGEID) {
RSInterface tab = addTabInterface(i);
tab.parentID = i;
tab.id = i;
tab.type = 0;
tab.atActionType = 0;
tab.width = w;
tab.height = h;
tab.isMouseoverTriggered = true;
tab.aByte254 = 0;
tab.mOverInterToTrigger = -1;
tab.scrollMax = 0;
addHoverImage(IMAGEID, imageName);
tab.totalChildren(1);
tab.child(0, IMAGEID, 0, 0);
}
public static void addHoverImage(int i, String name) {
RSInterface tab = addTabInterface(i);
tab.id = i;
tab.parentID = i;
tab.type = 5;
tab.atActionType = 0;
tab.contentType = 0;
tab.width = 512;
tab.height = 334;
tab.aByte254 = 0;
tab.mOverInterToTrigger = 52;
tab.sprite1 = imageLoader(name);
tab.sprite2 = imageLoader(name);
}
public static void resetRunesAndLevels(int id){
RSInterface rsInterface = interfaceCache[id];
rsInterface.anIntArray245 = new int[4];
rsInterface.anIntArray212 = new int[4];
rsInterface.anIntArray245[0] = 3;
rsInterface.anIntArray212[0] = 565;
rsInterface.anIntArray245[1] = 3;
rsInterface.anIntArray212[1] = 560;
rsInterface.anIntArray245[2] = 3;
rsInterface.anIntArray212[2] = 555;
rsInterface.anIntArray245[3] = 3;
rsInterface.anIntArray212[3] = 1;
rsInterface.valueIndexArray = new int[4][];
rsInterface.valueIndexArray[0] = new int[4];
rsInterface.valueIndexArray[0][0] = 4;
rsInterface.valueIndexArray[0][1] = 3214;
rsInterface.valueIndexArray[0][2] = 0;
rsInterface.valueIndexArray[0][3] = 0;
rsInterface.valueIndexArray[1] = new int[4];
rsInterface.valueIndexArray[1][0] = 4;
rsInterface.valueIndexArray[1][1] = 3214;
rsInterface.valueIndexArray[1][2] = 0;
rsInterface.valueIndexArray[1][3] = 0;
rsInterface.valueIndexArray[2] = new int[4];
rsInterface.valueIndexArray[2][0] = 4;
rsInterface.valueIndexArray[2][1] = 3214;
rsInterface.valueIndexArray[2][2] = 0;
rsInterface.valueIndexArray[2][3] = 0;
rsInterface.valueIndexArray[3] = new int[3];
rsInterface.valueIndexArray[3][0] = 1;
rsInterface.valueIndexArray[3][1] = 6;
rsInterface.valueIndexArray[3][2] = 0;
}
public static void addToggleButton(int id, int bID, int bID2, String bName, String tT, int configID, int aT, int configFrame) {
RSInterface tab = addTabInterface(id);
tab.parentID = id;
tab.id = id;
tab.type = 5;
tab.atActionType = aT;
tab.contentType = 0;// anInt214
tab.aByte254 = 0;
tab.mOverInterToTrigger = 52;
tab.anIntArray212 = new int[1];
tab.anIntArray245 = new int[1];
tab.anIntArray212[0] = 1;
tab.anIntArray245[0] = configID;
tab.valueIndexArray = new int[1][3];
tab.valueIndexArray[0][0] = 5;
tab.valueIndexArray[0][1] = configFrame;
tab.valueIndexArray[0][2] = 0;
tab.sprite1 = imageLoader(bID, bName);
tab.sprite2 = imageLoader(bID2, bName);
tab.width = tab.sprite1.myWidth;
tab.height = tab.sprite1.myHeight;
tab.tooltip = tT;
}
public static void addSprite(int id, String spriteName) {
RSInterface tab = interfaceCache[id] = new RSInterface();
tab.id = id;
tab.parentID = id;
tab.type = 5;
tab.atActionType = 0;
tab.contentType = 0;
tab.aByte254 = (byte) 0;
tab.mOverInterToTrigger = 52;
tab.sprite1 = imageLoader(spriteName);
tab.sprite2 = imageLoader(spriteName);
tab.width = 512;
tab.height = 334;
}
public static void addHoverButton(int i, String imageName, int width, int height, String text, int contentType, int hoverOver, int aT) {
RSInterface tab = addTabInterface(i);
tab.id = i;
tab.parentID = i;
tab.type = 5;
tab.atActionType = aT;
tab.contentType = contentType;
tab.aByte254 = 0;
tab.mOverInterToTrigger = hoverOver;
tab.sprite1 = imageLoader(imageName);
tab.sprite2 = imageLoader(imageName);
tab.width = width;
tab.height = height;
tab.tooltip = text;
}
public static void SettingsTab(TextDrawingArea[] tda) {
RSInterface tab = addTabInterface(6299);
addSprite(37001, 1, "Switcher/Background");
addButton(37046, 1, "Switcher/Top", 63, 24, "Settings Menu", 1);
addText(37050, "Gameframe", tda, 0, 0xFFFFFF, false, true);
addText(37051, "x10 Hitting", tda, 0, 0xFFFFFF, false, true);
addText(37052, "New Hitsplats", tda, 0, 0xFFFFFF, false, true);
addText(37053, "New Hitpoints Bar", tda, 0, 0xFFFFFF, false, true);
addText(37054, "New Context Menu", tda, 0, 0xFFFFFF, false, true);
addText(37055, "Names Above Heads", tda, 0, 0xFFFFFF, false, true);
addText(37056, "HP Above Heads", tda, 0, 0xFFFFFF, false, true);
addText(37057, "Fog", tda, 0, 0xFFFFFF, false, true);
addText(37058, "525", tda, 0, 0xFFFFFF, false, true);
addText(37059, "", tda, 0, 0x67E300, false, true);
addText(37060, "", tda, 0, 0x67E300, false, true);
addText(37061, "", tda, 0, 0xF30021, false, true);
addText(37062, "", tda, 0, 0x67E300, false, true);
addText(37063, "", tda, 0, 0xF30021, false, true);
addText(37064, "", tda, 0, 0xF30021, false, true);
addText(37065, "", tda, 0, 0x67E300, false, true);
addButton(37002, 1, "Switcher/SmallerTextBox", 63, 24, "Change gameframe", 1);
addButton(37003, 1, "Switcher/TextBox", 63, 24, "Toggle On/Off", 1);
addButton(37004, 1, "Switcher/TextBox", 63, 24, "Toggle On/Off", 1);
addButton(37005, 1, "Switcher/TextBox", 63, 24, "Toggle On/Off", 1);
addButton(37006, 1, "Switcher/TextBox", 63, 24, "Toggle On/Off", 1);
addButton(37007, 1, "Switcher/TextBox", 63, 24, "Toggle On/Off", 1);
addButton(37008, 1, "Switcher/TextBox", 63, 24, "Toggle On/Off", 1);
addButton(37009, 1, "Switcher/TextBox", 63, 24, "Toggle On/Off", 1);
addHoverButton(37020, "Switcher/SmallButton", 0, 200, 30, "Change Gameframe", -1, 37021, 1);
addHoveredButton(37021, "Switcher/SmallButton", 1, 200, 30, 37022);
addHoverButton(37023, "Switcher/SmallButton", 0, 200, 30, "Toggle On/Off", -1, 37024, 1);
addHoveredButton(37024, "Switcher/SmallButton", 1, 200, 30, 37025);
addHoverButton(37026, "Switcher/SmallButton", 0, 200, 30, "Toggle On/Off", -1, 37027, 1);
addHoveredButton(37027, "Switcher/SmallButton", 1, 200, 30, 37028);
addHoverButton(37029, "Switcher/SmallButton", 0, 200, 30, "Toggle On/Off", -1, 37030, 1);
addHoveredButton(37030, "Switcher/SmallButton", 1, 200, 30, 37031);
addHoverButton(37033, "Switcher/SmallButton", 0, 200, 30, "Toggle On/Off", -1, 37034, 1);
addHoveredButton(37034, "Switcher/SmallButton", 1, 200, 30, 37035);
addHoverButton(37036, "Switcher/SmallButton", 0, 200, 30, "Toggle On/Off", -1, 37037, 1);
addHoveredButton(37037, "Switcher/SmallButton", 1, 200, 30, 37038);
addHoverButton(37039, "Switcher/SmallButton", 0, 200, 30, "Toggle On/Off", -1, 37040, 1);
addHoveredButton(37040, "Switcher/SmallButton", 1, 200, 30, 37042);
addHoverButton(37043, "Switcher/SmallButton", 0, 200, 30, "Toggle On/Off", -1, 37044, 1);
addHoveredButton(37044, "Switcher/SmallButton", 1, 200, 30, 37045);
addHoverButton(37047, "Interfaces/Minigame/Back", 0, 16, 16, "Back", -1, 37048, 1);
addHoveredButton(37048, "Interfaces/Minigame/Back", 1, 16, 16, 37049);
tab.totalChildren(44);
/*BUTTONS*/
tab.child(0, 37001, 0, 0);
tab.child(1, 37002, 5, 20);
tab.child(2, 37003, 5, 50);
tab.child(3, 37004, 5, 80);
tab.child(4, 37005, 5, 110);
tab.child(5, 37006, 5, 140);
tab.child(6, 37007, 5, 170);
tab.child(7, 37008, 5, 200);
tab.child(8, 37009, 5, 230);
/*HOVER/HOVERED BUTTONS*/
tab.child(9, 37020, 140, 20);
tab.child(10, 37021, 140, 20);
tab.child(11, 37023, 150, 50);
tab.child(12, 37024, 150, 50);
tab.child(13, 37026, 150, 80);
tab.child(14, 37027, 150, 80);
tab.child(15, 37029, 150, 110);
tab.child(16, 37030, 150, 110);
tab.child(17, 37033, 150, 140);
tab.child(18, 37034, 150, 140);
tab.child(19, 37036, 150, 170);
tab.child(20, 37037, 150, 170);
tab.child(21, 37039, 150, 200);
tab.child(22, 37040, 150, 200);
tab.child(23, 37043, 150, 230);
tab.child(24, 37044, 150, 230);
/*TOP SPRITE*/
tab.child(25, 37046, 35, 0);
tab.child(26, 37047, 0, 0);
tab.child(27, 37048, 0, 0);
/*TEXT*/
tab.child(43, 37050, 8, 23);
tab.child(28, 37051, 8, 53);
tab.child(29, 37052, 8, 83);
tab.child(30, 37053, 8, 113);
tab.child(31, 37054, 8, 143);
tab.child(32, 37055, 8, 173);
tab.child(33, 37056, 8, 203);
tab.child(34, 37057, 8, 233);
//dddd
tab.child(35, 37058, 146, 23);
tab.child(36, 37059, 159, 53);
tab.child(37, 37060, 159, 83);
tab.child(38, 37061, 159, 113);
tab.child(39, 37062, 159, 143);
tab.child(40, 37063, 159, 173);
tab.child(41, 37064, 159, 203);
tab.child(42, 37065, 159, 233);
}
public static void Trade(TextDrawingArea[] TDA){
RSInterface Interface = addTabInterface(3323);
setChildren(18, Interface);
addSprite(3324, 6, "Bank2/TRADE");
addHover(3442, 3, 0, 3325, 1, "Bank2/BANK", 17, 17, "Close Window");
addHovered(3325, 2, "Bank2/BANK", 17, 17, 3326);
addText(3417, "Trading With:", 0xFF9933, true, true, 52,TDA, 2);
addText(3418, "Trader's Offer", 0xFF9933, false, true, 52,TDA, 1);
addText(3419, "Your Offer", 0xFF9933, false, true, 52,TDA, 1);
addText(3421, "Accept", 0x00C000, true, true, 52,TDA, 1);
addText(3423, "Decline", 0xC00000, true, true, 52,TDA, 1);
addText(3431, "Waiting For Other Player", 0xFFFFFF, true, true, 52,TDA, 1);
addHover(3420, 1, 0, 3327, 5, "Bank2/TRADE", 65, 32, "Accept");
addHovered(3327, 2, "Bank2/TRADE", 65, 32, 3328);
addHover(3422, 3, 0, 3329, 5, "Bank2/TRADE", 65, 32, "Close Window");
addHovered(3329, 2, "Bank2/TRADE", 65, 32, 3330);
addText(19000, "", TDA, 0, 0xFF9933, true, true);
addText(19001, "", TDA, 0, 0xFF9933, true, true);
addText(19002, "inventory slots.", TDA, 0, 0xFF9933, true, true);
setBounds(3324, 0, 16, 0, Interface);
setBounds(3442, 485, 24, 1, Interface);
setBounds(3325, 485, 24, 2, Interface);
setBounds(3417, 258, 25, 3, Interface);
setBounds(3418, 355, 51, 4, Interface);
setBounds(3419, 68, 51, 5, Interface);
setBounds(3420, 223, 120, 6, Interface);
setBounds(3327, 223, 120, 7, Interface);
setBounds(3422, 223, 160, 8, Interface);
setBounds(3329, 223, 160, 9, Interface);
setBounds(3421, 256, 127, 10, Interface);
setBounds(3423, 256, 167, 11, Interface);
setBounds(3431, 256, 272, 12, Interface);
setBounds(3415, 12, 64, 13, Interface);
setBounds(3416, 321, 64, 14, Interface);
setBounds(19000, 257, 68, 15, Interface);
setBounds(19001, 257, 79, 16, Interface);
setBounds(19002, 257, 90, 17, Interface);
Interface = addTabInterface(3443);
setChildren(15, Interface);
addSprite(3444, 3, "Bank2/TRADE");
/*addButton(3546, 2, "Bank2/SHOP", 63, 24, "Accept", 1);
addButton(3548, 2, "Bank2/SHOP", 63, 24, "Decline", 3);*/
addText(3547, "Accept", 0x00C000, true, true, 52,TDA, 1);
addText(3549, "Decline", 0xC00000, true, true, 52,TDA, 1);
addText(3450, "Trading With:", 0x00FFFF, true, true, 52,TDA, 2);
addText(3451, "Yourself", 0x00FFFF, true, true, 52,TDA, 2);
setBounds(3444, 12, 20, 0, Interface);
setBounds(3442, 470, 32, 1, Interface);
setBounds(3325, 470, 32, 2, Interface);
setBounds(3535, 130, 28, 3, Interface);
setBounds(3536, 105, 47, 4, Interface);
setBounds(3546, 189, 295, 5, Interface);
setBounds(3548, 258, 295, 6, Interface);
setBounds(3547, 220, 299, 7, Interface);
setBounds(3549, 288, 299, 8, Interface);
setBounds(3557, 71, 87, 9, Interface);
setBounds(3558, 315, 87, 10, Interface);
setBounds(3533, 64, 70, 11, Interface);
setBounds(3534, 297, 70, 12, Interface);
setBounds(3450, 95, 289, 13, Interface);
setBounds(3451, 95, 304, 14, Interface);
}
public static void addPrayer(int i, int configId, int configFrame, int requiredValues, int prayerSpriteID, String PrayerName, int Hover) {
RSInterface Interface = addTabInterface(i);
Interface.id = i;
Interface.parentID = 22500;
Interface.type = 5;
Interface.atActionType = 4;
Interface.contentType = 0;
Interface.aByte254 = 0;
Interface.mOverInterToTrigger = -1;
Interface.sprite1 = imageLoader(0, "CurseTab/GLOW");
Interface.sprite2 = imageLoader(1, "CurseTab/GLOW");
Interface.width = 34;
Interface.height = 34;
Interface.anIntArray245 = new int[1];
Interface.anIntArray212 = new int[1];
Interface.anIntArray245[0] = 1;
Interface.anIntArray212[0] = configId;
Interface.valueIndexArray = new int[1][3];
Interface.valueIndexArray[0][0] = 5;
Interface.valueIndexArray[0][1] = configFrame;
Interface.valueIndexArray[0][2] = 0;
Interface.tooltip = "Activate@or1@ " + PrayerName;
Interface = addTabInterface(i + 1);
Interface.id = i + 1;
Interface.parentID = 22500;
Interface.type = 5;
Interface.atActionType = 0;
Interface.contentType = 0;
Interface.aByte254 = 0;
Interface.sprite1 = imageLoader(prayerSpriteID, "CurseTab/PRAYON");
Interface.sprite2 = imageLoader(prayerSpriteID, "CurseTab/PRAYOFF");
Interface.width = 34;
Interface.height = 34;
Interface.anIntArray245 = new int[1];
Interface.anIntArray212 = new int[1];
Interface.anIntArray245[0] = 2;
Interface.anIntArray212[0] = requiredValues + 1;
Interface.valueIndexArray = new int[1][3];
Interface.valueIndexArray[0][0] = 2;
Interface.valueIndexArray[0][1] = 5;
Interface.valueIndexArray[0][2] = 0;
}
public static void Curses(TextDrawingArea[] TDA) {
RSInterface Interface = addTabInterface(22500);
int index = 0;
addText(687, "99/99", 0xFF981F, false, false, -1, TDA, 1);
addSprite(22502, 0, "CurseTab/ICON");
addPrayer(22503, 0, 610, 49, 7, "Protect Item", 22582);//1
addPrayer(22505, 0, 611, 49, 4, "Sap Warrior", 22544);//2
addPrayer(22507, 0, 612, 51, 5, "Sap Ranger", 22546);//3
addPrayer(22509, 0, 613, 53, 3, "Sap Mage", 22548);//4
addPrayer(22511, 0, 614, 55, 2, "Sap Spirit", 22550);//5
addPrayer(22513, 0, 615, 58, 18, "Berserker", 22552);//6
addPrayer(22515, 0, 616, 61, 15, "Deflect Summoning", 22554);///7
addPrayer(22517, 0, 617, 64, 17, "Deflect Magic", 22556);///8
addPrayer(22519, 0, 618, 67, 16, "Deflect Missiles", 22558);///9
addPrayer(22521, 0, 619, 70, 6, "Deflect Melee", 22560);///10
addPrayer(22523, 0, 620, 73, 9, "Leech Attack", 22562);//11
addPrayer(22525, 0, 621, 75, 10, "Leech Ranged", 22564);//12
addPrayer(22527, 0, 622, 77, 11, "Leech Magic", 22566);//13
addPrayer(22529, 0, 623, 79, 12, "Leech Defence", 22568);//14
addPrayer(22531, 0, 624, 81, 13, "Leech Strength", 22570);//15
addPrayer(22533, 0, 625, 83, 14, "Leech Energy", 22572);//16
addPrayer(22535, 0, 626, 85, 19, "Leech Special Attack", 22574);//17
addPrayer(22537, 0, 627, 88, 1, "Wrath", 22576);///18
addPrayer(22539, 0, 628, 91, 8, "Soul Split", 22578);///19
addPrayer(22541, 0, 629, 94, 20, "Turmoil", 22580);//20
drawTooltip(22582, "Level 50\nProtect Item\nKeep 1 extra item if you die");
drawTooltip(22544, "Level 50\nSap Warrior\nDrains 10% of enemy Attack,\nStrength and Defence,\nincreasing to 20% over time");
drawTooltip(22546, "Level 52\nSap Ranger\nDrains 10% of enemy Ranged\nand Defence, increasing to 20%\nover time");
drawTooltip(22548, "Level 54\nSap Mage\nDrains 10% of enemy Magic\nand Defence, increasing to 20%\nover time");
drawTooltip(22550, "Level 56\nSap Spirit\nDrains enenmy special attack\nenergy");
drawTooltip(22552, "Level 59\nBerserker\nBoosted stats last 15% longer");
drawTooltip(22554, "Level 62\nDeflect Summoning\nReduces damage dealt from\nSummoning scrolls, prevents the\nuse of a familiar's special\nattack, and can deflect some of\ndamage back to the attacker");
drawTooltip(22556, "Level 65\nDeflect Magic\nProtects against magical attacks\nand can deflect some of the\ndamage back to the attacker");
drawTooltip(22558, "Level 68\nDeflect Missiles\nProtects against ranged attacks\nand can deflect some of the\ndamage back to the attacker");
drawTooltip(22560, "Level 71\nDeflect Melee\nProtects against melee attacks\nand can deflect some of the\ndamage back to the attacker");
drawTooltip(22562, "Level 74\nLeech Attack\nBoosts Attack by 5%, increasing\nto 10% over time, while draining\nenemy Attack by 10%, increasing\nto 25% over time");
drawTooltip(22564, "Level 76\nLeech Ranged\nBoosts Ranged by 5%, increasing\nto 10% over time, while draining\nenemy Ranged by 10%,\nincreasing to 25% over\ntime");
drawTooltip(22566, "Level 78\nLeech Magic\nBoosts Magic by 5%, increasing\nto 10% over time, while draining\nenemy Magic by 10%, increasing\nto 25% over time");
drawTooltip(22568, "Level 80\nLeech Defence\nBoosts Defence by 5%, increasing\nto 10% over time, while draining\n enemy Defence by10%,\nincreasing to 25% over\ntime");
drawTooltip(22570, "Level 82\nLeech Strength\nBoosts Strength by 5%, increasing\nto 10% over time, while draining\nenemy Strength by 10%, increasing\n to 25% over time");
drawTooltip(22572, "Level 84\nLeech Energy\nDrains enemy run energy, while\nincreasing your own");
drawTooltip(22574, "Level 86\nLeech Special Attack\nDrains enemy special attack\nenergy, while increasing your\nown");
drawTooltip(22576, "Level 89\nWrath\nInflicts damage to nearby\ntargets if you die");
drawTooltip(22578, "Level 92\nSoul Split\n1/4 of damage dealt is also removed\nfrom opponent's Prayer and\nadded to your Hitpoints");
drawTooltip(22580, "Level 95\nTurmoil\nIncreases Attack and Defence\nby 15%, plus 15% of enemy's\nlevel, and Strength by 23% plus\n10% of enemy's level");
setChildren(62, Interface);
setBounds(687, 85, 241, index, Interface);index++;
setBounds(22502, 65, 241, index, Interface);index++;
setBounds(22503, 2, 5, index, Interface);index++;
setBounds(22504, 8, 8, index, Interface);index++;
setBounds(22505, 40, 5, index, Interface);index++;
setBounds(22506, 47, 12, index, Interface);index++;
setBounds(22507, 76, 5, index, Interface);index++;
setBounds(22508, 82, 11, index, Interface);index++;
setBounds(22509, 113, 5, index, Interface);index++;
setBounds(22510, 116, 8, index, Interface);index++;
setBounds(22511, 150, 5, index, Interface);index++;
setBounds(22512, 155, 10, index, Interface);index++;
setBounds(22513, 2, 45, index, Interface);index++;
setBounds(22514, 9, 48, index, Interface);index++;
setBounds(22515, 39, 45, index, Interface);index++;
setBounds(22516, 42, 47, index, Interface);index++;
setBounds(22517, 76, 45, index, Interface);index++;
setBounds(22518, 79, 48, index, Interface);index++;
setBounds(22519, 113, 45, index, Interface);index++;
setBounds(22520, 116, 48, index, Interface);index++;
setBounds(22521, 151, 45, index, Interface);index++;
setBounds(22522, 154, 48, index, Interface);index++;
setBounds(22523, 2, 82, index, Interface);index++;
setBounds(22524, 6, 86, index, Interface);index++;
setBounds(22525, 40, 82, index, Interface);index++;
setBounds(22526, 42, 86, index, Interface);index++;
setBounds(22527, 77, 82, index, Interface);index++;
setBounds(22528, 79, 86, index, Interface);index++;
setBounds(22529, 114, 83, index, Interface);index++;
setBounds(22530, 119, 87, index, Interface);index++;
setBounds(22531, 153, 83, index, Interface);index++;
setBounds(22532, 156, 86, index, Interface);index++;
setBounds(22533, 2, 120, index, Interface);index++;
setBounds(22534, 7, 125, index, Interface);index++;
setBounds(22535, 40, 120, index, Interface);index++;
setBounds(22536, 45, 124, index, Interface);index++;
setBounds(22537, 78, 120, index, Interface);index++;
setBounds(22538, 86, 124, index, Interface);index++;
setBounds(22539, 114, 120, index, Interface);index++;
setBounds(22540, 120, 125, index, Interface);index++;
setBounds(22541, 151, 120, index, Interface);index++;
setBounds(22542, 153, 127, index, Interface);index++;
setBounds(22582, 10, 40, index, Interface);index++;
setBounds(22544, 20, 40, index, Interface);index++;
setBounds(22546, 20, 40, index, Interface);index++;
setBounds(22548, 20, 40, index, Interface);index++;
setBounds(22550, 20, 40, index, Interface);index++;
setBounds(22552, 10, 80, index, Interface);index++;
setBounds(22554, 10, 80, index, Interface);index++;
setBounds(22556, 10, 80, index, Interface);index++;
setBounds(22558, 10, 80, index, Interface);index++;
setBounds(22560, 10, 80, index, Interface);index++;
setBounds(22562, 10, 120, index, Interface);index++;
setBounds(22564, 10, 120, index, Interface);index++;
setBounds(22566, 10, 120, index, Interface);index++;
setBounds(22568, 5, 120, index, Interface);index++;
setBounds(22570, 5, 120, index, Interface);index++;
setBounds(22572, 10, 160, index, Interface);index++;
setBounds(22574, 10, 160, index, Interface);index++;
setBounds(22576, 10, 160, index, Interface);index++;
setBounds(22578, 10, 160, index, Interface);index++;
setBounds(22580, 10, 160, index, Interface);index++;
}
public static void Shop(TextDrawingArea[] TDA){
RSInterface Interface = addTabInterface(3824);
setChildren(8, Interface);
addSprite(3825, 0, "Bank2/SHOP");
addHover(3902, 3, 0, 3826, 1, "Bank/BANK", 17, 17, "Close Window");
addHovered(3826, 2, "Bank2/BANK", 17, 17, 3827);
addText(19679, "Main Stock", 0xFF981F, false, true, 52,TDA, 1);//3628////19679
addText(19680, "Store Info", 0xBF751D, false, true, 52,TDA, 1);//3629//19680
addButton(19681, 2, "Bank2/SHOP", 95, 19, "Store Information", 1);//3630//19681
setBounds(3825, 12, 12, 0, Interface);
setBounds(3902, 471, 22, 1, Interface);
setBounds(3826, 471, 22, 2, Interface);
setBounds(3900, 60, 85, 3, Interface);
setBounds(3901, 240, 21, 4, Interface);
setBounds(19679, 42, 54, 5, Interface);
setBounds(19680, 150, 54, 6, Interface);
setBounds(19681, 129, 50, 7, Interface);
Interface = interfaceCache[3900];
Interface.invSpritePadX = 8;
Interface.width = 10;
Interface.height = 4;
Interface.invSpritePadY = 19;
Interface = addTabInterface(19682);
addSprite(19683, 1, "Bank2/SHOP");
addText(19684, "Main Stock", 0xBF751D, false, true, 52,TDA, 1);
addText(19685, "Store Info", 0xFF981F, false, true, 52,TDA, 1);
addButton(19686, 2, "Bank/SHOP", 95, 19, "Main Stock", 1);
setChildren(7, Interface);
setBounds(19683, 12, 12, 0, Interface);
setBounds(3901, 240, 21, 1, Interface);
setBounds(19684, 42, 54, 2, Interface);
setBounds(19685, 150, 54, 3, Interface);
setBounds(19686, 23, 50, 4, Interface);
setBounds(3902, 471, 22, 5, Interface);
setBounds(3826, 60, 85, 6, Interface);
}
public static void addText(int i, String s,int k, boolean l, boolean m, int a,TextDrawingArea[] TDA, int j, int dsc) {
RSInterface rsinterface = addTabInterface(i);
rsinterface.parentID = i;
rsinterface.id = i;
rsinterface.type = 4;
rsinterface.atActionType = 1;
rsinterface.width = 174;
rsinterface.height = 11;
rsinterface.contentType = 0;
rsinterface.aByte254 = 0;
rsinterface.mOverInterToTrigger = a;
rsinterface.centerText = l;
rsinterface.textShadow = m;
rsinterface.textDrawingAreas = TDA[j];
rsinterface.message = s;
rsinterface.aString228 = "";
rsinterface.anInt219 = 0;
rsinterface.textColor = k;
rsinterface.anInt216 = dsc;
rsinterface.tooltip = s;
}
public static void Bank(){
RSInterface Interface = addTabInterface(5292);
setChildren(19, Interface);
addSprite(5293, 0, "Bank/BANK");
setBounds(5293, 13, 13, 0, Interface);
addHover(5384, 3, 0, 5380, 1, "Bank/BANK", 17, 17, "Close Window");
addHovered(5380, 2, "Bank/BANK", 17, 17, 5379);
setBounds(5384, 476, 16, 3, Interface);
setBounds(5380, 476, 16, 4, Interface);
addHover(5294, 4, 0, 5295, 3, "Bank/BANK", 114, 25, "Set A Bank PIN");
addHovered(5295, 4, "Bank/BANK", 114, 25, 5296);
setBounds(5294, 110, 285, 5, Interface);
setBounds(5295, 110, 285, 6, Interface);
addBankHover(21000, 4, 21001, 5, 8, "Bank/BANK", 35, 25, 304, 1, "Swap Withdraw Mode", 21002, 7, 6, "Bank/BANK", 21003, "Switch to insert items \nmode", "Switch to swap items \nmode.", 12, 20);
setBounds(21000, 25, 285, 7, Interface);
setBounds(21001, 10, 225, 8, Interface);
addBankHover(21004, 4, 21005, 13, 15, "Bank/BANK", 35, 25, 0, 1, "Search", 21006, 14, 16, "Bank/BANK", 21007, "Click here to search your \nbank", "Click here to search your \nbank", 12, 20);
setBounds(21004, 65, 285, 9, Interface);
setBounds(21005, 50, 225, 10, Interface);
addBankHover(21008, 4, 21009, 9, 11, "Bank/BANK", 35, 25, 115, 1, "Withdraw", 21010, 10, 12, "Bank/BANK", 21011, "Switch to note withdrawal \nmode", "Switch to item withdrawal \nmode", 12, 20);
setBounds(21008, 240, 285, 11, Interface);
setBounds(21009, 225, 225, 12, Interface);
addBankHover1(21012, 5, 21013, 17, "Bank/BANK", 35, 25, "Deposit carried tems", 21014, 18, "Bank/BANK", 21015, "Empty your backpack into\nyour bank", 0, 20);
setBounds(21012, 375, 285, 13, Interface);
setBounds(21013, 360, 225, 14, Interface);
addBankHover1(21016, 5, 21017, 19, "Bank/BANK", 35, 25, "Deposit worn items", 21018, 20, "Bank/BANK", 21019, "Empty the items your are\nwearing into your bank", 0, 20);
setBounds(21016, 415, 285, 15, Interface);
setBounds(21017, 400, 225, 16, Interface);
addBankHover1(21020, 5, 21021, 21, "Bank/BANK", 35, 25, "Deposit beast of burden inventory.", 21022, 22, "Bank/BANK", 21023, "Empty your BoB's inventory\ninto your bank", 0, 20);
setBounds(21020, 455, 285, 17, Interface);
setBounds(21021, 440, 225, 18, Interface);
setBounds(5383, 170, 15, 1, Interface);
setBounds(5385, -4, 74, 2, Interface);
Interface = interfaceCache[5385];
Interface.height = 206;
Interface.width = 480;
Interface = interfaceCache[5382];
Interface.width = 10;
Interface.invSpritePadX = 12;
Interface.height = 35;
}
public static void addBankHover(int interfaceID, int actionType, int hoverid, int spriteId, int spriteId2, String NAME, int Width, int Height, int configFrame, int configId, String Tooltip,int hoverId2, int hoverSpriteId,int hoverSpriteId2, String hoverSpriteName, int hoverId3, String hoverDisabledText, String hoverEnabledText, int X, int Y){
RSInterface hover = addTabInterface(interfaceID);
hover.id = interfaceID;
hover.parentID = interfaceID;
hover.type = 5;
hover.atActionType = actionType;
hover.contentType = 0;
hover.aByte254 = 0;
hover.mOverInterToTrigger = hoverid;
hover.sprite1 = imageLoader(spriteId, NAME);
hover.sprite2 = imageLoader(spriteId2, NAME);
hover.width = Width;
hover.tooltip = Tooltip;
hover.height = Height;
hover.anIntArray245 = new int[1];
hover.anIntArray212 = new int[1];
hover.anIntArray245[0] = 1;
hover.anIntArray212[0] = configId;
hover.valueIndexArray = new int[1][3];
hover.valueIndexArray[0][0] = 5;
hover.valueIndexArray[0][1] = configFrame;
hover.valueIndexArray[0][2] = 0;
hover = addTabInterface(hoverid);
hover.parentID = hoverid;
hover.id = hoverid;
hover.type = 0;
hover.atActionType = 0;
hover.width =550;
hover.height = 334;
hover.isMouseoverTriggered = true;
hover.mOverInterToTrigger = -1;
addSprite(hoverId2, hoverSpriteId, hoverSpriteId2, hoverSpriteName, configId, configFrame);
addHoverBox(hoverId3, interfaceID,hoverDisabledText, hoverEnabledText, configId, configFrame);
setChildren(2, hover);
setBounds(hoverId2, 15, 60, 0, hover);
setBounds(hoverId3, X, Y, 1, hover);
}
public static void addBankHover1(int interfaceID, int actionType, int hoverid, int spriteId, String NAME, int Width, int Height, String Tooltip, int hoverId2, int hoverSpriteId, String hoverSpriteName, int hoverId3, String hoverDisabledText, int X, int Y){
RSInterface hover = addTabInterface(interfaceID);
hover.id = interfaceID;
hover.parentID = interfaceID;
hover.type = 5;
hover.atActionType = actionType;
hover.contentType = 0;
hover.aByte254 = 0;
hover.mOverInterToTrigger = hoverid;
hover.sprite1 = imageLoader(spriteId, NAME);
hover.width = Width;
hover.tooltip = Tooltip;
hover.height = Height;
hover = addTabInterface(hoverid);
hover.parentID = hoverid;
hover.id = hoverid;
hover.type = 0;
hover.atActionType = 0;
hover.width =550;
hover.height = 334;
hover.isMouseoverTriggered = true;
hover.mOverInterToTrigger = -1;
addSprite(hoverId2, hoverSpriteId, hoverSpriteId, hoverSpriteName,0,0);
addHoverBox(hoverId3, interfaceID,hoverDisabledText, hoverDisabledText, 0, 0);
setChildren(2, hover);
setBounds(hoverId2, 15, 60, 0, hover);
setBounds(hoverId3, X, Y, 1, hover);
}
public static void addHoverBox(int id, int ParentID,String text, String text2, int configId, int configFrame) {
RSInterface rsi = addTabInterface(id);
rsi.id = id;
rsi.parentID = ParentID;
rsi.type = 8;
rsi.aString228 = text;
rsi.message = text2;
rsi.anIntArray245 = new int[1];
rsi.anIntArray212 = new int[1];
rsi.anIntArray245[0] = 1;
rsi.anIntArray212[0] = configId;
rsi.valueIndexArray = new int[1][3];
rsi.valueIndexArray[0][0] = 5;
rsi.valueIndexArray[0][1] = configFrame;
rsi.valueIndexArray[0][2] = 0;
}
public static void addHover(int i, int aT, int cT, int hoverid,int sId, String NAME, int W, int H, String tip){
RSInterface hover = addTabInterface(i);
hover.id = i;
hover.parentID = i;
hover.type = 5;
hover.atActionType = aT;
hover.contentType = cT;
hover.mOverInterToTrigger = hoverid;
hover.sprite1 = imageLoader(sId, NAME);
hover.sprite2 = imageLoader(sId, NAME);
hover.width = W;
hover.height = H;
hover.tooltip = tip;
}
public static void addHovered(int i, int j, String imageName, int w, int h, int IMAGEID) {
RSInterface hover = addTabInterface(i);
hover.parentID = i;
hover.id = i;
hover.type = 0;
hover.atActionType = 0;
hover.width = w;
hover.height = h;
hover.isMouseoverTriggered = true;
hover.mOverInterToTrigger = -1;
addSprite(IMAGEID, j, imageName);
setChildren(1, hover);
setBounds(IMAGEID, 0, 0, 0, hover);
}
public static void addSprite(int ID, int i, int i2, String name, int configId, int configFrame) {
RSInterface Tab = addTabInterface(ID);
Tab.id = ID;
Tab.parentID = ID;
Tab.type = 5;
Tab.atActionType = 0;
Tab.contentType = 0;
Tab.width = 512;
Tab.height = 334;
Tab.aByte254 = (byte) 0;
Tab.mOverInterToTrigger = -1;
Tab.anIntArray245 = new int[1];
Tab.anIntArray212 = new int[1];
Tab.anIntArray245[0] = 1;
Tab.anIntArray212[0] = configId;
Tab.valueIndexArray = new int[1][3];
Tab.valueIndexArray[0][0] = 5;
Tab.valueIndexArray[0][1] = configFrame;
Tab.valueIndexArray[0][2] = 0;
Tab.sprite1 = imageLoader(i, name);
Tab.sprite2 = imageLoader(i2, name);
}
public static void unpack(StreamLoader streamloader, TextDrawingArea atextdrawingarea[], StreamLoader streamloader1)
{
aMRUNodes_238 = new MRUNodes(50000);
Stream stream = new Stream(streamloader.getDataForName("data"));
int i = -1;
int j = stream.readUnsignedWord();
interfaceCache = new RSInterface[j + 50000];
do
{
if(stream.currentOffset >= stream.buffer.length)
{
break;
}
int k = stream.readUnsignedWord();
if(k == 65535)
{
i = stream.readUnsignedWord();
k = stream.readUnsignedWord();
}
RSInterface rsinterface = interfaceCache[k] = new RSInterface();
rsinterface.id = k;
rsinterface.parentID = i;
rsinterface.type = stream.readUnsignedByte();
rsinterface.atActionType = stream.readUnsignedByte();
rsinterface.contentType = stream.readUnsignedWord();
rsinterface.width = stream.readUnsignedWord();
rsinterface.height = stream.readUnsignedWord();
rsinterface.aByte254 = (byte)stream.readUnsignedByte();
rsinterface.mOverInterToTrigger = stream.readUnsignedByte();
if(rsinterface.mOverInterToTrigger != 0)
{
rsinterface.mOverInterToTrigger = (rsinterface.mOverInterToTrigger - 1 << 8) + stream.readUnsignedByte();
} else
{
rsinterface.mOverInterToTrigger = -1;
}
int l = stream.readUnsignedByte();
if(l > 0)
{
rsinterface.anIntArray245 = new int[l];
rsinterface.anIntArray212 = new int[l];
for(int i1 = 0; i1 < l; i1++)
{
rsinterface.anIntArray245[i1] = stream.readUnsignedByte();
rsinterface.anIntArray212[i1] = stream.readUnsignedWord();
}
}
int j1 = stream.readUnsignedByte();
if(j1 > 0)
{
rsinterface.valueIndexArray = new int[j1][];
for(int k1 = 0; k1 < j1; k1++)
{
int j3 = stream.readUnsignedWord();
rsinterface.valueIndexArray[k1] = new int[j3];
for(int l4 = 0; l4 < j3; l4++)
{
rsinterface.valueIndexArray[k1][l4] = stream.readUnsignedWord();
}
}
}
if(rsinterface.type == 0)
{
rsinterface.drawsTransparent = false;
rsinterface.scrollMax = stream.readUnsignedWord();
rsinterface.isMouseoverTriggered = stream.readUnsignedByte() == 1;
int l1 = stream.readUnsignedWord();
rsinterface.children = new int[l1];
rsinterface.childX = new int[l1];
rsinterface.childY = new int[l1];
for(int k3 = 0; k3 < l1; k3++)
{
rsinterface.children[k3] = stream.readUnsignedWord();
rsinterface.childX[k3] = stream.readSignedWord();
rsinterface.childY[k3] = stream.readSignedWord();
}
}
if(rsinterface.type == 1)
{
stream.readUnsignedWord();
stream.readUnsignedByte();
}
if(rsinterface.type == 2)
{
rsinterface.inv = new int[rsinterface.width * rsinterface.height];
rsinterface.invStackSizes = new int[rsinterface.width * rsinterface.height];
rsinterface.aBoolean259 = stream.readUnsignedByte() == 1;
rsinterface.isInventoryInterface = stream.readUnsignedByte() == 1;
rsinterface.usableItemInterface = stream.readUnsignedByte() == 1;
rsinterface.aBoolean235 = stream.readUnsignedByte() == 1;
rsinterface.invSpritePadX = stream.readUnsignedByte();
rsinterface.invSpritePadY = stream.readUnsignedByte();
rsinterface.spritesX = new int[20];
rsinterface.spritesY = new int[20];
rsinterface.sprites = new Sprite[20];
for(int i2 = 0; i2 < 20; i2++)
{
int l3 = stream.readUnsignedByte();
if(l3 != 1)
{
continue;
}
rsinterface.spritesX[i2] = stream.readSignedWord();
rsinterface.spritesY[i2] = stream.readSignedWord();
String s1 = stream.readString();
if(streamloader1 != null && s1.length() > 0)
{
int i5 = s1.lastIndexOf(",");
rsinterface.sprites[i2] = method207(Integer.parseInt(s1.substring(i5 + 1)), streamloader1, s1.substring(0, i5));
}
}
rsinterface.actions = new String[5];
for(int j2 = 0; j2 < 5; j2++)
{
rsinterface.actions[j2] = stream.readString();
if(rsinterface.actions[j2].length() == 0)
{
rsinterface.actions[j2] = null;
}
if(rsinterface.parentID == 1644)
{
rsinterface.actions[2] = "Operate";
}
}
}
if(rsinterface.type == 3)
{
rsinterface.aBoolean227 = stream.readUnsignedByte() == 1;
}
if(rsinterface.type == 4 || rsinterface.type == 1)
{
rsinterface.centerText = stream.readUnsignedByte() == 1;
int k2 = stream.readUnsignedByte();
if(atextdrawingarea != null)
{
rsinterface.textDrawingAreas = atextdrawingarea[k2];
}
rsinterface.textShadow = stream.readUnsignedByte() == 1;
}
if(rsinterface.type == 4)
{
rsinterface.message = stream.readString().replaceAll("RuneScape", "FormationX");
rsinterface.aString228 = stream.readString();
}
if(rsinterface.type == 1 || rsinterface.type == 3 || rsinterface.type == 4)
{
rsinterface.textColor = stream.readDWord();
}
if(rsinterface.type == 3 || rsinterface.type == 4)
{
rsinterface.anInt219 = stream.readDWord();
rsinterface.anInt216 = stream.readDWord();
rsinterface.anInt239 = stream.readDWord();
}
if(rsinterface.type == 5)
{
rsinterface.drawsTransparent = false;
String s = stream.readString();
if(streamloader1 != null && s.length() > 0)
{
int i4 = s.lastIndexOf(",");
rsinterface.sprite1 = method207(Integer.parseInt(s.substring(i4 + 1)), streamloader1, s.substring(0, i4));
}
s = stream.readString();
if(streamloader1 != null && s.length() > 0)
{
int j4 = s.lastIndexOf(",");
rsinterface.sprite2 = method207(Integer.parseInt(s.substring(j4 + 1)), streamloader1, s.substring(0, j4));
}
}
if(rsinterface.type == 6)
{
int l2 = stream.readUnsignedByte();
if(l2 != 0)
{
rsinterface.anInt233 = 1;
rsinterface.mediaID = (l2 - 1 << 8) + stream.readUnsignedByte();
}
l2 = stream.readUnsignedByte();
if(l2 != 0)
{
rsinterface.anInt255 = 1;
rsinterface.anInt256 = (l2 - 1 << 8) + stream.readUnsignedByte();
}
l2 = stream.readUnsignedByte();
if(l2 != 0)
{
rsinterface.anInt257 = (l2 - 1 << 8) + stream.readUnsignedByte();
} else
{
rsinterface.anInt257 = -1;
}
l2 = stream.readUnsignedByte();
if(l2 != 0)
{
rsinterface.anInt258 = (l2 - 1 << 8) + stream.readUnsignedByte();
} else
{
rsinterface.anInt258 = -1;
}
rsinterface.modelZoom = stream.readUnsignedWord();
rsinterface.modelRotation1 = stream.readUnsignedWord();
rsinterface.modelRotation2 = stream.readUnsignedWord();
}
if(rsinterface.type == 7)
{
rsinterface.inv = new int[rsinterface.width * rsinterface.height];
rsinterface.invStackSizes = new int[rsinterface.width * rsinterface.height];
rsinterface.centerText = stream.readUnsignedByte() == 1;
int i3 = stream.readUnsignedByte();
if(atextdrawingarea != null)
{
rsinterface.textDrawingAreas = atextdrawingarea[i3];
}
rsinterface.textShadow = stream.readUnsignedByte() == 1;
rsinterface.textColor = stream.readDWord();
rsinterface.invSpritePadX = stream.readSignedWord();
rsinterface.invSpritePadY = stream.readSignedWord();
rsinterface.isInventoryInterface = stream.readUnsignedByte() == 1;
rsinterface.actions = new String[5];
for(int k4 = 0; k4 < 5; k4++)
{
rsinterface.actions[k4] = stream.readString();
if(rsinterface.actions[k4].length() == 0)
{
rsinterface.actions[k4] = null;
}
}
}
if(rsinterface.atActionType == 2 || rsinterface.type == 2)
{
rsinterface.selectedActionName = stream.readString();
rsinterface.spellName = stream.readString();
rsinterface.spellUsableOn = stream.readUnsignedWord();
}
if(rsinterface.type == 8)
{
rsinterface.message = stream.readString();
}
if(rsinterface.atActionType == 1 || rsinterface.atActionType == 4 || rsinterface.atActionType == 5 || rsinterface.atActionType == 6)
{
rsinterface.tooltip = stream.readString();
if(rsinterface.tooltip.length() == 0)
{
if(rsinterface.atActionType == 1)
{
rsinterface.tooltip = "Ok";
}
if(rsinterface.atActionType == 4)
{
rsinterface.tooltip = "Select";
}
if(rsinterface.atActionType == 5)
{
rsinterface.tooltip = "Select";
}
if(rsinterface.atActionType == 6)
{
rsinterface.tooltip = "Continue";
}
}
}
} while(true);
aClass44 = streamloader;
prayerTab(atextdrawingarea);
emoteTab();
Bank();
Trade(atextdrawingarea);
Shop(atextdrawingarea);
optionTab(atextdrawingarea);
clanChatTab(atextdrawingarea);
Sidebar0(atextdrawingarea);
friendsTab(atextdrawingarea);
ignoreTab(atextdrawingarea);
equipmentTab(atextdrawingarea);
equipmentScreen(atextdrawingarea);
Pestpanel(atextdrawingarea);
Pestpanel2(atextdrawingarea);
magicTab(atextdrawingarea);
ancientMagicTab(atextdrawingarea);
configureLunar(atextdrawingarea);
ColorChanger(atextdrawingarea);
Curses(atextdrawingarea);
SettingsTab(atextdrawingarea);
constructLunar();
questTab(atextdrawingarea);
aMRUNodes_238 = null;
}
public static void magicTab(TextDrawingArea[] tda) {
RSInterface tab = addTabInterface(1151);
RSInterface homeHover = addTabInterface(1196);
RSInterface spellButtons = interfaceCache[12424];
spellButtons.scrollMax = 0; spellButtons.height = 260; spellButtons.width = 190;
int[] spellButton = {
1196, 1199, 1206, 1215, 1224, 1231, 1240, 1249, 1258, 1267, 1274, 1283, 1573,
1290, 1299, 1308, 1315, 1324, 1333, 1340, 1349, 1358, 1367, 1374, 1381, 1388,
1397, 1404, 1583, 12038, 1414, 1421, 1430, 1437, 1446, 1453, 1460, 1469, 15878,
1602, 1613, 1624, 7456, 1478, 1485, 1494, 1503, 1512, 1521, 1530, 1544, 1553,
1563, 1593, 1635, 12426, 12436, 12446, 12456, 6004, 18471
};
tab.totalChildren(63);
tab.child(0, 12424, 13, 24);
for(int i1 = 0; i1 < spellButton.length; i1++) {
int yPos = i1 > 34 ? 8 : 183;
tab.child(1, 1195, 13, 24);
tab.child(i1 + 2, spellButton[i1], 5, yPos);
addButton(1195, 1, "Magic/Home", "Cast @gre@Home Teleport");
RSInterface homeButton = interfaceCache[1195];
homeButton.mOverInterToTrigger = 1196;
}
for(int i2 = 0; i2 < spellButton.length; i2++) {
if(i2 < 60)
spellButtons.childX[i2] = spellButtons.childX[i2] + 24;
if(i2 == 6 || i2 == 12 || i2 == 19 || i2 == 35 || i2 == 41 || i2 == 44 || i2 == 49 || i2 == 51)
spellButtons.childX[i2] = 0;
spellButtons.childY[6] = 24; spellButtons.childY[12] = 48;
spellButtons.childY[19] = 72; spellButtons.childY[49] = 96;
spellButtons.childY[44] = 120; spellButtons.childY[51] = 144;
spellButtons.childY[35] = 170; spellButtons.childY[41] = 192;
}
homeHover.isMouseoverTriggered = true;
addText(1197, "Level 0: Home Teleport", tda, 1, 0xFE981F, true, true);
RSInterface homeLevel = interfaceCache[1197]; homeLevel.width = 174; homeLevel.height = 68;
addText(1198, "A teleport which requires no", tda, 0, 0xAF6A1A, true, true);
addText(18998, "runes and no required level that", tda, 0, 0xAF6A1A, true, true);
addText(18999, "teleports you to the main land.", tda, 0, 0xAF6A1A, true, true);
homeHover.totalChildren(4);
homeHover.child(0, 1197, 3, 4);
homeHover.child(1, 1198, 91, 23);
homeHover.child(2, 18998, 91, 34);
homeHover.child(3, 18999, 91, 45);
resetRunesAndLevels(1541);
}
public static void ancientMagicTab(TextDrawingArea atextdrawingarea[])
{
RSInterface rsinterface = addInterface(12855);
addButton(12856, 1, "Magic/Home", "Cast @gre@Home Teleport");
RSInterface rsinterface1 = interfaceCache[12856];
rsinterface1.mOverInterToTrigger = 1196;
int ai[] = {
12856, 12939, 12987, 13035, 12901, 12861, 13045, 12963, 13011, 13053,
12919, 12881, 13061, 12951, 12999, 13069, 12911, 12871, 13079, 12975,
13023, 13087, 12929, 12891, 13095, 1196, 12940, 12988, 13036, 12902,
12862, 13046, 12964, 13012, 13054, 12920, 12882, 13062, 12952, 13000,
13070, 12912, 12872, 13080, 12976, 13024, 13088, 12930, 12892, 13096
};
rsinterface.totalChildren(ai.length);
int i = 0;
int j = 18;
int k = 8;
while(i < ai.length)
{
if(j > 175)
{
j = 18;
k += 28;
}
if(i < 25)
{
rsinterface.child(i, ai[i], j, k);
}
if(i > 24)
{
k = i >= 41 ? 1 : 181;
rsinterface.child(i, ai[i], 4, k);
}
i++;
j += 45;
}
}
public static void drawBlackBox(int i, int j)
{
DrawingArea.drawPixels(71, j - 1, i - 2, 0x726451, 1);
DrawingArea.drawPixels(69, j, i + 174, 0x726451, 1);
DrawingArea.drawPixels(1, j - 2, i - 2, 0x726451, 178);
DrawingArea.drawPixels(1, j + 68, i, 0x726451, 174);
DrawingArea.drawPixels(71, j - 1, i - 1, 0x2e2b23, 1);
DrawingArea.drawPixels(71, j - 1, i + 175, 0x2e2b23, 1);
DrawingArea.drawPixels(1, j - 1, i, 0x2e2b23, 175);
DrawingArea.drawPixels(1, j + 69, i, 0x2e2b23, 175);
DrawingArea.method335(0, j, 174, 68, 220, i);
}
public static void addButton(int i, int j, String s, String s1)
{
RSInterface rsinterface = interfaceCache[i] = new RSInterface();
rsinterface.id = i;
rsinterface.parentID = i;
rsinterface.type = 5;
rsinterface.atActionType = 1;
rsinterface.contentType = 0;
rsinterface.aByte254 = 0;
rsinterface.mOverInterToTrigger = 52;
rsinterface.sprite1 = imageLoader(j, s);
rsinterface.sprite2 = imageLoader(j, s);
rsinterface.width = rsinterface.sprite1.myWidth;
rsinterface.height = rsinterface.sprite2.myHeight;
rsinterface.tooltip = s1;
}
public static void prayerTab(TextDrawingArea atextdrawingarea[])
{
RSInterface rsinterface = addTabInterface(5608);
RSInterface rsinterface1 = interfaceCache[687];
rsinterface1.textColor = 0xff981f;
rsinterface1.textShadow = true;
rsinterface1.message = "%1/%2";
addSprite(5651, 0, "PRAYER");
addPrayer(18000, 0, 601, 7, 0, "Sharp Eye");
addPrayer(18002, 0, 602, 8, 1, "Mystic Will");
addPrayer(18004, 0, 603, 25, 2, "Hawk Eye");
addPrayer(18006, 0, 604, 26, 3, "Mystic Lore");
addPrayer(18008, 0, 605, 43, 4, "Eagle Eye");
addPrayer(18010, 0, 606, 44, 5, "Mystic Might");
addPrayer(18012, 0, 607, 59, 6, "Chivalry");
addPrayer(18014, 0, 608, 69, 7, "Piety");
rsinterface.totalChildren(54);
rsinterface.child(0, 5609, 6, 4);
rsinterface.child(1, 5610, 42, 4);
rsinterface.child(2, 5611, 78, 4);
rsinterface.child(3, 5612, 6, 40);
rsinterface.child(4, 5613, 42, 40);
rsinterface.child(5, 5614, 78, 40);
rsinterface.child(6, 5615, 114, 40);
rsinterface.child(7, 5616, 150, 40);
rsinterface.child(8, 5617, 6, 76);
rsinterface.child(9, 5618, 114, 76);
rsinterface.child(10, 5619, 150, 76);
rsinterface.child(11, 5620, 6, 112);
rsinterface.child(12, 5621, 42, 112);
rsinterface.child(13, 5622, 78, 112);
rsinterface.child(14, 5623, 114, 112);
rsinterface.child(15, 683, 42, 148);
rsinterface.child(16, 684, 78, 148);
rsinterface.child(17, 685, 114, 148);
rsinterface.child(18, 5632, 8, 6);
rsinterface.child(19, 5633, 44, 6);
rsinterface.child(20, 5634, 80, 6);
rsinterface.child(21, 5635, 8, 42);
rsinterface.child(22, 5636, 44, 42);
rsinterface.child(23, 5637, 80, 42);
rsinterface.child(24, 5638, 116, 42);
rsinterface.child(25, 5639, 152, 42);
rsinterface.child(26, 5640, 8, 79);
rsinterface.child(27, 5641, 116, 78);
rsinterface.child(28, 5642, 152, 78);
rsinterface.child(29, 5643, 8, 114);
rsinterface.child(30, 5644, 44, 114);
rsinterface.child(31, 686, 80, 114);
rsinterface.child(32, 5645, 116, 114);
rsinterface.child(33, 5649, 44, 150);
rsinterface.child(34, 5647, 80, 150);
rsinterface.child(35, 5648, 116, 150);
rsinterface.child(36, 18000, 114, 4);
rsinterface.child(37, 18001, 117, 8);
rsinterface.child(38, 18002, 150, 4);
rsinterface.child(39, 18003, 153, 7);
rsinterface.child(40, 18004, 42, 76);
rsinterface.child(41, 18005, 45, 80);
rsinterface.child(42, 18006, 78, 76);
rsinterface.child(43, 18007, 81, 79);
rsinterface.child(44, 18008, 150, 112);
rsinterface.child(45, 18009, 153, 116);
rsinterface.child(46, 18010, 6, 148);
rsinterface.child(47, 18011, 9, 151);
rsinterface.child(48, 18012, 150, 148);
rsinterface.child(49, 18013, 157, 151);
rsinterface.child(50, 18014, 6, 184);
rsinterface.child(51, 18015, 8, 194);
rsinterface.child(52, 5651, 65, 242);
rsinterface.child(53, 687, 85, 241);
String as[] = {
"Thick Skin", "Burst of Strength", "Clarity of Thought", "Rock Skin", "Superhuman Strength", "Improved Reflexes", "Rapid Restore", "Rapid Heal", "Protect Item", "Steel Skin",
"Ultimate Strength", "Incredible Reflexes", "Protect from Magic", "Protect from Range", "Protect from Melee", "Retribution", "Redemption", "Smite"
};
int i = 0;
for(int j = 5609; j <= 5623; j++)
{
RSInterface rsinterface2 = interfaceCache[j];
rsinterface2.tooltip = (new StringBuilder()).append("Activate @or2@").append(as[i++]).toString();
}
for(int k = 683; k <= 685; k++)
{
RSInterface rsinterface3 = interfaceCache[k];
rsinterface3.tooltip = (new StringBuilder()).append("Activate @or2@").append(as[i++]).toString();
}
}
public static void addTooltipBox(int i, String s)
{
RSInterface rsinterface = addInterface(i);
rsinterface.id = i;
rsinterface.parentID = i;
rsinterface.type = 8;
rsinterface.popupString = s;
}
public static void drawTooltip(int id, String text) {
RSInterface rsinterface = addTabInterface(id);
rsinterface.parentID = id;
rsinterface.type = 0;
rsinterface.isMouseoverTriggered = true;
rsinterface.mOverInterToTrigger = -1;
rsinterface.tooltip = text;
rsinterface.totalChildren(1);
rsinterface.child(0, id + 1, 0, 0);
}
public static void addTooltip(int i, String s)
{
RSInterface rsinterface = addInterface(i);
rsinterface.id = i;
rsinterface.type = 0;
rsinterface.isMouseoverTriggered = true;
rsinterface.mOverInterToTrigger = -1;
addTooltipBox(i + 1, s);
rsinterface.totalChildren(1);
rsinterface.child(0, i + 1, 0, 0);
}
public static void addPrayer(int i, int j, int k, int l, int i1, String s)
{
RSInterface rsinterface = addTabInterface(i);
rsinterface.id = i;
rsinterface.parentID = 5608;
rsinterface.type = 5;
rsinterface.atActionType = 4;
rsinterface.contentType = 0;
rsinterface.aByte254 = 0;
rsinterface.mOverInterToTrigger = -1;
rsinterface.sprite1 = imageLoader(0, "PRAYERGLOW");
rsinterface.sprite2 = imageLoader(1, "PRAYERGLOW");
rsinterface.width = 34;
rsinterface.height = 34;
rsinterface.anIntArray245 = new int[1];
rsinterface.anIntArray212 = new int[1];
rsinterface.anIntArray245[0] = 1;
rsinterface.anIntArray212[0] = j;
rsinterface.valueIndexArray = new int[1][3];
rsinterface.valueIndexArray[0][0] = 5;
rsinterface.valueIndexArray[0][1] = k;
rsinterface.valueIndexArray[0][2] = 0;
rsinterface.tooltip = (new StringBuilder()).append("Activate@or2@ ").append(s).toString();
RSInterface rsinterface1 = addTabInterface(i + 1);
rsinterface1.id = i + 1;
rsinterface1.parentID = 5608;
rsinterface1.type = 5;
rsinterface1.atActionType = 0;
rsinterface1.contentType = 0;
rsinterface1.aByte254 = 0;
rsinterface1.mOverInterToTrigger = -1;
rsinterface1.sprite1 = imageLoader(i1, "/PRAYER/PRAYON");
rsinterface1.sprite2 = imageLoader(i1, "/PRAYER/PRAYOFF");
rsinterface1.width = 34;
rsinterface1.height = 34;
rsinterface1.anIntArray245 = new int[1];
rsinterface1.anIntArray212 = new int[1];
rsinterface1.anIntArray245[0] = 2;
rsinterface1.anIntArray212[0] = 1 + 1;
rsinterface1.valueIndexArray = new int[1][3];
rsinterface1.valueIndexArray[0][0] = 2;
rsinterface1.valueIndexArray[0][1] = 5;
rsinterface1.valueIndexArray[0][2] = 0;
}
public static void friendsTab(TextDrawingArea atextdrawingarea[])
{
RSInterface rsinterface = addTabInterface(5065);
RSInterface rsinterface1 = interfaceCache[5066];
addText(5067, "Friends List", atextdrawingarea, 1, 0xff9933, true, true);
addText(5070, "Add Friend", atextdrawingarea, 0, 0xff9933, false, true);
addText(5071, "Delete Friend", atextdrawingarea, 0, 0xff9933, false, true);
addSprite(16126, 4, "/Friends/SPRITE");
addSprite(16127, 8, "/Friends/SPRITE");
addHoverButton(5068, "/Friends/SPRITE", 6, 72, 32, "Add Friend", 201, 5072, 1);
addHoveredButton(5072, "/Friends/SPRITE", 7, 72, 32, 5073);
addHoverButton(5069, "/Friends/SPRITE", 6, 72, 32, "Delete Friend", 202, 5074, 1);
addHoveredButton(5074, "/Friends/SPRITE", 7, 72, 32, 5075);
rsinterface.totalChildren(11);
rsinterface.child(0, 5067, 95, 4);
rsinterface.child(1, 16127, 0, 25);
rsinterface.child(2, 16126, 0, 221);
rsinterface.child(3, 5066, 0, 24);
rsinterface.child(4, 16126, 0, 22);
rsinterface.child(5, 5068, 15, 226);
rsinterface.child(6, 5072, 15, 226);
rsinterface.child(7, 5069, 103, 226);
rsinterface.child(8, 5074, 103, 226);
rsinterface.child(9, 5070, 25, 237);
rsinterface.child(10, 5071, 106, 237);
rsinterface1.height = 196;
rsinterface1.width = 174;
int i = 5092;
for(int j = 0; i <= 5191 && j <= 99; j++)
{
rsinterface1.children[j] = i;
rsinterface1.childX[j] = 3;
rsinterface1.childY[j] = rsinterface1.childY[j] - 7;
i++;
}
i = 5192;
for(int k = 100; i <= 5291 && k <= 199; k++)
{
rsinterface1.children[k] = i;
rsinterface1.childX[k] = 131;
rsinterface1.childY[k] = rsinterface1.childY[k] - 7;
i++;
}
}
public static void ignoreTab(TextDrawingArea atextdrawingarea[])
{
RSInterface rsinterface = addTabInterface(5715);
RSInterface rsinterface1 = interfaceCache[5716];
addText(5717, "Ignore List", atextdrawingarea, 1, 0xff9933, true, true);
addText(5720, "Add Name", atextdrawingarea, 0, 0xff9933, false, true);
addText(5721, "Delete Name", atextdrawingarea, 0, 0xff9933, false, true);
addHoverButton(5718, "/Friends/SPRITE", 6, 72, 32, "Add Name", 501, 5722, 1);
addHoveredButton(5722, "/Friends/SPRITE", 7, 72, 32, 5723);
addHoverButton(5719, "/Friends/SPRITE", 6, 72, 32, "Delete Name", 502, 5724, 1);
addHoveredButton(5724, "/Friends/SPRITE", 7, 72, 32, 5725);
rsinterface.totalChildren(11);
rsinterface.child(0, 5717, 95, 4);
rsinterface.child(1, 16127, 0, 25);
rsinterface.child(2, 16126, 0, 221);
rsinterface.child(3, 5716, 0, 24);
rsinterface.child(4, 16126, 0, 22);
rsinterface.child(5, 5718, 15, 226);
rsinterface.child(6, 5722, 15, 226);
rsinterface.child(7, 5719, 103, 226);
rsinterface.child(8, 5724, 103, 226);
rsinterface.child(9, 5720, 27, 237);
rsinterface.child(10, 5721, 108, 237);
rsinterface1.height = 196;
rsinterface1.width = 174;
int i = 5742;
for(int j = 0; i <= 5841 && j <= 99; j++)
{
rsinterface1.children[j] = i;
rsinterface1.childX[j] = 3;
rsinterface1.childY[j] = rsinterface1.childY[j] - 7;
i++;
}
}
private static Sprite CustomSpriteLoader(int i, String s)
{
long l = (TextClass.method585(s) << 8) + (long)i;
Sprite sprite = (Sprite)aMRUNodes_238.insertFromCache(l);
if(sprite != null)
{
return sprite;
}
try
{
sprite = new Sprite((new StringBuilder()).append("/Attack/").append(i).append(s).toString());
aMRUNodes_238.removeFromCache(sprite, l);
}
catch(Exception exception)
{
return null;
}
return sprite;
}
public static RSInterface addInterface(int i)
{
RSInterface rsinterface = interfaceCache[i] = new RSInterface();
rsinterface.id = i;
rsinterface.parentID = i;
rsinterface.width = 512;
rsinterface.height = 334;
return rsinterface;
}
public static void addText(int i, String s, TextDrawingArea textDrawingAreas[], int j, int k, boolean flag)
{
RSInterface rsinterface = interfaceCache[i] = new RSInterface();
if(flag)
{
rsinterface.centerText = true;
}
rsinterface.textShadow = true;
rsinterface.textDrawingAreas = textDrawingAreas[j];
rsinterface.message = s;
rsinterface.textColor = k;
rsinterface.id = i;
rsinterface.type = 4;
}
public static void textColor(int i, int j)
{
RSInterface rsinterface = interfaceCache[i];
rsinterface.textColor = j;
}
public static void textSize(int i, TextDrawingArea textDrawingAreas[], int j)
{
RSInterface rsinterface = interfaceCache[i];
rsinterface.textDrawingAreas = textDrawingAreas[j];
}
public static void addCacheSprite(int i, int j, int k, String s)
{
RSInterface rsinterface = interfaceCache[i] = new RSInterface();
rsinterface.sprite1 = method207(j, aClass44, s);
rsinterface.sprite2 = method207(k, aClass44, s);
rsinterface.parentID = i;
rsinterface.id = i;
rsinterface.type = 5;
}
public static void sprite1(int i, int j)
{
RSInterface rsinterface = interfaceCache[i];
rsinterface.sprite1 = CustomSpriteLoader(j, "");
}
public static void addActionButton(int i, int j, int k, int l, int i1, String s)
{
RSInterface rsinterface = interfaceCache[i] = new RSInterface();
rsinterface.sprite1 = CustomSpriteLoader(j, "");
if(k == j)
{
rsinterface.sprite2 = CustomSpriteLoader(j, "a");
} else
{
rsinterface.sprite2 = CustomSpriteLoader(k, "");
}
rsinterface.tooltip = s;
rsinterface.contentType = 0;
rsinterface.atActionType = 1;
rsinterface.width = l;
rsinterface.mOverInterToTrigger = 52;
rsinterface.parentID = i;
rsinterface.id = i;
rsinterface.type = 5;
rsinterface.height = i1;
}
public static void addToggleButton(int i, int j, int k, int l, int i1, String s)
{
RSInterface rsinterface = addInterface(i);
rsinterface.sprite1 = CustomSpriteLoader(j, "");
rsinterface.sprite2 = CustomSpriteLoader(j, "a");
rsinterface.anIntArray212 = new int[1];
rsinterface.anIntArray212[0] = 1;
rsinterface.anIntArray245 = new int[1];
rsinterface.anIntArray245[0] = 1;
rsinterface.valueIndexArray = new int[1][3];
rsinterface.valueIndexArray[0][0] = 5;
rsinterface.valueIndexArray[0][1] = k;
rsinterface.valueIndexArray[0][2] = 0;
rsinterface.atActionType = 4;
rsinterface.width = l;
rsinterface.mOverInterToTrigger = -1;
rsinterface.parentID = i;
rsinterface.id = i;
rsinterface.type = 5;
rsinterface.height = i1;
rsinterface.tooltip = s;
}
public void totalChildren(int i, int j, int k)
{
children = new int[i];
childX = new int[j];
childY = new int[k];
}
public static void removeSomething(int i)
{
RSInterface rsinterface = interfaceCache[i] = new RSInterface();
}
public void specialBar(int i)
{
addActionButton(i - 12, 7587, -1, 150, 26, "Use @gre@Special Attack");
for(int j = i - 11; j < i; j++)
{
removeSomething(j);
}
RSInterface rsinterface = interfaceCache[i - 12];
rsinterface.width = 150;
rsinterface.height = 26;
rsinterface = interfaceCache[i];
rsinterface.width = 150;
rsinterface.height = 26;
rsinterface.child(0, i - 12, 0, 0);
rsinterface.child(12, i + 1, 3, 7);
rsinterface.child(23, i + 12, 16, 8);
for(int k = 13; k < 23; k++)
{
rsinterface.childY[k]--;
}
rsinterface = interfaceCache[i + 1];
rsinterface.type = 5;
rsinterface.sprite1 = CustomSpriteLoader(7600, "");
for(int l = i + 2; l < i + 12; l++)
{
RSInterface rsinterface1 = interfaceCache[l];
rsinterface1.type = 5;
}
sprite1(i + 2, 7601);
sprite1(i + 3, 7602);
sprite1(i + 4, 7603);
sprite1(i + 5, 7604);
sprite1(i + 6, 7605);
sprite1(i + 7, 7606);
sprite1(i + 8, 7607);
sprite1(i + 9, 7608);
sprite1(i + 10, 7609);
sprite1(i + 11, 7610);
}
public static void Sidebar0(TextDrawingArea atextdrawingarea[])
{
Sidebar0a(1698, 1701, 7499, "Chop", "Hack", "Smash", "Block", 42, 75, 127, 75, 39, 128, 125, 128, 122, 103, 40, 50, 122, 50, 40, 103, atextdrawingarea);
Sidebar0a(2276, 2279, 7574, "Stab", "Lunge", "Slash", "Block", 43, 75, 124, 75, 41, 128, 125, 128, 122, 103, 40, 50, 122, 50, 40, 103, atextdrawingarea);
Sidebar0a(2423, 2426, 7599, "Chop", "Slash", "Lunge", "Block", 42, 75, 125, 75, 40, 128, 125, 128, 122, 103, 40, 50, 122, 50, 40, 103, atextdrawingarea);
Sidebar0a(3796, 3799, 7624, "Pound", "Pummel", "Spike", "Block", 39, 75, 121, 75, 41, 128, 125, 128, 122, 103, 40, 50, 122, 50, 40, 103, atextdrawingarea);
Sidebar0a(4679, 4682, 7674, "Lunge", "Swipe", "Pound", "Block", 40, 75, 124, 75, 39, 128, 125, 128, 122, 103, 40, 50, 122, 50, 40, 103, atextdrawingarea);
Sidebar0a(4705, 4708, 7699, "Chop", "Slash", "Smash", "Block", 42, 75, 125, 75, 39, 128, 125, 128, 122, 103, 40, 50, 122, 50, 40, 103, atextdrawingarea);
Sidebar0a(5570, 5573, 7724, "Spike", "Impale", "Smash", "Block", 41, 75, 123, 75, 39, 128, 125, 128, 122, 103, 40, 50, 122, 50, 40, 103, atextdrawingarea);
Sidebar0a(7762, 7765, 7800, "Chop", "Slash", "Lunge", "Block", 42, 75, 125, 75, 40, 128, 125, 128, 122, 103, 40, 50, 122, 50, 40, 103, atextdrawingarea);
Sidebar0b(776, 779, "Reap", "Chop", "Jab", "Block", 42, 75, 126, 75, 46, 128, 125, 128, 122, 103, 122, 50, 40, 103, 40, 50, atextdrawingarea);
Sidebar0c(425, 428, 7474, "Pound", "Pummel", "Block", 39, 75, 121, 75, 42, 128, 40, 103, 40, 50, 122, 50, atextdrawingarea);
Sidebar0c(1749, 1752, 7524, "Accurate", "Rapid", "Longrange", 33, 75, 125, 75, 29, 128, 40, 103, 40, 50, 122, 50, atextdrawingarea);
Sidebar0c(1764, 1767, 7549, "Accurate", "Rapid", "Longrange", 33, 75, 125, 75, 29, 128, 40, 103, 40, 50, 122, 50, atextdrawingarea);
Sidebar0c(4446, 4449, 7649, "Accurate", "Rapid", "Longrange", 33, 75, 125, 75, 29, 128, 40, 103, 40, 50, 122, 50, atextdrawingarea);
Sidebar0c(5855, 5857, 7749, "Punch", "Kick", "Block", 40, 75, 129, 75, 42, 128, 40, 50, 122, 50, 40, 103, atextdrawingarea);
Sidebar0c(6103, 6132, 6117, "Bash", "Pound", "Block", 43, 75, 124, 75, 42, 128, 40, 103, 40, 50, 122, 50, atextdrawingarea);
Sidebar0c(8460, 8463, 8493, "Jab", "Swipe", "Fend", 46, 75, 124, 75, 43, 128, 40, 103, 40, 50, 122, 50, atextdrawingarea);
Sidebar0c(12290, 12293, 12323, "Flick", "Lash", "Deflect", 44, 75, 127, 75, 36, 128, 40, 50, 40, 103, 122, 50, atextdrawingarea);
Sidebar0d(328, 331, "Bash", "Pound", "Focus", 42, 66, 39, 101, 41, 136, 40, 120, 40, 50, 40, 85, atextdrawingarea);
RSInterface rsinterface = addInterface(19300);
textSize(3983, atextdrawingarea, 0);
addToggleButton(150, 150, 172, 150, 44, "Auto Retaliate");
rsinterface.totalChildren(2, 2, 2);
rsinterface.child(0, 3983, 52, 25);
rsinterface.child(1, 150, 21, 153);
rsinterface = interfaceCache[3983];
rsinterface.centerText = true;
rsinterface.textColor = 0xff981f;
}
public static void Sidebar0a(int i, int j, int k, String s, String s1, String s2, String s3, int l,
int i1, int j1, int k1, int l1, int i2, int j2, int k2,
int l2, int i3, int j3, int k3, int l3, int i4, int j4,
int k4, TextDrawingArea atextdrawingarea[])
{
RSInterface rsinterface = addInterface(i);
addText(j, "-2", atextdrawingarea, 3, 0xff981f, true);
addText(j + 11, s, atextdrawingarea, 0, 0xff981f, false);
addText(j + 12, s1, atextdrawingarea, 0, 0xff981f, false);
addText(j + 13, s2, atextdrawingarea, 0, 0xff981f, false);
addText(j + 14, s3, atextdrawingarea, 0, 0xff981f, false);
rsinterface.specialBar(k);
rsinterface.width = 190;
rsinterface.height = 261;
byte byte0 = 15;
int l4 = 0;
rsinterface.totalChildren(byte0, byte0, byte0);
rsinterface.child(l4, j + 3, 21, 46);
l4++;
rsinterface.child(l4, j + 4, 104, 99);
l4++;
rsinterface.child(l4, j + 5, 21, 99);
l4++;
rsinterface.child(l4, j + 6, 105, 46);
l4++;
rsinterface.child(l4, j + 7, l2, i3);
l4++;
rsinterface.child(l4, j + 8, j3, k3);
l4++;
rsinterface.child(l4, j + 9, l3, i4);
l4++;
rsinterface.child(l4, j + 10, j4, k4);
l4++;
rsinterface.child(l4, j + 11, l, i1);
l4++;
rsinterface.child(l4, j + 12, j1, k1);
l4++;
rsinterface.child(l4, j + 13, l1, i2);
l4++;
rsinterface.child(l4, j + 14, j2, k2);
l4++;
rsinterface.child(l4, 19300, 0, 0);
l4++;
rsinterface.child(l4, j, 94, 4);
l4++;
rsinterface.child(l4, k, 21, 205);
l4++;
for(int i5 = j + 3; i5 < j + 7; i5++)
{
RSInterface rsinterface1 = interfaceCache[i5];
rsinterface1.sprite1 = CustomSpriteLoader(19301, "");
rsinterface1.sprite2 = CustomSpriteLoader(19301, "a");
rsinterface1.width = 68;
rsinterface1.height = 44;
}
}
public static void Sidebar0b(int i, int j, String s, String s1, String s2, String s3, int k, int l,
int i1, int j1, int k1, int l1, int i2, int j2, int k2,
int l2, int i3, int j3, int k3, int l3, int i4, int j4,
TextDrawingArea atextdrawingarea[])
{
RSInterface rsinterface = addInterface(i);
addText(j, "-2", atextdrawingarea, 3, 0xff981f, true);
addText(j + 11, s, atextdrawingarea, 0, 0xff981f, false);
addText(j + 12, s1, atextdrawingarea, 0, 0xff981f, false);
addText(j + 13, s2, atextdrawingarea, 0, 0xff981f, false);
addText(j + 14, s3, atextdrawingarea, 0, 0xff981f, false);
rsinterface.width = 190;
rsinterface.height = 261;
byte byte0 = 14;
int k4 = 0;
rsinterface.totalChildren(byte0, byte0, byte0);
rsinterface.child(k4, j + 3, 21, 46);
k4++;
rsinterface.child(k4, j + 4, 104, 99);
k4++;
rsinterface.child(k4, j + 5, 21, 99);
k4++;
rsinterface.child(k4, j + 6, 105, 46);
k4++;
rsinterface.child(k4, j + 7, k2, l2);
k4++;
rsinterface.child(k4, j + 8, i3, j3);
k4++;
rsinterface.child(k4, j + 9, k3, l3);
k4++;
rsinterface.child(k4, j + 10, i4, j4);
k4++;
rsinterface.child(k4, j + 11, k, l);
k4++;
rsinterface.child(k4, j + 12, i1, j1);
k4++;
rsinterface.child(k4, j + 13, k1, l1);
k4++;
rsinterface.child(k4, j + 14, i2, j2);
k4++;
rsinterface.child(k4, 19300, 0, 0);
k4++;
rsinterface.child(k4, j, 94, 4);
k4++;
for(int l4 = j + 3; l4 < j + 7; l4++)
{
RSInterface rsinterface1 = interfaceCache[l4];
rsinterface1.sprite1 = CustomSpriteLoader(19301, "");
rsinterface1.sprite2 = CustomSpriteLoader(19301, "a");
rsinterface1.width = 68;
rsinterface1.height = 44;
}
}
public static void Sidebar0c(int i, int j, int k, String s, String s1, String s2, int l, int i1,
int j1, int k1, int l1, int i2, int j2, int k2, int l2,
int i3, int j3, int k3, TextDrawingArea atextdrawingarea[])
{
RSInterface rsinterface = addInterface(i);
addText(j, "-2", atextdrawingarea, 3, 0xff981f, true);
addText(j + 9, s, atextdrawingarea, 0, 0xff981f, false);
addText(j + 10, s1, atextdrawingarea, 0, 0xff981f, false);
addText(j + 11, s2, atextdrawingarea, 0, 0xff981f, false);
rsinterface.specialBar(k);
rsinterface.width = 190;
rsinterface.height = 261;
byte byte0 = 12;
int l3 = 0;
rsinterface.totalChildren(byte0, byte0, byte0);
rsinterface.child(l3, j + 3, 21, 99);
l3++;
rsinterface.child(l3, j + 4, 105, 46);
l3++;
rsinterface.child(l3, j + 5, 21, 46);
l3++;
rsinterface.child(l3, j + 6, j2, k2);
l3++;
rsinterface.child(l3, j + 7, l2, i3);
l3++;
rsinterface.child(l3, j + 8, j3, k3);
l3++;
rsinterface.child(l3, j + 9, l, i1);
l3++;
rsinterface.child(l3, j + 10, j1, k1);
l3++;
rsinterface.child(l3, j + 11, l1, i2);
l3++;
rsinterface.child(l3, 19300, 0, 0);
l3++;
rsinterface.child(l3, j, 94, 4);
l3++;
rsinterface.child(l3, k, 21, 205);
l3++;
for(int i4 = j + 3; i4 < j + 6; i4++)
{
RSInterface rsinterface1 = interfaceCache[i4];
rsinterface1.sprite1 = CustomSpriteLoader(19301, "");
rsinterface1.sprite2 = CustomSpriteLoader(19301, "a");
rsinterface1.width = 68;
rsinterface1.height = 44;
}
}
public static void Sidebar0d(int i, int j, String s, String s1, String s2, int k, int l, int i1,
int j1, int k1, int l1, int i2, int j2, int k2, int l2,
int i3, int j3, TextDrawingArea atextdrawingarea[])
{
RSInterface rsinterface = addInterface(i);
addText(j, "-2", atextdrawingarea, 3, 0xff981f, true);
addText(j + 9, s, atextdrawingarea, 0, 0xff981f, false);
addText(j + 10, s1, atextdrawingarea, 0, 0xff981f, false);
addText(j + 11, s2, atextdrawingarea, 0, 0xff981f, false);
removeSomething(353);
addText(354, "Spell", atextdrawingarea, 0, 0xff981f, false);
addCacheSprite(337, 19, 0, "combaticons");
addCacheSprite(338, 13, 0, "combaticons2");
addCacheSprite(339, 14, 0, "combaticons2");
removeSomething(349);
addToggleButton(350, 350, 108, 68, 44, "Select");
rsinterface.width = 190;
rsinterface.height = 261;
byte byte0 = 15;
int k3 = 0;
rsinterface.totalChildren(byte0, byte0, byte0);
rsinterface.child(k3, j + 3, 20, 115);
k3++;
rsinterface.child(k3, j + 4, 20, 80);
k3++;
rsinterface.child(k3, j + 5, 20, 45);
k3++;
rsinterface.child(k3, j + 6, i2, j2);
k3++;
rsinterface.child(k3, j + 7, k2, l2);
k3++;
rsinterface.child(k3, j + 8, i3, j3);
k3++;
rsinterface.child(k3, j + 9, k, l);
k3++;
rsinterface.child(k3, j + 10, i1, j1);
k3++;
rsinterface.child(k3, j + 11, k1, l1);
k3++;
rsinterface.child(k3, 349, 105, 46);
k3++;
rsinterface.child(k3, 350, 104, 106);
k3++;
rsinterface.child(k3, 353, 125, 74);
k3++;
rsinterface.child(k3, 354, 125, 134);
k3++;
rsinterface.child(k3, 19300, 0, 0);
k3++;
rsinterface.child(k3, j, 94, 4);
k3++;
}
public static void emoteTab()
{
RSInterface tab = addTabInterface(147);
RSInterface scroll = addTabInterface(148);
tab.totalChildren(1);
tab.child(0, 148, 0, 1);
int[] ButtonIDs = { 168, 169, 164, 165, 162, 163,13370, 171, 167, 170, 13366, 13368, 166, 13363, 13364, 13365, 161, 11100, 13362, 13367, 172, 13369, 13383, 13384, 667, 6503, 6506, 666, 18464, 18465, 15166, 18686, 18689, 18688, 18691, 18692, 18687, 154, 22586, 22587, 22588, 22589, 22590, 22591, 22592, 22593, 22594};
int[] EmoteX = { 10, 54, 98, 137, 9, 48, 95, 137, 7, 51, 95, 139, 6, 50, 90, 135, 8, 51, 99, 137, 10, 53, 88, 138, 3, 52, 96, 141, 5, 53, 88, 142, 10, 51, 139, 88, 12, 49, 97, 140, 10, 50, 90, 140, 10, 60, 90};
int[] EmoteY = { 6, 6, 13, 6, 55, 55, 55, 55, 104, 104, 103, 104, 153, 153, 153, 153, 203, 202, 203, 202, 250, 250, 255, 249, 300, 299, 299, 299, 349, 350, 352, 350, 401, 402, 406, 402, 452, 450, 452, 452, 505, 505, 505, 505, 560, 560, 560};
int[] EmoteIDs = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 33, 34, 35, 36, 28, 29, 30, 37, 31, 32, 38, 39, 40, 41, 42, 43, 44, 45, 46};
String[] EmoteTooltip = { "Yes", "No", "Bow", "Angry", "Think", "Wave", "Shrug", "Cheer", "Beckon", "Laugh", "Jump for Joy", "Yawn", "Dance", "Jig", "Spin", "Headbang", "Cry", "Blow Kiss", "Panic", "Raspberry", "Clap", "Salute", "Goblin Bow", "Goblin Salute", "Glass Box", "Climb Rope", "Lean on Air", "Glass Wall", "Idea", "Stomp", "Flap", "Slap Head", "Zombie Walk", "Zombie Dance", "Scared", "Zombie Hand", "Bunny Hop", "Skill Cape", "Snowman Dance", "Air Guitar", "Safety First", "Explore", "Trick", "Freeze & Melt", "Give Thanks", "Around The World In Eggty Days", "Dramatic Point"};
scroll.totalChildren(ButtonIDs.length);
for(int index = 0; index < ButtonIDs.length; index++) {
addButton(ButtonIDs[index], EmoteIDs[index], "Emotes/EMOTE", EmoteTooltip[index] );
}
for(int index = 0; index < ButtonIDs.length; index++) {
scroll.child(index, ButtonIDs[index], EmoteX[index], EmoteY[index]);
}
scroll.width = 173;
scroll.height = 260;
scroll.scrollMax = 610;
}
public static void optionTab(TextDrawingArea tda[])
{
RSInterface rsinterface = addTabInterface(904);
RSInterface rsinterface1 = interfaceCache[149];
rsinterface1.textColor = 0xff9933;
addSprite(905, 9, "/Options/SPRITE");
addSprite(907, 18, "/Options/SPRITE");
addSprite(909, 29, "/Options/SPRITE");
addSprite(951, 32, "/Options/SPRITE");
addSprite(953, 33, "/Options/SPRITE");
addSprite(955, 34, "/Options/SPRITE");
addSprite(947, 36, "/Options/SPRITE");
addSprite(949, 35, "/Options/SPRITE");
addConfigButton(152, 904, 30, 31, "/Options/SPRITE", 40, 40, "Toggle-run", 1, 5, 173);
addConfigButton(906, 904, 10, 14, "/Options/SPRITE", 32, 16, "Dark", 1, 5, 166);
addConfigButton(908, 904, 11, 15, "/Options/SPRITE", 32, 16, "Normal", 2, 5, 166);
addConfigButton(910, 904, 12, 16, "/Options/SPRITE", 32, 16, "Bright", 3, 5, 166);
addConfigButton(912, 904, 13, 17, "/Options/SPRITE", 32, 16, "Very Bright", 4, 5, 166);
addConfigButton(930, 904, 19, 24, "/Options/SPRITE", 26, 16, "Music Off", 4, 5, 168);
addConfigButton(931, 904, 20, 25, "/Options/SPRITE", 26, 16, "Music Level-1", 3, 5, 168);
addConfigButton(932, 904, 21, 26, "/Options/SPRITE", 26, 16, "Music Level-2", 2, 5, 168);
addConfigButton(933, 904, 22, 27, "/Options/SPRITE", 26, 16, "Music Level-3", 1, 5, 168);
addConfigButton(934, 904, 23, 28, "/Options/SPRITE", 24, 16, "Music Level-4", 0, 5, 168);
addConfigButton(941, 904, 19, 24, "/Options/SPRITE", 26, 16, "Regular Zoom", 4, 5, 169);
addConfigButton(942, 904, 20, 25, "/Options/SPRITE", 26, 16, "Zoom +1", 3, 5, 169);
addConfigButton(943, 904, 21, 26, "/Options/SPRITE", 26, 16, "Zoom +2", 2, 5, 169);
addConfigButton(944, 904, 22, 27, "/Options/SPRITE", 26, 16, "Zoom +3", 1, 5, 169);
addConfigButton(945, 904, 23, 28, "/Options/SPRITE", 24, 16, "Zoom +4", 0, 5, 169);
addConfigButton(913, 904, 30, 31, "/Options/SPRITE", 40, 40, "Toggle-Mouse Buttons", 0, 5, 170);
addConfigButton(915, 904, 30, 31, "/Options/SPRITE", 40, 40, "Toggle-Chat Effects", 0, 5, 171);
addConfigButton(957, 904, 30, 31, "/Options/SPRITE", 40, 40, "Toggle-Split Private Chat", 1, 5, 287);
addConfigButton(12464, 904, 30, 31, "/Options/SPRITE", 40, 40, "Toggle-Accept Aid", 0, 5, 427);
addButton(18988, 0, "screent", "Toggle Screen Size");
rsinterface.totalChildren(29);
int i = 0;
byte byte0 = 2;
rsinterface.child(0, 905, 13 + i, 10 + byte0);
rsinterface.child(1, 906, 48 + i, 18 + byte0);
rsinterface.child(2, 908, 80 + i, 18 + byte0);
rsinterface.child(3, 910, 112 + i, 18 + byte0);
rsinterface.child(4, 912, 144 + i, 18 + byte0);
rsinterface.child(5, 907, 14 + i, 55 + byte0);
rsinterface.child(6, 930, 49 + i, 61 + byte0);
rsinterface.child(7, 931, 75 + i, 61 + byte0);
rsinterface.child(8, 932, 101 + i, 61 + byte0);
rsinterface.child(9, 933, 127 + i, 61 + byte0);
rsinterface.child(10, 934, 151 + i, 61 + byte0);
rsinterface.child(11, 909, 13 + i, 99 + byte0);
rsinterface.child(12, 941, 49 + i, 104 + byte0);
rsinterface.child(13, 942, 75 + i, 104 + byte0);
rsinterface.child(14, 943, 101 + i, 104 + byte0);
rsinterface.child(15, 944, 127 + i, 104 + byte0);
rsinterface.child(16, 945, 151 + i, 104 + byte0);
rsinterface.child(17, 913, 15, 153);
rsinterface.child(18, 955, 19, 159);
rsinterface.child(19, 915, 75, 153);
rsinterface.child(20, 953, 79, 160);
rsinterface.child(21, 957, 135, 153);
rsinterface.child(22, 951, 139, 159);
rsinterface.child(23, 12464, 15, 208);
rsinterface.child(24, 949, 20, 213);
rsinterface.child(25, 152, 75, 208);
rsinterface.child(26, 947, 87, 212);
rsinterface.child(27, 149, 80, 231);
rsinterface.child(28, 18988, 130, 208);
}
public static void clanChatTab(TextDrawingArea[] tda) {
RSInterface tab = addTabInterface(18128);
addHoverButton(18129, "/Clan Chat/SPRITE", 6, 72, 32, "Join Chat", 550, 18130, 1);
addHoveredButton(18130, "/Clan Chat/SPRITE", 7, 72, 32, 18131);
addHoverButton(18132, "/Clan Chat/SPRITE", 6, 72, 32, "Leave Chat", -1, 18133, 5);
addHoveredButton(18133, "/Clan Chat/SPRITE", 7, 72, 32, 18134);
addButton(18250, 0, "/Clan Chat/Lootshare", "Toggle lootshare");
addText(18135, "Join Chat", tda, 0, 0xff9b00, true, true);
addText(18136, "Leave Chat", tda, 0, 0xff9b00, true, true);
addSprite(18137, 37, "/Clan Chat/SPRITE");
addText(18138, "Clan Chat", tda, 1, 0xff9b00, true, true);
addText(18139, "Talking in: Not in chat", tda, 0, 0xff9b00, false, true);
addText(18140, "Owner: None", tda, 0, 0xff9b00, false, true);
tab.totalChildren(14);
tab.child(0, 16126, 0, 221);
tab.child(1, 16126, 0, 59);
tab.child(2, 18137, 0, 62);
tab.child(3, 18143, 0, 62);
tab.child(4, 18129, 15, 226);
tab.child(5, 18130, 15, 226);
tab.child(6, 18132, 103, 226);
tab.child(7, 18133, 103, 226);
tab.child(8, 18135, 51, 237);
tab.child(9, 18136, 139, 237);
tab.child(10, 18138, 95, 1);
tab.child(11, 18139, 10, 23);
tab.child(12, 18140, 25, 38);
tab.child(13, 18250, 145,15);
/* Text area */
RSInterface list = addTabInterface(18143);
list.totalChildren(100);
for(int i = 18144; i <= 18244; i++) {
addText(i, "", tda, 0, 0xffffff, false, true);
}
for(int id = 18144, i = 0; id <= 18243 && i <= 99; id++, i++) {
list.children[i] = id; list.childX[i] = 5;
for(int id2 = 18144, i2 = 1; id2 <= 18243 && i2<= 99; id2++, i2++) {
list.childY[0] = 2;
list.childY[i2] = list.childY[i2 - 1] + 14;
}
}
list.height = 158; list.width = 174;
list.scrollMax = 1405;
}
public static void addText(int i, String s, int j, boolean flag, boolean flag1, int k, TextDrawingArea atextdrawingarea[], int l)
{
RSInterface rsinterface = addInterface(i);
rsinterface.parentID = i;
rsinterface.id = i;
rsinterface.type = 4;
rsinterface.atActionType = 0;
rsinterface.width = 0;
rsinterface.height = 0;
rsinterface.contentType = 0;
rsinterface.aByte254 = 0;
rsinterface.mOverInterToTrigger = k;
rsinterface.centerText = flag;
rsinterface.textShadow = flag1;
rsinterface.textDrawingAreas = atextdrawingarea[l];
rsinterface.message = s;
rsinterface.aString228 = "";
rsinterface.textColor = j;
}
public static void Pestpanel(TextDrawingArea atextdrawingarea[])
{
RSInterface rsinterface = addInterface(21119);
addText(21120, "Next Departure:", 0xCCCBCB, false, true, 52, atextdrawingarea, 1);
addText(21121, "Players Ready:", 0x5BD230, false, true, 52, atextdrawingarea, 1);
addText(21122, "(Need 5 to 25 players)", 0xDED36A, false, true, 52, atextdrawingarea, 1);
addText(21123, "Pest Points:", 0x99FFFF, false, true, 52, atextdrawingarea, 1);
byte byte0 = 4;
rsinterface.children = new int[byte0];
rsinterface.childX = new int[byte0];
rsinterface.childY = new int[byte0];
setBounds(21120, 15, 12, 0, rsinterface);
setBounds(21121, 15, 30, 1, rsinterface);
setBounds(21122, 15, 48, 2, rsinterface);
setBounds(21123, 15, 66, 3, rsinterface);
}
public static void Pestpanel2(TextDrawingArea atextdrawingarea[])
{
RSInterface rsinterface = addInterface(21100);
addSprite(21101, 0, "Pest Control/PEST1");
addSprite(21102, 1, "Pest Control/PEST1");
addSprite(21103, 2, "Pest Control/PEST1");
addSprite(21104, 3, "Pest Control/PEST1");
addSprite(21105, 4, "Pest Control/PEST1");
addSprite(21106, 5, "Pest Control/PEST1");
addText(21107, "W", 0xcc00cc, false, true, 52, atextdrawingarea, 1);
addText(21108, "E", 0x0000FF, false, true, 52, atextdrawingarea, 1);
addText(21109, "SE", 0xffff44, false, true, 52, atextdrawingarea, 1);
addText(21110, "SW", 0xcc0000, false, true, 52, atextdrawingarea, 1);
addText(21111, "250", 0x99ff33, false, true, 52, atextdrawingarea, 1);
addText(21112, "250", 0x99ff33, false, true, 52, atextdrawingarea, 1);
addText(21113, "250", 0x99ff33, false, true, 52, atextdrawingarea, 1);
addText(21114, "250", 0x99ff33, false, true, 52, atextdrawingarea, 1);
addText(21115, "***", 0x99ff33, false, true, 52, atextdrawingarea, 1);
addText(21116, "***", 0x99ff33, false, true, 52, atextdrawingarea, 1);
addText(21117, "Time Remaining:", 0xffffff, false, true, 52, atextdrawingarea, 0);
addText(21118, "10 Minutes", 0xffffff, false, true, 52, atextdrawingarea, 0);
byte byte0 = 18;
rsinterface.children = new int[byte0];
rsinterface.childX = new int[byte0];
rsinterface.childY = new int[byte0];
setBounds(21101, 361, 26, 0, rsinterface);
setBounds(21102, 396, 26, 1, rsinterface);
setBounds(21103, 436, 26, 2, rsinterface);
setBounds(21104, 474, 26, 3, rsinterface);
setBounds(21105, 3, 21, 4, rsinterface);
setBounds(21106, 3, 50, 5, rsinterface);
setBounds(21107, 371, 60, 6, rsinterface);
setBounds(21108, 409, 60, 7, rsinterface);
setBounds(21109, 443, 60, 8, rsinterface);
setBounds(21110, 479, 60, 9, rsinterface);
setBounds(21111, 362, 10, 10, rsinterface);
setBounds(21112, 398, 10, 11, rsinterface);
setBounds(21113, 436, 10, 12, rsinterface);
setBounds(21114, 475, 10, 13, rsinterface);
setBounds(21115, 32, 32, 14, rsinterface);
setBounds(21116, 32, 62, 15, rsinterface);
setBounds(21117, 8, 88, 16, rsinterface);
setBounds(21118, 87, 88, 17, rsinterface);
}
public static void addHoverBox(int i, String s)
{
RSInterface rsinterface = interfaceCache[i];
rsinterface.id = i;
rsinterface.parentID = i;
rsinterface.isMouseoverTriggered = true;
rsinterface.type = 8;
rsinterface.hoverText = s;
}
public static void addText(int i, String s, TextDrawingArea atextdrawingarea[], int j, int k, boolean flag, boolean flag1)
{
RSInterface rsinterface = addTabInterface(i);
rsinterface.parentID = i;
rsinterface.id = i;
rsinterface.type = 4;
rsinterface.atActionType = 0;
rsinterface.width = 0;
rsinterface.height = 11;
rsinterface.contentType = 0;
rsinterface.aByte254 = 0;
rsinterface.mOverInterToTrigger = -1;
rsinterface.centerText = flag;
rsinterface.textShadow = flag1;
rsinterface.textDrawingAreas = atextdrawingarea[j];
rsinterface.message = s;
rsinterface.aString228 = "";
rsinterface.textColor = k;
rsinterface.anInt219 = 0;
rsinterface.anInt216 = 0;
rsinterface.anInt239 = 0;
}
public static void addButton(int i, int j, String s, String s1, int k, int l)
{
RSInterface rsinterface = interfaceCache[i] = new RSInterface();
rsinterface.id = i;
rsinterface.parentID = i;
rsinterface.type = 5;
rsinterface.atActionType = 1;
rsinterface.contentType = 0;
rsinterface.aByte254 = 0;
rsinterface.mOverInterToTrigger = 52;
rsinterface.sprite1 = imageLoader(j, s);
rsinterface.sprite2 = imageLoader(j, s);
rsinterface.width = k;
rsinterface.height = l;
rsinterface.tooltip = s1;
}
public static void addConfigButton(int i, int j, int k, int l, String s, int i1, int j1, String s1,
int k1, int l1, int i2)
{
RSInterface rsinterface = addTabInterface(i);
rsinterface.parentID = j;
rsinterface.id = i;
rsinterface.type = 5;
rsinterface.atActionType = l1;
rsinterface.contentType = 0;
rsinterface.width = i1;
rsinterface.height = j1;
rsinterface.aByte254 = 0;
rsinterface.mOverInterToTrigger = -1;
rsinterface.anIntArray245 = new int[1];
rsinterface.anIntArray212 = new int[1];
rsinterface.anIntArray245[0] = 1;
rsinterface.anIntArray212[0] = k1;
rsinterface.valueIndexArray = new int[1][3];
rsinterface.valueIndexArray[0][0] = 5;
rsinterface.valueIndexArray[0][1] = i2;
rsinterface.valueIndexArray[0][2] = 0;
rsinterface.sprite1 = imageLoader(k, s);
rsinterface.sprite2 = imageLoader(l, s);
rsinterface.tooltip = s1;
}
public static void addSprite(int i, int j, String s)
{
RSInterface rsinterface = interfaceCache[i] = new RSInterface();
rsinterface.id = i;
rsinterface.parentID = i;
rsinterface.type = 5;
rsinterface.atActionType = 0;
rsinterface.contentType = 0;
rsinterface.aByte254 = 0;
rsinterface.mOverInterToTrigger = 52;
rsinterface.sprite1 = imageLoader(j, s);
rsinterface.sprite2 = imageLoader(j, s);
rsinterface.width = 512;
rsinterface.height = 334;
}
public static void addHoverButton(int i, String s, int j, int k, int l, String s1, int i1, int j1,
int k1)
{
RSInterface rsinterface = addTabInterface(i);
rsinterface.id = i;
rsinterface.parentID = i;
rsinterface.type = 5;
rsinterface.atActionType = k1;
rsinterface.contentType = i1;
rsinterface.aByte254 = 0;
rsinterface.mOverInterToTrigger = j1;
rsinterface.sprite1 = imageLoader(j, s);
rsinterface.sprite2 = imageLoader(j, s);
rsinterface.width = k;
rsinterface.height = l;
rsinterface.tooltip = s1;
}
public static void addHoveredButton(int i, String s, int j, int k, int l, int i1)
{
RSInterface rsinterface = addTabInterface(i);
rsinterface.parentID = i;
rsinterface.id = i;
rsinterface.type = 0;
rsinterface.atActionType = 0;
rsinterface.width = k;
rsinterface.height = l;
rsinterface.isMouseoverTriggered = true;
rsinterface.aByte254 = 0;
rsinterface.mOverInterToTrigger = -1;
rsinterface.scrollMax = 0;
addHoverImage(i1, j, j, s);
rsinterface.totalChildren(1);
rsinterface.child(0, i1, 0, 0);
}
public static void addHoverImage(int i, int j, int k, String s)
{
RSInterface rsinterface = addTabInterface(i);
rsinterface.id = i;
rsinterface.parentID = i;
rsinterface.type = 5;
rsinterface.atActionType = 0;
rsinterface.contentType = 0;
rsinterface.width = 512;
rsinterface.height = 334;
rsinterface.aByte254 = 0;
rsinterface.mOverInterToTrigger = 52;
rsinterface.sprite1 = imageLoader(j, s);
rsinterface.sprite2 = imageLoader(k, s);
}
public static void addTransparentSprite(int i, int j, String s)
{
RSInterface rsinterface = interfaceCache[i] = new RSInterface();
rsinterface.id = i;
rsinterface.parentID = i;
rsinterface.type = 5;
rsinterface.atActionType = 0;
rsinterface.contentType = 0;
rsinterface.aByte254 = 0;
rsinterface.mOverInterToTrigger = 52;
rsinterface.sprite1 = imageLoader(j, s);
rsinterface.sprite2 = imageLoader(j, s);
rsinterface.width = 512;
rsinterface.height = 334;
rsinterface.drawsTransparent = true;
}
public static RSInterface addScreenInterface(int i)
{
RSInterface rsinterface = interfaceCache[i] = new RSInterface();
rsinterface.id = i;
rsinterface.parentID = i;
rsinterface.type = 0;
rsinterface.atActionType = 0;
rsinterface.contentType = 0;
rsinterface.width = 512;
rsinterface.height = 334;
rsinterface.aByte254 = 0;
rsinterface.mOverInterToTrigger = 0;
return rsinterface;
}
public static RSInterface addTabInterface(int i)
{
RSInterface rsinterface = interfaceCache[i] = new RSInterface();
rsinterface.id = i;
rsinterface.parentID = i;
rsinterface.type = 0;
rsinterface.atActionType = 0;
rsinterface.contentType = 0;
rsinterface.width = 512;
rsinterface.height = 700;
rsinterface.aByte254 = 0;
rsinterface.mOverInterToTrigger = -1;
return rsinterface;
}
private static Sprite imageLoader(int i, String s)
{
long l = (TextClass.method585(s) << 8) + (long)i;
Sprite sprite = (Sprite)aMRUNodes_238.insertFromCache(l);
if(sprite != null)
{
return sprite;
}
try
{
sprite = new Sprite((new StringBuilder()).append(s).append(" ").append(i).toString());
aMRUNodes_238.removeFromCache(sprite, l);
}
catch(Exception exception)
{
return null;
}
return sprite;
}
public void child(int i, int j, int k, int l)
{
children[i] = j;
childX[i] = k;
childY[i] = l;
}
public void totalChildren(int i)
{
children = new int[i];
childX = new int[i];
childY = new int[i];
}
private Model method206(int i, int j)
{
Model model = (Model)aMRUNodes_264.insertFromCache((i << 16) + j);
if(model != null)
{
return model;
}
if(i == 1)
{
model = Model.method462(j);
}
if(i == 2)
{
model = EntityDef.forID(j).method160();
}
if(i == 3)
{
model = client.myPlayer.method453();
}
if(i == 4)
{
model = ItemDef.forID(j).method202(50);
}
if(i == 5)
{
model = null;
}
if(model != null)
{
aMRUNodes_264.removeFromCache(model, (i << 16) + j);
}
return model;
}
private static Sprite method207(int i, StreamLoader streamloader, String s)
{
long l = (TextClass.method585(s) << 8) + (long)i;
Sprite sprite = (Sprite)aMRUNodes_238.insertFromCache(l);
if(sprite != null)
{
return sprite;
}
try
{
sprite = new Sprite(streamloader, s, i);
aMRUNodes_238.removeFromCache(sprite, l);
}
catch(Exception exception)
{
return null;
}
return sprite;
}
public static void method208(boolean flag, Model model)
{
int i = 0;
byte byte0 = 5;
if(flag)
{
return;
}
aMRUNodes_264.unlinkAll();
if(model != null && byte0 != 4)
{
aMRUNodes_264.removeFromCache(model, (byte0 << 16) + i);
}
}
public Model method209(int i, int j, boolean flag)
{
Model model;
if(flag)
{
model = method206(anInt255, anInt256);
} else
{
model = method206(anInt233, mediaID);
}
if(model == null)
{
return null;
}
if(j == -1 && i == -1 && model.anIntArray1640 == null)
{
return model;
}
Model model1 = new Model(true, Class36.method532(j) & Class36.method532(i), false, model);
if(j != -1 || i != -1)
{
model1.method469();
}
if(j != -1)
{
model1.method470(j);
}
if(i != -1)
{
model1.method470(i);
}
model1.method479(64, 768, -50, -10, -50, true);
return model1;
}
public RSInterface()
{
}
private static void addHButton(int i1, String Name, int Iid, int w, int h, String Discreption, int i2, int BType, int Iid2) {
addHoverButton(i1, Name, Iid, w, h, Discreption, 0, i2, BType);
addHoveredButton(i2, Name, Iid2, w, h, i2 + 1);
}
public static void addButton(int id, int sId, String spriteName, String tooltip, int aT) {
RSInterface tab = interfaceCache[id] = new RSInterface();
tab.id = id;
tab.parentID = id;
tab.type = 5;
tab.atActionType = aT;
tab.contentType = 0;
tab.aByte254 = (byte)0;
tab.mOverInterToTrigger = 52;
tab.sprite1 = imageLoader(sId, spriteName);
tab.sprite2 = imageLoader(sId, spriteName);
tab.width = tab.sprite1.myWidth;
tab.height = tab.sprite1.myHeight;
tab.tooltip = tooltip;
}
public static void addChar(int ID) {
RSInterface t = interfaceCache[ID] = new RSInterface();
t.id = ID;
t.parentID = ID;
t.type = 6;
t.atActionType = 0;
t.contentType = 328;
t.width = 136;
t.height = 168;
t.aByte254 = 0;
t.mOverInterToTrigger = 0;
t.modelZoom = 560;
t.modelRotation1 = 150;
t.modelRotation2 = 0;
t.anInt257 = -1;
t.anInt258 = -1;
}
public static void equipmentScreen(TextDrawingArea[] wid) {
RSInterface Interface = RSInterface.interfaceCache[1644];
addButton(19144, 6, "Equipment/CUSTOM", 150, 40, "Show Equipment Stats", 1);
removeSomething(19145);
removeSomething(19146);
removeSomething(19147);
setBounds(19144, 21, 210, 23, Interface);
setBounds(19145, 40, 210, 24, Interface);
setBounds(19146, 40, 210, 25, Interface);
setBounds(19147, 40, 210, 26, Interface);
RSInterface tab = addTabInterface(15106);
addSprite(15107, 7, "Equipment/CUSTOM");
addHoverButton(15210, "Equipment/CUSTOM", 8, 21, 21, "Close", 250, 15211, 3);
addHoveredButton(15211, "Equipment/CUSTOM", 9, 21, 21, 15212);
addText(15111, "Equip Your Character...", wid, 2, 0xe4a146, false, true);
addText(15112, "Attack bonus", wid, 2, 0xe4a146, false, true);
addText(15113, "Defence bonus", wid, 2, 0xe4a146, false, true);
addText(15114, "Other bonuses", wid, 2, 0xe4a146, false, true);
for(int i = 1675; i <= 1684; i++) { textSize(i, wid, 1); }
textSize(1686, wid, 1); textSize(1687, wid, 1);
addChar(15125);
tab.totalChildren(44);
tab.child(0, 15107, 4, 20);
tab.child(1, 15210, 476, 29);
tab.child(2, 15211, 476, 29);
tab.child(3, 15111, 14, 30);
int Child = 4; int Y = 69;
for(int i = 1675; i <= 1679; i++){
tab.child(Child, i, 20, Y);
Child++; Y += 14; }
tab.child(9, 1680, 20, 161);
tab.child(10, 1681, 20, 177);
tab.child(11, 1682, 20, 192);
tab.child(12, 1683, 20, 207);
tab.child(13, 1684, 20, 221);
tab.child(14, 1686, 20, 262);
tab.child(15, 15125, 170, 200);
tab.child(16, 15112, 16, 55);
tab.child(17, 1687, 20, 276);
tab.child(18, 15113, 16, 147);
tab.child(19, 15114, 16, 248);
tab.child(20, 1645, 104+295, 149-52);
tab.child(21, 1646, 399, 163);
tab.child(22, 1647, 399, 163);
tab.child(23, 1648, 399, 58+146);
tab.child(24, 1649, 26+22+297-2, 110-44+118-13+5);
tab.child(25, 1650, 321+22, 58+154);
tab.child(26, 1651, 321+134, 58+118);
tab.child(27, 1652, 321+134, 58+154);
tab.child(28, 1653, 321+48, 58+81);
tab.child(29, 1654, 321+107, 58+81);
tab.child(30, 1655, 321+58, 58+42);
tab.child(31, 1656, 321+112, 58+41);
tab.child(32, 1657, 321+78, 58+4);
tab.child(33, 1658, 321+37, 58+43);
tab.child(34, 1659, 321+78, 58+43);
tab.child(35, 1660, 321+119, 58+43);
tab.child(36, 1661, 321+22, 58+82);
tab.child(37, 1662, 321+78, 58+82);
tab.child(38, 1663, 321+134, 58+82);
tab.child(39, 1664, 321+78, 58+122);
tab.child(40, 1665, 321+78, 58+162);
tab.child(41, 1666, 321+22, 58+162);
tab.child(42, 1667, 321+134, 58+162);
tab.child(43, 1688, 50+297-2, 110-13+5);
for(int i = 1675; i <= 1684; i++){
RSInterface rsi = interfaceCache[i];
rsi.textColor = 0xe4a146;
rsi.centerText = false; }
for(int i = 1686; i <= 1687; i++) {
RSInterface rsi = interfaceCache[i];
rsi.textColor = 0xe4a146;
rsi.centerText = false; }
}
public static void equipmentTab(TextDrawingArea tda[]) {
RSInterface rsi = interfaceCache[1644];
rsi.addActionButton(15101, 15101, 15101, 150, 40, "Show Equipment Screen", "equipment");
rsi.addClick(15102, 15102, 15102, "", 1, 1);
rsi.removeSomething(15103);
rsi.removeSomething(15104);
rsi.children[23] = 15101;
rsi.childX[23] = 21;
rsi.childY[23] = 210;
rsi.children[24] = 15102;
rsi.childX[24] = 1;
rsi.childY[24] = 1;
rsi.children[25] = 15103;
rsi.childX[25] = 41;
rsi.childY[25] = 212;
rsi.children[26] = 15104;
rsi.childX[26] = 41+39+30;
rsi.childY[26] = 212;
}
public static void addActionButton(int id, int sprite, int sprite2, int width, int height, String s, String folder) {
RSInterface rsi = interfaceCache[id] = new RSInterface();
if (folder.equalsIgnoreCase("equipment")) {
rsi.sprite1 = imageLoader("equipment", sprite, "CUSTOM");
} else if (folder.equalsIgnoreCase("attack")) {
rsi.sprite1 = imageLoader("attack", sprite, "");
} else {
rsi.sprite1 = imageLoader("misc", sprite, "");
}
if (sprite2 == sprite) {
rsi.sprite2 = imageLoader("attack", sprite, "a");
} else {
rsi.sprite2 = imageLoader("attack", sprite2, "");
}
rsi.tooltip = s;
rsi.contentType = 0;
rsi.atActionType = 1;
rsi.width = width;
rsi.mOverInterToTrigger = 52;
rsi.parentID = id;
rsi.id = id;
rsi.type = 5;
rsi.height = height;
}
private static Sprite imageLoader(String folder, int i, String s) {
long l = (TextClass.method585(s) << 8) + (long) i;
Sprite sprite = (Sprite) aMRUNodes_238.insertFromCache(l);
if (sprite != null)
return sprite;
try {
if (folder.equals("attack")) {
sprite = new Sprite("" + folder + "/" + i + "" + s + "");
} else {
sprite = new Sprite("" + folder + "/" + s + " " + i + "");
}
aMRUNodes_238.removeFromCache(sprite, l);
} catch (Exception exception) {
return null;
}
return sprite;
}
public static void addClick(int id, int spriteOnId, int spriteOffId, String castText, int h, int w) {
RSInterface rsi = interfaceCache[id] = new RSInterface();
rsi.id = id;
rsi.parentID = id;
rsi.type = 5;
rsi.atActionType = 1;
rsi.contentType = 0;
rsi.width = h;
rsi.height = w;
rsi.aByte254 = (byte)0;
rsi.mOverInterToTrigger = 52;
rsi.selectedActionName = "Cast On";
rsi.spellName = castText;
rsi.sprite1 = imageLoader("equipment", spriteOnId, "interface");
rsi.sprite2 = imageLoader("equipment", spriteOffId, "interface");
rsi.tooltip = castText;
}
public static TextDrawingArea[] fonts;
public static void addText(int i, String s, int k, boolean l, boolean m, int a, int j) {
RSInterface rsinterface = addTabInterface(i);
rsinterface.parentID = i;
rsinterface.id = i;
rsinterface.type = 4;
rsinterface.atActionType = 0;
rsinterface.width = 0;
rsinterface.height = 0;
rsinterface.contentType = 0;
rsinterface.aByte254 = 0;
rsinterface.mOverInterToTrigger = a;
rsinterface.centerText = l;
rsinterface.textShadow = m;
rsinterface.textDrawingAreas = RSInterface.fonts[j];
rsinterface.message = s;
rsinterface.textColor = k;
}
private static Sprite loadSprite(int i, String s) {
Sprite sprite;
try {
sprite = new Sprite(s + " " + i);
if (sprite != null) {
return sprite;
}
} catch (Exception e) {
e.printStackTrace();
return null;
}
return sprite;
}
public Sprite loadSprite(String s, int i) {
Sprite sprite;
try {
sprite = new Sprite(s + " " + i);
if (sprite != null) {
return sprite;
}
} catch (Exception e) {
e.printStackTrace();
return null;
}
return null;
}
public static void addLunarSprite(int i, int j, String name) {
RSInterface RSInterface = addTabInterface(i);
RSInterface.id = i;
RSInterface.parentID = i;
RSInterface.type = 5;
RSInterface.atActionType = 0;
RSInterface.contentType = 0;
RSInterface.aByte254 = 0;
RSInterface.mOverInterToTrigger = 52;
RSInterface.sprite1 = imageLoader(j, name);
RSInterface.width = 500;
RSInterface.height = 500;
RSInterface.tooltip = "";
}
public static void drawRune(int i, int id, String runeName) {
RSInterface RSInterface = addTabInterface(i);
RSInterface.type = 5;
RSInterface.atActionType = 0;
RSInterface.contentType = 0;
RSInterface.aByte254 = 0;
RSInterface.mOverInterToTrigger = 52;
RSInterface.sprite1 = loadSprite(id, "Lunar/RUNE");
RSInterface.width = 500;
RSInterface.height = 500;
}
public static void addRuneText(int ID, int runeAmount, int RuneID, TextDrawingArea[] font) {
RSInterface rsInterface = addTabInterface(ID);
rsInterface.id = ID;
rsInterface.parentID = 1151;
rsInterface.type = 4;
rsInterface.atActionType = 0;
rsInterface.contentType = 0;
rsInterface.width = 0;
rsInterface.height = 14;
rsInterface.aByte254 = 0;
rsInterface.mOverInterToTrigger = -1;
rsInterface.anIntArray245 = new int[1];
rsInterface.anIntArray212 = new int[1];
rsInterface.anIntArray245[0] = 3;
rsInterface.anIntArray212[0] = runeAmount;
rsInterface.valueIndexArray = new int[1][4];
rsInterface.valueIndexArray[0][0] = 4;
rsInterface.valueIndexArray[0][1] = 3214;
rsInterface.valueIndexArray[0][2] = RuneID;
rsInterface.valueIndexArray[0][3] = 0;
rsInterface.centerText = true;
rsInterface.textDrawingAreas = font[0];
rsInterface.textShadow = true;
rsInterface.message = "%1/" + runeAmount + "";
rsInterface.aString228 = "";
rsInterface.textColor = 12582912;
rsInterface.anInt219 = 49152;
}
public static void homeTeleport() {
RSInterface RSInterface = addTabInterface(30000);
RSInterface.tooltip = "Cast @gre@Lunar Home Teleport";
RSInterface.id = 30000;
RSInterface.parentID = 30000;
RSInterface.type = 5;
RSInterface.atActionType = 5;
RSInterface.contentType = 0;
RSInterface.aByte254 = 0;
RSInterface.mOverInterToTrigger = 30001;
RSInterface.sprite1 = loadSprite(1, "Lunar/SPRITE");
RSInterface.width = 20;
RSInterface.height = 20;
RSInterface hover = addTabInterface(30001);
hover.mOverInterToTrigger = -1;
hover.isMouseoverTriggered = true;
setChildren(1, hover);
addLunarSprite(30002, 0, "Lunar/SPRITE");
setBounds(30002, 0, 0, 0, hover);
}
public static void addLunar2RunesSmallBox(int ID, int r1, int r2, int ra1, int ra2, int rune1, int lvl, String name, String descr, TextDrawingArea[] TDA, int sid, int suo, int type) {
RSInterface rsInterface = addTabInterface(ID);
rsInterface.id = ID;
rsInterface.parentID = 1151;
rsInterface.type = 5;
rsInterface.atActionType = type;
rsInterface.contentType = 0;
rsInterface.mOverInterToTrigger = ID + 1;
rsInterface.spellUsableOn = suo;
rsInterface.selectedActionName = "Cast On";
rsInterface.width = 20;
rsInterface.height = 20;
rsInterface.tooltip = "Cast @gre@" + name;
rsInterface.spellName = name;
rsInterface.anIntArray245 = new int[3];
rsInterface.anIntArray212 = new int[3];
rsInterface.anIntArray245[0] = 3;
rsInterface.anIntArray212[0] = ra1;
rsInterface.anIntArray245[1] = 3;
rsInterface.anIntArray212[1] = ra2;
rsInterface.anIntArray245[2] = 3;
rsInterface.anIntArray212[2] = lvl;
rsInterface.valueIndexArray = new int[3][];
rsInterface.valueIndexArray[0] = new int[4];
rsInterface.valueIndexArray[0][0] = 4;
rsInterface.valueIndexArray[0][1] = 3214;
rsInterface.valueIndexArray[0][2] = r1;
rsInterface.valueIndexArray[0][3] = 0;
rsInterface.valueIndexArray[1] = new int[4];
rsInterface.valueIndexArray[1][0] = 4;
rsInterface.valueIndexArray[1][1] = 3214;
rsInterface.valueIndexArray[1][2] = r2;
rsInterface.valueIndexArray[1][3] = 0;
rsInterface.valueIndexArray[2] = new int[3];
rsInterface.valueIndexArray[2][0] = 1;
rsInterface.valueIndexArray[2][1] = 6;
rsInterface.valueIndexArray[2][2] = 0;
rsInterface.sprite2 = loadSprite(sid, "Lunar/LUNARON");
rsInterface.sprite1 = loadSprite(sid, "Lunar/LUNAROFF");
RSInterface hover = addTabInterface(ID + 1);
hover.mOverInterToTrigger = -1;
hover.isMouseoverTriggered = true;
setChildren(7, hover);
addLunarSprite(ID + 2, 0, "Lunar/BOX");
setBounds(ID + 2, 0, 0, 0, hover);
addText(ID + 3, "Level " + (lvl + 1) + ": " + name, 0xFF981F, true, true, 52, 1);
setBounds(ID + 3, 90, 4, 1, hover);
addText(ID + 4, descr, 0xAF6A1A, true, true, 52, 0);
setBounds(ID + 4, 90, 19, 2, hover);
setBounds(30016, 37, 35, 3, hover);// Rune
setBounds(rune1, 112, 35, 4, hover);// Rune
addRuneText(ID + 5, ra1 + 1, r1, TDA);
setBounds(ID + 5, 50, 66, 5, hover);
addRuneText(ID + 6, ra2 + 1, r2, TDA);
setBounds(ID + 6, 123, 66, 6, hover);
}
public static void addLunar3RunesSmallBox(int ID, int r1, int r2, int r3,
int ra1, int ra2, int ra3, int rune1, int rune2, int lvl,
String name, String descr, TextDrawingArea[] TDA, int sid, int suo, int type) {
RSInterface rsInterface = addTabInterface(ID);
rsInterface.id = ID;
rsInterface.parentID = 1151;
rsInterface.type = 5;
rsInterface.atActionType = type;
rsInterface.contentType = 0;
rsInterface.mOverInterToTrigger = ID + 1;
rsInterface.spellUsableOn = suo;
rsInterface.selectedActionName = "Cast on";
rsInterface.width = 20;
rsInterface.height = 20;
rsInterface.tooltip = "Cast @gre@" + name;
rsInterface.spellName = name;
rsInterface.anIntArray245 = new int[4];
rsInterface.anIntArray212 = new int[4];
rsInterface.anIntArray245[0] = 3;
rsInterface.anIntArray212[0] = ra1;
rsInterface.anIntArray245[1] = 3;
rsInterface.anIntArray212[1] = ra2;
rsInterface.anIntArray245[2] = 3;
rsInterface.anIntArray212[2] = ra3;
rsInterface.anIntArray245[3] = 3;
rsInterface.anIntArray212[3] = lvl;
rsInterface.valueIndexArray = new int[4][];
rsInterface.valueIndexArray[0] = new int[4];
rsInterface.valueIndexArray[0][0] = 4;
rsInterface.valueIndexArray[0][1] = 3214;
rsInterface.valueIndexArray[0][2] = r1;
rsInterface.valueIndexArray[0][3] = 0;
rsInterface.valueIndexArray[1] = new int[4];
rsInterface.valueIndexArray[1][0] = 4;
rsInterface.valueIndexArray[1][1] = 3214;
rsInterface.valueIndexArray[1][2] = r2;
rsInterface.valueIndexArray[1][3] = 0;
rsInterface.valueIndexArray[2] = new int[4];
rsInterface.valueIndexArray[2][0] = 4;
rsInterface.valueIndexArray[2][1] = 3214;
rsInterface.valueIndexArray[2][2] = r3;
rsInterface.valueIndexArray[2][3] = 0;
rsInterface.valueIndexArray[3] = new int[3];
rsInterface.valueIndexArray[3][0] = 1;
rsInterface.valueIndexArray[3][1] = 6;
rsInterface.valueIndexArray[3][2] = 0;
rsInterface.sprite2 = loadSprite(sid, "Lunar/LUNARON");
rsInterface.sprite1 = loadSprite(sid, "Lunar/LUNAROFF");
RSInterface hover = addTabInterface(ID + 1);
hover.mOverInterToTrigger = -1;
hover.isMouseoverTriggered = true;
setChildren(9, hover);
addLunarSprite(ID + 2, 0, "Lunar/BOX");
setBounds(ID + 2, 0, 0, 0, hover);
addText(ID + 3, "Level " + (lvl + 1) + ": " + name, 0xFF981F, true,
true, 52, 1);
setBounds(ID + 3, 90, 4, 1, hover);
addText(ID + 4, descr, 0xAF6A1A, true, true, 52, 0);
setBounds(ID + 4, 90, 19, 2, hover);
setBounds(30016, 14, 35, 3, hover);
setBounds(rune1, 74, 35, 4, hover);
setBounds(rune2, 130, 35, 5, hover);
addRuneText(ID + 5, ra1 + 1, r1, TDA);
setBounds(ID + 5, 26, 66, 6, hover);
addRuneText(ID + 6, ra2 + 1, r2, TDA);
setBounds(ID + 6, 87, 66, 7, hover);
addRuneText(ID + 7, ra3 + 1, r3, TDA);
setBounds(ID + 7, 142, 66, 8, hover);
}
public static void addLunar3RunesBigBox(int ID, int r1, int r2, int r3,
int ra1, int ra2, int ra3, int rune1, int rune2, int lvl,
String name, String descr, TextDrawingArea[] TDA, int sid, int suo, int type) {
RSInterface rsInterface = addTabInterface(ID);
rsInterface.id = ID;
rsInterface.parentID = 1151;
rsInterface.type = 5;
rsInterface.atActionType = type;
rsInterface.contentType = 0;
rsInterface.mOverInterToTrigger = ID + 1;
rsInterface.spellUsableOn = suo;
rsInterface.selectedActionName = "Cast on";
rsInterface.width = 20;
rsInterface.height = 20;
rsInterface.tooltip = "Cast @gre@" + name;
rsInterface.spellName = name;
rsInterface.anIntArray245 = new int[4];
rsInterface.anIntArray212 = new int[4];
rsInterface.anIntArray245[0] = 3;
rsInterface.anIntArray212[0] = ra1;
rsInterface.anIntArray245[1] = 3;
rsInterface.anIntArray212[1] = ra2;
rsInterface.anIntArray245[2] = 3;
rsInterface.anIntArray212[2] = ra3;
rsInterface.anIntArray245[3] = 3;
rsInterface.anIntArray212[3] = lvl;
rsInterface.valueIndexArray = new int[4][];
rsInterface.valueIndexArray[0] = new int[4];
rsInterface.valueIndexArray[0][0] = 4;
rsInterface.valueIndexArray[0][1] = 3214;
rsInterface.valueIndexArray[0][2] = r1;
rsInterface.valueIndexArray[0][3] = 0;
rsInterface.valueIndexArray[1] = new int[4];
rsInterface.valueIndexArray[1][0] = 4;
rsInterface.valueIndexArray[1][1] = 3214;
rsInterface.valueIndexArray[1][2] = r2;
rsInterface.valueIndexArray[1][3] = 0;
rsInterface.valueIndexArray[2] = new int[4];
rsInterface.valueIndexArray[2][0] = 4;
rsInterface.valueIndexArray[2][1] = 3214;
rsInterface.valueIndexArray[2][2] = r3;
rsInterface.valueIndexArray[2][3] = 0;
rsInterface.valueIndexArray[3] = new int[3];
rsInterface.valueIndexArray[3][0] = 1;
rsInterface.valueIndexArray[3][1] = 6;
rsInterface.valueIndexArray[3][2] = 0;
rsInterface.sprite2 = loadSprite(sid, "Lunar/LUNARON");
rsInterface.sprite1 = loadSprite(sid, "Lunar/LUNAROFF");
RSInterface hover = addTabInterface(ID + 1);
hover.mOverInterToTrigger = -1;
hover.isMouseoverTriggered = true;
setChildren(9, hover);
addLunarSprite(ID + 2, 1, "Lunar/BOX");
setBounds(ID + 2, 0, 0, 0, hover);
addText(ID + 3, "Level " + (lvl + 1) + ": " + name, 0xFF981F, true,
true, 52, 1);
setBounds(ID + 3, 90, 4, 1, hover);
addText(ID + 4, descr, 0xAF6A1A, true, true, 52, 0);
setBounds(ID + 4, 90, 21, 2, hover);
setBounds(30016, 14, 48, 3, hover);
setBounds(rune1, 74, 48, 4, hover);
setBounds(rune2, 130, 48, 5, hover);
addRuneText(ID + 5, ra1 + 1, r1, TDA);
setBounds(ID + 5, 26, 79, 6, hover);
addRuneText(ID + 6, ra2 + 1, r2, TDA);
setBounds(ID + 6, 87, 79, 7, hover);
addRuneText(ID + 7, ra3 + 1, r3, TDA);
setBounds(ID + 7, 142, 79, 8, hover);
}
public static void addLunar3RunesLargeBox(int ID, int r1, int r2, int r3,
int ra1, int ra2, int ra3, int rune1, int rune2, int lvl,
String name, String descr, TextDrawingArea[] TDA, int sid, int suo, int type) {
RSInterface rsInterface = addTabInterface(ID);
rsInterface.id = ID;
rsInterface.parentID = 1151;
rsInterface.type = 5;
rsInterface.atActionType = type;
rsInterface.contentType = 0;
rsInterface.mOverInterToTrigger = ID + 1;
rsInterface.spellUsableOn = suo;
rsInterface.selectedActionName = "Cast on";
rsInterface.width = 20;
rsInterface.height = 20;
rsInterface.tooltip = "Cast @gre@" + name;
rsInterface.spellName = name;
rsInterface.anIntArray245 = new int[4];
rsInterface.anIntArray212 = new int[4];
rsInterface.anIntArray245[0] = 3;
rsInterface.anIntArray212[0] = ra1;
rsInterface.anIntArray245[1] = 3;
rsInterface.anIntArray212[1] = ra2;
rsInterface.anIntArray245[2] = 3;
rsInterface.anIntArray212[2] = ra3;
rsInterface.anIntArray245[3] = 3;
rsInterface.anIntArray212[3] = lvl;
rsInterface.valueIndexArray = new int[4][];
rsInterface.valueIndexArray[0] = new int[4];
rsInterface.valueIndexArray[0][0] = 4;
rsInterface.valueIndexArray[0][1] = 3214;
rsInterface.valueIndexArray[0][2] = r1;
rsInterface.valueIndexArray[0][3] = 0;
rsInterface.valueIndexArray[1] = new int[4];
rsInterface.valueIndexArray[1][0] = 4;
rsInterface.valueIndexArray[1][1] = 3214;
rsInterface.valueIndexArray[1][2] = r2;
rsInterface.valueIndexArray[1][3] = 0;
rsInterface.valueIndexArray[2] = new int[4];
rsInterface.valueIndexArray[2][0] = 4;
rsInterface.valueIndexArray[2][1] = 3214;
rsInterface.valueIndexArray[2][2] = r3;
rsInterface.valueIndexArray[2][3] = 0;
rsInterface.valueIndexArray[3] = new int[3];
rsInterface.valueIndexArray[3][0] = 1;
rsInterface.valueIndexArray[3][1] = 6;
rsInterface.valueIndexArray[3][2] = 0;
rsInterface.sprite2 = loadSprite(sid, "Lunar/LUNARON");
rsInterface.sprite1 = loadSprite(sid, "Lunar/LUNAROFF");
RSInterface hover = addTabInterface(ID + 1);
hover.isMouseoverTriggered = true;
hover.mOverInterToTrigger = -1;
setChildren(9, hover);
addLunarSprite(ID + 2, 2, "Lunar/BOX");
setBounds(ID + 2, 0, 0, 0, hover);
addText(ID + 3, "Level " + (lvl + 1) + ": " + name, 0xFF981F, true,
true, 52, 1);
setBounds(ID + 3, 90, 4, 1, hover);
addText(ID + 4, descr, 0xAF6A1A, true, true, 52, 0);
setBounds(ID + 4, 90, 34, 2, hover);
setBounds(30016, 14, 61, 3, hover);
setBounds(rune1, 74, 61, 4, hover);
setBounds(rune2, 130, 61, 5, hover);
addRuneText(ID + 5, ra1 + 1, r1, TDA);
setBounds(ID + 5, 26, 92, 6, hover);
addRuneText(ID + 6, ra2 + 1, r2, TDA);
setBounds(ID + 6, 87, 92, 7, hover);
addRuneText(ID + 7, ra3 + 1, r3, TDA);
setBounds(ID + 7, 142, 92, 8, hover);
}
public static void configureLunar(TextDrawingArea[] TDA) {
homeTeleport();
drawRune(30003, 1, "Fire");
drawRune(30004, 2, "Water");
drawRune(30005, 3, "Air");
drawRune(30006, 4, "Earth");
drawRune(30007, 5, "Mind");
drawRune(30008, 6, "Body");
drawRune(30009, 7, "Death");
drawRune(30010, 8, "Nature");
drawRune(30011, 9, "Chaos");
drawRune(30012, 10, "Law");
drawRune(30013, 11, "Cosmic");
drawRune(30014, 12, "Blood");
drawRune(30015, 13, "Soul");
drawRune(30016, 14, "Astral");
addLunar3RunesSmallBox(30017, 9075, 554, 555, 0, 4, 3, 30003, 30004,
64, "Bake Pie", "Bake pies without a stove", TDA, 0, 16, 2);
addLunar2RunesSmallBox(30025, 9075, 557, 0, 7, 30006, 65, "Cure Plant",
"Cure disease on farming patch", TDA, 1, 4, 2);
addLunar3RunesBigBox(30032, 9075, 564, 558, 0, 0, 0, 30013, 30007, 65,
"Monster Examine",
"Detect the combat statistics of a\\nmonster", TDA, 2, 2, 2);
addLunar3RunesSmallBox(30040, 9075, 564, 556, 0, 0, 1, 30013, 30005,
66, "NPC Contact", "Speak with varied NPCs", TDA, 3, 0, 2);
addLunar3RunesSmallBox(30048, 9075, 563, 557, 0, 0, 9, 30012, 30006,
67, "Cure Other", "Cure poisoned players", TDA, 4, 8, 2);
addLunar3RunesSmallBox(30056, 9075, 555, 554, 0, 2, 0, 30004, 30003,
67, "Humidify", "fills certain vessels with water", TDA, 5, 0,
5);
addLunar3RunesSmallBox(30064, 9075, 563, 557, 1, 0, 1, 30012, 30006,
68, "Monsters", "Teleports you to Monsters",
TDA, 6, 0, 5);
addLunar3RunesBigBox(30075, 9075, 563, 557, 1, 0, 3, 30012, 30006, 69,
"Monsters",
"Teleports players to Monsters", TDA, 7, 0, 5);
addLunar3RunesSmallBox(30083, 9075, 563, 557, 1, 0, 5, 30012, 30006,
70, "Not in use", "Not in use",
TDA, 8, 0, 5);
addLunar3RunesSmallBox(30091, 9075, 564, 563, 1, 1, 0, 30013, 30012,
70, "Cure Me", "Cures Poison", TDA, 9, 0, 5);
addLunar2RunesSmallBox(30099, 9075, 557, 1, 1, 30006, 70, "Hunter Kit",
"Get a kit of hunting gear", TDA, 10, 0, 5);
addLunar3RunesSmallBox(30106, 9075, 563, 555, 1, 0, 0, 30012, 30004,
71, "Bosses",
"Teleports you to Bosses", TDA, 11, 0, 5);
addLunar3RunesBigBox(30114, 9075, 563, 555, 1, 0, 4, 30012, 30004, 72,
"Bosses",
"Teleports players to Bosses", TDA, 12, 0, 5);
addLunar3RunesSmallBox(30122, 9075, 564, 563, 1, 1, 1, 30013, 30012,
73, "Cure Group", "Cures Poison on players", TDA, 13, 0, 5);
addLunar3RunesBigBox(30130, 9075, 564, 559, 1, 1, 4, 30013, 30008, 74,
"Stat Spy",
"Cast on another player to see their\\nskill levels", TDA, 14,
8, 2);
addLunar3RunesBigBox(30138, 9075, 563, 554, 1, 1, 2, 30012, 30003, 74,
"Minigames",
"Teleports you to Minigames", TDA, 15, 0, 5);
addLunar3RunesBigBox(30146, 9075, 563, 554, 1, 1, 5, 30012, 30003, 75,
"Minigames",
"Teleports players to Minigames", TDA, 16, 0, 5);
addLunar3RunesSmallBox(30154, 9075, 554, 556, 1, 5, 9, 30003, 30005,
76, "Superglass Make", "Make glass without a furnace", TDA, 17,
16, 2);
addLunar3RunesSmallBox(30162, 9075, 563, 555, 1, 1, 3, 30012, 30004,
77, "Catherby", "Teleports you to Catherby", TDA,
18, 0, 5);
addLunar3RunesSmallBox(30170, 9075, 563, 555, 1, 1, 7, 30012, 30004,
78, "Catherby", "Teleports players to Catherby",
TDA, 19, 0, 5);
addLunar3RunesBigBox(30178, 9075, 564, 559, 1, 0, 4, 30013, 30008, 78,
"Dream", "Take a rest and restore hitpoints 3\\n times faster",
TDA, 20, 0, 5);
addLunar3RunesSmallBox(30186, 9075, 557, 555, 1, 9, 4, 30006, 30004,
79, "String Jewellery", "String amulets without wool", TDA, 21,
0, 5);
addLunar3RunesLargeBox(30194, 9075, 557, 555, 1, 9, 9, 30006, 30004,
80, "Stat Restore Pot\\nShare",
"Share a potion with up to 4 nearby\\nplayers", TDA, 22, 0, 5);
addLunar3RunesSmallBox(30202, 9075, 554, 555, 1, 6, 6, 30003, 30004,
81, "Magic Imbue", "Combine runes without a talisman", TDA, 23,
0, 5);
addLunar3RunesBigBox(30210, 9075, 561, 557, 2, 1, 14, 30010, 30006, 82,
"Fertile Soil",
"Fertilise a farming patch with super\\ncompost", TDA, 24, 4, 2);
addLunar3RunesBigBox(30218, 9075, 557, 555, 2, 11, 9, 30006, 30004, 83,
"Boost Potion Share",
"Shares a potion with up to 4 nearby\\nplayers", TDA, 25, 0, 5);
addLunar3RunesSmallBox(30226, 9075, 563, 555, 2, 2, 9, 30012, 30004,
84, "Wilderness",
"Teleports you to Wilderness", TDA, 26, 0, 5);
addLunar3RunesLargeBox(30234, 9075, 563, 555, 1, 2, 13, 30012, 30004,
85, "Wilderness",
"Teleports players to Wilderness", TDA, 27, 0, 5);
addLunar3RunesSmallBox(30242, 9075, 557, 561, 2, 14, 0, 30006, 30010,
85, "Plank Make", "Turn Logs into planks", TDA, 28, 16, 5);
/******** Cut Off Limit **********/
addLunar3RunesSmallBox(30250, 9075, 563, 555, 2, 2, 9, 30012, 30004,
86, "Not in use", "Not in use", TDA, 29,
0, 5);
addLunar3RunesSmallBox(30258, 9075, 563, 555, 2, 2, 14, 30012, 30004,
87, "Not in use", "Not in use",
TDA, 30, 0, 5);
addLunar3RunesSmallBox(30266, 9075, 563, 555, 2, 2, 7, 30012, 30004,
88, "Not in use", "Not in use",
TDA, 31, 0, 5);
addLunar3RunesBigBox(30274, 9075, 563, 555, 2, 2, 15, 30012, 30004, 89,
"Not in use",
"Not in use", TDA, 32, 0, 5);
addLunar3RunesBigBox(
30282,
9075,
563,
561,
2,
1,
0,
30012,
30010,
90,
"Energy Transfer",
"Spend hitpoints and SA Energy to\\n give another player hitpoints and run energy",
TDA, 33, 8, 2);
addLunar3RunesBigBox(30290, 9075, 563, 565, 2, 2, 0, 30012, 30014, 91,
"Heal Other",
"Transfer up to 75% of hitpoints\\n to another player", TDA,
34, 8, 2);
addLunar3RunesBigBox(30298, 9075, 560, 557, 2, 1, 9, 30009, 30006, 92,
"Vengeance Other",
"Allows another player to rebound\\ndamage to an opponent",
TDA, 35, 8, 2);
addLunar3RunesSmallBox(30306, 9075, 560, 557, 3, 1, 9, 30009, 30006,
93, "Vengeance", "Rebound damage to an opponent", TDA, 36, 0, 5);
addLunar3RunesBigBox(30314, 9075, 565, 563, 3, 2, 5, 30014, 30012, 94,
"Heal Group", "Transfer up to 75% of hitpoints to a group",
TDA, 37, 0, 5);
addLunar3RunesBigBox(30322, 9075, 564, 563, 2, 1, 0, 30013, 30012, 95,
"Spellbook Swap",
"Change to another spellbook for 1\\nspell cast", TDA, 38, 0, 5);
}
public static void constructLunar() {
RSInterface Interface = addTabInterface(29999);
setChildren(80, Interface);
setBounds(30000, 11, 10, 0, Interface);
setBounds(30017, 40, 9, 1, Interface);
setBounds(30025, 71, 12, 2, Interface);
setBounds(30032, 103, 10, 3, Interface);
setBounds(30040, 135, 12, 4, Interface);
setBounds(30048, 165, 10, 5, Interface);
setBounds(30056, 8, 38, 6, Interface);
setBounds(30064, 39, 39, 7, Interface);
setBounds(30075, 71, 39, 8, Interface);
setBounds(30083, 103, 39, 9, Interface);
setBounds(30091, 135, 39, 10, Interface);
setBounds(30099, 165, 37, 11, Interface);
setBounds(30106, 12, 68, 12, Interface);
setBounds(30114, 42, 68, 13, Interface);
setBounds(30122, 71, 68, 14, Interface);
setBounds(30130, 103, 68, 15, Interface);
setBounds(30138, 135, 68, 16, Interface);
setBounds(30146, 165, 68, 17, Interface);
setBounds(30154, 14, 97, 18, Interface);
setBounds(30162, 42, 97, 19, Interface);
setBounds(30170, 71, 97, 20, Interface);
setBounds(30178, 101, 97, 21, Interface);
setBounds(30186, 135, 98, 22, Interface);
setBounds(30194, 168, 98, 23, Interface);
setBounds(30202, 11, 125, 24, Interface);
setBounds(30210, 42, 124, 25, Interface);
setBounds(30218, 74, 125, 26, Interface);
setBounds(30226, 103, 125, 27, Interface);
setBounds(30234, 135, 125, 28, Interface);
setBounds(30242, 164, 126, 29, Interface);
setBounds(30250, 10, 155, 30, Interface);
setBounds(30258, 42, 155, 31, Interface);
setBounds(30266, 71, 155, 32, Interface);
setBounds(30274, 103, 155, 33, Interface);
setBounds(30282, 136, 155, 34, Interface);
setBounds(30290, 165, 155, 35, Interface);
setBounds(30298, 13, 185, 36, Interface);
setBounds(30306, 42, 185, 37, Interface);
setBounds(30314, 71, 184, 38, Interface);
setBounds(30322, 104, 184, 39, Interface);
setBounds(30001, 6, 184, 40, Interface);// hover
setBounds(30018, 5, 176, 41, Interface);// hover
setBounds(30026, 5, 176, 42, Interface);// hover
setBounds(30033, 5, 163, 43, Interface);// hover
setBounds(30041, 5, 176, 44, Interface);// hover
setBounds(30049, 5, 176, 45, Interface);// hover
setBounds(30057, 5, 176, 46, Interface);// hover
setBounds(30065, 5, 176, 47, Interface);// hover
setBounds(30076, 5, 163, 48, Interface);// hover
setBounds(30084, 5, 176, 49, Interface);// hover
setBounds(30092, 5, 176, 50, Interface);// hover
setBounds(30100, 5, 176, 51, Interface);// hover
setBounds(30107, 5, 176, 52, Interface);// hover
setBounds(30115, 5, 163, 53, Interface);// hover
setBounds(30123, 5, 176, 54, Interface);// hover
setBounds(30131, 5, 163, 55, Interface);// hover
setBounds(30139, 5, 163, 56, Interface);// hover
setBounds(30147, 5, 163, 57, Interface);// hover
setBounds(30155, 5, 176, 58, Interface);// hover
setBounds(30163, 5, 176, 59, Interface);// hover
setBounds(30171, 5, 176, 60, Interface);// hover
setBounds(30179, 5, 163, 61, Interface);// hover
setBounds(30187, 5, 176, 62, Interface);// hover
setBounds(30195, 5, 149, 63, Interface);// hover
setBounds(30203, 5, 176, 64, Interface);// hover
setBounds(30211, 5, 163, 65, Interface);// hover
setBounds(30219, 5, 163, 66, Interface);// hover
setBounds(30227, 5, 176, 67, Interface);// hover
setBounds(30235, 5, 149, 68, Interface);// hover
setBounds(30243, 5, 176, 69, Interface);// hover
setBounds(30251, 5, 5, 70, Interface);// hover
setBounds(30259, 5, 5, 71, Interface);// hover
setBounds(30267, 5, 5, 72, Interface);// hover
setBounds(30275, 5, 5, 73, Interface);// hover
setBounds(30283, 5, 5, 74, Interface);// hover
setBounds(30291, 5, 5, 75, Interface);// hover
setBounds(30299, 5, 5, 76, Interface);// hover
setBounds(30307, 5, 5, 77, Interface);// hover
setBounds(30323, 5, 5, 78, Interface);// hover
setBounds(30315, 5, 5, 79, Interface);// hover
}
public static void setBounds(int ID, int X, int Y, int frame, RSInterface RSinterface){
RSinterface.children[frame] = ID;
RSinterface.childX[frame] = X;
RSinterface.childY[frame] = Y;
}
public static void setChildren(int total,RSInterface i){
i.children = new int[total];
i.childX = new int[total];
i.childY = new int[total];
}
public static void addButton(int i, int j, String s, int k, int l, String s1, int i1)
{
RSInterface rsinterface = addInterface(i);
rsinterface.id = i;
rsinterface.parentID = i;
rsinterface.type = 5;
rsinterface.atActionType = i1;
rsinterface.contentType = 0;
rsinterface.aByte254 = 0;
rsinterface.mOverInterToTrigger = 52;
rsinterface.sprite1 = imageLoader(j, s);
rsinterface.sprite2 = imageLoader(j, s);
rsinterface.width = k;
rsinterface.height = l;
rsinterface.tooltip = s1;
}
}