Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
- // Jad home page: http://www.kpdus.com/jad.html
- // Decompiler options: packimports(3)
- public final class RSInterface {
- 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 unpack(StreamLoader streamLoader, TextDrawingArea textDrawingAreas[], StreamLoader streamLoader_1) {
- fonts = textDrawingAreas;
- RSFont = textDrawingAreas;
- aMRUNodes_238 = new MRUNodes(50000);
- Stream stream = new Stream(streamLoader.getDataForName("data"));
- int i = -1;
- int j = stream.readUnsignedWord();
- interfaceCache = new RSInterface[31000];
- while(stream.currentOffset < stream.buffer.length) {
- 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.opacity = (byte) stream.readUnsignedByte();
- rsInterface.hoverType = stream.readUnsignedByte();
- if(rsInterface.hoverType != 0)
- rsInterface.hoverType = (rsInterface.hoverType - 1 << 8) + stream.readUnsignedByte();
- else
- rsInterface.hoverType = -1;
- int i1 = stream.readUnsignedByte();
- if(i1 > 0) {
- rsInterface.valueCompareType = new int[i1];
- rsInterface.requiredValues = new int[i1];
- for(int j1 = 0; j1 < i1; j1++) {
- rsInterface.valueCompareType[j1] = stream.readUnsignedByte();
- rsInterface.requiredValues[j1] = stream.readUnsignedWord();
- }
- }
- int k1 = stream.readUnsignedByte();
- if(k1 > 0) {
- rsInterface.valueIndexArray = new int[k1][];
- for(int l1 = 0; l1 < k1; l1++) {
- int i3 = stream.readUnsignedWord();
- rsInterface.valueIndexArray[l1] = new int[i3];
- for(int l4 = 0; l4 < i3; l4++)
- rsInterface.valueIndexArray[l1][l4] = stream.readUnsignedWord();
- }
- }
- if(rsInterface.type == 0) {
- rsInterface.drawsTransparent = false;
- rsInterface.scrollMax = stream.readUnsignedWord();
- rsInterface.interfaceShown = stream.readUnsignedByte() == 1;
- int i2 = stream.readUnsignedWord();
- rsInterface.children = new int[i2];
- rsInterface.childX = new int[i2];
- rsInterface.childY = new int[i2];
- for(int j3 = 0; j3 < i2; j3++) {
- rsInterface.children[j3] = stream.readUnsignedWord();
- rsInterface.childX[j3] = stream.readSignedWord();
- rsInterface.childY[j3] = 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 j2 = 0; j2 < 20; j2++) {
- int k3 = stream.readUnsignedByte();
- if(k3 == 1) {
- rsInterface.spritesX[j2] = stream.readSignedWord();
- rsInterface.spritesY[j2] = stream.readSignedWord();
- String s1 = stream.readString();
- if(streamLoader_1 != null && s1.length() > 0) {
- int i5 = s1.lastIndexOf(",");
- rsInterface.sprites[j2] = method207(Integer.parseInt(s1.substring(i5 + 1)), streamLoader_1, s1.substring(0, i5));
- }
- }
- }
- rsInterface.actions = new String[5];
- for(int l3 = 0; l3 < 5; l3++) {
- rsInterface.actions[l3] = stream.readString();
- if(rsInterface.actions[l3].length() == 0)
- rsInterface.actions[l3] = null;
- if(rsInterface.parentID == 1644)
- rsInterface.actions[2] = "Operate";
- if(rsInterface.parentID == 3824)
- rsInterface.actions[4] = "Buy X";
- }
- }
- 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(textDrawingAreas != null)
- rsInterface.textDrawingAreas = textDrawingAreas[k2];
- rsInterface.textShadow = stream.readUnsignedByte() == 1;
- }
- if(rsInterface.type == 4) {
- rsInterface.message = stream.readString();
- 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(streamLoader_1 != null && s.length() > 0) {
- int i4 = s.lastIndexOf(",");
- rsInterface.sprite1 = method207(Integer.parseInt(s.substring(i4 + 1)), streamLoader_1, s.substring(0, i4));
- }
- s = stream.readString();
- if(streamLoader_1 != null && s.length() > 0) {
- int j4 = s.lastIndexOf(",");
- rsInterface.sprite2 = method207(Integer.parseInt(s.substring(j4 + 1)), streamLoader_1, s.substring(0, j4));
- }
- }
- if(rsInterface.type == 6) {
- int l = stream.readUnsignedByte();
- if(l != 0) {
- rsInterface.anInt233 = 1;
- rsInterface.mediaID = (l - 1 << 8) + stream.readUnsignedByte();
- }
- l = stream.readUnsignedByte();
- if(l != 0) {
- rsInterface.anInt255 = 1;
- rsInterface.anInt256 = (l - 1 << 8) + stream.readUnsignedByte();
- }
- l = stream.readUnsignedByte();
- if(l != 0)
- rsInterface.anInt257 = (l - 1 << 8) + stream.readUnsignedByte();
- else
- rsInterface.anInt257 = -1;
- l = stream.readUnsignedByte();
- if(l != 0)
- rsInterface.anInt258 = (l - 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 l2 = stream.readUnsignedByte();
- if(textDrawingAreas != null)
- rsInterface.textDrawingAreas = textDrawingAreas[l2];
- 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";
- }
- }
- }
- aClass44 = streamLoader;
- bountyHunter(textDrawingAreas);
- prayerTab(textDrawingAreas);
- PVPInterface(textDrawingAreas);
- PVPInterface2(textDrawingAreas);
- PVPInterface3(textDrawingAreas);
- Trade(textDrawingAreas);
- taskInterface(textDrawingAreas);
- taskInterface2(textDrawingAreas);
- Bank();
- Shop(textDrawingAreas);
- skillTab602(fonts);
- optionTab(textDrawingAreas);
- clanChatTab(textDrawingAreas);
- Sidebar0(textDrawingAreas);
- friendsTab(textDrawingAreas);
- ignoreTab(textDrawingAreas);
- Pestpanel(textDrawingAreas);
- Pestpanel2(textDrawingAreas);
- itemsOnDeath(textDrawingAreas);
- itemsOnDeathDATA(textDrawingAreas);
- EquipmentTab(textDrawingAreas);
- equipmentScreen(textDrawingAreas);
- magicTab(textDrawingAreas);
- ancientMagicTab(textDrawingAreas);
- configureLunar(textDrawingAreas);
- curseTab(textDrawingAreas);
- /**Custom added by Omar**/
- buyRXPShop1(textDrawingAreas);
- playerinfo(textDrawingAreas);
- SpawnT(textDrawingAreas);
- teleportingInterface(textDrawingAreas);
- advisorInterface(textDrawingAreas);
- SkillTab(textDrawingAreas);
- achievement(textDrawingAreas);
- emoteTab();
- netWork(textDrawingAreas);
- skilllevel(textDrawingAreas);
- Classes(textDrawingAreas);
- nonDonatorTab(textDrawingAreas);
- note(textDrawingAreas);
- selectPanelTab(textDrawingAreas);
- selectUserTab(textDrawingAreas);
- selectDonTab(textDrawingAreas);
- selectSupTab(textDrawingAreas);
- selectResTab(textDrawingAreas);
- selectStaffTab(textDrawingAreas);
- aMRUNodes_238 = null;
- }
- 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.opacity = 0;
- rsinterface.hoverType = -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 addHoverButton1(int i, String imageName, int j, int width, int height, String text, int hoverOver, int aT) {
- RSInterface tab = addTabInterface(i);
- tab.id = i;
- tab.parentID = i;
- tab.type = 5;
- tab.atActionType = aT;
- tab.opacity = 0;
- tab.hoverType = hoverOver;
- tab.sprite1 = imageLoader(j, imageName);
- tab.sprite2 = imageLoader(j, imageName);
- tab.width = width;
- tab.height = height;
- tab.tooltip = text;
- }
- public static void setChildren(int total, RSInterface rsinterface) {
- rsinterface.children = new int[total];
- rsinterface.childX = new int[total];
- rsinterface.childY = new int[total];
- }
- public static void Classes(TextDrawingArea[] TDA){
- RSInterface tab = addTabInterface(17050);
- addSprite(17051, 1, "Interfaces/Classes/CHOOSE");
- addHover(17052, 1, 0, 19151, 3, "Interfaces/Classes/MELEE", 134, 180, "Choose Melee As A Class");
- addHover(17053, 1, 0, 19151, 1, "Interfaces/Classes/MAGIC", 134, 180, "Choose Mage As A Class");
- addHover(17054, 1, 0, 19151, 2, "Interfaces/Classes/RANGE", 134, 180, "Choose Range As A Class");
- tab.totalChildren(4);
- tab.child(0, 17051, 10, 5);
- tab.child(1, 17052, 34, 124);
- tab.child(2, 17053, 200, 110);
- tab.child(3, 17054, 334, 124);
- }
- public static void achievement(TextDrawingArea[] TDA) {
- RSInterface tab = addTabInterface(19500);
- RSInterface scroll = addTabInterface(19501);
- addText(19502, "pkxile Achievements", TDA, 2, 0xFF9900, false, true);
- addSprite(19503, 0, "Interfaces/Achieve/ACH");
- addSprite(19504, 3, "Interfaces/Achieve/ACH");
- addSprite(19505, 0, "Interfaces/Achieve/ACH");
- addButton(19590, 1, "QuestTab/QUEST", 18, 18, "Swap To Quest Tab", 1);
- tab.totalChildren(6);
- tab.child(0, 19502, 5, 5);
- tab.child(1, 19503, 0, 25);
- tab.child(2, 19504, 0, 28);
- tab.child(3, 19505, 0, 249);
- tab.child(4, 19501, 0, 25);
- tab.child(5, 19590, 165, 3);
- scroll.width = 174; scroll.height = 224; scroll.scrollMax = 1250;
- addHoverText(19549, "", "Read", TDA, 1, 0xFF9900, false, true, 150);
- addText(19506, "Player Killing:", TDA, 2, 0xFF9900, false, true);
- addHoverText(19507, "Kill 100 Player's", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19508, "Kill 145 Player's", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19509, "Kill 200 Player's", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19510, "Kill 250 Player's", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19511, "Kill 325 Player's", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19512, "Kill 400 Player's", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19513, "Kill 500 Player's", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19514, "Kill 1500 Player's", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19515, "Kill 2000 Player's", "View", TDA, 0, 0xff0000, false, true, 150);
- addText(19516, "Skilling:", TDA, 2, 0xFF9900, false, true);
- addHoverText(19517, "99 Mining", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19518, "99 Fishing", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19519, "99 Herblore", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19520, "99 Thieving", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19521, "99 Crafting", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19522, "99 Hunter", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19523, "99 Summoning", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19524, "99 Slayer", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19525, "All stat's 99", "View", TDA, 0, 0xff0000, false, true, 150);
- addText(19526, "Kill Streaks:", TDA, 2, 0xFF9900, false, true);
- addHoverText(19527, "Killstreak of 10", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19528, "Killstreak of 15", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19529, "Killstreak of 20", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19530, "Killstreak of 30", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19531, "Killstreak of 40", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19532, "Killstreak of 50", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19533, "Killstreak of 75", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19534, "Killstreak of 100", "View", TDA, 0, 0xff0000, false, true, 150);
- addText(19535, "Miscellaneous:", TDA, 2, 0xFF9900, false, true);
- addHoverText(19536, "2 Days Playing", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19537, "7 Days Playing", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19538, "10 Days Playing", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19539, "100 Days Playing", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19540, "Finish Kony Quest", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19541, "Earn 1000 DT Points", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19542, "", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19543, "", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19544, "", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19545, "", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19546, "", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19547, "", "View", TDA, 0, 0xff0000, false, true, 150);
- addHoverText(19548, "", "View", TDA, 0, 0xff0000, false, true, 150);
- scroll.totalChildren(44);
- scroll.child(0, 19507, 5, 47);
- scroll.child(1, 19508, 5, 61);
- scroll.child(2, 19509, 5, 75);
- scroll.child(3, 19510, 5, 89);
- scroll.child(4, 19511, 5, 103);
- scroll.child(5, 19506, 5, 20);
- scroll.child(6, 19512, 5, 117);
- scroll.child(7, 19513, 5, 131);
- scroll.child(8, 19514, 5, 145);
- scroll.child(9, 19515, 5, 159);
- scroll.child(10, 19516, 5, 187);
- scroll.child(11, 19517, 5, 215);
- scroll.child(12, 19518, 5, 229);
- scroll.child(13, 19519, 5, 243);
- scroll.child(14, 19520, 5, 257);
- scroll.child(15, 19521, 5, 271);
- scroll.child(16, 19522, 5, 285);
- scroll.child(17, 19523, 5, 299);
- scroll.child(18, 19524, 5, 313);
- scroll.child(19, 19525, 5, 327);
- scroll.child(20, 19526, 5, 350);
- scroll.child(21, 19527, 5, 380);
- scroll.child(22, 19528, 5, 393);
- scroll.child(23, 19529, 5, 411);
- scroll.child(24, 19530, 5, 424);
- scroll.child(25, 19531, 5, 439);
- scroll.child(26, 19532, 5, 453);
- scroll.child(27, 19533, 5, 467);
- scroll.child(28, 19534, 5, 481);
- scroll.child(29, 19535, 5, 509);
- scroll.child(30, 19536, 5, 537);
- scroll.child(31, 19537, 5, 551);
- scroll.child(32, 19538, 5, 565);
- scroll.child(33, 19539, 5, 579);
- scroll.child(34, 19540, 5, 593);
- scroll.child(35, 19541, 5, 607);
- scroll.child(36, 19542, 5, 621);
- scroll.child(37, 19543, 5, 635);
- scroll.child(38, 19544, 5, 649);
- scroll.child(39, 19545, 5, 663);
- scroll.child(40, 19546, 5, 677);
- scroll.child(41, 19547, 5, 691);
- scroll.child(42, 19548, 5, 705);
- scroll.child(43, 19549, 5, 6);
- }
- public static void selectStaffTab(TextDrawingArea[] TDA)
- {
- RSInterface localRSInterface = addTabInterface(11409);
- addText(11558, "@red@Owner @lre@Panel", TDA, 0, 16750899, false, true);
- addText(11012, "Santa", TDA, 0, 16750899, false, true);
- addText(11013, "Demon", TDA, 0, 16750899, false, true);
- addText(11014, "Brute", TDA, 0, 16750899, false, true);
- addText(11015, "God", TDA, 0, 16750899, false, true);
- addText(11016, "Fall", TDA, 0, 16750899, false, true);
- addText(11017, "Freeze", TDA, 0, 16750899, false, true);
- addText(11018, "Zombie", TDA, 0, 16750899, false, true);
- addText(11021, "Dance", TDA, 0, 16750899, false, true);
- addText(11022, "Omar", TDA, 0, 16750899, false, true);
- addText(11023, "Stefano", TDA, 0, 16750899, false, true);
- addText(11020, "Staff Zone", TDA, 0, 16750899, false, true);
- addSprite(11569, 6, "Interfaces/cPanels/SPRITE");
- addHoverButton(11528, "Interfaces/cPanels/SPRITE", 7, 58, 28, "Santa NPC", 1804, 11529, 1);
- addHoveredButton(11529, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11530);
- addHoverButton(11531, "Interfaces/cPanels/SPRITE", 7, 58, 28, "Demon NPC", 1805, 11532, 1);
- addHoveredButton(11532, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11533);
- addHoverButton(11534, "Interfaces/cPanels/SPRITE", 7, 58, 28, "Brute NPC", 1806, 11535, 1);
- addHoveredButton(11535, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11536);
- addHoverButton(11537, "Interfaces/cPanels/SPRITE", 7, 58, 28, "God Mode", 1807, 11538, 1);
- addHoveredButton(11538, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11539);
- addHoverButton(11540, "Interfaces/cPanels/SPRITE", 7, 58, 28, "Fall", 1808, 11541, 1);
- addHoveredButton(11541, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11542);
- addHoverButton(11543, "Interfaces/cPanels/SPRITE", 7, 58, 28, "Freeze", 1809, 11544, 1);
- addHoveredButton(11544, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11545);
- addHoverButton(11546, "Interfaces/cPanels/SPRITE", 7, 58, 28, "Zombie", 1810, 11547, 1);
- addHoveredButton(11547, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11548);
- addHoverButton(11549, "Interfaces/cPanels/SPRITE", 7, 58, 28, "Dance", 1811, 11550, 1);
- addHoveredButton(11550, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11551);
- addHoverButton(11562, "Interfaces/cPanels/SPRITE", 7, 58, 28, "Omar's Gear", 1812, 11563, 1);
- addHoveredButton(11563, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11564);
- addHoverButton(11559, "Interfaces/cPanels/SPRITE", 7, 58, 28, "Stefano's Gear", 1813, 11560, 1);
- addHoveredButton(11560, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11561);
- addHoverButton(11552, "Interfaces/cPanels/SPRITE", 0, 129, 28, "Staff Zone", -1, 11553, 1);
- addHoveredButton(11553, "Interfaces/cPanels/SPRITE", 1, 129, 28, 11554);
- addHoverButton(11570, "Interfaces/cPanels/SPRITE", 4, 16, 15, "Back", -1, 11571, 1);
- addHoveredButton(11571, "Interfaces/cPanels/SPRITE", 5, 16, 15, 11572);
- localRSInterface.totalChildren(38);
- localRSInterface.child(0, 11558, 46, 5);
- localRSInterface.child(1, 11569, 0, 21);
- localRSInterface.child(2, 11569, 0, 220);
- localRSInterface.child(3, 11528, 31, 30);
- localRSInterface.child(4, 11529, 31, 30);
- localRSInterface.child(5, 11531, 99, 30);
- localRSInterface.child(6, 11532, 99, 30);
- localRSInterface.child(7, 11534, 31, 70);
- localRSInterface.child(8, 11535, 31, 70);
- localRSInterface.child(9, 11537, 99, 70);
- localRSInterface.child(10, 11538, 99, 70);
- localRSInterface.child(11, 11540, 31, 110);
- localRSInterface.child(12, 11541, 31, 110);
- localRSInterface.child(13, 11543, 99, 110);
- localRSInterface.child(14, 11544, 99, 110);
- localRSInterface.child(15, 11546, 31, 150);
- localRSInterface.child(16, 11547, 31, 150);
- localRSInterface.child(17, 11549, 99, 150);
- localRSInterface.child(18, 11550, 99, 150);
- localRSInterface.child(19, 11562, 31, 190);
- localRSInterface.child(20, 11563, 31, 190);
- localRSInterface.child(21, 11559, 99, 190);
- localRSInterface.child(22, 11560, 99, 190);
- localRSInterface.child(23, 11552, 29, 230);
- localRSInterface.child(24, 11553, 29, 230);
- localRSInterface.child(25, 13570, 170, 3);
- localRSInterface.child(26, 13571, 170, 3);
- localRSInterface.child(27, 11012, 47, 40);
- localRSInterface.child(28, 11013, 110, 40);
- localRSInterface.child(29, 11014, 50, 80);
- localRSInterface.child(30, 11015, 113, 80);
- localRSInterface.child(31, 11016, 44, 120);
- localRSInterface.child(32, 11017, 107, 120);
- localRSInterface.child(33, 11018, 50, 160);
- localRSInterface.child(34, 11021, 113, 160);
- localRSInterface.child(35, 11022, 50, 200);
- localRSInterface.child(36, 11023, 115, 200);
- localRSInterface.child(37, 11020, 68, 238);
- }
- public static void selectResTab(TextDrawingArea[] TDA)
- {
- RSInterface localRSInterface = addTabInterface(12409);
- addText(19558, "@yel@Administrator @lre@Panel", TDA, 0, 16750899, false, true);
- addText(18012, "Master", TDA, 0, 16750899, false, true);
- addText(18013, "Pure", TDA, 0, 16750899, false, true);
- addText(18014, "Zerk", TDA, 0, 16750899, false, true);
- addText(18015, "Spec", TDA, 0, 16750899, false, true);
- addText(18016, "Pray", TDA, 0, 16750899, false, true);
- addText(18017, "HP", TDA, 0, 16750899, false, true);
- addText(18018, "L337", TDA, 0, 16750899, false, true);
- addText(18021, "Dance", TDA, 0, 16750899, false, true);
- addText(18020, "Staff Zone", TDA, 0, 16750899, false, true);
- addSprite(12569, 6, "Interfaces/cPanels/SPRITE");
- addHoverButton(12528, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Master Stats", 1819, 12529, 1);
- addHoveredButton(12529, "Interfaces/cPanels/SPRITE", 3, 58, 38, 12530);
- addHoverButton(12531, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Pure Stats", -1, 12532, 1);
- addHoveredButton(12532, "Interfaces/cPanels/SPRITE", 3, 58, 38, 12533);
- addHoverButton(12534, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Zerk Stats", -1, 12535, 1);
- addHoveredButton(12535, "Interfaces/cPanels/SPRITE", 3, 58, 38, 12536);
- addHoverButton(12537, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Restore Special", -1, 12538, 1);
- addHoveredButton(12538, "Interfaces/cPanels/SPRITE", 3, 58, 38, 12539);
- addHoverButton(12540, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Restore Prayer", -1, 12541, 1);
- addHoveredButton(12541, "Interfaces/cPanels/SPRITE", 3, 58, 38, 12542);
- addHoverButton(12543, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Restore HP", -1, 12544, 1);
- addHoveredButton(12544, "Interfaces/cPanels/SPRITE", 3, 58, 38, 12545);
- addHoverButton(12546, "Interfaces/cPanels/SPRITE", 2, 58, 38, "l337 Stats", -1, 12547, 1);
- addHoveredButton(12547, "Interfaces/cPanels/SPRITE", 3, 58, 38, 12548);
- addHoverButton(12549, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Admin Dance", -1, 12550, 1);
- addHoveredButton(12550, "Interfaces/cPanels/SPRITE", 3, 58, 38, 12551);
- addHoverButton(12552, "Interfaces/cPanels/SPRITE", 0, 129, 28, "Teleport to Staff Zone", -1, 12553, 1);
- addHoveredButton(12553, "Interfaces/cPanels/SPRITE", 1, 129, 28, 12554);
- addHoverButton(12570, "Interfaces/cPanels/SPRITE", 4, 16, 15, "Back", -1, 12571, 1);
- addHoveredButton(12571, "Interfaces/cPanels/SPRITE", 5, 16, 15, 12572);
- localRSInterface.totalChildren(31);
- localRSInterface.child(0, 19558, 22, 5);
- localRSInterface.child(1, 13569, 0, 21);
- localRSInterface.child(2, 12528, 31, 40);
- localRSInterface.child(3, 12529, 31, 40);
- localRSInterface.child(4, 12531, 99, 40);
- localRSInterface.child(5, 12532, 99, 40);
- localRSInterface.child(6, 12534, 31, 80);
- localRSInterface.child(7, 12535, 31, 80);
- localRSInterface.child(8, 12537, 99, 80);
- localRSInterface.child(9, 12538, 99, 80);
- localRSInterface.child(10, 12540, 31, 120);
- localRSInterface.child(11, 12541, 31, 120);
- localRSInterface.child(12, 12543, 99, 120);
- localRSInterface.child(13, 12544, 99, 120);
- localRSInterface.child(14, 12546, 31, 160);
- localRSInterface.child(15, 12547, 31, 160);
- localRSInterface.child(16, 12549, 99, 160);
- localRSInterface.child(17, 12550, 99, 160);
- localRSInterface.child(18, 12552, 31, 200);
- localRSInterface.child(19, 12553, 31, 200);
- localRSInterface.child(20, 13570, 170, 3);
- localRSInterface.child(21, 13571, 170, 3);
- localRSInterface.child(22, 18012, 42, 55);
- localRSInterface.child(23, 18013, 105, 55);
- localRSInterface.child(24, 18014, 50, 95);
- localRSInterface.child(25, 18015, 115, 95);
- localRSInterface.child(26, 18016, 47, 135);
- localRSInterface.child(27, 18017, 120, 135);
- localRSInterface.child(28, 18018, 39, 175);
- localRSInterface.child(29, 18021, 110, 175);
- localRSInterface.child(30, 18020, 50, 210);
- }
- public static void SpawnT(TextDrawingArea[] TDA){
- RSInterface Interface = addTabInterface(9460);
- setChildren(12, Interface);
- addSprite(9461, 0, "Shop/BACKGROUND");
- addHover(9462, 3, 0, 8463, 1, "Bank/BANK", 17, 17, "Close Shop!");
- addHovered(9463, 2, "Bank2/BANK", 17, 17, 3827);
- addButton(9466, 1, "Shop/CHECK", 95, 19, "Spawn Max Strength Bonus", 1);
- addButton(9467, 2, "Shop/CHECK", 95, 19, "Spawn Max Mage Bonus", 1);
- addButton(9468, 3, "Shop/CHECK", 95, 19, "Spawn Max Range Bonus", 1);
- addButton(9469, 4, "Shop/CHECK", 95, 19, "Spawn Vengance Runes", 1);
- addButton(9470, 5, "Shop/CHECK", 95, 19, "Spawn Rocktail", 1);
- addButton(9471, 6, "Shop/CHECK", 95, 19, "Spawn Overload", 1);
- addButton(9472, 7, "Shop/CHECK", 95, 19, "Spawn Barrage Runes", 1);
- addButton(9473, 8, "Shop/CHECK", 95, 19, "Spawn Dharok's set", 1);
- addButton(9474, 9, "Shop/CHECK", 95, 19, "Spawn Torva", 1);
- setBounds(9461, 12, 12, 0, Interface);
- setBounds(9462, 471, 22, 1, Interface);
- setBounds(9463, 471, 22, 2, Interface);
- setBounds(9466, 27, 125, 3, Interface);//start
- setBounds(9467, 127, 125, 4, Interface);
- setBounds(9468, 226, 125, 5, Interface);
- setBounds(9469, 27, 205, 6, Interface);
- setBounds(9470, 127, 205, 7, Interface);
- setBounds(9471, 226, 205, 8, Interface);
- setBounds(9472, 27, 285, 9, Interface);
- setBounds(9473, 126, 285, 10, Interface);
- setBounds(9474, 227, 285, 11, Interface);//end
- }
- public static void selectSupTab(TextDrawingArea[] TDA)
- {
- RSInterface localRSInterface = addTabInterface(13109);
- addText(18558, "@blu@Moderator @lre@Panel", TDA, 0, 16750899, false, true);
- addText(19012, "Bank", TDA, 0, 16750899, false, true);
- addText(19013, "Veng", TDA, 0, 16750899, false, true);
- addText(19014, "BRunes", TDA, 0, 16750899, false, true);
- addText(19015, "Spec", TDA, 0, 16750899, false, true);
- addText(19016, "Dance", TDA, 0, 16750899, false, true);
- addText(19017, "Gear", TDA, 0, 16750899, false, true);
- addText(19018, "", TDA, 0, 16750899, false, true);
- addText(19021, "", TDA, 0, 16750899, false, true);
- addText(19020, "Staff Zone", TDA, 0, 16750899, false, true);
- addSprite(13569, 6, "Interfaces/cPanels/SPRITE");
- addHoverButton(13528, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Bank", -1, 13529, 1);
- addHoveredButton(13529, "Interfaces/cPanels/SPRITE", 3, 58, 38, 13530);
- addHoverButton(13531, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Veng", -1, 13532, 1);
- addHoveredButton(13532, "Interfaces/cPanels/SPRITE", 3, 58, 38, 13533);
- addHoverButton(13534, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Barrage Runes", -1, 13535, 1);
- addHoveredButton(13535, "Interfaces/cPanels/SPRITE", 3, 58, 38, 13536);
- addHoverButton(13537, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Restore Special", -1, 13538, 1);
- addHoveredButton(13538, "Interfaces/cPanels/SPRITE", 3, 58, 38, 13539);
- addHoverButton(13540, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Mod Dance", -1, 13541, 1);
- addHoveredButton(13541, "Interfaces/cPanels/SPRITE", 3, 58, 38, 13542);
- addHoverButton(13543, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Mod Gear", -1, 13544, 1);
- addHoveredButton(13544, "Interfaces/cPanels/SPRITE", 3, 58, 38, 13545);
- addHoverButton(13546, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Teleport to Slayer Task", -1, 13547, 1);
- addHoveredButton(13547, "Interfaces/cPanels/SPRITE", 3, 58, 38, 13548);
- addHoverButton(13549, "Interfaces/cPanels/SPRITE", 2, 58, 38, "", -1, 13550, 1);
- addHoveredButton(13550, "Interfaces/cPanels/SPRITE", 3, 58, 38, 13551);
- addHoverButton(13552, "Interfaces/cPanels/SPRITE", 0, 129, 28, "Teleport to Staff Zone", -1, 13553, 1);
- addHoveredButton(13553, "Interfaces/cPanels/SPRITE", 1, 129, 28, 13554);
- addHoverButton(13570, "Interfaces/cPanels/SPRITE", 4, 16, 15, "Back", -1, 13571, 1);
- addHoveredButton(13571, "Interfaces/cPanels/SPRITE", 5, 16, 15, 13572);
- localRSInterface.totalChildren(31);
- localRSInterface.child(0, 18558, 22, 5);
- localRSInterface.child(1, 13569, 0, 21);
- localRSInterface.child(2, 13528, 31, 40);
- localRSInterface.child(3, 13529, 31, 40);
- localRSInterface.child(4, 13531, 99, 40);
- localRSInterface.child(5, 13532, 99, 40);
- localRSInterface.child(6, 13534, 31, 80);
- localRSInterface.child(7, 13535, 31, 80);
- localRSInterface.child(8, 13537, 99, 80);
- localRSInterface.child(9, 13538, 99, 80);
- localRSInterface.child(10, 13540, 31, 120);
- localRSInterface.child(11, 13541, 31, 120);
- localRSInterface.child(12, 13543, 99, 120);
- localRSInterface.child(13, 13544, 99, 120);
- localRSInterface.child(14, 13546, 31, 160);
- localRSInterface.child(15, 13547, 31, 160);
- localRSInterface.child(16, 13549, 99, 160);
- localRSInterface.child(17, 13550, 99, 160);
- localRSInterface.child(18, 13552, 31, 200);
- localRSInterface.child(19, 13553, 31, 200);
- localRSInterface.child(20, 13570, 170, 3);
- localRSInterface.child(21, 13571, 170, 3);
- localRSInterface.child(22, 19012, 48, 55);
- localRSInterface.child(23, 19013, 115, 55);
- localRSInterface.child(24, 19014, 34, 95);
- localRSInterface.child(25, 19015, 112, 95);
- localRSInterface.child(26, 19016, 37, 135);
- localRSInterface.child(27, 19017, 103, 135);
- localRSInterface.child(28, 19018, 50, 175);
- localRSInterface.child(29, 19021, 107, 175);
- localRSInterface.child(30, 19020, 53, 210);
- }
- public static void selectDonTab(TextDrawingArea[] TDA)
- {
- RSInterface localRSInterface = addTabInterface(14409);
- addText(14558, "@mag@Donator @lre@Panel", TDA, 0, 16750899, false, true);
- addText(14559, "Ancient", TDA, 0, 16750899, false, true);
- addText(14560, "Overload", TDA, 0, 16750899, false, true);
- addText(14561, "Lunar", TDA, 0, 16750899, false, true);
- addText(14562, "Don. Zone", TDA, 0, 16750899, false, true);
- addText(14563, "Tickets", TDA, 0, 16750899, false, true);
- addText(14564, "Task", TDA, 0, 16750899, false, true);
- addText(14565, "Emote", TDA, 0, 16750899, false, true);
- addText(14566, "DTrain", TDA, 0, 16750899, false, true);
- addText(14567, "Dpoints", TDA, 0, 16750899, false, true);
- addText(14568, "Dcash", TDA, 0, 16750899, false, true);
- addSprite(14569, 6, "Interfaces/cPanels/SPRITE");
- addHoverButton(14528, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Ancient Spell Book", -1, 14529, 1);
- addHoveredButton(14529, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14530);
- addHoverButton(14531, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Overload", -1, 14532, 1);
- addHoveredButton(14532, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14533);
- addHoverButton(14534, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Lunar Magic", -1, 14535, 1);
- addHoveredButton(14535, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14536);
- addHoverButton(14537, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Donator Zone", -1, 14538, 1);
- addHoveredButton(14538, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14539);
- addHoverButton(14540, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Reset Task", -1, 14541, 1);
- addHoveredButton(14541, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14542);
- addHoverButton(14543, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Buy Tickets", -1, 14544, 1);
- addHoveredButton(14544, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14545);
- addHoverButton(14546, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Donator Training Zone", -1, 14547, 1);
- addHoveredButton(14547, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14548);
- addHoverButton(14549, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Random Emote", -1, 14550, 1);
- addHoveredButton(14550, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14551);
- addHoverButton(14552, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Donator Shop", -1, 14553, 1);
- addHoveredButton(14553, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14554);
- addHoverButton(14555, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Donator Daily Cash", 1818, 14556, 1);
- addHoveredButton(14556, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14557);
- addHoverButton(14570, "Interfaces/cPanels/SPRITE", 4, 16, 15, "Back", -1, 14571, 1);
- addHoveredButton(14571, "Interfaces/cPanels/SPRITE", 5, 16, 15, 14572);
- localRSInterface.totalChildren(34);
- localRSInterface.child(0, 14558, 42, 5);
- localRSInterface.child(1, 14569, 0, 21);
- localRSInterface.child(2, 14528, 31, 40);
- localRSInterface.child(3, 14529, 31, 40);
- localRSInterface.child(4, 14531, 99, 40);
- localRSInterface.child(5, 14532, 99, 40);
- localRSInterface.child(6, 14534, 31, 80);
- localRSInterface.child(7, 14535, 31, 80);
- localRSInterface.child(8, 14537, 99, 80);
- localRSInterface.child(9, 14538, 99, 80);
- localRSInterface.child(10, 14540, 31, 120);
- localRSInterface.child(11, 14541, 31, 120);
- localRSInterface.child(12, 14543, 99, 120);
- localRSInterface.child(13, 14544, 99, 120);
- localRSInterface.child(14, 14546, 31, 160);
- localRSInterface.child(15, 14547, 31, 160);
- localRSInterface.child(16, 14549, 99, 160);
- localRSInterface.child(17, 14550, 99, 160);
- localRSInterface.child(18, 14552, 31, 200);
- localRSInterface.child(19, 14553, 31, 200);
- localRSInterface.child(20, 14555, 99, 200);
- localRSInterface.child(21, 14556, 99, 200);
- localRSInterface.child(22, 14570, 160, 3);
- localRSInterface.child(23, 14571, 160, 3);
- localRSInterface.child(24, 14559, 42, 55);
- localRSInterface.child(25, 14560, 108, 55);
- localRSInterface.child(26, 14561, 46, 95);
- localRSInterface.child(27, 14562, 104, 95);
- localRSInterface.child(28, 14563, 113, 135);
- localRSInterface.child(29, 14564, 49, 135);
- localRSInterface.child(30, 14565, 107, 175);
- localRSInterface.child(31, 14566, 42, 175);
- localRSInterface.child(32, 14567, 49, 215);
- localRSInterface.child(33, 14568, 117, 215);
- }
- public static void selectUserTab(TextDrawingArea[] TDA)
- {
- RSInterface localRSInterface = addTabInterface(16409);
- addText(16558, "@mon@User @lre@Panel", TDA, 0, 16750899, false, true);
- addText(16559, "Home", TDA, 0, 16750899, false, true);
- addText(16560, "Bosses", TDA, 0, 16750899, false, true);
- addText(16561, "StaffList", TDA, 0, 16750899, false, true);
- addText(16562, "Rules", TDA, 0, 16750899, false, true);
- addText(16563, "Help", TDA, 0, 16750899, false, true);
- addText(16564, "Commands", TDA, 0, 16750899, false, true);
- addText(16565, " Links", TDA, 0, 16750899, false, true);
- addText(16566, "ResetStats", TDA, 0, 16750899, false, true);
- addText(16567, "Vote!", TDA, 0, 16750899, false, true);
- addText(16568, "Donate!", TDA, 0, 16750899, false, true);
- addSprite(16569, 6, "Interfaces/cPanels/SPRITE");
- addHoverButton(16528, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Home", 1802, 16529, 1);
- addHoveredButton(16529, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16530);
- addHoverButton(16531, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Bosses", 1801, 16532, 1);
- addHoveredButton(16532, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16533);
- addHoverButton(16534, "Interfaces/cPanels/SPRITE", 2, 58, 38, "StaffList", 1803, 16535, 1);
- addHoveredButton(16535, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16536);
- addHoverButton(16537, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Rules", -1, 16538, 1);
- addHoveredButton(16538, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16539);
- addHoverButton(16540, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Commands", 1815, 16541, 1);
- addHoveredButton(16541, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16542);
- addHoverButton(16543, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Help", 1814, 16544, 1);
- addHoveredButton(16544, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16545);
- addHoverButton(16546, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Reset Stats", 1816, 16547, 1);
- addHoveredButton(16547, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16548);
- addHoverButton(16549, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Links", 1817, 16550, 1);
- addHoveredButton(16550, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16551);
- addHoverButton(16552, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Vote", -1, 16553, 1);
- addHoveredButton(16553, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16554);
- addHoverButton(16555, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Donate", -1, 16556, 1);
- addHoveredButton(16556, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16557);
- addHoverButton(16570, "Interfaces/cPanels/SPRITE", 4, 16, 15, "Back", -1, 16571, 1);
- addHoveredButton(16571, "Interfaces/cPanels/SPRITE", 5, 16, 15, 16572);
- localRSInterface.totalChildren(34);
- localRSInterface.child(0, 16558, 50, 5);
- localRSInterface.child(1, 16569, 0, 21);
- localRSInterface.child(2, 16528, 31, 40);
- localRSInterface.child(3, 16529, 31, 40);
- localRSInterface.child(4, 16531, 99, 40);
- localRSInterface.child(5, 16532, 99, 40);
- localRSInterface.child(6, 16534, 31, 80);
- localRSInterface.child(7, 16535, 31, 80);
- localRSInterface.child(8, 16537, 99, 80);
- localRSInterface.child(9, 16538, 99, 80);
- localRSInterface.child(10, 16540, 31, 120);
- localRSInterface.child(11, 16541, 31, 120);
- localRSInterface.child(12, 16543, 99, 120);
- localRSInterface.child(13, 16544, 99, 120);
- localRSInterface.child(14, 16546, 31, 160);
- localRSInterface.child(15, 16547, 31, 160);
- localRSInterface.child(16, 16549, 99, 160);
- localRSInterface.child(17, 16550, 99, 160);
- localRSInterface.child(18, 16552, 31, 200);
- localRSInterface.child(19, 16553, 31, 200);
- localRSInterface.child(20, 16555, 99, 200);
- localRSInterface.child(21, 16556, 99, 200);
- localRSInterface.child(22, 16570, 160, 3);
- localRSInterface.child(23, 16571, 160, 3);
- localRSInterface.child(24, 16559, 44, 55);
- localRSInterface.child(25, 16560, 110, 55);
- localRSInterface.child(26, 16561, 36, 95);
- localRSInterface.child(27, 16562, 111, 95);
- localRSInterface.child(28, 16563, 117, 135);
- localRSInterface.child(29, 16564, 38, 135);
- localRSInterface.child(30, 16565, 105, 175);
- localRSInterface.child(31, 16566, 36, 175);
- localRSInterface.child(32, 16567, 47, 215);
- localRSInterface.child(33, 16568, 111, 215);
- }
- public static void selectPanelTab(TextDrawingArea[] TDA)
- {
- RSInterface localRSInterface = addTabInterface(16509);
- addText(16500, "@blu@pkxile @lre@User Panel", TDA, 0, 16750899, false, true);
- addText(16501, "@mon@User @lre@Panel", TDA, 0, 16750899, false, true);
- addText(16502, "@mag@Donator @lre@Panel", TDA, 0, 16750899, false, true);
- addText(16526, " @cya@Moderator @lre@Panel", TDA, 0, 16750899, false, true);
- addText(16527, " @yel@Administrator @lre@Panel", TDA, 0, 16750899, false, true);
- addText(16503, "@red@Owner @lre@Panel", TDA, 0, 16750899, false, true);
- addSprite(16519, 6, "Interfaces/cPanels/SPRITE");
- addHoverButton(16510, "Interfaces/cPanels/SPRITE", 0, 129, 28, "User Panel", -1, 16511, 1);
- addHoveredButton(16511, "Interfaces/cPanels/SPRITE", 1, 129, 28, 16512);
- addHoverButton(16513, "Interfaces/cPanels/SPRITE", 0, 129, 28, "Donator Panel", -1, 16514, 1);
- addHoveredButton(16514, "Interfaces/cPanels/SPRITE", 1, 129, 28, 16515);
- addHoverButton(16520, "Interfaces/cPanels/SPRITE", 0, 129, 28, "Moderator Panel", -1, 16521, 1);
- addHoveredButton(16521, "Interfaces/cPanels/SPRITE", 1, 129, 28, 16522);
- addHoverButton(16523, "Interfaces/cPanels/SPRITE", 0, 129, 28, "Administrator Panel", -1, 16524, 1);
- addHoveredButton(16524, "Interfaces/cPanels/SPRITE", 1, 129, 28, 16525);
- addHoverButton(16516, "Interfaces/cPanels/SPRITE", 0, 129, 28, "Owner Panel", -1, 16517, 1);
- addHoveredButton(16517, "Interfaces/cPanels/SPRITE", 1, 129, 28, 16518);
- localRSInterface.totalChildren(17);
- localRSInterface.child(0, 16500, 58, 5);
- localRSInterface.child(1, 16519, 0, 21);
- localRSInterface.child(2, 16510, 29, 40);
- localRSInterface.child(3, 16511, 29, 40);
- localRSInterface.child(4, 16513, 29, 85);
- localRSInterface.child(5, 16514, 29, 85);
- localRSInterface.child(6, 16520, 29, 130);
- localRSInterface.child(7, 16521, 29, 130);
- localRSInterface.child(8, 16523, 29, 175);
- localRSInterface.child(9, 16524, 29, 175);
- localRSInterface.child(10, 16516, 29, 220);
- localRSInterface.child(11, 16517, 29, 220);
- localRSInterface.child(12, 16501, 61, 48);
- localRSInterface.child(13, 16502, 61, 93);
- localRSInterface.child(14, 16526, 37, 138);
- localRSInterface.child(15, 16527, 37, 184);
- localRSInterface.child(16, 16503, 61, 228);
- }
- public static void playerinfo(TextDrawingArea[] tda) {
- RSInterface tab = addScreenInterface(26099);
- addSprite(26100, 7, "User/CUSTOM");
- //addHead(26101, 50, 50, 1600);
- addText(26102, "", tda, 2, 0x00FFFF, true, false); //Title of interface - Top Text
- addButton(26103, 8, "Equipment/CUSTOM", "Close");
- addText(26104, "pkxile", 0xff9b00, false, true, 38, tda, 1);
- addText(26105, "Total Kills", 0xff9b00, false, true, 38, tda, 1);
- addText(26106, "Total Deaths", 0xff9b00, false, true, 38, tda, 1);
- addText(26107, "Player Name", 0xff9b00, false, true, 38, tda, 1);
- addText(26108, "Combat Level", 0xff9b00, false, true, 38, tda, 1);
- addText(26109, "Rank", 0xff9b00, false, true, 38, tda, 1);
- addText(26110, "", 0xff9b00, false, true, 38, tda, 0);
- addText(26111, "Donator", tda, 0, 0xff9b00, false, true);
- addText(26112, "Donator Points", tda, 0, 0xff9b00, false, true);
- addText(26113, "Loyalty", tda, 0, 0xff9b00, false, true);
- addButton(26114, 7, "User/Button", "Rest");
- addText(26115, "Black Marks", tda, 0, 0xff9b00, false, true);
- addText(26116, "Muted", tda, 0, 0xff9b00, false, true);
- addText(26117, "PT", tda, 0, 0xff9b00, false, true);
- addText(26118, "Highest Killstreak", tda, 0, 0xff9b00, false, true);
- addText(26119, "Current Killstreak", tda, 0, 0xff9b00, false, true);
- addText(26120, "Entitlement Points", tda, 0, 0xff9b00, false, true);
- addText(26121, "", tda, 0, 0xff9b00, false, true);
- addText(26122, "", tda, 0, 0xff9b00, false, true);
- tab.totalChildren(23);
- tab.child(0, 26100, 4, 16); //background
- tab.child(1, 26101, 77, 124); //face showing
- tab.child(2, 26102, 266, 27); //top text
- tab.child(3, 26103, 477, 21); //close button
- tab.child(14, 26114, 198, 239); //resting button
- tab.child(4, 26104, 175, 91); //add texts - Time Online
- tab.child(5, 26105, 175, 115); //add texts - Kills
- tab.child(6, 26106, 175, 143); //add texts - Deaths
- tab.child(7, 26107, 34, 236); //add texts - Player Name
- tab.child(8, 26108, 34, 259); //add texts - Combat
- tab.child(9, 26109, 34, 280); //add texts - Rank
- tab.child(10, 26110, 477, 282); //add texts
- tab.child(11, 26111, 325, 45); //Source Points
- tab.child(12, 26112, 325, 65); //Activity Points
- tab.child(13, 26113, 325, 85); //Pking Points
- tab.child(15, 26115, 325, 105); //Boss Points
- tab.child(16, 26116, 325, 125); //Pest Control Points
- tab.child(17, 26117, 325, 145); //Assult points
- tab.child(18, 26118, 325, 190); //Gambles Won
- tab.child(19, 26119, 325, 210); //Gambles lost
- tab.child(20, 26120, 325, 230); //Battles Won
- tab.child(21, 26121, 325, 250); //Battles lost
- tab.child(22, 26122, 325, 270); //Npc Kills
- }
- public static void advisorInterface(TextDrawingArea[] TDA) {
- RSInterface Interface = addTabInterface(23600);
- setChildren(19, Interface);
- addSprite(23601, 1, "Interfaces/Advisor/BACKGROUND");// Background
- addHover(23602, 3, 0, 23603, 1, "", 17, 17, "Exit");//Close Button
- addHovered(23603, 2, "", 17, 17, 23604);//Close Button
- addText(23605, "Advise based on your current status:", TDA, 1, 0xFFFFFF, false, true);//1st Line
- addText(23606, "Where can I get some free stuff?", TDA, 1, 0xF8C800, false, true);//2nd Line
- addText(23607, "Put your advise or wharever you need to put here.", TDA, 1, 0x60C8F8, false, true);//3rd Line
- addText(23608, "Put your advise or wharever you need to put here.", TDA, 1, 0x60C8F8, false, true);//4th Line
- addText(23609, "Advise based on nearby location:", TDA, 1, 0xFFFFFF, false, true);//5th Line
- addText(23610, "What is this nearby fire useful for?", TDA, 1, 0xF8C800, false, true);//6th Line
- addText(23611, "Put your advise or wharever you need to put here.", TDA, 1, 0x60C8F8, false, true);//7th Line
- addText(23612, "Put your advise or wharever you need to put here.", TDA, 1, 0x60C8F8, false, true);//8th Line
- addText(23613, "Put your advise or wharever you need to put here.", TDA, 1, 0x60C8F8, false, true);//9th Line
- addSprite(23614, 1, "Interfaces/Advisor/IMAGE");//Firemaking Icon
- addText(23615, "What is this nearby bank useful for?", TDA, 1, 0xF8C800, false, true);//10th Line
- addSprite(23616, 2, "Interfaces/Advisor/IMAGE");//Bank Icon
- addText(23617, "Put your advise or wharever you need to put here.", TDA, 1, 0x60C8F8, false, true);//11th Line
- addText(23618, "What is this nearby tree useful for?", TDA, 1, 0xF8C800, false, true);//12th Line
- addSprite(23619, 3, "Interfaces/Advisor/IMAGE");//Woodcutting Icon
- addText(23620, "Put your advise or wharever you need to put here.", TDA, 1, 0x60C8F8, false, true);//13th Line
- addText(23621, "Put your advise or wharever you need to put here.", TDA, 1, 0x60C8F8, false, true);//14th Line
- setBounds(23601, 2, 2, 0, Interface);//background
- setBounds(23602, 486, 6, 1, Interface);//Close Button
- setBounds(23605, 32, 35, 2, Interface);//1st Line
- setBounds(23606, 32, 59, 3, Interface);//2nd Line
- setBounds(23607, 32, 74, 4, Interface);//3rd Line
- setBounds(23608, 32, 88, 5, Interface);//4th Line
- setBounds(23609, 32, 112, 6, Interface);//5th Line
- setBounds(23610, 32, 136, 7, Interface);//6th Line
- setBounds(23614, 14, 136, 8, Interface);//Firemaking Icon
- setBounds(23611, 32, 150, 9, Interface);//7th Line
- setBounds(23612, 32, 164, 10, Interface);//8th Line
- setBounds(23613, 32, 178, 11, Interface);//9th Line
- setBounds(23615, 32, 202, 12, Interface);//10th Line
- setBounds(23616, 14, 202, 13, Interface);//Bank Icon
- setBounds(23617, 32, 216, 14, Interface);//11th Line
- setBounds(23618, 32, 240, 15, Interface);//12th Line
- setBounds(23619, 16, 240, 16, Interface);//Woodcutting Icon
- setBounds(23620, 32, 254, 17, Interface);//13th Line
- setBounds(23621, 32, 268, 18, Interface);//14th Line
- }
- public static void emoteTab() {
- RSInterface tab = addTabInterface(147);
- RSInterface scroll = addTabInterface(148);
- tab.totalChildren(1);
- tab.child(0, 148, 0, 1);
- addButton(168, 0, "/Emotes/EMOTE", "Yes",41,47);
- addButton(169, 1, "/Emotes/EMOTE", "No",41,47);
- addButton(164, 2, "/Emotes/EMOTE", "Bow",41,47);
- addButton(165, 3, "/Emotes/EMOTE", "Angry",41,47);
- addButton(162, 4, "/Emotes/EMOTE", "Think",41,47);
- addButton(163, 5, "/Emotes/EMOTE", "Wave",41,47);
- addButton(13370, 6, "/Emotes/EMOTE", "Shrug",41,47);
- addButton(171, 7, "/Emotes/EMOTE", "Cheer",41,47);
- addButton(167, 8, "/Emotes/EMOTE", "Beckon",41,47);
- addButton(170, 9, "/Emotes/EMOTE", "Laugh",41,47);
- addButton(13366, 10, "/Emotes/EMOTE", "Jump for Joy",41,47);
- addButton(13368, 11, "/Emotes/EMOTE", "Yawn",41,47);
- addButton(166, 12, "/Emotes/EMOTE", "Dance",41,47);
- addButton(13363, 13, "/Emotes/EMOTE", "Jig",41,47);
- addButton(13364, 14, "/Emotes/EMOTE", "Spin",41,47);
- addButton(13365, 15, "/Emotes/EMOTE", "Headbang",41,47);
- addButton(161, 16, "/Emotes/EMOTE", "Cry",41,47);
- addButton(11100, 17, "/Emotes/EMOTE", "Blow kiss",41,47);
- addButton(13362, 18, "/Emotes/EMOTE", "Panic",41,47);
- addButton(13367, 19, "/Emotes/EMOTE", "Raspberry",41,47);
- addButton(172, 20, "/Emotes/EMOTE", "Clap",41,47);
- addButton(13369, 21, "/Emotes/EMOTE", "Salute",41,47);
- addButton(13383, 22, "/Emotes/EMOTE", "Goblin Bow",41,47);
- addButton(13384, 23, "/Emotes/EMOTE", "Goblin Salute",41,47);
- addButton(667, 24, "/Emotes/EMOTE", "Glass Box",41,47);
- addButton(6503, 25, "/Emotes/EMOTE", "Climb Rope",41,47);
- addButton(6506, 26, "/Emotes/EMOTE", "Lean On Air",41,47);
- addButton(666, 27, "/Emotes/EMOTE", "Glass Wall",41,47);
- addButton(18464, 28, "/Emotes/EMOTE", "Zombie Walk",41,47);
- addButton(18465, 29, "/Emotes/EMOTE", "Zombie Dance",41,47);
- addButton(15166, 30, "/Emotes/EMOTE", "Scared",41,47);
- addButton(18686, 31, "/Emotes/EMOTE", "Rabbit Hop",41,47);
- addButton(154, 32, "/Emotes/EMOTE", "Skillcape Emote", 41, 47);
- addConfigButton(154, 147, 32, 32,"/EMOTES/EMOTE", 41, 47, "Skillcape Emote", 0, 1, 700);
- scroll.totalChildren(33);
- scroll.child(0, 168, 10, 7);
- scroll.child(1, 169, 54, 7);
- scroll.child(2, 164, 98, 14);
- scroll.child(3, 165, 137, 7);
- scroll.child(4, 162, 9, 56);
- scroll.child(5, 163, 48, 56);
- scroll.child(6, 13370, 95, 56);
- scroll.child(7, 171, 137, 56);
- scroll.child(8, 167, 7, 105);
- scroll.child(9, 170, 51, 105);
- scroll.child(10, 13366, 95, 104);
- scroll.child(11, 13368, 139, 105);
- scroll.child(12, 166, 6, 154);
- scroll.child(13, 13363, 50, 154);
- scroll.child(14, 13364, 90, 154);
- scroll.child(15, 13365, 135, 154);
- scroll.child(16, 161, 8, 204);
- scroll.child(17, 11100, 51, 203);
- scroll.child(18, 13362, 99, 204);
- scroll.child(19, 13367, 137, 203);
- scroll.child(20, 172, 10, 253);
- scroll.child(21, 13369, 53, 253);
- scroll.child(22, 13383, 88, 258);
- scroll.child(23, 13384, 138, 252);
- scroll.child(24, 667, 2, 303);
- scroll.child(25, 6503, 49, 302);
- scroll.child(26, 6506, 93, 302);
- scroll.child(27, 666, 137, 302);
- scroll.child(28, 18464, 9, 352);
- scroll.child(29, 18465, 50, 352);
- scroll.child(30, 15166, 94, 356);
- scroll.child(31, 18686, 141, 353);
- scroll.child(32, 154, 5, 401);
- scroll.width = 173; scroll.height = 258; scroll.scrollMax = 460;
- }
- public static void drawTooltip(int id, String text) {
- RSInterface rsinterface = addTabInterface(id);
- rsinterface.parentID = id;
- rsinterface.type = 0;
- rsinterface.interfaceShown = true;
- rsinterface.hoverType = -1;
- addTooltipBox(id + 1, text);
- rsinterface.totalChildren(1);
- rsinterface.child(0, id + 1, 0, 0);
- }
- public static void nonDonatorTab(TextDrawingArea[] TDA) {
- RSInterface Interface = addTabInterface(25900);
- setChildren(13, Interface);
- addSprite(25901, 0, "Interfaces/donatorInterface/BACKGROUND");// Background
- addHover(25902, 3, 0, 23903, 1, "", 17, 17, "Exit");//Close Button
- addHovered(25903, 2, "", 17, 17, 23904);//Close Button
- addText(25905, "Donating & Benifits", TDA, 2, 0xFF9900, false, true);//Title
- addSprite(25906, 0, "Interfaces/donatorInterface/BANNER");// Background
- addHoverButton(25907, "Interfaces/donatorInterface/BUTTON", 0, 180, 25, "Go to Forums", -1, 25908, 1);//Done Button
- addHoveredButton(25908, "Interfaces/donatorInterface/BUTTON", 1, 180, 25, 25909);//Done Button Hover
- addText(25910, "Go to forums", TDA, 1, 0xFFFFFF, false, true);//Done Button Text
- addHoverButton(25911, "Interfaces/donatorInterface/BUTTON", 0, 180, 25, "Go to Forums", -1, 25912, 1);//Done Button
- addHoveredButton(25912, "Interfaces/donatorInterface/BUTTON", 1, 180, 25, 25913);//Done Button Hover
- addText(25914, "Donate", TDA, 1, 0xFFFFFF, false, true);//Done Button Text
- addText(25915, "There are lots of benifits from donating to pkxile!", TDA, 0, 0xFFFFFF, false, true);//Text1
- addText(25916, "There is a donation page that you can find on the forums which contains everything that", TDA, 0, 0xFFFFFF, false, true);//Text2
- addText(25917, "you need to know about the benifits you can gain from donating to pkxile! - Enjoy", TDA, 0, 0xFFFFFF, false, true);//Text3
- setBounds(25901, 12, 45, 0, Interface);//background
- setBounds(25902, 476, 53, 1, Interface);//Close Button
- setBounds(25905, 199, 54, 2, Interface);//Title
- setBounds(25906, 19, 126, 3, Interface);//Image
- setBounds(25907, 65, 259, 4, Interface);//BUTTON1
- setBounds(25908, 65, 259, 5, Interface);//BUTTON1HOVER
- setBounds(25910, 115, 264, 6, Interface);//Button 1 Text
- setBounds(25911, 265, 259, 7, Interface);//BUTTON2
- setBounds(25912, 265, 259, 8, Interface);//BUTTON2HOVER
- setBounds(25914, 335, 264, 9, Interface);//Button 2 Text
- setBounds(25915, 36, 83, 10, Interface);//Text1
- setBounds(25916, 36, 95, 11, Interface);//Text2
- setBounds(25917, 36, 107, 12, Interface);//Text3
- }
- public static void SkillTab(TextDrawingArea[] tda){
- RSInterface Interface = addInterface(25000);
- int offset = 0;
- setChildren(36, Interface);
- addButton(25001, 0, "/Skill/SKILL", 188, 27, "View @or1@Attack", 1);
- addText(25002, "Attack", tda, 2, 0xFFcc33, false, true);
- addText(25003, "Level: 99/99", tda, 0, 0xFFcc33, false, true);
- addText(25004, "Exp: 14000000", tda, 0, 0xFFcc33, false, true);
- setBounds(25001, 1, 1, 0, Interface);
- setBounds(25002, 33, 6, 1, Interface);
- setBounds(25003, 108, 3, 2, Interface);
- setBounds(25004, 108, 13, 3, Interface);
- offset += 2;
- addButton(25005, 1, "/Skill/SKILL", 188, 27, "View @or1@Defence", 1);
- addText(25006, "Defence", tda, 2, 0xFFcc33, false, true);
- addText(25007, "Level: 99/99", tda, 0, 0xFFcc33, false, true);
- addText(25008, "Exp: 14000000", tda, 0, 0xFFcc33, false, true);
- setBounds(25005, 1, 28+offset, 4, Interface);
- setBounds(25006, 33, 33+offset, 5, Interface);
- setBounds(25007, 108, 30+offset, 6, Interface);
- setBounds(25008, 108, 40+offset, 7, Interface);
- offset += 2;
- addButton(25009, 2, "/Skill/SKILL", 188, 27, "View @or1@Strength", 1);
- addText(25010, "Strength", tda, 2, 0xFFcc33, false, true);
- addText(25011, "Level: 99/99", tda, 0, 0xFFcc33, false, true);
- addText(25012, "Exp: 14000000", tda, 0, 0xFFcc33, false, true);
- setBounds(25009, 1, 55+offset, 8, Interface);
- setBounds(25010, 33, 60+offset, 9, Interface);
- setBounds(25011, 108, 57+offset, 10, Interface);
- setBounds(25012, 108, 67+offset, 11, Interface);
- offset += 2;
- addButton(25013, 3, "/Skill/SKILL", 188, 27, "View @or1@Hitpoints", 1);
- addText(25014, "Hitpoints", tda, 2, 0xFFcc33, false, true);
- addText(25015, "Level: 99/99", tda, 0, 0xFFcc33, false, true);
- addText(25016, "Exp: 14000000", tda, 0, 0xFFcc33, false, true);
- setBounds(25013, 1, 82+offset, 12, Interface);
- setBounds(25014, 33, 87+offset, 13, Interface);
- setBounds(25015, 108, 84+offset, 14, Interface);
- setBounds(25016, 108, 94+offset, 15, Interface);
- offset += 2;
- addButton(25017, 4, "/Skill/SKILL", 188, 27, "View @or1@Ranged", 1);
- addText(25018, "Ranged", tda, 2, 0xFFcc33, false, true);
- addText(25019, "Level: 99/99", tda, 0, 0xFFcc33, false, true);
- addText(25020, "Exp: 14000000", tda, 0, 0xFFcc33, false, true);
- setBounds(25017, 1, 109+offset, 16, Interface);
- setBounds(25018, 33, 114+offset, 17, Interface);
- setBounds(25019, 108, 111+offset, 18, Interface);
- setBounds(25020, 108, 121+offset, 19, Interface);
- offset += 2;
- addButton(25021, 5, "/Skill/SKILL", 188, 27, "View @or1@Prayer", 1);
- addText(25022, "Prayer", tda, 2, 0xFFcc33, false, true);
- addText(25023, "Level: 99/99", tda, 0, 0xFFcc33, false, true);
- addText(25024, "Exp: 14000000", tda, 0, 0xFFcc33, false, true);
- setBounds(25021, 1, 136+offset, 20, Interface);
- setBounds(25022, 33, 141+offset, 21, Interface);
- setBounds(25023, 108, 138+offset, 22, Interface);
- setBounds(25024, 108, 148+offset, 23, Interface);
- offset += 2;
- addButton(25025, 6, "/Skill/SKILL", 188, 27, "View @or1@Magic", 1);
- addText(25026, "Magic", tda, 2, 0xFFcc33, false, true);
- addText(25027, "Level: 99/99", tda, 0, 0xFFcc33, false, true);
- addText(25028, "Exp: 14000000", tda, 0, 0xFFcc33, false, true);
- setBounds(25025, 1, 163+offset, 24, Interface);
- setBounds(25026, 33, 168+offset, 25, Interface);
- setBounds(25027, 108, 165+offset, 26, Interface);
- setBounds(25028, 108, 175+offset, 27, Interface);
- offset += 2;
- addButton(25029, 7, "/Skill/SKILL", 188, 27, "View @or1@Pking", 1);
- addText(25030, "Pking", tda, 2, 0xFFcc33, false, true);
- addText(25031, "Level: 99/99", tda, 0, 0xFFcc33, false, true);
- addText(25032, "Exp: 14000000", tda, 0, 0xFFcc33, false, true);
- setBounds(25029, 1, 190+offset, 28, Interface);
- setBounds(25030, 33, 195+offset, 29, Interface);
- setBounds(25031, 108, 192+offset, 30, Interface);
- setBounds(25032, 108, 202+offset, 31, Interface);
- offset += 2;
- addButton(25033, 8, "/Skill/SKILL", 188, 27, "View @or1@Total", 1);
- addText(25034, "Total", tda, 2, 0xFFcc33, false, true);
- addText(25035, "Level: 792", tda, 0, 0xFFcc33, false, true);
- addText(25036, "Exp: 112000000", tda, 0, 0xFFcc33, false, true);
- setBounds(25033, 1, 217+offset, 32, Interface);
- setBounds(25034, 33, 222+offset, 33, Interface);
- setBounds(25035, 108, 219+offset, 34, Interface);
- setBounds(25036, 108, 229+offset, 35, Interface);
- }
- public static void bountyHunter(TextDrawingArea[] tda) {
- RSInterface tab = addInterface(25347);
- tab.totalChildren(5);
- addText(25349, "Target:", 0xffcccc, false, true, -1, tda, 1);
- addText(25350, "Username Here", 0xff6666, true, true, -1, tda, 2);
- addText(25351, "Pickup penalty:", 0xff3333, false, true, -1, tda, 1);
- addText(25352, "Sec here", 0xff6666, true, true, -1, tda, 2);
- addTransparentSprite(25348, 0, "Other/bh");//128
- tab.child(0,25348,332,3);
- tab.child(1,25349,340,13);
- tab.child(2,25350,452,13);
- tab.child(3,25351,340,34);
- tab.child(4,25352,470,34);
- }
- public static void teleportingInterface(TextDrawingArea[] wid) {
- RSInterface rsinterface = addTabInterface(24000);
- rsinterface.totalChildren(31);
- addSprite(24001, 0, "Interfaces/teleporting/SPRITE");
- //corp beast (first row)
- addHoverButton(24002, "Interfaces/teleporting/SPRITE", 1, 60, 76, "Teleport", -1, 24003, 1);
- addHoveredButton(24003, "Interfaces/teleporting/SPRITE", 2, 60, 76, 24004);
- //nomad (first row)
- addHoverButton(24005, "Interfaces/teleporting/SPRITE", 3, 60, 76, "Teleport", -1, 24006, 1);
- addHoveredButton(24006, "Interfaces/teleporting/SPRITE", 4, 60, 76, 24007);
- //sea troll queen (first row)
- addHoverButton(24008, "Interfaces/teleporting/SPRITE", 5, 60, 76, "Teleport", -1, 24009, 1);
- addHoveredButton(24009, "Interfaces/teleporting/SPRITE", 6, 60, 76, 24010);
- //mole (second row)
- addHoverButton(24011, "Interfaces/teleporting/SPRITE", 7, 60, 76, "Teleport", -1, 24012, 1);
- addHoveredButton(24012, "Interfaces/teleporting/SPRITE", 8, 60, 76, 24013);
- //Kq (second row)
- addHoverButton(24014, "Interfaces/teleporting/SPRITE", 9, 60, 76, "Teleport", -1, 24015, 1);
- addHoveredButton(24015, "Interfaces/teleporting/SPRITE", 10, 60, 76, 24016);
- //Kbd (second row)
- addHoverButton(24017, "Interfaces/teleporting/SPRITE", 11, 60, 76, "Teleport", -1, 24018, 1);
- addHoveredButton(24018, "Interfaces/teleporting/SPRITE", 12, 60, 76, 24019);
- //next (third row)
- addHoverButton(24020, "Interfaces/teleporting/SPRITE", 19, 131, 24, "Next Screen", -1, 24021, 1);
- addHoveredButton(24021, "Interfaces/teleporting/SPRITE", 20, 131, 24, 24022);
- //close (third row)
- addHoverButton(24023, "Interfaces/teleporting/SPRITE", 21, 131, 24, "Close Screen", -1, 24024, 3);
- addHoveredButton(24024, "Interfaces/teleporting/SPRITE", 22, 131, 24, 24025);
- //previous (third row)
- addHoverButton(24026, "Interfaces/teleporting/SPRITE", 17, 131, 24, "Previous Screen", -1, 24027, 1);
- addHoveredButton(24027, "Interfaces/teleporting/SPRITE", 18, 131, 24, 24028);
- //dagg kings (fourth row)
- addHoverButton(24029, "Interfaces/teleporting/SPRITE", 13, 60, 76, "Teleport", -1, 24030, 1);
- addHoveredButton(24030, "Interfaces/teleporting/SPRITE", 14, 60, 76, 24031);
- //Everlast (fourth row)
- addHoverButton(24032, "Interfaces/teleporting/SPRITE", 15, 60, 76, "Teleport", -1, 24033, 1);
- addHoveredButton(24033, "Interfaces/teleporting/SPRITE", 16, 60, 76, 24034);
- //Tormented demon(fourth row)
- addHoverButton(24035, "Interfaces/teleporting/SPRITE", 23, 60, 76, "Teleport", -1, 24036, 1);
- addHoveredButton(24036, "Interfaces/teleporting/SPRITE", 24, 60, 76, 24037);
- //barrelchest (fifth row)
- addHoverButton(24038, "Interfaces/teleporting/SPRITE", 25, 60, 76, "Teleport", -1, 24039, 1);
- addHoveredButton(24039, "Interfaces/teleporting/SPRITE", 26, 60, 76, 24040);
- //Godwars (fifth row)
- addHoverButton(24041, "Interfaces/teleporting/SPRITE", 27, 60, 76, "Teleport", -1, 24042, 1);
- addHoveredButton(24042, "Interfaces/teleporting/SPRITE", 28, 60, 76, 24043);
- //Ice queen (fifth row)
- addHoverButton(24044, "Interfaces/teleporting/SPRITE", 29, 60, 76, "Teleport", -1, 24045, 1);
- addHoveredButton(24045, "Interfaces/teleporting/SPRITE", 30, 60, 76, 24046);
- //main screen
- rsinterface.child(0, 24001, 2, 2);
- //first row
- rsinterface.child(1, 24002, 35, 35);
- rsinterface.child(2, 24003, 35, 35);
- rsinterface.child(3, 24005, 35, 124);
- rsinterface.child(4, 24006, 35, 124);
- rsinterface.child(5, 24008, 35, 219);
- rsinterface.child(6, 24009, 35, 219);
- //second row
- rsinterface.child(7, 24011, 110, 35);
- rsinterface.child(8, 24012, 110, 35);
- rsinterface.child(9, 24014, 110, 124);
- rsinterface.child(10, 24015, 110, 124);
- rsinterface.child(11, 24017, 110, 219);
- rsinterface.child(12, 24018, 110, 219);
- //third row
- rsinterface.child(13, 24020, 185, 35);
- rsinterface.child(14, 24021, 185, 35);
- rsinterface.child(15, 24023, 185, 124);
- rsinterface.child(16, 24024, 185, 124);
- rsinterface.child(17, 24026, 185, 219);
- rsinterface.child(18, 24027, 185, 219);
- //fourth row
- rsinterface.child(19, 24029, 350, 35);
- rsinterface.child(20, 24030, 350, 35);
- rsinterface.child(21, 24032, 350, 124);
- rsinterface.child(22, 24033, 350, 124);
- rsinterface.child(23, 24035, 350, 219);
- rsinterface.child(24, 24036, 350, 219);
- //fifth row
- rsinterface.child(25, 24038, 425, 35);
- rsinterface.child(26, 24039, 425, 35);
- rsinterface.child(27, 24041, 425, 124);
- rsinterface.child(28, 24042, 425, 124);
- rsinterface.child(29, 24044, 425, 219);
- rsinterface.child(30, 24045, 425, 219);
- }
- public static void dominionTower(TextDrawingArea[] tda) {
- RSInterface tab = addInterface(26347);
- tab.totalChildren(5);
- addText(26349, "Dominion Tower", 0xffcccc, false, true, -1, tda, 1);
- addText(26350, "Wave: ", 0xff6666, true, true, -1, tda, 2);
- addText(26351, "Monsters Left:", 0xff3333, false, true, -1, tda, 1);
- addText(26352, "Dominion Points:", 0xff6666, true, true, -1, tda, 2);
- tab.child(0,26348,332,3);
- tab.child(1,26349,340,13);
- tab.child(2,26350,452,13);
- tab.child(3,26351,340,34);
- tab.child(4,26352,470,34);
- }
- public static void addAura(int i) {
- RSInterface rsinterface = interfaceCache[i] = new RSInterface();
- rsinterface.actions = new String[5];
- rsinterface.spritesX = new int[20];
- rsinterface.invStackSizes = new int[30];
- rsinterface.inv = new int[30];
- rsinterface.spritesY = new int[20];
- rsinterface.children = new int[0];
- rsinterface.childX = new int[0];
- rsinterface.childY = new int[0];
- rsinterface.spritesY[0] = 0;
- rsinterface.spritesY[1] = 0;
- rsinterface.spritesY[2] = 0;
- rsinterface.spritesY[3] = 0;
- rsinterface.spritesY[4] = 0;
- rsinterface.spritesY[5] = 0;
- rsinterface.spritesY[6] = 0;
- rsinterface.spritesY[7] = 0;
- rsinterface.spritesY[8] = 0;
- rsinterface.spritesY[9] = 0;
- rsinterface.spritesY[10] = 0;
- rsinterface.spritesY[11] = 0;
- rsinterface.spritesY[12] = 0;
- rsinterface.spritesY[13] = 0;
- rsinterface.spritesY[14] = 0;
- rsinterface.spritesY[15] = 0;
- rsinterface.spritesY[16] = 0;
- rsinterface.spritesY[17] = 0;
- rsinterface.spritesY[18] = 0;
- rsinterface.spritesY[19] = 0;
- rsinterface.invStackSizes[0] = 0;
- rsinterface.invStackSizes[1] = 0;
- rsinterface.invStackSizes[2] = 0;
- rsinterface.invStackSizes[3] = 0;
- rsinterface.invStackSizes[4] = 0;
- rsinterface.invStackSizes[5] = 0;
- rsinterface.invStackSizes[6] = 0;
- rsinterface.invStackSizes[7] = 0;
- rsinterface.invStackSizes[8] = 0;
- rsinterface.invStackSizes[9] = 0;
- rsinterface.invStackSizes[10] = 0;
- rsinterface.invStackSizes[11] = 0;
- rsinterface.invStackSizes[12] = 0;
- rsinterface.invStackSizes[13] = 0;
- rsinterface.invStackSizes[14] = 0;
- rsinterface.invStackSizes[15] = 0;
- rsinterface.invStackSizes[16] = 0;
- rsinterface.invStackSizes[17] = 0;
- rsinterface.invStackSizes[18] = 0;
- rsinterface.invStackSizes[19] = 0;
- rsinterface.invStackSizes[20] = 0;
- rsinterface.invStackSizes[21] = 0;
- rsinterface.invStackSizes[22] = 0;
- rsinterface.invStackSizes[23] = 0;
- rsinterface.invStackSizes[24] = 0;
- rsinterface.invStackSizes[25] = 0;
- rsinterface.invStackSizes[26] = 0;
- rsinterface.invStackSizes[27] = 0;
- rsinterface.invStackSizes[28] = 0;
- rsinterface.invStackSizes[29] = 0;
- rsinterface.inv[0] = 0;
- rsinterface.inv[1] = 0;
- rsinterface.inv[2] = 0;
- rsinterface.inv[3] = 0;
- rsinterface.inv[4] = 0;
- rsinterface.inv[5] = 0;
- rsinterface.inv[6] = 0;
- rsinterface.inv[7] = 0;
- rsinterface.inv[8] = 0;
- rsinterface.inv[9] = 0;
- rsinterface.inv[10] = 0;
- rsinterface.inv[11] = 0;
- rsinterface.inv[12] = 0;
- rsinterface.inv[13] = 0;
- rsinterface.inv[14] = 0;
- rsinterface.inv[15] = 0;
- rsinterface.inv[16] = 0;
- rsinterface.inv[17] = 0;
- rsinterface.inv[18] = 0;
- rsinterface.inv[19] = 0;
- rsinterface.inv[20] = 0;
- rsinterface.inv[21] = 0;
- rsinterface.inv[22] = 0;
- rsinterface.inv[23] = 0;
- rsinterface.inv[24] = 0;
- rsinterface.inv[25] = 0;
- rsinterface.inv[26] = 0;
- rsinterface.inv[27] = 0;
- rsinterface.inv[28] = 0;
- rsinterface.inv[29] = 0;
- rsinterface.spritesX[0] = 0;
- rsinterface.spritesX[1] = 0;
- rsinterface.spritesX[2] = 0;
- rsinterface.spritesX[3] = 0;
- rsinterface.spritesX[4] = 0;
- rsinterface.spritesX[5] = 0;
- rsinterface.spritesX[6] = 0;
- rsinterface.spritesX[7] = 0;
- rsinterface.spritesX[8] = 0;
- rsinterface.spritesX[9] = 0;
- rsinterface.spritesX[10] = 0;
- rsinterface.spritesX[11] = 0;
- rsinterface.spritesX[12] = 0;
- rsinterface.spritesX[13] = 0;
- rsinterface.spritesX[14] = 0;
- rsinterface.spritesX[15] = 0;
- rsinterface.spritesX[16] = 0;
- rsinterface.spritesX[17] = 0;
- rsinterface.spritesX[18] = 0;
- rsinterface.spritesX[19] = 0;
- rsinterface.actions[0] = null;
- rsinterface.actions[1] = null;
- rsinterface.actions[2] = null;
- rsinterface.actions[3] = null;
- rsinterface.actions[4] = null;
- rsinterface.centerText = false;
- rsinterface.aBoolean227 = false;
- rsinterface.aBoolean235 = false;
- rsinterface.usableItemInterface = false;
- rsinterface.isInventoryInterface = false;
- rsinterface.aBoolean259 = true;
- rsinterface.interfaceShown = false;
- rsinterface.textShadow = false;
- rsinterface.width = 6;
- rsinterface.hoverType = -1;
- rsinterface.invSpritePadX = 24;
- rsinterface.parentID = 10794;
- rsinterface.invSpritePadY = 24;
- rsinterface.type = 2;
- rsinterface.height = 5;
- }
- public static void addHovered(int i, int j, String s, 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.interfaceShown = true;
- rsinterface.hoverType = -1;
- addSprite(i1, j, s);
- setChildren(1, rsinterface);
- setBounds(i1, 0, 0, 0, rsinterface);
- }
- public static void addToggleButton(int id, int sprite, int setconfig, int width, int height, String s)
- {
- RSInterface rsi = addInterface(id);
- rsi.sprite1 = CustomSpriteLoader(sprite, "");
- rsi.sprite2 = CustomSpriteLoader(sprite, "a");
- rsi.requiredValues = new int[1];
- rsi.requiredValues[0] = 1;
- rsi.valueCompareType = new int[1];
- rsi.valueCompareType[0] = 1;
- rsi.valueIndexArray = new int[1][3];
- rsi.valueIndexArray[0][0] = 5;
- rsi.valueIndexArray[0][1] = setconfig;
- rsi.valueIndexArray[0][2] = 0;
- rsi.atActionType = 4;
- rsi.width = width;
- rsi.hoverType = -1;
- rsi.parentID = id;
- rsi.id = id;
- rsi.type = 5;
- rsi.height = height;
- rsi.tooltip = s;
- }
- public static void netWork(TextDrawingArea[] TDA) {
- RSInterface Interface = addTabInterface(14233);
- setChildren(7, Interface);
- addSprite(14501, 1, "NETWORK/BACKGROUND");
- addHover(14502, 3, 0, 16003, 1, "NETWORK/CLOSE", 17, 17, "Exit");
- addHovered(14503, 2, "NETWORK/CLOSE", 17, 17, 14004);
- addText(14506, "Like us, Follow us, Watch us.", 0xFFFF00, false, true, 52,TDA, 1);
- addButton(14512, 1, "NETWORK/ITEM", 64, 64, "@or1@ Facebook", 1);
- addButton(14513, 2, "NETWORK/ITEM", 64, 64, "@or1@ Twitter", 1);
- addButton(14514, 3, "NETWORK/ITEM", 64, 64, "@or1@ Youtube", 1);
- setBounds(14501, 55, 95, 0, Interface);
- setBounds(14502, 424, 104, 1, Interface);
- setBounds(14503, 424, 104, 2, Interface);
- setBounds(14506, 185, 104, 3, Interface);
- setBounds(14512, 110, 165, 4, Interface);
- setBounds(14513, 230, 165, 5, Interface);
- setBounds(14514, 350, 165, 6, Interface);
- }
- public static void note(TextDrawingArea[] tda) {
- RSInterface tab = addTabInterface(173);
- addSprite(17351, 0, "NOTE");
- addHoverButton(17352, "NOTE", 1, 200, 30, "Add note", -1, 17353, 1);
- addHoveredButton(17353, "NOTE", 2, 200, 30, 17354);
- addHoverButton(17355, "NOTE", 3, 200, 30, "Delete all", -1, 17356, 1);
- addHoveredButton(17356, "NOTE", 4, 200, 30, 17357);
- addText(13800, "No notes", tda, 0, 0xffffff, false, true);
- addText(17801, "", tda, 0, 0xff981f, false, true);
- addText(17812, "", tda, 0, 0xff981f, false, true);
- addText(17813, "", tda, 0, 0xff981f, false, true);
- addText(17814, "", tda, 0, 0xff981f, false, true);
- tab.totalChildren(6);
- tab.child(0, 17351, 0, 0);
- tab.child(1, 17352, 8, 2);
- tab.child(2, 17353, 8, 2);
- tab.child(3, 17355, 165, 237);
- tab.child(4, 17356, 165, 237);
- tab.child(5, 13800, 68, 78);
- tab = addTabInterface(14000);
- tab.width = 474;
- tab.height = 213;
- tab.scrollMax = 305;
- for(int i = 14001; i <= 14030; i++){
- addText(i, "", tda, 1, 0xffffff, false, true);
- }
- tab.totalChildren(30);
- int Child = 0;
- int Y = 5;
- for(int i = 14001; i <= 14030; i++){
- tab.child(Child, i, 248, Y);
- Child++;
- Y += 13;
- }
- }
- public static void buyRXPShop1(TextDrawingArea[] tda) {
- RSInterface tab = addTabInterface(21850);
- RSInterface scroll = addTabInterface(21849);
- addSprite(21851, 45, "Interfaces/rxShop/SPRITE");
- addSprite(21852, 11, "Interfaces/rxShop/SPRITE");
- addSprite(21853, 12, "Interfaces/rxShop/SPRITE");
- addHoverButton1(21854, "Interfaces/rxShop/SPRITE", 9, 102, 19, "Home", 21855, 1);
- addHoveredButton(21855, "Interfaces/rxShop/SPRITE", 10, 102, 19, 21856);
- addHoverButton1(21859, "Interfaces/rxShop/SPRITE", 32, 218, 61, "Auras", 21860, 1);
- addHoveredButton(21860, "Interfaces/rxShop/SPRITE", 33, 218, 61, 21861);
- addHoverButton1(21865, "Interfaces/rxShop/SPRITE", 34, 218, 61, "Title", 21866, 1);
- addHoveredButton(21866, "Interfaces/rxShop/SPRITE", 35, 218, 61, 21867);
- addHoverButton1(21868, "Interfaces/rxShop/SPRITE", 36, 218, 61, "Re-Colour", 21869, 1);
- addHoveredButton(21869, "Interfaces/rxShop/SPRITE", 37, 218, 61, 21870);
- addSprite(21857, 14, "Interfaces/rxShop/SPRITE");
- addSprite(21858, 1, "Interfaces/rxShop/SPRITE");
- //buttons
- addHoverButton1(21862, "Interfaces/rxShop/SPRITE", 21, 120, 28, "Auras", 21863, 1);
- addHoveredButton(21863, "Interfaces/rxShop/SPRITE", 22, 120, 28, 21864);
- addHoverButton1(21871, "Interfaces/rxShop/SPRITE", 23, 120, 28, "Pets", 21872, 1);
- addHoveredButton(21872, "Interfaces/rxShop/SPRITE", 24, 120, 28, 21873);
- addHoverButton1(21874, "Interfaces/rxShop/SPRITE", 51, 120, 28, "Items", 21875, 1);
- addHoveredButton(21875, "Interfaces/rxShop/SPRITE", 52, 120, 28, 21876);
- addHoverButton1(21877, "Interfaces/rxShop/SPRITE", 25, 120, 28, "Titles", 21878, 1);
- addHoveredButton(21878, "Interfaces/rxShop/SPRITE", 26, 120, 28, 21880);
- addHoverButton1(21881, "Interfaces/rxShop/SPRITE", 49, 120, 28, "Features", 21882, 1);
- addHoveredButton(21882, "Interfaces/rxShop/SPRITE", 50, 120, 28, 21883);
- addHoverButton1(21897, "Interfaces/rxShop/SPRITE", 38, 120, 28, "Special Offers", 21898, 1);
- addHoveredButton(21898, "Interfaces/rxShop/SPRITE", 39, 120, 28, 21899);
- addHoverButton1(21907, "Interfaces/rxShop/SPRITE", 40, 78, 16, "Favourites", 21908, 1);
- addHoveredButton(21908, "Interfaces/rxShop/SPRITE", 41, 78, 16, 21909);
- addHoverButton1(21911, "Interfaces/rxShop/SPRITE", 42, 15, 13, "Close", 21912, 1);
- addHoveredButton(21912, "Interfaces/rxShop/SPRITE", 43, 15, 13, 21913);
- //text
- addText(21884, "RXP Shop", tda, 0, 0xe6be78, false, true);
- addText(21885, "My RXP:", tda, 0, 0xe6be78, false, true);
- addText(21886, "1,000", tda, 0, 0xe6be78, false, true);
- addText(21887, "Now Viewing: Titles", tda, 0, 0xe6be78, false, true);
- addText(21888, "Auras", tda, 0, 0xe6be78, false, true);
- addText(21889, "Pets", tda, 0, 0xe6be78, false, true);
- addText(21890, "Items", tda, 0, 0xe6be78, false, true);
- addText(21891, "Titles", tda, 0, 0xe6be78, false, true);
- addText(21892, "Features", tda, 0, 0xe6be78, false, true);
- addText(21893, "", tda, 0, 0xe6be78, false, true);
- addText(21894, "Vampyrism", tda, 0, 0xe6be78, false, true);
- addText(21895, "23,000 Points", tda, 0, 0xe6be78, false, true);
- addText(21896, "See More", tda, 0, 0xe6be78, false, true);
- addText(21900, "Special Offers", tda, 0, 0xe6be78, false, true);
- addText(21901, "Disappear", tda, 0, 0xe6be78, false, true);
- addText(21902, "12,000 Points", tda, 0, 0xe6be78, false, true);
- addText(21903, "See More", tda, 0, 0xe6be78, false, true);
- addText(21904, "King", tda, 0, 0xe6be78, false, true);
- addText(21905, "25,000 Points", tda, 0, 0xe6be78, false, true);
- addText(21906, "See More", tda, 0, 0xe6be78, false, true);
- addText(21910, "Edit Titles", tda, 0, 0xe6be78, false, true);
- //
- //title buttons & backs
- addSprite(21914, 44, "Interfaces/rxShop/SPRITE");
- addText(21915, "Sir", tda, 0, 0xe6be78, false, true);
- addText(21916, "1,000 Points", tda, 0, 0xdb9000, false, true);
- addText(21917, "Buy", tda, 0, 0xe6be78, false, true);
- addHoverButton1(21923, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21924, 1);
- addHoveredButton(21924, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21925);
- addSprite(21922, 44, "Interfaces/rxShop/SPRITE");
- addHoverButton1(21926, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21927, 1);
- addHoveredButton(21927, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21928);
- addHoverButton1(21929, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21930, 1);
- addHoveredButton(21930, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21931);
- addHoverButton1(21932, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21933, 1);
- addHoveredButton(21933, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21934);
- addHoverButton1(21935, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21936, 1);
- addHoveredButton(21936, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21937);
- addHoverButton1(21938, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21939, 1);
- addHoveredButton(21939, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21940);
- //3rd row below
- addHoverButton1(21941, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21942, 1);
- addHoveredButton(21942, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21943);
- addHoverButton1(21944, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21945, 1);
- addHoveredButton(21945, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21946);
- addHoverButton1(21947, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21948, 1);
- addHoveredButton(21948, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21949);
- //4th row
- addHoverButton1(21950, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21951, 1);
- addHoveredButton(21951, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21952);
- addHoverButton1(21953, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21954, 1);
- addHoveredButton(21954, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21955);
- addHoverButton1(21956, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21957, 1);
- addHoveredButton(21957, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21958);
- //5th
- addHoverButton1(21959, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21960, 1);
- addHoveredButton(21960, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21961);
- addHoverButton1(21962, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21963, 1);
- addHoveredButton(21963, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21964);
- addHoverButton1(21965, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21966, 1);
- addHoveredButton(21966, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21967);
- //6th
- addHoverButton1(21968, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21969, 1);
- addHoveredButton(21969, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21970);
- addHoverButton1(21971, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21972, 1);
- addHoveredButton(21972, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21973);
- //start titles & price
- addText(21919, "Lord", tda, 0, 0xe6be78, false, true);
- addText(21920, "1,000 Points", tda, 0, 0xdb9000, false, true);
- addText(21921, "Buy", tda, 0, 0xe6be78, false, true);
- addText(21974, "Duderino", tda, 0, 0xe6be78, false, true);
- addText(21975, "4,000 Points", tda, 0, 0xdb9000, false, true);
- addText(21976, "Lionheart", tda, 0, 0xe6be78, false, true);
- addText(21977, "4,000 Points", tda, 0, 0xdb9000, false, true);
- addText(21978, "Crusader", tda, 0, 0xe6be78, false, true);
- addText(21979, "8,000 Points", tda, 0, 0xdb9000, false, true);
- addText(21980, "HellRaiser", tda, 0, 0xe6be78, false, true);
- addText(21981, "8,000 Points", tda, 0, 0xdb9000, false, true);
- addText(21982, "Desperado", tda, 0, 0xe6be78, false, true);
- addText(21843, "10,000 Points", tda, 0, 0xdb9000, false, true);
- addText(21842, "Baron", tda, 0, 0xe6be78, false, true);
- addText(21985, "10,000 Points", tda, 0, 0xdb9000, false, true);
- addText(21986, "Count", tda, 0, 0xe6be78, false, true);
- addText(21987, "15,000 Points", tda, 0, 0xdb9000, false, true);
- addText(21988, "Overlord", tda, 0, 0xe6be78, false, true);
- addText(21989, "15,000 Points", tda, 0, 0xdb9000, false, true);
- addText(21990, "Bandito", tda, 0, 0xe6be78, false, true);
- addText(21991, "20,000 Points", tda, 0, 0xdb9000, false, true);
- addText(21992, "Duke", tda, 0, 0xe6be78, false, true);
- addText(21993, "20,000 Points", tda, 0, 0xdb9000, false, true);
- addText(21994, "Big Cheese", tda, 0, 0xe6be78, false, true);
- addText(21995, "25,000 Points", tda, 0, 0xdb9000, false, true);
- addText(21996, "Bigwig", tda, 0, 0xe6be78, false, true);
- addText(21848, "25,000 Points", tda, 0, 0xdb9000, false, true);
- addText(21847, "King", tda, 0, 0xe6be78, false, true);
- addText(21846, "25,000 Points", tda, 0, 0xdb9000, false, true);
- addText(21845, "Wunderkin", tda, 0, 0xe6be78, false, true);
- addText(21844, "50,000 Points", tda, 0, 0xdb9000, false, true);
- addText(21841, "Bigwig", tda, 0, 0xe6be78, false, true);
- addText(21840, "25,000 Points", tda, 0, 0xdb9000, false, true);
- addText(21839, "Master", tda, 0, 0xe6be78, false, true);
- addText(21838, "75,000 Points", tda, 0, 0xdb9000, false, true);
- //
- //
- tab.totalChildren(27);
- tab.child(0, 21851, 1, 1);
- //tab.child(1, 21854, 15, 50);
- //tab.child(2, 21855, 15, 50);
- /*tab.child(3, 21859, 360, 90);
- tab.child(4, 21860, 360, 90);
- tab.child(5, 21865, 360, 155);
- tab.child(6, 21866, 360, 155);
- tab.child(7, 21868, 360, 220);
- tab.child(8, 21869, 360, 220);*/
- tab.child(1, 21862, 9, 96);
- tab.child(2, 21863, 9, 96);
- tab.child(3, 21871, 9, 126);
- tab.child(4, 21872, 9, 126);
- tab.child(5, 21874, 9, 156);
- tab.child(6, 21875, 9, 156);
- tab.child(7, 21877, 9, 186);
- tab.child(8, 21878, 9, 186);
- tab.child(9, 21881, 9, 216);
- tab.child(10, 21882, 9, 216);
- tab.child(11, 21884, 45, 55);
- tab.child(12, 21885, 16, 79);
- tab.child(13, 21886, 75, 79);
- tab.child(14, 21887, 132, 53);
- tab.child(15, 21888, 84, 104);
- tab.child(16, 21889, 80, 134);
- tab.child(17, 21890, 90, 164);
- tab.child(18, 21891, 87, 194);
- tab.child(19, 21892, 68, 224);
- tab.child(20, 21893, 145, 104);
- tab.child(21, 21911, 491, 6);
- tab.child(22, 21912, 491, 6);
- tab.child(23, 21897, 9, 246);
- tab.child(24, 21898, 9, 246);
- tab.child(25, 21900, 39, 254);
- tab.child(26, 21849, 130, 70);
- scroll.totalChildren(102);
- scroll.child(0, 21914, 5, 5);
- scroll.child(1, 21915, 65, 13);
- scroll.child(2, 21916, 45, 24);
- scroll.child(3, 21923, 54, 38);
- scroll.child(4, 21924, 54, 38);
- scroll.child(5, 21922, 122, 5);
- scroll.child(6, 21917, 72, 38);
- scroll.child(7, 21922, 240, 5);
- scroll.child(8, 21922, 5, 55);
- scroll.child(9, 21922, 122, 55);
- scroll.child(10, 21922, 240, 55);
- scroll.child(11, 21922, 5, 105);
- scroll.child(12, 21922, 122, 105);
- scroll.child(13, 21922, 240, 105);
- scroll.child(14, 21922, 5, 155);
- scroll.child(15, 21922, 122, 155);
- scroll.child(16, 21922, 240, 155);
- scroll.child(17, 21922, 5, 205);
- scroll.child(18, 21922, 122, 205);
- scroll.child(19, 21922, 240, 205);
- scroll.child(20, 21922, 5, 255);
- scroll.child(21, 21922, 122, 255);
- scroll.child(22, 21926, 172, 38);
- scroll.child(23, 21927, 172, 38);
- scroll.child(24, 21929, 290, 38);
- scroll.child(25, 21930, 290, 38);
- //2ndrow
- scroll.child(26, 21932, 54, 88);
- scroll.child(27, 21933, 54, 88);
- scroll.child(28, 21935, 172, 88);
- scroll.child(29, 21936, 172, 88);
- scroll.child(30, 21938, 290, 88);
- scroll.child(31, 21939, 290, 88);
- //3rdrow
- scroll.child(32, 21941, 54, 138);
- scroll.child(33, 21942, 54, 138);
- scroll.child(34, 21944, 172, 138);
- scroll.child(35, 21945, 172, 138);
- scroll.child(36, 21947, 290, 138);
- scroll.child(37, 21948, 290, 138);
- //4throw
- scroll.child(38, 21950, 54, 188);
- scroll.child(39, 21951, 54, 188);
- scroll.child(40, 21953, 172, 188);
- scroll.child(41, 21954, 172, 188);
- scroll.child(42, 21956, 290, 188);
- scroll.child(43, 21957, 290, 188);
- //5th
- scroll.child(44, 21959, 54, 238);
- scroll.child(45, 21960, 54, 238);
- scroll.child(46, 21962, 172, 238);
- scroll.child(47, 21963, 172, 238);
- scroll.child(48, 21965, 290, 238);
- scroll.child(49, 21966, 290, 238);
- //6th
- scroll.child(50, 21968, 54, 288);
- scroll.child(51, 21969, 54, 288);
- scroll.child(52, 21971, 172, 288);
- scroll.child(53, 21972, 172, 288);
- //buy 1st column
- scroll.child(54, 21917, 72, 88);
- scroll.child(55, 21917, 72, 138);
- scroll.child(56, 21917, 72, 188);
- scroll.child(57, 21917, 72, 238);
- scroll.child(58, 21917, 72, 288);
- //2nd column
- scroll.child(59, 21917, 190, 38);
- scroll.child(60, 21917, 190, 88);
- scroll.child(61, 21917, 190, 138);
- scroll.child(62, 21917, 190, 188);
- scroll.child(63, 21917, 190, 238);
- scroll.child(64, 21917, 190, 288);
- //3rd column buy
- scroll.child(65, 21917, 308, 38);
- scroll.child(66, 21917, 308, 88);
- scroll.child(67, 21917, 308, 138);
- scroll.child(68, 21917, 308, 188);
- scroll.child(69, 21917, 308, 238);
- //start titles
- //1st row
- scroll.child(70, 21919, 183, 13);
- scroll.child(71, 21920, 163, 24);
- scroll.child(72, 21974, 293, 13);
- scroll.child(73, 21975, 281, 24);
- //2nd row
- scroll.child(74, 21976, 57, 63);
- scroll.child(75, 21977, 45, 74);
- scroll.child(76, 21978, 174, 63);
- scroll.child(77, 21979, 163, 74);
- scroll.child(78, 21980, 289, 63);
- scroll.child(79, 21981, 281, 74);
- //3rd row
- scroll.child(80, 21982, 52, 113);
- scroll.child(81, 21843, 43, 124);
- scroll.child(82, 21842, 183, 113);
- scroll.child(83, 21985, 161, 124);
- scroll.child(84, 21986, 301, 113);
- scroll.child(85, 21987, 279, 124);
- //4th row
- scroll.child(86, 21988, 57, 163);
- scroll.child(87, 21989, 45, 174);
- scroll.child(88, 21990, 178, 163);
- scroll.child(89, 21991, 160, 174);
- scroll.child(90, 21992, 301, 163);
- scroll.child(91, 21993, 278, 174);
- //5th row
- scroll.child(92, 21994, 52, 213);
- scroll.child(93, 21848, 42, 224);
- scroll.child(94, 21841, 179, 213);
- scroll.child(95, 21840, 160, 224);
- scroll.child(96, 21847, 301, 213);
- scroll.child(97, 21846, 278, 224);
- //6th row
- scroll.child(98, 21845, 52, 263);
- scroll.child(99, 21844, 42, 274);
- scroll.child(100, 21839, 180, 263);
- scroll.child(101, 21838, 160, 274);
- scroll.width = 357;
- scroll.height = 238;
- scroll.scrollMax = 302;
- //UPDATE TOTAL CHILDS!
- }
- 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.hoverType = 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.interfaceShown = 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);
- }
- public static void ancientMagicTab(TextDrawingArea[] tda) {
- RSInterface tab = addInterface(12855);
- addButton(12856, 1, "Magic/Home", "Cast @gre@Home Teleport");
- RSInterface homeButton = interfaceCache[12856];
- homeButton.hoverType = 1196;
- int[] itfChildren = {
- 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
- };
- tab.totalChildren(itfChildren.length);
- for(int i1 = 0, xPos = 18, yPos = 8; i1 < itfChildren.length; i1++, xPos += 45) {
- if(xPos > 175) {
- xPos = 18; yPos += 28;
- }
- if(i1 < 25)
- tab.child(i1, itfChildren[i1], xPos, yPos);
- if(i1 > 24) {
- yPos = i1 < 41 ? 181 : 1;
- tab.child(i1, itfChildren[i1], 4, yPos);
- }
- }
- }
- public static void drawBlackBox(int xPos, int yPos) {
- DrawingArea.drawPixels(71, yPos - 1, xPos - 2, 0x726451, 1);
- DrawingArea.drawPixels(69, yPos, xPos + 174, 0x726451, 1);
- DrawingArea.drawPixels(1, yPos - 2, xPos - 2, 0x726451, 178);
- DrawingArea.drawPixels(1, yPos + 68, xPos, 0x726451, 174);
- DrawingArea.drawPixels(71, yPos - 1, xPos - 1, 0x2E2B23, 1);
- DrawingArea.drawPixels(71, yPos - 1, xPos + 175, 0x2E2B23, 1);
- DrawingArea.drawPixels(1, yPos - 1, xPos, 0x2E2B23, 175);
- DrawingArea.drawPixels(1, yPos + 69, xPos, 0x2E2B23, 175);
- DrawingArea.method335(0x000000, yPos, 174, 68, 220, xPos);
- }
- public static void addButton(int id, int sid, String spriteName, String tooltip) {
- RSInterface tab = interfaceCache[id] = new RSInterface();
- tab.id = id;
- tab.parentID = id;
- tab.type = 5;
- tab.atActionType = 1;
- tab.contentType = 0;
- tab.opacity = (byte)0;
- tab.hoverType = 52;
- tab.sprite1 = imageLoader(sid, spriteName);
- tab.sprite2 = imageLoader(sid, spriteName);
- tab.width = tab.sprite1.myWidth;
- tab.height = tab.sprite2.myHeight;
- tab.tooltip = tooltip;
- }
- public static void addButton(int id, int sid, String spriteName, String tooltip, int mOver, int atAction, int width, int height) {
- RSInterface tab = interfaceCache[id] = new RSInterface();
- tab.id = id;
- tab.parentID = id;
- tab.atActionType = atAction;
- tab.contentType = 0;
- tab.opacity = 0;
- tab.hoverType = mOver;
- tab.sprite1 = imageLoader(sid, spriteName);
- tab.sprite2 = imageLoader(sid, spriteName);
- tab.width = width;
- tab.height = height;
- tab.tooltip = tooltip;
- }
- public static void PVPInterface(TextDrawingArea[] tda) {
- RSInterface RSinterface = addInterface(21200);
- addSprite(21201, 0, "PvP/NOTINWILD1");
- addText(21202, "", tda, 1, 0xff9040, true, true);
- int last = 2;
- RSinterface.children = new int[last];
- RSinterface.childX = new int[last];
- RSinterface.childY = new int[last];
- setBounds(21201, 400, 285, 0,RSinterface);
- setBounds(21202, 444, 318, 1,RSinterface);
- }
- public static void PVPInterface2(TextDrawingArea[] tda) {
- RSInterface RSinterface = addInterface(21300);
- addSprite(21301, 0, "PvP/INWILD1");
- addText(21302, "", tda, 1, 0xff9040, true, true);
- int last = 2;
- RSinterface.children = new int[last];
- RSinterface.childX = new int[last];
- RSinterface.childY = new int[last];
- setBounds(21301, 400, 285, 0,RSinterface);
- setBounds(21302, 444, 318, 1,RSinterface);
- }
- public static void PVPInterface3(TextDrawingArea[] tda) {
- RSInterface RSinterface = addInterface(21400);
- addSprite(21401, 0, "PvP/INCOUNT1");
- addText(21402, "", tda, 1, 0xff9040, true, true);
- addText(21403, "", tda,1,0xffffff, true, true);
- int last = 3;
- RSinterface.children = new int[last];
- RSinterface.childX = new int[last];
- RSinterface.childY = new int[last];
- setBounds(21401, 400, 285, 0,RSinterface);
- setBounds(21402, 444, 318, 1,RSinterface);
- setBounds(21403, 412, 290, 2,RSinterface);
- }
- public static void Trade(TextDrawingArea[] TDA){
- RSInterface Interface = addTabInterface(3323);
- setChildren(15, Interface);
- addSprite(3324, 6, "Bank/TRADE");
- addHover(3442, 3, 0, 3325, 1, "Bank/BANK", 17, 17, "Close Window");
- addHovered(3325, 2, "Bank/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, "Bank/TRADE", 65, 32, "Accept");
- addHovered(3327, 2, "Bank/TRADE", 65, 32, 3328);
- addHover(3422, 3, 0, 3329, 5, "Bank/TRADE", 65, 32, "Close Window");
- addHovered(3329, 2, "Bank/TRADE", 65, 32, 3330);
- 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);
- Interface = addTabInterface(3443);
- setChildren(15, Interface);
- addSprite(3444, 3, "Bank/TRADE");
- addButton(3546, 2, "Bank/SHOP", 63, 24, "Accept", 1);
- addButton(3548, 2, "Bank/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 taskInterface(TextDrawingArea[] TDA) { /** Interface by Cody' **/
- RSInterface Interface = addTabInterface(23800);
- setChildren(43, Interface);
- addSprite(23801, 1, "Interfaces/Task/TaskSystemInterface");
- addHover(23802, 3, 0, 23803, 1, "Interfaces/Task/taskButton", 18, 18, "Close");
- addHovered(23803, 2, "Interfaces/Task/taskButton", 16, 16, 23804);
- addHoverButton(23805, "Interfaces/Task/Task", 3, 20, 20, "Filter-sets", 0, 23806, 1);
- addHoveredButton(23806, "Interfaces/Task/Task", 5, 20, 20, 23807);
- addHoverButton(23808, "Interfaces/Task/Task", 4, 20, 20, "Filter-done", 0, 23809, 1);
- addHoveredButton(23809, "Interfaces/Task/Task", 6, 20, 20, 23810);
- addHoverButton(23811, "Interfaces/Task/Task", 23, 68, 54, "Summary for Skills", 0, 23812, 1);
- addHoveredButton(23812, "Interfaces/Task/Task", 22, 68, 54, 23813);
- addHoverButton(23814, "Interfaces/Task/Task", 32, 68, 54, "Summary for Quarter Centurion", 0, 23815, 1);
- addHoveredButton(23815, "Interfaces/Task/Task", 33, 68, 54, 23816);
- addHoverButton(23817, "Interfaces/Task/Task", 36, 68, 54, "Summary for Hi Ho, Silver", 0, 23818, 1);
- addHoveredButton(23818, "Interfaces/Task/Task", 37, 68, 54, 23819);
- addHoverButton(23820, "Interfaces/Task/Task", 38, 68, 54, "Summary for Grab The Cash", 0, 23821, 1);
- addHoveredButton(23821, "Interfaces/Task/Task", 39, 68, 54, 23822);
- addHoverButton(23823, "Interfaces/Task/Task", 40, 68, 54, "Summary for Intervention", 0, 23824, 1);
- addHoveredButton(23824, "Interfaces/Task/Task", 41, 68, 54, 23825);
- addHoverButton(23826, "Interfaces/Task/Task", 7, 14, 14, "Turn-on popups", 0, 23827, 1);
- addHoveredButton(23827, "Interfaces/Task/Task", 8, 14, 14, 23828);
- addHoverButton(23829, "Interfaces/Task/Task", 1, 68, 54, "Summary for Undefeatable", 0, 23830, 1);
- addHoveredButton(23830, "Interfaces/Task/Task", 2, 68, 54, 23831);
- addHoverButton(23832, "Interfaces/Task/Task", 24, 68, 54, "Summary for You Doity Rat", 0, 23833, 1);
- addHoveredButton(23833, "Interfaces/Task/Task", 25, 68, 54, 23834);
- addHoverButton(23835, "Interfaces/Task/Task", 26, 68, 54, "Summary for Can't Touch This", 0, 23836, 1);
- addHoveredButton(23836, "Interfaces/Task/Task", 27, 68, 54, 23837);
- addHoverButton(23838, "Interfaces/Task/Task", 28, 68, 54, "Summary for Ease of Access", 0, 23839, 1);
- addHoveredButton(23839, "Interfaces/Task/Task", 29, 68, 54, 23840);
- addHoverButton(23841, "Interfaces/Task/Task", 42, 68, 54, "Summary for Bovine Intervention", 0, 23842, 1);
- addHoveredButton(23842, "Interfaces/Task/Task", 43, 68, 54, 23843);
- addHoverButton(23844, "Interfaces/Task/Task", 44, 68, 54, "Summary for Armed and Dangerous", 0, 23845, 1);
- addHoveredButton(23845, "Interfaces/Task/Task", 45, 68, 54, 23846);
- addHoverButton(23847, "Interfaces/Task/Task", 46, 68, 54, "Summary for You Can Bank On Us", 0, 23848, 1);
- addHoveredButton(23848, "Interfaces/Task/Task", 47, 68, 54, 23849);
- addHoverButton(23850, "Interfaces/Task/Task", 48, 68, 54, "Summary for Air Craft", 0, 23851, 1);
- addHoveredButton(23851, "Interfaces/Task/Task", 49, 68, 54, 23852);
- addHoverButton(23853, "Interfaces/Task/Task", 50, 68, 54, "Summary for I Wonder If It'll Sprout", 0, 23854, 1);
- addHoveredButton(23854, "Interfaces/Task/Task", 51, 68, 54, 23855);
- addHoverButton(23856, "Interfaces/Task/Task", 30, 68, 54, "Summary for Always Be Prepared", 0, 23857, 1);
- addHoveredButton(23857, "Interfaces/Task/Task", 31, 68, 54, 23858);
- addText(23859, "Click on a Task to view its details", TDA, 0, 0xFFFFFF, false, true);
- addHoverButton(23860, "Interfaces/Task/Progress", 1, 0, 0, "", 0, 23861, 1);
- addHoveredButton(23861, "Interfaces/Task/Progress", 1, 0, 0, 23862);
- addText(23863, "Progress: 0 / 15", TDA, 0, 0xFFFFFF, false, true);
- setBounds(23801, 5, 4, 0, Interface); // Background
- setBounds(23802, 482, 7, 1, Interface); // Close
- setBounds(23803, 482, 7, 2, Interface);
- setBounds(23805, 458, 32, 3, Interface); // Task option 1
- setBounds(23806, 458, 32, 4, Interface);
- setBounds(23808, 481, 32, 5, Interface); // Task option 2
- setBounds(23809, 481, 32, 6, Interface);
- // Row one
- setBounds(23811, 20, 60, 7, Interface);
- setBounds(23812, 20, 60, 8, Interface);
- setBounds(23814, 120, 60, 9, Interface);
- setBounds(23815, 120, 60, 10, Interface);
- setBounds(23817, 220, 60, 11, Interface);
- setBounds(23818, 220, 60, 12, Interface);
- setBounds(23820, 320, 60, 13, Interface);
- setBounds(23821, 320, 60, 14, Interface);
- setBounds(23823, 420, 60, 15, Interface);
- setBounds(23824, 420, 60, 16, Interface);
- setBounds(23826, 9, 298, 17, Interface);
- setBounds(23827, 9, 298, 18, Interface);
- // Row 2
- setBounds(23829, 20, 145, 19, Interface);
- setBounds(23830, 20, 145, 20, Interface);
- setBounds(23832, 120, 145, 21, Interface);
- setBounds(23833, 120, 145, 22, Interface);
- setBounds(23835, 220, 145, 23, Interface);
- setBounds(23836, 220, 145, 24, Interface);
- setBounds(23838, 320, 145, 25, Interface);
- setBounds(23839, 320, 145, 26, Interface);
- setBounds(23841, 420, 145, 27, Interface);
- setBounds(23842, 420, 145, 28, Interface);
- // Row 3
- setBounds(23844, 120, 230, 29, Interface);
- setBounds(23845, 120, 230, 30, Interface);
- setBounds(23847, 220, 230, 31, Interface);
- setBounds(23848, 220, 230, 32, Interface);
- setBounds(23850, 320, 230, 33, Interface);
- setBounds(23851, 320, 230, 34, Interface);
- setBounds(23853, 420, 230, 35, Interface);
- setBounds(23854, 420, 230, 36, Interface);
- setBounds(23856, 20, 230, 37, Interface);
- setBounds(23857, 20, 230, 38, Interface);
- /** TEXT **/
- setBounds(23859, 340, 300, 39, Interface);
- /** INFO **/
- setBounds(23860, 10, 33, 40, Interface);
- setBounds(23861, 10, 33, 41, Interface);
- setBounds(23863, 27, 37, 42, Interface);
- }
- public static void taskInterface2(TextDrawingArea[] TDA) { /** Interface by Cody' **/
- RSInterface rsinterface = addTabInterface(23900);
- setChildren(17, rsinterface);
- addSprite(23901, 2, "Interfaces/Task/TaskSystemInterface");
- addHoverButton(23907, "Interfaces/Task/taskOpen", 1, 181, 17, "Open", 0, 23908, 1);
- addHoveredButton(23908, "Interfaces/Task/taskOpen", 2, 181, 17, 23909);
- addHoverButton(23910, "Interfaces/Task/sideTask", 1, 68, 54, "Summary", 0, 23911, 1);
- addHoveredButton(23911, "Interfaces/Task/sideTask", 2, 68, 54, 23912);
- addHoverButton(23913, "Interfaces/Task/sideTask", 3, 68, 54, "Summary", 0, 23914, 1);
- addHoveredButton(23914, "Interfaces/Task/sideTask", 4, 68, 54, 23915);
- addHoverButton(23916, "Interfaces/Task/sideTask", 5, 68, 54, "Summary", 0, 23917, 1);
- addHoveredButton(23917, "Interfaces/Task/sideTask", 6, 68, 54, 23918);
- addHoverButton(23919, "Interfaces/Task/sideTask", 7, 68, 54, "Summary", 0, 23920, 1);
- addHoveredButton(23920, "Interfaces/Task/sideTask", 8, 68, 54, 23921);
- addHoverButton(23922, "Interfaces/Task/sideTask", 9, 68, 54, "Summary", 0, 23923, 1);
- addHoveredButton(23923, "Interfaces/Task/sideTask", 10, 68, 54, 23924);
- addHoverButton(23926, "Interfaces/Task/sideTask", 11, 68, 54, "Summary", 0, 23927, 1);
- addHoveredButton(23927, "Interfaces/Task/sideTask", 12, 68, 54, 23928);
- addText(23929, "Open Task List", TDA, 0, 0xFFFFFF, false, true);
- addText(23930, "Progress: 0 / 15", TDA, 0, 0xFFFFFF, false, true);
- rsinterface.child(0, 23901, 0, 0);
- rsinterface.child(1, 23907, 3, 240); // Task List Button
- rsinterface.child(2, 23908, 3, 240); // Task List Button
- rsinterface.child(3, 23910, 15, 50); // Task 1
- rsinterface.child(4, 23911, 15, 50);
- rsinterface.child(5, 23913, 105, 50); // Task 2
- rsinterface.child(6, 23914, 105, 50);
- rsinterface.child(7, 23916, 15, 110); // Task 3
- rsinterface.child(8, 23917, 15, 110);
- rsinterface.child(9, 23919, 105, 110); // Task 4
- rsinterface.child(10, 23920, 105, 110);
- rsinterface.child(11, 23922, 15, 170); // Task 5
- rsinterface.child(12, 23923, 15, 170);
- rsinterface.child(13, 23926, 105, 170); // Task 6
- rsinterface.child(14, 23927, 105, 170);
- rsinterface.child(15, 23929, 58, 243); // Open Text
- rsinterface.child(16, 23930, 47, 24); // Open Text
- }
- public static void prayerTab(TextDrawingArea[] tda) {
- RSInterface tab = addTabInterface(5608);
- RSInterface currentPray = interfaceCache[687];
- currentPray.textColor = 0xFF981F;
- currentPray.textShadow = true;
- currentPray.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, "Rapid Renewal");
- addPrayer(18016, 0, 609, 70, 8, "Piety");
- addPrayer(18018, 0, 610, 71, 9, "Rigour");
- addPrayer(18020, 0, 611, 72, 10, "Augury");
- tab.totalChildren(60);
- /* Buttons/glows */
- tab.child(0, 5609, 6, 4);
- tab.child(1, 5610, 42, 4);
- tab.child(2, 5611, 78, 4);
- tab.child(3, 5612, 6, 40);
- tab.child(4, 5613, 42, 40);
- tab.child(5, 5614, 78, 40);
- tab.child(6, 5615, 114, 40);
- tab.child(7, 5616, 150, 40);
- tab.child(8, 5617, 6, 76);
- tab.child(9, 5618, 114, 76);
- tab.child(10, 5619, 150, 76);
- tab.child(11, 5620, 6, 112);
- tab.child(12, 5621, 42, 112);
- tab.child(13, 5622, 78, 112);
- tab.child(14, 5623, 114, 112);
- tab.child(15, 683, 42, 148);
- tab.child(16, 684, 78, 148);
- tab.child(17, 685, 114, 148);
- /* Sprites */
- tab.child(18, 5632, 8, 6);
- tab.child(19, 5633, 44, 6);
- tab.child(20, 5634, 80, 6);
- tab.child(21, 5635, 8, 42);
- tab.child(22, 5636, 44, 42);
- tab.child(23, 5637, 80, 42);
- tab.child(24, 5638, 116, 42);
- tab.child(25, 5639, 152, 42);
- tab.child(26, 5640, 8, 79);
- tab.child(27, 5641, 116, 78);
- tab.child(28, 5642, 152, 78);
- tab.child(29, 5643, 8, 114);
- tab.child(30, 5644, 44, 114);
- tab.child(31, 686, 80, 114);
- tab.child(32, 5645, 116, 114);
- tab.child(33, 5649, 44, 150);
- tab.child(34, 5647, 80, 150);
- tab.child(35, 5648, 116, 150);
- /* New prayers */
- tab.child(36, 18000, 114, 4);
- tab.child(37, 18001, 117, 8);
- tab.child(38, 18002, 150, 4);
- tab.child(39, 18003, 153, 7);
- tab.child(40, 18004, 42, 76);
- tab.child(41, 18005, 45, 80);
- tab.child(42, 18006, 78, 76);
- tab.child(43, 18007, 81, 79);
- tab.child(44, 18008, 150, 112);
- tab.child(45, 18009, 153, 116);
- tab.child(46, 18010, 6, 148);
- tab.child(47, 18011, 9, 151);
- tab.child(48, 18012, 150, 148);
- tab.child(49, 18013, 157, 151);
- tab.child(50, 18014, 6, 182);
- tab.child(51, 18015, 9, 185);
- tab.child(54, 18016, 41, 182);
- tab.child(55, 18017, 44, 192);
- tab.child(56, 18018, 78, 182);
- tab.child(57, 18019, 81, 185);
- tab.child(58, 18020, 115, 182);
- tab.child(59, 18021, 118, 185);
- /* Prayer icons & text */
- tab.child(52, 5651, 65, 242);
- tab.child(53, 687, 14, 244);
- String[] tools = {"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 count = 0;
- for (int j = 5609; j <= 5623; j++) {
- RSInterface tab2 = interfaceCache[j];
- tab2.tooltip = "Activate @or2@" + tools[count++];
- }
- for (int j = 683; j <= 685; j++) {
- RSInterface tab2 = interfaceCache[j];
- tab2.tooltip = "Activate @or2@" + tools[count++];
- }
- }
- public String popupString;
- public static void addTooltipBox(int id, String text) {
- RSInterface rsi = addInterface(id);
- rsi.id = id;
- rsi.parentID = id;
- rsi.type = 8;
- rsi.popupString = text;
- }
- public static void addTooltip(int id, String text) {
- RSInterface rsi = addInterface(id);
- rsi.id = id;
- rsi.type = 0;
- rsi.interfaceShown = true;
- rsi.hoverType = -1;
- addTooltipBox(id + 1, text);
- rsi.totalChildren(1);
- rsi.child(0, id + 1, 0, 0);
- }
- public static void Bank()
- {
- RSInterface rsinterface = addTabInterface(5292);
- setChildren(21, rsinterface);
- addSprite(5293, 0, "Bank/BANK");
- setBounds(5293, 13, 13, 0, rsinterface);
- addHover(5384, 3, 0, 5380, 1, "Bank/BANK", 17, 17, "Close Window");
- addHovered(5380, 2, "Bank/BANK", 17, 17, 5379);
- addHoverButton(22020, "Interfaces/Equipment/BANK", 0, 72, 32, "Equipment Stats", -1, 22021, 5);
- addHoveredButton(22021, "Interfaces/Equipment/BANK", 1, 72, 32, 22033);
- setBounds(5384, 476, 16, 3, rsinterface);
- setBounds(5380, 476, 16, 4, rsinterface);
- setBounds(22020, 457, 35, 19, rsinterface);
- setBounds(22021, 457, 35, 20, rsinterface);
- 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, rsinterface);
- setBounds(5295, 110, 285, 6, rsinterface);
- addHoverButton(22020, "Bank/BANK", 23, 72, 32, "Equipment Stats", -1, 22021, 5);
- addHoveredButton(22021, "Bank/BANK", 24, 72, 32, 22022);
- setBounds(22020, 457, 35, 19, rsinterface);
- setBounds(22021, 457, 35, 20, rsinterface);
- addHoverButton(21000, "Bank/BANK", 7, 35, 25, "Swap Withdraw Mode", -1, 21001, 5);
- addHoveredButton(21001, "Bank/BANK", 8, 35, 25, 22030);
- setBounds(21000, 25, 285, 7, rsinterface);
- setBounds(21001, 25, 285, 8, rsinterface);
- addHoverButton(21004, "Bank/BANK", 14, 35, 25, "Search Bank", -1, 21005, 5);
- addHoveredButton(21005, "Bank/BANK", 15, 35, 25, 22029);
- setBounds(21004, 65, 285, 9, rsinterface);
- setBounds(21005, 65, 285, 10, rsinterface);
- addHoverButton(21008, "Bank/BANK", 9, 35, 25, "Swap Items Noted", -1, 21009, 5);
- addHoveredButton(21009, "Bank/BANK", 11, 35, 25, 22031);
- setBounds(21008, 240, 285, 11, rsinterface);
- setBounds(21009, 240, 285, 12, rsinterface);
- addHoverButton(21012, "Bank/BANK", 17, 35, 25, "Deposit Carried Items", -1, 21013, 5);
- addHoveredButton(21013, "Bank/BANK", 18, 35, 25, 22032);
- setBounds(21012, 375, 285, 13, rsinterface);
- setBounds(21013, 375, 285, 14, rsinterface);
- addHoverButton(21016, "Bank/BANK", 19, 35, 25, "Deposit Worn Items", -1, 21017, 5);
- addHoveredButton(21017, "Bank/BANK", 20, 35, 25, 22023);
- setBounds(21016, 415, 285, 15, rsinterface);
- setBounds(21017, 415, 285, 16, rsinterface);
- addHoverButton(21020, "Bank/BANK", 21, 35, 25, "Deposit Money Pouch", -1, 21021, 5);
- addHoveredButton(21021, "Bank/BANK", 22, 35, 25, 22022);
- setBounds(21020, 455, 285, 17, rsinterface);
- setBounds(21021, 455, 285, 18, rsinterface);
- setBounds(5383, 170, 15, 1, rsinterface);
- setBounds(5385, -4, 74, 2, rsinterface);
- rsinterface = interfaceCache[5385];
- rsinterface.height = 206;
- rsinterface.width = 480;
- rsinterface = interfaceCache[5382];
- rsinterface.width = 10;
- rsinterface.invSpritePadX = 12;
- rsinterface.height = 35;
- }
- public static void skilllevel(TextDrawingArea[] tda) {
- RSInterface text = interfaceCache[7202];
- RSInterface attack = interfaceCache[6247];
- RSInterface defence = interfaceCache[6253];
- RSInterface str = interfaceCache[6206];
- RSInterface hits = interfaceCache[6216];
- RSInterface rng = interfaceCache[4443];
- RSInterface pray = interfaceCache[6242];
- RSInterface mage = interfaceCache[6211];
- RSInterface cook = interfaceCache[6226];
- RSInterface wood = interfaceCache[4272];
- RSInterface flet = interfaceCache[6231];
- RSInterface fish = interfaceCache[6258];
- RSInterface fire = interfaceCache[4282];
- RSInterface craf = interfaceCache[6263];
- RSInterface smit = interfaceCache[6221];
- RSInterface mine = interfaceCache[4416];
- RSInterface herb = interfaceCache[6237];
- RSInterface agil = interfaceCache[4277];
- RSInterface thie = interfaceCache[4261];
- RSInterface slay = interfaceCache[12122];
- RSInterface farm = interfaceCache[5267];
- RSInterface rune = interfaceCache[4267];
- RSInterface cons = interfaceCache[7267];
- RSInterface hunt = interfaceCache[8267];
- RSInterface summ = addInterface(9267);
- RSInterface dung = addInterface(10267);
- addSprite(17878, 0, "Interfaces/skillchat/skill");
- addSprite(17879, 1, "Interfaces/skillchat/skill");
- addSprite(17880, 2, "Interfaces/skillchat/skill");
- addSprite(17881, 3, "Interfaces/skillchat/skill");
- addSprite(17882, 4, "Interfaces/skillchat/skill");
- addSprite(17883, 5, "Interfaces/skillchat/skill");
- addSprite(17884, 6, "Interfaces/skillchat/skill");
- addSprite(17885, 7, "Interfaces/skillchat/skill");
- addSprite(17886, 8, "Interfaces/skillchat/skill");
- addSprite(17887, 9, "Interfaces/skillchat/skill");
- addSprite(17888, 10, "Interfaces/skillchat/skill");
- addSprite(17889, 11, "Interfaces/skillchat/skill");
- addSprite(17890, 12, "Interfaces/skillchat/skill");
- addSprite(17891, 13, "Interfaces/skillchat/skill");
- addSprite(17892, 14, "Interfaces/skillchat/skill");
- addSprite(17893, 15, "Interfaces/skillchat/skill");
- addSprite(17894, 16, "Interfaces/skillchat/skill");
- addSprite(17895, 17, "Interfaces/skillchat/skill");
- addSprite(17896, 18, "Interfaces/skillchat/skill");
- addSprite(11897, 19, "Interfaces/skillchat/skill");
- addSprite(17898, 20, "Interfaces/skillchat/skill");
- addSprite(17899, 21, "Interfaces/skillchat/skill");
- addSprite(17900, 22, "Interfaces/skillchat/skill");
- addSprite(17901, 23, "Interfaces/skillchat/skill");
- addSprite(17902, 24, "Interfaces/skillchat/skill");
- setChildren(4, attack);
- setBounds(17878, 20, 30, 0, attack);
- setBounds(4268, 80, 15, 1, attack);
- setBounds(4269, 80, 45, 2, attack);
- setBounds(358, 95, 75, 3, attack);
- setChildren(4, defence);
- setBounds(17879, 20, 30, 0, defence);
- setBounds(4268, 80, 15, 1, defence);
- setBounds(4269, 80, 45, 2, defence);
- setBounds(358, 95, 75, 3, defence);
- setChildren(4, str);
- setBounds(17880, 20, 30, 0, str);
- setBounds(4268, 80, 15, 1, str);
- setBounds(4269, 80, 45, 2, str);
- setBounds(358, 95, 75, 3, str);
- setChildren(4, hits);
- setBounds(17881, 20, 30, 0, hits);
- setBounds(4268, 80, 15, 1, hits);
- setBounds(4269, 80, 45, 2, hits);
- setBounds(358, 95, 75, 3, hits);
- setChildren(4, rng);
- setBounds(17882, 20, 30, 0, rng);
- setBounds(4268, 80, 15, 1, rng);
- setBounds(4269, 80, 45, 2, rng);
- setBounds(358, 95, 75, 3, rng);
- setChildren(4, pray);
- setBounds(17883, 20, 30, 0, pray);
- setBounds(4268, 80, 15, 1, pray);
- setBounds(4269, 80, 45, 2, pray);
- setBounds(358, 95, 75, 3, pray);
- setChildren(4, mage);
- setBounds(17884, 20, 30, 0, mage);
- setBounds(4268, 80, 15, 1, mage);
- setBounds(4269, 80, 45, 2, mage);
- setBounds(358, 95, 75, 3, mage);
- setChildren(4, cook);
- setBounds(17885, 20, 30, 0, cook);
- setBounds(4268, 80, 15, 1, cook);
- setBounds(4269, 80, 45, 2, cook);
- setBounds(358, 95, 75, 3, cook);
- setChildren(4, wood);
- setBounds(17886, 20, 30, 0, wood);
- setBounds(4268, 80, 15, 1, wood);
- setBounds(4269, 80, 45, 2, wood);
- setBounds(358, 95, 75, 3, wood);
- setChildren(4, flet);
- setBounds(17887, 20, 30, 0, flet);
- setBounds(4268, 80, 15, 1, flet);
- setBounds(4269, 80, 45, 2, flet);
- setBounds(358, 95, 75, 3, flet);
- setChildren(4, fish);
- setBounds(17888, 20, 30, 0, fish);
- setBounds(4268, 80, 15, 1, fish);
- setBounds(4269, 80, 45, 2, fish);
- setBounds(358, 95, 75, 3, fish);
- setChildren(4, fire);
- setBounds(17889, 20, 30, 0, fire);
- setBounds(4268, 80, 15, 1, fire);
- setBounds(4269, 80, 45, 2, fire);
- setBounds(358, 95, 75, 3, fire);
- setChildren(4, craf);
- setBounds(17890, 20, 30, 0, craf);
- setBounds(4268, 80, 15, 1, craf);
- setBounds(4269, 80, 45, 2, craf);
- setBounds(358, 95, 75, 3, craf);
- setChildren(4, smit);
- setBounds(17891, 20, 30, 0, smit);
- setBounds(4268, 80, 15, 1, smit);
- setBounds(4269, 80, 45, 2, smit);
- setBounds(358, 95, 75, 3, smit);
- setChildren(4, mine);
- setBounds(17892, 20, 30, 0, mine);
- setBounds(4268, 80, 15, 1, mine);
- setBounds(4269, 80, 45, 2, mine);
- setBounds(358, 95, 75, 3, mine);
- setChildren(4, herb);
- setBounds(17893, 20, 30, 0, herb);
- setBounds(4268, 80, 15, 1, herb);
- setBounds(4269, 80, 45, 2, herb);
- setBounds(358, 95, 75, 3, herb);
- setChildren(4, agil);
- setBounds(17894, 20, 30, 0, agil);
- setBounds(4268, 80, 15, 1, agil);
- setBounds(4269, 80, 45, 2, agil);
- setBounds(358, 95, 75, 3, agil);
- setChildren(4, thie);
- setBounds(17895, 20, 30, 0, thie);
- setBounds(4268, 80, 15, 1, thie);
- setBounds(4269, 80, 45, 2, thie);
- setBounds(358, 95, 75, 3, thie);
- setChildren(4, slay);
- setBounds(17896, 20, 30, 0, slay);
- setBounds(4268, 80, 15, 1, slay);
- setBounds(4269, 80, 45, 2, slay);
- setBounds(358, 95, 75, 3, slay);
- setChildren(3, farm);
- setBounds(4268, 80, 15, 0, farm);
- setBounds(4269, 80, 45, 1, farm);
- setBounds(358, 95, 75, 2, farm);
- setChildren(4, rune);
- setBounds(17898, 20, 30, 0, rune);
- setBounds(4268, 80, 15, 1, rune);
- setBounds(4269, 80, 45, 2, rune);
- setBounds(358, 95, 75, 3, rune);
- setChildren(3, cons);
- setBounds(4268, 80, 15, 0, cons);
- setBounds(4269, 80, 45, 1, cons);
- setBounds(358, 95, 75, 2, cons);
- setChildren(3, hunt);
- setBounds(4268, 80, 15, 0, hunt);
- setBounds(4269, 80, 45, 1, hunt);
- setBounds(358, 95, 75, 2, hunt);
- setChildren(4, summ);
- setBounds(17901, 20, 30, 0, summ);
- setBounds(4268, 80, 15, 1, summ);
- setBounds(4269, 80, 45, 2, summ);
- setBounds(358, 95, 75, 3, summ);
- setChildren(4, dung);
- setBounds(17902, 20, 30, 0, dung);
- setBounds(4268, 80, 15, 1, dung);
- setBounds(4269, 80, 45, 2, dung);
- setBounds(358, 95, 75, 3, dung);
- }
- public static void Shop(TextDrawingArea[] TDA) {
- RSInterface rsinterface = addTabInterface(3824);
- setChildren(8, rsinterface);
- addSprite(3825, 0, "Shop/SHOP");
- addHover(3902, 3, 0, 3826, 1, "Shop/CLOSE", 17, 17, "Close Window");
- addHovered(3826, 2, "Shop/CLOSE", 17, 17, 3827);
- addText(19679, "", 0xff981f, false, true, 52, TDA, 1);
- addText(19680, "", 0xbf751d, false, true, 52, TDA, 1);
- addButton(19681, 2, "Shop/SHOP", 0, 0, "", 1);
- addSprite(19687, 1, "Shop/ITEMBG");
- setBounds(3825, 6, 8, 0, rsinterface);
- setBounds(3902, 478, 10, 1, rsinterface);
- setBounds(3826, 478, 10, 2, rsinterface);
- setBounds(3900, 26, 44, 3, rsinterface);
- setBounds(3901, 240, 11, 4, rsinterface);
- setBounds(19679, 42, 54, 5, rsinterface);
- setBounds(19680, 150, 54, 6, rsinterface);
- setBounds(19681, 129, 50, 7, rsinterface);
- rsinterface = interfaceCache[3900];
- setChildren(1, rsinterface);
- setBounds(19687, 6, 15, 0, rsinterface);
- rsinterface.invSpritePadX = 15;
- rsinterface.width = 10;
- rsinterface.height = 4;
- rsinterface.invSpritePadY = 25;
- rsinterface = addTabInterface(19682);
- addSprite(19683, 1, "Shop/SHOP");
- addText(19684, "Main Stock", 0xbf751d, false, true, 52, TDA, 1);
- addText(19685, "Store Info", 0xff981f, false, true, 52, TDA, 1);
- addButton(19686, 2, "Shop/SHOP", 95, 19, "Main Stock", 1);
- setChildren(7, rsinterface);
- setBounds(19683, 12, 12, 0, rsinterface);
- setBounds(3901, 240, 21, 1, rsinterface);
- setBounds(19684, 42, 54, 2, rsinterface);
- setBounds(19685, 150, 54, 3, rsinterface);
- setBounds(19686, 23, 50, 4, rsinterface);
- setBounds(3902, 471, 22, 5, rsinterface);
- setBounds(3826, 60, 85, 6, rsinterface);
- }
- public static TextDrawingArea[] fonts;
- public static TextDrawingArea[] RSFont;
- public static void skillTab602(TextDrawingArea[] TDA) {
- RSInterface skill = addInterface(3917);
- addText(27203, "99", 0xFFFF00, false, true, -1, TDA, 0);
- addText(27204, "99", 0xFFFF00, false, true, -1, TDA, 0);
- addText(27205, "99", 0xFFFF00, false, true, -1, TDA, 0);
- addText(27206, "99", 0xFFFF00, false, true, -1, TDA, 0);
- skill.totalChildren(4);
- skill.child(0, 27203, 158, 175);
- skill.child(1, 27204, 171, 186);
- skill.child(2, 27205, 158, 203);
- skill.child(3, 27206, 171, 214);
- String[] spriteNames = { "Attack", "HP", "Mine", "Strength", "Agility", "Smith", "Defence", "Herblore", "Fish", "Range", "Thief", "Cook", "Prayer", "Craft", "Fire", "Mage", "Fletch", "Wood", "Rune", "Slay", "Farm", "Construction", "Hunter", "Summon", "Dungeon" };
- int[] buttons = { 8654, 8655, 8656, 8657, 8658, 8659, 8660, 8861, 8662, 8663, 8664, 8665, 8666, 8667, 8668, 8669, 8670, 8671, 8672, 12162, 13928, 27123, 27124, 27125, 27126 };
- int[] hovers = { 4040, 4076, 4112, 4046, 4082, 4118, 4052, 4088, 4124, 4058, 4094, 4130, 4064, 4100, 4136, 4070, 4106, 4142, 4160, 2832, 13917, 19005, 19006, 19007, 19008 };
- int[][] text = { { 4004, 4005 }, { 4016, 4017 }, { 4028, 4029 },
- { 4006, 4007 }, { 4018, 4019 }, { 4030, 4031 }, { 4008, 4009 },
- { 4020, 4021 }, { 4032, 4033 }, { 4010, 4011 }, { 4022, 4023 },
- { 4034, 4035 }, { 4012, 4013 }, { 4024, 4025 }, { 4036, 4037 },
- { 4014, 4015 }, { 4026, 4027 }, { 4038, 4039 }, { 4152, 4153 },
- { 12166, 12167 }, { 13926, 13927 }, { 18165, 18169 },
- { 18166, 18170 }, { 18167, 18171 }, { 18168, 18172 } };
- int[] icons = { 3965, 3966, 3967, 3968, 3969, 3970, 3971, 3972, 3973,
- 3974, 3975, 3976, 3977, 3978, 3979, 3980, 3981, 3982, 4151,
- 12165, 13925, 27127, 27128, 27129, 27130 };
- int[][] buttonCoords = { { 0, 4 }, { 62, 4 }, { 124, 4 }, { 0, 32 },
- { 62, 32 }, { 124, 32 }, { 0, 60 }, { 62, 60 }, { 124, 60 },
- { 0, 88 }, { 62, 88 }, { 124, 88 }, { 0, 116 }, { 62, 116 },
- { 124, 116 }, { 0, 144 }, { 62, 144 }, { 124, 144 },
- { 0, 172 }, { 62, 172 }, { 124, 172 }, { 0, 200 }, { 62, 200 },
- { 124, 200 }, { 0, 229 } };
- int[][] iconCoords = { { 2, 6 }, { 65, 7 }, { 127, 6 }, { 5, 34 },
- { 64, 33 }, { 127, 36 }, { 5, 64 }, { 63, 63 }, { 127, 61 },
- { 5/*range*/, 91 }, { 68, 94 }, { 128/*cook*/, 90 }, { 5/*prayer*/, 118 }, { 70, 120 },
- { 126, 118 }, { 2, 147 }, { 65, 146 }, { 128, 146 },
- { 2, 173 }, { 65, 173 }, { 126, 174 }, { 2, 202 }, { 65, 201 },
- { 127, 202 }, { 2, 230 } };
- int[][] textCoords = { { 27, 7, 40, 18 }, { 89, 7, 102, 18 },
- { 151, 7, 164, 18 }, { 27, 35, 40, 46 }, { 89, 35, 102, 46 },
- { 151, 35, 164, 46 }, { 27, 63, 40, 74 }, { 89, 63, 102, 74 },
- { 151, 63, 164, 74 }, { 27, 91, 40, 102 },
- { 89, 91, 102, 102 }, { 151, 91, 164, 102 },
- { 27, 119, 40, 130 }, { 89, 119, 102, 130 },
- { 151, 119, 164, 130 }, { 27, 147, 40, 158 },
- { 89, 147, 102, 158 }, { 151, 147, 164, 158 },
- { 27, 175, 40, 186 }, { 89, 175, 102, 186 },
- { 151, 175, 164, 186 }, { 27, 203, 40, 214 },
- { 89, 203, 102, 214 }, { 151, 203, 164, 214 },
- { 27, 231, 40, 242 } };
- int[][] newText = { { 18165, 18166, 18167, 18168 },
- { 18169, 18170, 18171, 18172 } };
- //27123, 27124, 27125, 27126
- for (int i = 0; i < hovers.length; i++) {
- createSkillHover(hovers[i], 206 + i);
- addSkillButton(buttons[i]);
- addImage(icons[i], spriteNames[i]);
- }
- for (int i = 0; i < 4; i++) {
- addSkillText(newText[0][i], false, i + 21);
- addSkillText(newText[1][i], true, i + 21);
- }
- skill.children(icons.length + (text.length * 2) + hovers.length + buttons.length + 1);
- int frame = 0;
- RSInterface totalLevel = interfaceCache[3984];
- totalLevel.message = "@yel@Total level: %1";
- totalLevel.textDrawingAreas = fonts[2];
- skill.child(frame, 3984, 74, 237); frame++;
- for (int i = 0; i < buttons.length; i++) {
- skill.child(frame, buttons[i], buttonCoords[i][0], buttonCoords[i][1]); frame++;
- }
- for (int i = 0; i < icons.length; i++) {
- skill.child(frame, icons[i], iconCoords[i][0], iconCoords[i][1]); frame++;
- }
- for (int i = 0; i < text.length; i++) {
- skill.child(frame, text[i][0], textCoords[i][0], textCoords[i][1]); frame++;
- }
- for (int i = 0; i < text.length; i++) {
- skill.child(frame, text[i][1], textCoords[i][2], textCoords[i][3]); frame++;
- }
- for (int i = 0; i < hovers.length; i++) {
- skill.child(frame, hovers[i], buttonCoords[i][0], buttonCoords[i][1]); frame++;
- }
- }
- public void children(int total) {
- children = new int[total];
- childX = new int[total];
- childY = new int[total];
- }
- public static void createSkillHover(int id, int x) {
- RSInterface hover = addInterface(id);
- hover.type = 8;
- hover.message = "TESTING!";
- hover.contentType = x;
- hover.width = 60;
- hover.height = 28;
- hover.inventoryHover = true;
- }
- public static void addImage(int id, String s) {
- RSInterface image = addInterface(id);
- image.type = 5;
- image.atActionType = 0;
- image.contentType = 0;
- image.width = 100;
- image.height = 100;
- image.sprite1 = getSprite(s);
- }
- public static void addSkillText(int id, boolean max, int skill) {
- RSInterface text = addInterface(id);
- text.id = id;
- text.parentID = id;
- text.type = 4;
- text.atActionType = 0;
- text.width = 15;
- text.height = 12;
- text.textDrawingAreas = fonts[0];
- text.textShadow = true;
- text.centerText = true;
- text.textColor = 16776960;
- if (!max) {
- text.valueIndexArray = new int[1][];
- text.valueIndexArray[0] = new int[3];
- text.valueIndexArray[0][0] = 1;
- text.valueIndexArray[0][1] = skill;
- text.valueIndexArray[0][2] = 0;
- } else {
- text.valueIndexArray = new int[2][];
- text.valueIndexArray[0] = new int[3];
- text.valueIndexArray[0][0] = 1;
- text.valueIndexArray[0][1] = skill;
- text.valueIndexArray[0][2] = 0;
- text.valueIndexArray[1] = new int[1];
- text.valueIndexArray[1][0] = 0;
- }
- text.message = "%1";
- }
- public static Sprite getSprite(String s) {
- Sprite image;
- try {
- image = new Sprite("/Skill/" + s);
- if (image != null) {
- return image;
- }
- } catch (Exception e) {
- e.printStackTrace();
- return null;
- }
- return image;
- }
- public boolean inventoryHover;
- public static void addSkillButton(int id) {
- RSInterface button = addInterface(id);
- button.type = 5;
- button.atActionType = 5;
- button.contentType = 0;
- button.width = 60;
- button.height = 27;
- button.sprite1 = CustomSpriteLoader(33225, "");
- button.sprite1 = getSprite("Button");
- button.tooltip = "View";
- }
- public static void addHover(int i, int aT, int cT, int hoverid,int sId, String NAME, int W, int H, String tip) {
- RSInterface rsinterfaceHover = addInterface(i);
- rsinterfaceHover.id = i;
- rsinterfaceHover.parentID = i;
- rsinterfaceHover.type = 5;
- rsinterfaceHover.atActionType = aT;
- rsinterfaceHover.contentType = cT;
- rsinterfaceHover.hoverType = hoverid;
- rsinterfaceHover.sprite1 = imageLoader(sId, NAME);
- rsinterfaceHover.sprite2 = imageLoader(sId, NAME);
- rsinterfaceHover.width = W;
- rsinterfaceHover.height = H;
- rsinterfaceHover.tooltip = tip;
- }
- public static void addPrayer(int i, int configId, int configFrame, int requiredValues, int spriteID, String prayerName) {
- RSInterface tab = addTabInterface(i);
- tab.id = i;
- tab.parentID = 5608;
- tab.type = 5;
- tab.atActionType = 4;
- tab.contentType = 0;
- tab.opacity = 0;
- tab.hoverType = -1;
- tab.sprite1 = imageLoader(0, "PRAYERGLOW");
- tab.sprite2 = imageLoader(1, "PRAYERGLOW");
- tab.width = 34;
- tab.height = 34;
- tab.valueCompareType = new int[1];
- tab.requiredValues = new int[1];
- tab.valueCompareType[0] = 1;
- tab.requiredValues[0] = configId;
- tab.valueIndexArray = new int[1][3];
- tab.valueIndexArray[0][0] = 5;
- tab.valueIndexArray[0][1] = configFrame;
- tab.valueIndexArray[0][2] = 0;
- tab.tooltip = "Activate@or2@ " + prayerName;
- //tab.tooltip = "Select";
- RSInterface tab2 = addTabInterface(i + 1);
- tab2.id = i + 1;
- tab2.parentID = 5608;
- tab2.type = 5;
- tab2.atActionType = 0;
- tab2.contentType = 0;
- tab2.opacity = 0;
- tab2.hoverType = -1;
- tab2.sprite1 = imageLoader(spriteID, "/PRAYER/PRAYON");
- tab2.sprite2 = imageLoader(spriteID, "/PRAYER/PRAYOFF");
- tab2.width = 34;
- tab2.height = 34;
- tab2.valueCompareType = new int[1];
- tab2.requiredValues = new int[1];
- tab2.valueCompareType[0] = 2;
- tab2.requiredValues[0] = requiredValues + 1;
- tab2.valueIndexArray = new int[1][3];
- tab2.valueIndexArray[0][0] = 2;
- tab2.valueIndexArray[0][1] = 5;
- tab2.valueIndexArray[0][2] = 0;
- //RSInterface tab3 = addTabInterface(i + 50);
- }
- public static void friendsTab(TextDrawingArea[] kam) {
- RSInterface tab = addTabInterface(5065);
- tab.width = 192;
- tab.height = 263;
- addText(5067, "Friends List", kam, 1, 0xff9933, true, true);
- addText(5068, "RuneScape 1", kam, 1, 0xff9933, true, true);
- addSprite(5069, 0, "Interfaces/Kamiel/SPRITE");
- addSprite(5070, 1, "Interfaces/Kamiel/SPRITE");
- addSprite(5071, 1, "Interfaces/Kamiel/SPRITE");
- addSprite(5072, 2, "Interfaces/Kamiel/SPRITE");
- addHoverButton(5073, "Interfaces/Kamiel/SPRITE", 3, 17, 17, "Add friend", 201, 5074, 1);
- addHoveredButton(5074, "Interfaces/Kamiel/SPRITE", 4, 17, 17, 5075);
- addHoverButton(5076, "Interfaces/Kamiel/SPRITE", 5, 17, 17, "Delete friend", 202, 5077, 1);
- addHoveredButton(5077, "Interfaces/Kamiel/SPRITE", 6, 17, 17, 5078);
- addText(5079, "0 / 200", kam, 0, 0xF5F5DC, false, true, 901, 0);
- addButton(5080, 10, "Interfaces/Kamiel/SPRITE", "Show ignores tab", 17, 17);
- addSprite(5081, 7, "Interfaces/Kamiel/SPRITE");
- RSInterface friendsList = interfaceCache[5066];
- friendsList.height = 197; friendsList.width = 174;
- for(int id = 5092; id <= 5191; id++) {
- int i = id - 5092;
- friendsList.children[i] = id;
- friendsList.childX[i] = 3;
- friendsList.childY[i] = friendsList.childY[i] - 3;
- }
- for(int id = 5192; id <= 5291; id++) {
- int i = id - 5092;
- friendsList.children[i] = id;
- friendsList.childX[i] = 113;
- friendsList.childY[i] = friendsList.childY[i] - 3;
- }
- tab.totalChildren(14);
- tab.child(0, 5067, 92, 2);
- tab.child(1, 5068, 92, 17);
- tab.child(2, 5069, 0, 39);
- tab.child(3, 5070, 0, 36);
- tab.child(4, 5071, 0, 237);
- tab.child(5, 5072, 107, 39);
- tab.child(6, 5073, 5, 242);
- tab.child(7, 5074, 5, 242);
- tab.child(8, 5076, 23, 242);
- tab.child(9, 5077, 23, 242);
- tab.child(10, 5079, 46, 245);
- tab.child(11, 5080, 170, 242);
- tab.child(12, 5081, 151, 242);
- tab.child(13, 5066, 0, 39);
- }
- public static void ignoreTab(TextDrawingArea[] kam) {
- RSInterface tab = addTabInterface(5715);
- tab.width = 192;
- tab.height = 263;
- addText(5717, "Ignore List", kam, 1, 0xff9933, true, true);
- addSprite(5718, 0, "Interfaces/Kamiel/SPRITE");
- addSprite(5719, 1, "Interfaces/Kamiel/SPRITE");
- addSprite(5720, 1, "Interfaces/Kamiel/SPRITE");
- addHoverButton(5721, "Interfaces/Kamiel/SPRITE", 11, 17, 17, "Add name", 501, 5722, 1);
- addHoveredButton(5722, "Interfaces/Kamiel/SPRITE", 12, 17, 17, 5723);
- addHoverButton(5724, "Interfaces/Kamiel/SPRITE", 13, 17, 17, "Delete name", 502, 5725, 1);
- addHoveredButton(5725, "Interfaces/Kamiel/SPRITE", 14, 17, 17, 5726);
- addText(5727, "0 / 100", kam, 0, 0xF5F5DC, false, true, 902, 0);
- addSprite(5728, 8, "Interfaces/Kamiel/SPRITE");
- addButton(5729, 9, "Interfaces/Kamiel/SPRITE", "Show friends tab", 17, 17);
- RSInterface ignoresList = interfaceCache[5716];
- ignoresList.height = 197; ignoresList.width = 174;
- for(int id = 5742; id <= 5841; id++) {
- int i = id - 5742;
- ignoresList.children[i] = id;
- ignoresList.childX[i] = 3;
- ignoresList.childY[i] = ignoresList.childY[i] - 3;
- }
- tab.totalChildren(12);
- tab.child(0, 5717, 95, 9);
- tab.child(1, 5718, 0, 39);
- tab.child(2, 5719, 0, 36);
- tab.child(3, 5720, 0, 237);
- tab.child(4, 5721, 5, 242);
- tab.child(5, 5722, 5, 242);
- tab.child(6, 5724, 23, 242);
- tab.child(7, 5725, 23, 242);
- tab.child(8, 5727, 46, 245);
- tab.child(9, 5728, 170, 242);
- tab.child(10, 5729, 151, 242);
- tab.child(11, 5716, 0, 39);
- }
- public static void addText(int id, String text, TextDrawingArea tda[], int idx, int color, boolean center, boolean shadow, int contentType, int actionType) {
- RSInterface tab = addTabInterface(id);
- tab.parentID = id;
- tab.id = id;
- tab.type = 4;
- tab.atActionType = actionType;
- tab.width = 0;
- tab.height = 11;
- tab.contentType = contentType;
- tab.centerText = center;
- tab.textShadow = shadow;
- tab.textDrawingAreas = tda[idx];
- tab.message = text;
- tab.aString228 = "";
- tab.textColor = color;
- tab.anInt219 = 0;
- tab.anInt216 = 0;
- tab.anInt239 = 0;
- }
- private static Sprite CustomSpriteLoader(int id, String s)
- {
- long l = (TextClass.method585(s) << 8) + (long)id;
- Sprite sprite = (Sprite)aMRUNodes_238.insertFromCache(l);
- if(sprite != null) { return sprite; }
- try {
- sprite = new Sprite("/Attack/"+id + s);
- aMRUNodes_238.removeFromCache(sprite, l);
- } catch(Exception exception) {
- return null; }
- return sprite;
- }
- public static RSInterface addInterface(int id)
- {
- RSInterface rsi = interfaceCache[id] = new RSInterface();
- rsi.id = id;
- rsi.parentID = id;
- rsi.width = 512;
- rsi.height = 334;
- return rsi;
- }
- public static void addText(int id, String text, TextDrawingArea tda[], int idx, int color, boolean centered) {
- RSInterface rsi = interfaceCache[id] = new RSInterface();
- if(centered)
- rsi.centerText = true;
- rsi.textShadow = true;
- rsi.textDrawingAreas = tda[idx];
- rsi.message = text;
- rsi.textColor = color;
- rsi.id = id;
- rsi.type = 4;
- }
- public static void textColor(int id, int color)
- { RSInterface rsi = interfaceCache[id]; rsi.textColor = color; }
- public static void textSize(int id, TextDrawingArea tda[], int idx)
- { RSInterface rsi = interfaceCache[id]; rsi.textDrawingAreas = tda[idx]; }
- public static void addCacheSprite(int id, int sprite1, int sprite2, String sprites)
- {
- RSInterface rsi = interfaceCache[id] = new RSInterface();
- rsi.sprite1 = method207(sprite1, aClass44, sprites);
- rsi.sprite2 = method207(sprite2, aClass44, sprites);
- rsi.parentID = id;
- rsi.id = id;
- rsi.type = 5;
- }
- public static void sprite1(int id, int sprite)
- { RSInterface class9 = interfaceCache[id];
- class9.sprite1 = CustomSpriteLoader(sprite, "");
- }
- public static void addActionButton(int id, int sprite, int sprite2, int width, int height, String s)
- {
- RSInterface rsi = interfaceCache[id] = new RSInterface();
- rsi.sprite1 = CustomSpriteLoader(sprite, "");
- if (sprite2 == sprite)
- rsi.sprite2 = CustomSpriteLoader(sprite, "a");
- else
- rsi.sprite2 = CustomSpriteLoader(sprite2, "");
- rsi.tooltip = s;
- rsi.contentType = 0;
- rsi.atActionType = 1;
- rsi.width = width;
- rsi.hoverType = 52;
- rsi.parentID = id;
- rsi.id = id;
- rsi.type = 5;
- rsi.height = height;
- }
- public void totalChildren(int id, int x, int y)
- { children = new int[id]; childX = new int[x]; childY = new int[y]; }
- public static void removeSomething(int id)
- { RSInterface rsi = interfaceCache[id] = new RSInterface(); }
- public void specialBar(int i)
- {
- addActionButton(i - 12, 7587, -1, 152, 28, "Use @gre@Special Attack");
- for(int j = i - 11; j < i; j++)
- {
- removeSomething(j);
- }
- RSInterface rsinterface = interfaceCache[i - 12];
- rsinterface.width = 152;
- rsinterface.height = 28;
- rsinterface = interfaceCache[i];
- rsinterface.width = 152;
- rsinterface.height = 28;
- rsinterface.child(0, i - 12, 1, 3);
- rsinterface.child(12, i + 1, 1, 3);
- rsinterface.child(23, i + 12, 16, 9);
- 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[] tda)
- {
- /*Sidebar0a(id, id2, id3, "text1", "text2", "text3", "text4", str1x, str1y, str2x, str2y, str3x, str3y, str4x, str4y, img1x, img1y, img2x, img2y, img3x, img3y, img4x, img4y, tda);*/
- Sidebar0a(1698, 1701, 7499, "Chop", "Hack", "Smash", "Block", 42, 75, 127, 75, 39, 128, 125, 128, 122, 103, 40, 50, 122, 50, 40, 103, tda);
- Sidebar0a(2276, 2279, 7574, "Stab", "Lunge", "Slash", "Block", 43, 75, 124, 75, 41, 128, 125, 128, 122, 103, 40, 50, 122, 50, 40, 103, tda);
- Sidebar0a(2423, 2426, 7599, "Chop", "Slash", "Lunge", "Block", 42, 75, 125, 75, 40, 128, 125, 128, 122, 103, 40, 50, 122, 50, 40, 103, tda);
- Sidebar0a(3796, 3799, 7624, "Pound", "Pummel", "Spike", "Block", 39, 75, 121, 75, 41, 128, 125, 128, 122, 103, 40, 50, 122, 50, 40, 103, tda);
- Sidebar0a(4679, 4682, 7674, "Lunge", "Swipe", "Pound", "Block", 40, 75, 124, 75, 39, 128, 125, 128, 122, 103, 40, 50, 122, 50, 40, 103, tda);
- Sidebar0a(4705, 4708, 7699, "Chop", "Slash", "Smash", "Block", 42, 75, 125, 75, 39, 128, 125, 128, 122, 103, 40, 50, 122, 50, 40, 103, tda);
- Sidebar0a(5570, 5573, 7724, "Spike", "Impale", "Smash", "Block", 41, 75, 123, 75, 39, 128, 125, 128, 122, 103, 40, 50, 122, 50, 40, 103, tda);
- Sidebar0a(7762, 7765, 7800, "Chop", "Slash", "Lunge", "Block", 42, 75, 125, 75, 40, 128, 125, 128, 122, 103, 40, 50, 122, 50, 40, 103, tda);
- /*Sidebar0b(id, id2, "text1", "text2", "text3", "text4", str1x, str1y, str2x, str2y, str3x, str3y, str4x, str4y, img1x, img1y, img2x, img2y, img3x, img3y, img4x, img4y, tda);*/
- Sidebar0b(776, 779, "Reap", "Chop", "Jab", "Block", 42, 75, 126, 75, 46, 128, 125, 128, 122, 103, 122, 50, 40, 103, 40, 50, tda);
- /*Sidebar0c(id, id2, id3, "text1", "text2", "text3", str1x, str1y, str2x, str2y, str3x, str3y, img1x, img1y, img2x, img2y, img3x, img3y, tda);*/
- Sidebar0c(425, 428, 7474, "Pound", "Pummel", "Block", 39, 75, 121, 75, 42, 128, 40, 103, 40, 50, 122, 50, tda);
- Sidebar0c(1749, 1752, 7524, "Accurate", "Rapid", "Longrange", 33, 75, 125, 75, 29, 128, 40, 103, 40, 50, 122, 50, tda);
- Sidebar0c(1764, 1767, 7549, "Accurate", "Rapid", "Longrange", 33, 75, 125, 75, 29, 128, 40, 103, 40, 50, 122, 50, tda);
- Sidebar0c(4446, 4449, 7649, "Accurate", "Rapid", "Longrange", 33, 75, 125, 75, 29, 128, 40, 103, 40, 50, 122, 50, tda);
- Sidebar0c(5855, 5857, 7749, "Punch", "Kick", "Block", 40, 75, 129, 75, 42, 128, 40, 50, 122, 50, 40, 103, tda);
- Sidebar0c(6103, 6132, 6117, "Bash", "Pound", "Block", 43, 75, 124, 75, 42, 128, 40, 103, 40, 50, 122, 50, tda);
- Sidebar0c(8460, 8463, 8493, "Jab", "Swipe", "Fend", 46, 75, 124, 75, 43, 128, 40, 103, 40, 50, 122, 50, tda);
- Sidebar0c(12290, 12293, 12323, "Flick", "Lash", "Deflect", 44, 75, 127, 75, 36, 128, 40, 50, 40, 103, 122, 50, tda);
- /*Sidebar0d(id, id2, "text1", "text2", "text3", str1x, str1y, str2x, str2y, str3x, str3y, img1x, img1y, img2x, img2y, img3x, img3y, tda);*/
- Sidebar0d(328, 331, "Bash", "Pound", "Focus", 42, 66, 39, 101, 41, 136, 40, 120, 40, 50, 40, 85, tda);
- RSInterface rsi = addInterface(19300);
- /*addToggleButton(id, sprite, config, width, height, wid);*/
- addToggleButton(150, 150, 172, 150, 44, "Auto Retaliate");
- rsi.totalChildren(3, 3, 3);
- rsi.child(0, 19000, 92, 26); //Combat level
- rsi.child(2, 19001, 500, 500); //Constitution updating
- rsi.child(1, 150, 21, 153); //auto retaliate
- addText(19000, "Combat level:", tda, 0, 0xff981f, true, false);
- addText(19001, "lolquoi", tda, 0, 0xff981f, true, false);
- }
- public static void Sidebar0a(int id, int id2, int id3, String text1, String text2, String text3, String text4,
- int str1x, int str1y, int str2x, int str2y, int str3x, int str3y, int str4x, int str4y,
- int img1x, int img1y, int img2x, int img2y, int img3x, int img3y, int img4x, int img4y, TextDrawingArea[] tda) //4button spec
- {
- RSInterface rsi = addInterface(id); //2423
- /*addText(ID, "Text", tda, Size, Colour, Centered);*/
- addText(id2, "-2", tda, 3, 0xff981f, true); //2426
- addText(id2+11, text1, tda, 0, 0xff981f, false);
- addText(id2+12, text2, tda, 0, 0xff981f, false);
- addText(id2+13, text3, tda, 0, 0xff981f, false);
- addText(id2+14, text4, tda, 0, 0xff981f, false);
- /*specialBar(ID);*/
- rsi.specialBar(id3); //7599
- rsi.width = 190;
- rsi.height = 261;
- int last = 15; int frame = 0;
- rsi.totalChildren(last, last, last);
- rsi.child(frame, id2+3, 21, 46); frame++; //2429
- rsi.child(frame, id2+4, 104, 99); frame++; //2430
- rsi.child(frame, id2+5, 21, 99); frame++; //2431
- rsi.child(frame, id2+6, 105, 46); frame++; //2432
- rsi.child(frame, id2+7, img1x, img1y); frame++; //bottomright 2433
- rsi.child(frame, id2+8, img2x, img2y); frame++; //topleft 2434
- rsi.child(frame, id2+9, img3x, img3y); frame++; //bottomleft 2435
- rsi.child(frame, id2+10, img4x, img4y); frame++; //topright 2436
- rsi.child(frame, id2+11, str1x, str1y); frame++; //chop 2437
- rsi.child(frame, id2+12, str2x, str2y); frame++; //slash 2438
- rsi.child(frame, id2+13, str3x, str3y); frame++; //lunge 2439
- rsi.child(frame, id2+14, str4x, str4y); frame++; //block 2440
- rsi.child(frame, 19300, 0, 0); frame++; //stuffs
- rsi.child(frame, id2, 94, 4); frame++; //weapon 2426
- rsi.child(frame, id3, 21, 205); frame++; //special attack 7599
- for (int i = id2+3; i < id2+7; i++) { //2429 - 2433
- rsi = interfaceCache[i];
- rsi.sprite1 = CustomSpriteLoader(19301, ""); rsi.sprite2 = CustomSpriteLoader(19301, "a");
- rsi.width = 68; rsi.height = 44;
- }
- }
- public static void Sidebar0b(int id, int id2, String text1, String text2, String text3, String text4,
- int str1x, int str1y, int str2x, int str2y, int str3x, int str3y, int str4x, int str4y,
- int img1x, int img1y, int img2x, int img2y, int img3x, int img3y, int img4x, int img4y, TextDrawingArea[] tda) //4button nospec
- {
- RSInterface rsi = addInterface(id); //2423
- /*addText(ID, "Text", tda, Size, Colour, Centered);*/
- addText(id2, "-2", tda, 3, 0xff981f, true); //2426
- addText(id2+11, text1, tda, 0, 0xff981f, false);
- addText(id2+12, text2, tda, 0, 0xff981f, false);
- addText(id2+13, text3, tda, 0, 0xff981f, false);
- addText(id2+14, text4, tda, 0, 0xff981f, false);
- rsi.width = 190;
- rsi.height = 261;
- int last = 14; int frame = 0;
- rsi.totalChildren(last, last, last);
- rsi.child(frame, id2+3, 21, 46); frame++; //2429
- rsi.child(frame, id2+4, 104, 99); frame++; //2430
- rsi.child(frame, id2+5, 21, 99); frame++; //2431
- rsi.child(frame, id2+6, 105, 46); frame++; //2432
- rsi.child(frame, id2+7, img1x, img1y); frame++; //bottomright 2433
- rsi.child(frame, id2+8, img2x, img2y); frame++; //topleft 2434
- rsi.child(frame, id2+9, img3x, img3y); frame++; //bottomleft 2435
- rsi.child(frame, id2+10, img4x, img4y); frame++; //topright 2436
- rsi.child(frame, id2+11, str1x, str1y); frame++; //chop 2437
- rsi.child(frame, id2+12, str2x, str2y); frame++; //slash 2438
- rsi.child(frame, id2+13, str3x, str3y); frame++; //lunge 2439
- rsi.child(frame, id2+14, str4x, str4y); frame++; //block 2440
- rsi.child(frame, 19300, 0, 0); frame++; //stuffs
- rsi.child(frame, id2, 94, 4); frame++; //weapon 2426
- for (int i = id2+3; i < id2+7; i++) { //2429 - 2433
- rsi = interfaceCache[i];
- rsi.sprite1 = CustomSpriteLoader(19301, ""); rsi.sprite2 = CustomSpriteLoader(19301, "a");
- rsi.width = 68; rsi.height = 44;
- }
- }
- public static void Sidebar0c(int id, int id2, int id3, String text1, String text2, String text3,
- int str1x, int str1y, int str2x, int str2y, int str3x, int str3y,
- int img1x, int img1y, int img2x, int img2y, int img3x, int img3y, TextDrawingArea[] tda) //3button spec
- {
- RSInterface rsi = addInterface(id); //2423
- /*addText(ID, "Text", tda, Size, Colour, Centered);*/
- addText(id2, "-2", tda, 3, 0xff981f, true); //2426
- addText(id2+9, text1, tda, 0, 0xff981f, false);
- addText(id2+10, text2, tda, 0, 0xff981f, false);
- addText(id2+11, text3, tda, 0, 0xff981f, false);
- /*specialBar(ID);*/
- rsi.specialBar(id3); //7599
- rsi.width = 190;
- rsi.height = 261;
- int last = 12; int frame = 0;
- rsi.totalChildren(last, last, last);
- rsi.child(frame, id2+3, 21, 99); frame++;
- rsi.child(frame, id2+4, 105, 46); frame++;
- rsi.child(frame, id2+5, 21, 46); frame++;
- rsi.child(frame, id2+6, img1x, img1y); frame++; //topleft
- rsi.child(frame, id2+7, img2x, img2y); frame++; //bottomleft
- rsi.child(frame, id2+8, img3x, img3y); frame++; //topright
- rsi.child(frame, id2+9, str1x, str1y); frame++; //chop
- rsi.child(frame, id2+10, str2x, str2y); frame++; //slash
- rsi.child(frame, id2+11, str3x, str3y); frame++; //lunge
- rsi.child(frame, 19300, 0, 0); frame++; //stuffs
- rsi.child(frame, id2, 94, 4); frame++; //weapon
- rsi.child(frame, id3, 21, 205); frame++; //special attack 7599
- for (int i = id2+3; i < id2+6; i++) {
- rsi = interfaceCache[i];
- rsi.sprite1 = CustomSpriteLoader(19301, ""); rsi.sprite2 = CustomSpriteLoader(19301, "a");
- rsi.width = 68; rsi.height = 44;
- }
- }
- public static void Sidebar0d(int id, int id2, String text1, String text2, String text3,
- int str1x, int str1y, int str2x, int str2y, int str3x, int str3y,
- int img1x, int img1y, int img2x, int img2y, int img3x, int img3y, TextDrawingArea[] tda) //3button nospec (magic intf)
- {
- RSInterface rsi = addInterface(id); //2423
- /*addText(ID, "Text", tda, Size, Colour, Centered);*/
- addText(id2, "-2", tda, 3, 0xff981f, true); //2426
- addText(id2+9, text1, tda, 0, 0xff981f, false);
- addText(id2+10, text2, tda, 0, 0xff981f, false);
- addText(id2+11, text3, tda, 0, 0xff981f, false);
- //addText(353, "Spell", tda, 0, 0xff981f, false);
- removeSomething(353);
- addText(354, "Spell", tda, 0, 0xff981f, false);
- addCacheSprite(337, 19, 0, "combaticons");
- addCacheSprite(338, 13, 0, "combaticons2");
- addCacheSprite(339, 14, 0, "combaticons2");
- /*addToggleButton(id, sprite, config, width, height, tooltip);*/
- //addToggleButton(349, 349, 108, 68, 44, "Select");
- removeSomething(349);
- addToggleButton(350, 350, 108, 68, 44, "Select");
- rsi.width = 190;
- rsi.height = 261;
- int last = 15; int frame = 0;
- rsi.totalChildren(last, last, last);
- rsi.child(frame, id2+3, 20, 115); frame++;
- rsi.child(frame, id2+4, 20, 80); frame++;
- rsi.child(frame, id2+5, 20, 45); frame++;
- rsi.child(frame, id2+6, img1x, img1y); frame++; //topleft
- rsi.child(frame, id2+7, img2x, img2y); frame++; //bottomleft
- rsi.child(frame, id2+8, img3x, img3y); frame++; //topright
- rsi.child(frame, id2+9, str1x, str1y); frame++; //bash
- rsi.child(frame, id2+10, str2x, str2y); frame++; //pound
- rsi.child(frame, id2+11, str3x, str3y); frame++; //focus
- rsi.child(frame, 349, 105, 46); frame++; //spell1
- rsi.child(frame, 350, 104, 106); frame++; //spell2
- rsi.child(frame, 353, 125, 74); frame++; //spell
- rsi.child(frame, 354, 125, 134); frame++; //spell
- rsi.child(frame, 19300, 0, 0); frame++; //stuffs
- rsi.child(frame, id2, 94, 4); frame++; //weapon
- }
- 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.opacity = 0;
- Interface.hoverType = Hover;
- Interface.sprite1 = imageLoader(0, "Interfaces/CurseTab/GLOW");
- Interface.sprite2 = imageLoader(1, "Interfaces/CurseTab/GLOW");
- Interface.width = 34;
- Interface.height = 34;
- Interface.valueCompareType = new int[1];
- Interface.requiredValues = new int[1];
- Interface.valueCompareType[0] = 1;
- Interface.requiredValues[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@lre@ " + PrayerName;
- Interface = addTabInterface(i + 1);
- Interface.id = i + 1;
- Interface.parentID = 22500;
- Interface.type = 5;
- Interface.atActionType = 0;
- Interface.contentType = 0;
- Interface.opacity = 0;
- Interface.sprite1 = imageLoader(prayerSpriteID, "Interfaces/CurseTab/PRAYON");
- Interface.sprite2 = imageLoader(prayerSpriteID, "Interfaces/CurseTab/PRAYOFF");
- Interface.width = 34;
- Interface.height = 34;
- Interface.valueCompareType = new int[1];
- Interface.requiredValues = new int[1];
- Interface.valueCompareType[0] = 2;
- Interface.requiredValues[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 addSpriteWithHover(int id, int spriteId, String spriteName, int hover) {
- RSInterface tab = interfaceCache[id] = new RSInterface();
- tab.id = id;
- tab.parentID = id;
- tab.type = 5;
- tab.atActionType = 0;
- tab.contentType = 0;
- tab.opacity = (byte)0;
- tab.hoverType = hover;
- tab.sprite1 = imageLoader(spriteId, spriteName);
- tab.sprite2 = imageLoader(spriteId, spriteName);
- tab.width = 190;
- tab.height = 47;
- }
- public static void curseTab(TextDrawingArea[] TDA) {
- RSInterface Interface = addTabInterface(22500);
- int index = 0;
- addSpriteWithHover(688, 11, "Interfaces/CurseTab/SPRITE", 19021);
- drawTooltip(19021, "This is the effect that prayers\nand curses have during combat.\nIt includes curses that have\nbeen used against you. The\nadjustment has no effect\noutside of combat. The\npercentage shown is relative to\n your skill level, and may vary\ndepending on the enemy you are\nfighting, and the prayers or\n curses used. Partial\npercentages are not shown.");
- addButton(689, 12, "Interfaces/CurseTab/SPRITE", "",190,17);
- addText(19025, "Hide stat adjustments.", 0xFFCC00, false, true, -1, TDA, 0);
- addText(690, "", 0xFF981F, false, false, -1, TDA, 0);
- addText(691, "", 0xFF981F, false, false, -1, TDA, 0);
- addText(692, "", 0xFF981F, false, false, -1, TDA, 0);
- addText(693, "", 0xFF981F, false, false, -1, TDA, 0);
- addText(694, "", 0xFF981F, false, false, -1, TDA, 0);
- addText(687, "99/99", 0xFF981F, false, false, -1, TDA, 1);
- addSprite(22502, 0, "Interfaces/CurseTab/ICON");
- addPrayer(22503, 0, 83, 49, 7, "Protect Item", 22582);
- addPrayer(22505, 0, 84, 49, 4, "Sap Warrior", 22544);
- addPrayer(22507, 0, 85, 51, 5, "Sap Ranger", 22546);
- addPrayer(22509, 0, 101, 53, 3, "Sap Mage", 22548);
- addPrayer(22511, 0, 102, 55, 2, "Sap Spirit", 22550);
- addPrayer(22513, 0, 86, 58, 18, "Berserker", 22552);
- addPrayer(22515, 0, 87, 61, 15, "Deflect Summoning", 22554);
- addPrayer(22517, 0, 88, 64, 17, "Deflect Magic", 22556);
- addPrayer(22519, 0, 89, 67, 16, "Deflect Missiles", 22558);
- addPrayer(22521, 0, 90, 70, 6, "Deflect Melee", 22560);
- addPrayer(22523, 0, 91, 73, 9, "Leech Attack", 22562);
- addPrayer(22525, 0, 103, 75, 10, "Leech Ranged", 22564);
- addPrayer(22527, 0, 104, 77, 11, "Leech Magic", 22566);
- addPrayer(22529, 0, 92, 79, 12, "Leech Defence", 22568);
- addPrayer(22531, 0, 93, 81, 13, "Leech Strength", 22570);
- addPrayer(22533, 0, 94, 83, 14, "Leech Energy", 22572);
- addPrayer(22535, 0, 95, 85, 19, "Leech Special Attack", 22574);
- addPrayer(22537, 0, 96, 88, 1, "Wrath", 22576);
- addPrayer(22539, 0, 97, 91, 8, "Soul Split", 22578);
- addPrayer(22541, 0, 105, 94, 20, "Turmoil", 22580);
- 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(71, Interface);
- /*curse start*/
- setBounds(689, 0, 217, index, Interface);index++;
- //setBounds(701, 0, 217, index, Interface);index++;
- setBounds(687, 85, 241, index, Interface);index++;
- setBounds(688, 0, 170, index, Interface);index++;
- setBounds(690, 89, 200, index, Interface);index++;
- setBounds(691, 10, 200, index, Interface);index++;
- setBounds(692, 50, 200, index, Interface);index++;
- setBounds(693, 130, 200, index, Interface);index++;
- setBounds(694, 170, 200, index, Interface);index++;
- setBounds(19025, 47, 217, index, Interface);index++;
- //setBounds(19030, 47, 219, 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++;
- setBounds(19021, 1, 40, index, Interface);index++;
- }
- public static void SquealOfFortune(TextDrawingArea[] tda) {
- RSInterface Interface = addTabInterface(48500);
- addSprite(48501, 0, "SquealOfFortune/BG");
- addHoverButton(48502, "SquealOfFortune/SPRITE", 0, 156, 62, "Open Squeal of Fortune", -1, 48503, 1);
- addHoveredButton(48503, "SquealOfFortune/SPRITE", 1, 156, 62, 48504);
- addHoverButton(48505, "SquealOfFortune/SPRITE", 0, 156, 62, "Buy Spins", -1, 48506, 1);
- addHoveredButton(48506, "SquealOfFortune/SPRITE", 2, 156, 62, 48507);
- addText(48508, "0", tda, 0, 0xE3CCCF, true, true);
- setChildren(6, Interface);
- setBounds(48501, 8, 0, 0, Interface);//326, 276
- setBounds(48502, 25, 81, 1, Interface);
- setBounds(48503, 25, 81, 2, Interface);
- setBounds(48505, 25, 149, 3, Interface);
- setBounds(48506, 25, 149, 4, Interface);
- setBounds(48508, 102, 241, 5, Interface);
- }
- public static void optionTab(TextDrawingArea[] tda) {
- RSInterface tab = addTabInterface(904);
- RSInterface energy = interfaceCache[149];
- energy.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");
- //run button here
- 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, "Sound Effects Off", 4, 5, 169);
- addConfigButton(942, 904, 20, 25, "/Options/SPRITE", 26, 16, "Sound Effects Level-1", 3, 5, 169);
- addConfigButton(943, 904, 21, 26, "/Options/SPRITE", 26, 16, "Sound Effects Level-2", 2, 5, 169);
- addConfigButton(944, 904, 22, 27, "/Options/SPRITE", 26, 16, "Sound Effects Level-3", 1, 5, 169);
- addConfigButton(945, 904, 23, 28, "/Options/SPRITE", 24, 16, "Sound Effects Level-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);
- tab.totalChildren(28);
- int x = 0;
- int y = 2;
- tab.child(0, 905, 13 + x, 10 + y);
- tab.child(1, 906, 48 + x, 18 + y);
- tab.child(2, 908, 80 + x, 18 + y);
- tab.child(3, 910, 112 + x, 18 + y);
- tab.child(4, 912, 144 + x, 18 + y);
- tab.child(5, 907, 14 + x, 55 + y);
- tab.child(6, 930, 49 + x, 61 + y);
- tab.child(7, 931, 75 + x, 61 + y);
- tab.child(8, 932, 101 + x, 61 + y);
- tab.child(9, 933, 127 + x, 61 + y);
- tab.child(10, 934, 151 + x, 61 + y);
- tab.child(11, 909, 13 + x, 99 + y);
- tab.child(12, 941, 49 + x, 104 + y);
- tab.child(13, 942, 75 + x, 104 + y);
- tab.child(14, 943, 101 + x, 104 + y);
- tab.child(15, 944, 127 + x, 104 + y);
- tab.child(16, 945, 151 + x, 104 + y);
- tab.child(17, 913, 15, 153);
- tab.child(18, 955, 19, 159);
- tab.child(19, 915, 75, 153);
- tab.child(20, 953, 79, 160);
- tab.child(21, 957, 135, 153);
- tab.child(22, 951, 139, 159);
- tab.child(23, 12464, 15, 208);
- tab.child(24, 949, 20, 213);
- tab.child(25, 152, 75, 208);
- tab.child(26, 947, 87, 212);
- tab.child(27, 149, 80, 231);
- }
- 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 k, boolean l, boolean m, int a,TextDrawingArea[] TDA, int j) {
- 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.opacity = 0;
- RSInterface.hoverType = a;
- RSInterface.centerText = l;
- RSInterface.textShadow = m;
- RSInterface.textDrawingAreas = TDA[j];
- RSInterface.message = s;
- RSInterface.aString228 = "";
- RSInterface.textColor = k;
- }
- public static void Pestpanel(TextDrawingArea[] tda) {
- RSInterface RSinterface = addInterface(21119);
- addText(21120, "What", 0x999999, false, true, 52, tda, 1);
- addText(21121, "What", 0x33cc00, false, true, 52, tda, 1);
- addText(21122, "(Need 5 to 25 players)", 0xFFcc33, false, true, 52, tda, 1);
- addText(21123, "Points", 0x33ccff, false, true, 52, tda, 1);
- int last = 4;
- RSinterface.children = new int[last];
- RSinterface.childX = new int[last];
- RSinterface.childY = new int[last];
- 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[] tda) {
- 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, "", 0xCC00CC, false, true, 52, tda, 1);
- addText(21108, "", 0x0000FF, false, true, 52, tda, 1);
- addText(21109, "", 0xFFFF44, false, true, 52, tda, 1);
- addText(21110, "", 0xCC0000, false, true, 52, tda, 1);
- addText(21111, "250", 0x99FF33, false, true, 52, tda, 1);//w purp
- addText(21112, "250", 0x99FF33, false, true, 52, tda, 1);//e blue
- addText(21113, "250", 0x99FF33, false, true, 52, tda, 1);//se yel
- addText(21114, "250", 0x99FF33, false, true, 52, tda, 1);//sw red
- addText(21115, "200", 0x99FF33, false, true, 52, tda, 1);//attacks
- addText(21116, "0", 0x99FF33, false, true, 52, tda, 1);//knights hp
- addText(21117, "Time Remaining:", 0xFFFFFF, false, true, 52, tda, 0);
- addText(21118, "", 0xFFFFFF, false, true, 52, tda, 0);
- int last = 18;
- RSinterface.children = new int[last];
- RSinterface.childX = new int[last];
- RSinterface.childY = new int[last];
- 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 String hoverText;
- public static void addHoverBox(int id, String text) {
- RSInterface rsi = interfaceCache[id];//addTabInterface(id);
- rsi.id = id;
- rsi.parentID = id;
- rsi.interfaceShown = true;
- rsi.type = 8;
- rsi.hoverText = text;
- }
- public static void addText(int id, String text, TextDrawingArea tda[], int idx, int color, boolean center, boolean shadow) {
- RSInterface tab = addTabInterface(id);
- tab.parentID = id;
- tab.id = id;
- tab.type = 4;
- tab.atActionType = 0;
- tab.width = 0;
- tab.height = 11;
- tab.contentType = 0;
- tab.opacity = 0;
- tab.hoverType = -1;
- tab.centerText = center;
- tab.textShadow = shadow;
- tab.textDrawingAreas = tda[idx];
- tab.message = text;
- tab.aString228 = "";
- tab.textColor = color;
- tab.anInt219 = 0;
- tab.anInt216 = 0;
- tab.anInt239 = 0;
- }
- public static void addButton(int id, int sid, String spriteName, String tooltip, int w, int h) {
- RSInterface tab = interfaceCache[id] = new RSInterface();
- tab.id = id;
- tab.parentID = id;
- tab.type = 5;
- tab.atActionType = 1;
- tab.contentType = 0;
- tab.opacity = (byte)0;
- tab.hoverType = 52;
- tab.sprite1 = imageLoader(sid, spriteName);
- tab.sprite2 = imageLoader(sid, spriteName);
- tab.width = w;
- tab.height = h;
- tab.tooltip = tooltip;
- }
- public static void addConfigButton(int ID, int pID, int bID, int bID2, String bName, int width, int height, String tT, int configID, int aT, int configFrame) {
- RSInterface Tab = addTabInterface(ID);
- Tab.parentID = pID;
- Tab.id = ID;
- Tab.type = 5;
- Tab.atActionType = aT;
- Tab.contentType = 0;
- Tab.width = width;
- Tab.height = height;
- Tab.opacity = 0;
- Tab.hoverType = -1;
- Tab.valueCompareType = new int[1];
- Tab.requiredValues = new int[1];
- Tab.valueCompareType[0] = 1;
- Tab.requiredValues[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.tooltip = tT;
- }
- public static void addSprite(int id, int spriteId, String spriteName) {
- RSInterface tab = interfaceCache[id] = new RSInterface();
- tab.id = id;
- tab.parentID = id;
- tab.type = 5;
- tab.atActionType = 0;
- tab.contentType = 0;
- tab.opacity = (byte)0;
- tab.hoverType = 52;
- tab.sprite1 = imageLoader(spriteId, spriteName);
- tab.sprite2 = imageLoader(spriteId, spriteName);
- tab.width = 512;
- tab.height = 334;
- }
- public static void addHoverButton(int i, String imageName, int j, int width, int height, String text, int contentType, int hoverOver, int aT) {//hoverable button
- RSInterface tab = addTabInterface(i);
- tab.id = i;
- tab.parentID = i;
- tab.type = 5;
- tab.atActionType = aT;
- tab.contentType = contentType;
- tab.opacity = 0;
- tab.hoverType = hoverOver;
- tab.sprite1 = imageLoader(j, imageName);
- tab.sprite2 = imageLoader(j, imageName);
- tab.width = width;
- tab.height = height;
- tab.tooltip = text;
- }
- public static void addHoveredButton(int i, String imageName, int j, int w, int h, int IMAGEID) {//hoverable button
- RSInterface tab = addTabInterface(i);
- tab.parentID = i;
- tab.id = i;
- tab.type = 0;
- tab.atActionType = 0;
- tab.width = w;
- tab.height = h;
- tab.interfaceShown = true;
- tab.opacity = 0;
- tab.hoverType = -1;
- tab.scrollMax = 0;
- addHoverImage(IMAGEID, j, j, imageName);
- tab.totalChildren(1);
- tab.child(0, IMAGEID, 0, 0);
- }
- public static void addHoverImage(int i, int j, int k, 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.opacity = 0;
- tab.hoverType = 52;
- tab.sprite1 = imageLoader(j, name);
- tab.sprite2 = imageLoader(k, name);
- }
- public static void addTransparentSprite(int id, int spriteId, String spriteName) {
- RSInterface tab = interfaceCache[id] = new RSInterface();
- tab.id = id;
- tab.parentID = id;
- tab.type = 5;
- tab.atActionType = 0;
- tab.contentType = 0;
- tab.opacity = (byte)0;
- tab.hoverType = 52;
- tab.sprite1 = imageLoader(spriteId, spriteName);
- tab.sprite2 = imageLoader(spriteId, spriteName);
- tab.width = 512;
- tab.height = 334;
- tab.drawsTransparent = true;
- }
- public static RSInterface addScreenInterface(int id) {
- RSInterface tab = interfaceCache[id] = new RSInterface();
- tab.id = id;
- tab.parentID = id;
- tab.type = 0;
- tab.atActionType = 0;
- tab.contentType = 0;
- tab.width = 512;
- tab.height = 334;
- tab.opacity = (byte)0;
- tab.hoverType = 0;
- return tab;
- }
- public static RSInterface addTabInterface(int id) {
- RSInterface tab = interfaceCache[id] = new RSInterface();
- tab.id = id;//250
- tab.parentID = id;//236
- tab.type = 0;//262
- tab.atActionType = 0;//217
- tab.contentType = 0;
- tab.width = 512;//220
- tab.height = 700;//267
- tab.opacity = (byte)0;
- tab.hoverType = -1;//Int 230
- return tab;
- }
- 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(s+" "+i);
- aMRUNodes_238.removeFromCache(sprite, l);
- } catch(Exception exception) {
- return null;
- }
- return sprite;
- }
- public void child(int id, int interID, int x, int y) {
- children[id] = interID;
- childX[id] = x;
- childY[id] = y;
- }
- public void totalChildren(int t) {
- children = new int[t];
- childX = new int[t];
- childY = new int[t];
- }
- 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 _ex) {
- return null;
- }
- return sprite;
- }
- public static void method208(boolean flag, Model model) {
- int i = 0;//was parameter
- int j = 5;//was parameter
- if(flag)
- return;
- aMRUNodes_264.unlinkAll();
- if(model != null && j != 4)
- aMRUNodes_264.removeFromCache(model, (j << 16) + i);
- }
- public Model method209(int j, int k, boolean flag) {
- Model model;
- if(flag)
- model = method206(anInt255, anInt256);
- else
- model = method206(anInt233, mediaID);
- if(model == null)
- return null;
- if(k == -1 && j == -1 && model.anIntArray1640 == null)
- return model;
- Model model_1 = new Model(true, Class36.method532(k) & Class36.method532(j), false, model);
- if(k != -1 || j != -1)
- model_1.method469();
- if(k != -1)
- model_1.method470(k);
- if(j != -1)
- model_1.method470(j);
- model_1.method479(64, 768, -50, -10, -50, true);
- return model_1;
- }
- public RSInterface() {}
- public static StreamLoader aClass44;
- public boolean drawsTransparent;
- public Sprite sprite1;
- public int anInt208;
- public Sprite sprites[];
- public static RSInterface interfaceCache[];
- public int requiredValues[];
- public int contentType;//anInt214
- 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 hoverType;
- 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 valueCompareType[];
- public int anInt246;
- public int spritesY[];
- public String message;
- public boolean isInventoryInterface;
- public int id;
- public int invStackSizes[];
- public int inv[];
- public byte opacity;
- 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 interfaceShown;
- public int height;
- public boolean textShadow;
- public int modelZoom;
- public int modelRotation1;
- public int modelRotation2;
- public int childY[];
- public static void addText(int id, String text, TextDrawingArea tda[], int idx, int color) {
- RSInterface tab = addTabInterface(id);
- tab.id = id;
- tab.parentID = id;
- tab.type = 4;
- tab.atActionType = 0;
- tab.width = 174;
- tab.height = 11;
- tab.contentType = 0;
- tab.opacity = 0;
- tab.hoverType = -1;
- tab.centerText = false;
- tab.textShadow = true;
- tab.textDrawingAreas = tda[idx];
- tab.message = text;
- tab.aString228 = "";
- tab.textColor = color;
- tab.anInt219 = 0;
- tab.anInt216 = 0;
- tab.anInt239 = 0;
- }
- public static void itemsOnDeath(TextDrawingArea[] wid) {
- RSInterface rsinterface = addInterface(17100);
- rsinterface.scrollMax = 0;
- rsinterface.interfaceShown = false;
- addSprite(17101, 2, "Equipment/Sprite");
- addHover(17102, 3, 0, 10601, 1, "Equipment/Sprite", 17, 17, "Close Window");
- addHovered(10601, 3, "Equipment/Sprite", 17, 17, 10602);
- addText(17103, "", wid, 2, 0xff981f);
- addText(17104, "", wid, 1, 0xff981f);
- addText(17105, "", wid, 1, 0xff981f);
- addText(17106, "", wid, 1, 0xff981f);
- addText(17107, "", wid, 1, 0xffcc33);
- addText(17108, "", wid, 1, 0xffcc33);
- addText(17124, "", wid, 0, 0xff981f);
- rsinterface.totalChildren(14);
- setBounds(17101, 7, 8, 0, rsinterface);
- setBounds(17102, 480, 17, 1, rsinterface);
- setBounds(17103, 185, 18, 2, rsinterface);
- setBounds(17104, 22, 50, 3, rsinterface);
- setBounds(17105, 22, 110, 4, rsinterface);
- setBounds(17106, 347, 47, 5, rsinterface);
- setBounds(17107, 349, 270, 6, rsinterface);
- setBounds(17108, 398, 298, 7, rsinterface);
- setBounds(17129, 348, 64, 8, rsinterface);
- setBounds(10494, 26, 74, 9, rsinterface);
- setBounds(10600, 26, 133, 10, rsinterface);
- setBounds(10601, 480, 17, 11, rsinterface);
- setBounds(17131, 480, 17, 12, rsinterface);
- setBounds(17124, 349, 255, 13, rsinterface);///Carried Wealth
- }
- /*public static void itemsOnDeath(TextDrawingArea[] wid)
- {
- RSInterface localRSInterface = addInterface(17100);
- addSprite(17101, 2, "Equipment/Sprite");
- addHover(17102, 3, 0, 10601, 1, "Equipment/Sprite", 17, 17, "Close Window");
- addHovered(10601, 3, "Equipment/Sprite", 17, 17, 10602);
- addText(17103, "", wid, 2, 0xff981f);
- addText(17104, "", wid, 1, 0xff981f);
- addText(17105, "", wid, 1, 0xff981f);
- addText(17106, "", wid, 1, 0xff981f);
- addText(17107, "", wid, 1, 0xffcc33);
- addText(17108, "", wid, 1, 0xffcc33);
- addText(17124, "", wid, 0, 0xff981f);
- localRSInterface.scrollMax = 0;
- localRSInterface.interfaceShown = false;
- localRSInterface.children = new int[12];
- localRSInterface.childX = new int[12];
- localRSInterface.childY = new int[12];
- localRSInterface.children[0] = 17101;
- localRSInterface.childX[0] = 7;
- localRSInterface.childY[0] = 8;
- localRSInterface.children[1] = 17102;
- localRSInterface.childX[1] = 480;
- localRSInterface.childY[1] = 17;
- localRSInterface.children[2] = 17103;
- localRSInterface.childX[2] = 185;
- localRSInterface.childY[2] = 18;
- localRSInterface.children[3] = 17104;
- localRSInterface.childX[3] = 22;
- localRSInterface.childY[3] = 50;
- localRSInterface.children[4] = 17105;
- localRSInterface.childX[4] = 22;
- localRSInterface.childY[4] = 110;
- localRSInterface.children[5] = 17106;
- localRSInterface.childX[5] = 347;
- localRSInterface.childY[5] = 47;
- localRSInterface.children[6] = 17107;
- localRSInterface.childX[6] = 349;
- localRSInterface.childY[6] = 270;
- localRSInterface.children[7] = 17108;
- localRSInterface.childX[7] = 398;
- localRSInterface.childY[7] = 298;
- localRSInterface.children[8] = 17115;
- localRSInterface.childX[8] = 348;
- localRSInterface.childY[8] = 64;
- localRSInterface.children[9] = 10494;
- localRSInterface.childX[9] = 26;
- localRSInterface.childY[9] = 74;
- localRSInterface.children[10] = 10600;
- localRSInterface.childX[10] = 26;
- localRSInterface.childY[10] = 133;
- localRSInterface.children[11] = 10601;
- localRSInterface.childX[11] = 480;
- localRSInterface.childY[11] = 17;
- }*/
- public static void itemsOnDeathDATA(TextDrawingArea[] wid) {
- RSInterface rsinterface = addInterface(17129);
- rsinterface.parentID = 17129;
- rsinterface.id = 17129;
- rsinterface.type = 0;
- rsinterface.atActionType = 0;
- rsinterface.contentType = 0;
- rsinterface.width = 130;
- rsinterface.height = 180;
- rsinterface.opacity = 0;
- rsinterface.hoverType = -1;
- rsinterface.scrollMax = 280;
- int y = 0;
- int index = 0;
- setChildren(15, rsinterface);
- for(int idx = 17109; idx <= 17123;idx++) {
- addText(idx, "", wid, 0, 0xff981f);
- setBounds(idx, 0, y, index, rsinterface);
- index++;
- y += 12;
- }
- }
- public static void EquipmentTab(TextDrawingArea[] wid)
- {
- RSInterface localRSInterface = interfaceCache[1644];
- addHoverButton(15201, "Equipment/CUSTOM", 1, 40, 40, "Show Equipment Screen", 0, 15202, 1);
- addHoveredButton(15202, "Equipment/CUSTOM", 5, 40, 40, 15203);
- addHoverButton(15204, "Equipment/CUSTOM", 2, 40, 40, "Items Kept on Death", 0, 15205, 1);
- addHoveredButton(15205, "Equipment/CUSTOM", 4, 40, 40, 15206);
- localRSInterface.child(23, 15201, 21, 210);
- //localRSInterface.child(1, 15226, 95, 250);
- localRSInterface.child(24, 15202, 21, 210);
- localRSInterface.child(25, 15204, 129, 210);
- localRSInterface.child(26, 15205, 129, 210);
- }
- public static void equipmentScreen(TextDrawingArea[] wid) {
- /*RSInterface Interface = RSInterface.interfaceCache[1644];
- int ix = 0;
- addAura(ix);
- 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, 1, "bg");
- addHoverButton(15210, "SPRITE", 1, 21, 21, "Close", 250, 15211, 3);
- addHoveredButton(15211, "SPRITE", 3, 21, 21, 15212);
- addHoverButton(22024, "Bank/BANK", 25, 72, 32, "Return To Bank", -1, 22025, 5);
- addHoveredButton(22025, "Bank/BANK", 26, 72, 32, 22026);
- addText(15111, "", wid, 2, 0xe4a146, false, true);
- int rofl = 3;
- addText(15112, "Attack bonuses", wid, 2, 0xFF8900, false, true);
- addText(15113, "Defence bonuses", wid, 2, 0xFF8900, false, true);
- addText(15114, "Other bonuses", wid, 2, 0xFF8900, false, true);
- addText(19148, "Summoning: +0", wid, 1, 0xFF8900, false, true);
- addText(19149, "Absorb Melee: +0%", wid, 1, 0xFF9200, false, true);
- addText(19150, "Absorb Magic: +0%", wid, 1, 0xFF9200, false, true);
- addText(19151, "Absorb Ranged: +0%", wid, 1, 0xFF9200, false, true);
- addText(19152, "Ranged Strength: 0", wid, 1, 0xFF9200, false, true);
- addText(19153, "Magic Damage: +0%", wid, 1, 0xFF9200, 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(50);
- tab.child(0, 15107, 15, 5);
- tab.child(1, 15210, 476, 8);
- tab.child(2, 15211, 476, 8);
- tab.child(3, 15111, 14, 30);
- int Child = 4; int Y = 45;
- tab.child(16, 15112, 24, 30 - rofl);
- for(int i = 1675; i <= 1679; i++) {
- tab.child(Child, i, 29, Y - rofl);
- Child++;
- Y += 14;
- }
- int edit = 7 + rofl;
- tab.child(18, 15113, 24, 122 - edit); // 147
- tab.child(9, 1680, 29, 137 - edit - 2); // 161
- tab.child(10, 1681, 29, 153 - edit - 3);
- tab.child(11, 1682, 29, 168 - edit - 3);
- tab.child(12, 1683, 29, 183 - edit - 3);
- tab.child(13, 1684, 29, 197 - edit - 3);
- tab.child(44, 19148, 29, 211 - edit - 3);
- tab.child(45, 19149, 29, 225 - edit - 3);
- tab.child(46, 19150, 29, 239 - edit - 3);
- tab.child(47, 19151, 29, 253 - edit - 3);
- int edit2 = 33 - rofl, edit3 = 2;
- tab.child(19, 15114, 24, 223 + edit2);
- tab.child(14, 1686, 29, 262-24 + edit2 - edit3);
- tab.child(17, 19152, 29, 276-24 + edit2 - edit3);
- tab.child(48, 1687, 29, 290-24 + edit2 - edit3);
- tab.child(49, 19153, 29, 304-24 + edit2 - edit3);
- tab.child(15, 15125, 170, 200);
- 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);
- tab.child(44, 22024, 457, 30);
- tab.child(45, 22025, 457, 30);
- for(int i = 1675; i <= 1684; i++){
- RSInterface rsi = interfaceCache[i];
- rsi.textColor = 0xFF9200;
- rsi.centerText = false;
- }
- for(int i = 1686; i <= 1687; i++) {
- RSInterface rsi = interfaceCache[i];
- rsi.textColor = 0xFF9200;
- rsi.centerText = false;
- }
- }
- 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 = 180;
- t.height = 190;
- t.opacity = 0;
- t.hoverType = 0;
- t.modelZoom = 560;
- t.modelRotation1 = 30;
- t.modelRotation2 = 0;
- t.anInt257 = -1;
- t.anInt258 = -1;
- }
- private static Sprite LoadLunarSprite(int i, String s) {
- Sprite sprite = imageLoader(i,"/Lunar/" + s);
- return sprite;
- }
- public static void addLunarSprite(int i, int j, String name) {
- RSInterface RSInterface = addInterface(i);
- RSInterface.id = i;
- RSInterface.parentID = i;
- RSInterface.type = 5;
- RSInterface.atActionType = 5;
- RSInterface.contentType = 0;
- RSInterface.opacity = 0;
- RSInterface.hoverType = 52;
- RSInterface.sprite1 = LoadLunarSprite(j, name);
- RSInterface.width = 500;
- RSInterface.height = 500;
- RSInterface.tooltip = "";
- }
- public static void drawRune(int i,int id, String runeName) {
- RSInterface RSInterface = addInterface(i);
- RSInterface.type = 5;
- RSInterface.atActionType = 0;
- RSInterface.contentType = 0;
- RSInterface.opacity = 0;
- RSInterface.hoverType = 52;
- RSInterface.sprite1 = LoadLunarSprite(id, "RUNE");
- RSInterface.width = 500;
- RSInterface.height = 500;
- }
- public static void addRuneText(int ID, int runeAmount, int RuneID, TextDrawingArea[] font){
- RSInterface rsInterface = addInterface(ID);
- rsInterface.id = ID;
- rsInterface.parentID = 1151;
- rsInterface.type = 4;
- rsInterface.atActionType = 0;
- rsInterface.contentType = 0;
- rsInterface.width = 0;
- rsInterface.height = 14;
- rsInterface.opacity = 0;
- rsInterface.hoverType= -1;
- rsInterface.valueCompareType = new int[1];
- rsInterface.requiredValues = new int[1];
- rsInterface.valueCompareType[0] = 3;
- rsInterface.requiredValues[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.textShadowed = true;
- rsInterface.message = "%1/"+runeAmount+"";
- rsInterface.popupString = "";
- //rsInterface.disabledColour = 12582912;
- //rsInterface.enabledColour = 49152;
- }
- public static void homeTeleport(){
- RSInterface RSInterface = addInterface(30000);
- RSInterface.tooltip = "Cast @gre@Lunar Home Teleport";
- RSInterface.id = 30000;
- RSInterface.parentID = 30000;
- RSInterface.type = 5;
- RSInterface.atActionType = 5;
- RSInterface.contentType = 0;
- RSInterface.opacity = 0;
- RSInterface.hoverType = 30001;
- RSInterface.sprite1 = LoadLunarSprite(1, "SPRITE");
- RSInterface.width = 20;
- RSInterface.height = 20;
- RSInterface Int = addInterface(30001);
- Int.interfaceShown = true;
- Int.totalChildren(1);
- addLunarSprite(30002, 0, "SPRITE");
- setBounds(30002, 0, 0,0, Int);
- }
- 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 = addInterface(ID);
- rsInterface.id = ID;
- rsInterface.parentID = 1151;
- rsInterface.type = 5;
- rsInterface.atActionType = type;
- rsInterface.contentType = 0;
- rsInterface.hoverType = ID+1;
- //rsInterface.spellUsableOn = suo;
- rsInterface.selectedActionName = "Cast On";
- rsInterface.width = 20;
- rsInterface.height = 20;
- rsInterface.tooltip = "Cast @gre@"+name;
- rsInterface.spellName = name;
- rsInterface.valueCompareType = new int[3];
- rsInterface.requiredValues = new int[3];
- rsInterface.valueCompareType[0] = 3;
- rsInterface.requiredValues[0] = ra1;
- rsInterface.valueCompareType[1] = 3;
- rsInterface.requiredValues[1] = ra2;
- rsInterface.valueCompareType[2] = 3;
- rsInterface.requiredValues[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 = LoadLunarSprite(sid, "LUNARON");
- rsInterface.sprite1 = LoadLunarSprite(sid, "LUNAROFF");
- RSInterface INT = addInterface(ID+1);
- INT.interfaceShown = true;
- INT.totalChildren(7);
- addLunarSprite(ID+2, 0, "BOX");
- setBounds(ID+2, 0, 0, 0, INT);
- addText(ID+3, "Level "+(lvl+1)+": "+name, 0xFF981F, true, true, 52, TDA, 1);
- setBounds(ID+3, 90, 4, 1, INT);
- addText(ID+4, descr, 0xAF6A1A, true, true, 52, TDA, 0);
- setBounds(ID+4, 90, 19, 2, INT);
- setBounds(30016, 37, 35, 3, INT);//Rune
- setBounds(rune1, 112, 35, 4, INT);//Rune
- addRuneText(ID+5, ra1+1, r1, TDA);
- setBounds(ID+5, 50, 66, 5, INT);
- addRuneText(ID+6, ra2+1, r2, TDA);
- setBounds(ID+6, 123, 66, 6, INT);
- }
- 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 = addInterface(ID);
- rsInterface.id = ID;
- rsInterface.parentID = 1151;
- rsInterface.type = 5;
- rsInterface.atActionType = type;
- rsInterface.contentType = 0;
- rsInterface.hoverType = ID+1;
- //rsInterface.spellUsableOn = suo;
- rsInterface.selectedActionName = "Cast on";
- rsInterface.width = 20;
- rsInterface.height = 20;
- rsInterface.tooltip = "Cast @gre@"+name;
- rsInterface.spellName = name;
- rsInterface.valueCompareType = new int[4];
- rsInterface.requiredValues = new int[4];
- rsInterface.valueCompareType[0] = 3;
- rsInterface.requiredValues[0] = ra1;
- rsInterface.valueCompareType[1] = 3;
- rsInterface.requiredValues[1] = ra2;
- rsInterface.valueCompareType[2] = 3;
- rsInterface.requiredValues[2] = ra3;
- rsInterface.valueCompareType[3] = 3;
- rsInterface.requiredValues[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 = LoadLunarSprite(sid, "LUNARON");
- rsInterface.sprite1 = LoadLunarSprite(sid, "LUNAROFF");
- RSInterface INT = addInterface(ID+1);
- INT.interfaceShown = true;
- INT.totalChildren(9);
- addLunarSprite(ID+2, 0, "BOX");
- setBounds(ID+2, 0, 0, 0, INT);
- addText(ID+3, "Level "+(lvl+1)+": "+name, 0xFF981F, true, true, 52, TDA, 1);setBounds(ID+3, 90, 4, 1, INT);
- addText(ID+4, descr, 0xAF6A1A, true, true, 52, TDA, 0); setBounds(ID+4, 90, 19, 2, INT);
- setBounds(30016, 14, 35, 3, INT);
- setBounds(rune1, 74, 35, 4, INT);
- setBounds(rune2, 130, 35, 5, INT);
- addRuneText(ID+5, ra1+1, r1, TDA);
- setBounds(ID+5, 26, 66, 6, INT);
- addRuneText(ID+6, ra2+1, r2, TDA);
- setBounds(ID+6, 87, 66, 7, INT);
- addRuneText(ID+7, ra3+1, r3, TDA);
- setBounds(ID+7, 142, 66, 8, INT);
- }
- 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 = addInterface(ID);
- rsInterface.id = ID;
- rsInterface.parentID = 1151;
- rsInterface.type = 5;
- rsInterface.atActionType = type;
- rsInterface.contentType = 0;
- rsInterface.hoverType = ID+1;
- //rsInterface.spellUsableOn = suo;
- rsInterface.selectedActionName = "Cast on";
- rsInterface.width = 20;
- rsInterface.height = 20;
- rsInterface.tooltip = "Cast @gre@"+name;
- rsInterface.spellName = name;
- rsInterface.valueCompareType = new int[4];
- rsInterface.requiredValues = new int[4];
- rsInterface.valueCompareType[0] = 3;
- rsInterface.requiredValues[0] = ra1;
- rsInterface.valueCompareType[1] = 3;
- rsInterface.requiredValues[1] = ra2;
- rsInterface.valueCompareType[2] = 3;
- rsInterface.requiredValues[2] = ra3;
- rsInterface.valueCompareType[3] = 3;
- rsInterface.requiredValues[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 = LoadLunarSprite(sid, "LUNARON");
- rsInterface.sprite1 = LoadLunarSprite(sid, "LUNAROFF");
- RSInterface INT = addInterface(ID+1);
- INT.interfaceShown = true;
- INT.totalChildren(9);
- addLunarSprite(ID+2, 1, "BOX");
- setBounds(ID+2, 0, 0, 0, INT);
- addText(ID+3, "Level "+(lvl+1)+": "+name, 0xFF981F, true, true, 52, TDA, 1);setBounds(ID+3, 90, 4, 1, INT);
- addText(ID+4, descr, 0xAF6A1A, true, true, 52, TDA, 0); setBounds(ID+4, 90, 21, 2, INT);
- setBounds(30016, 14, 48, 3, INT);
- setBounds(rune1, 74, 48, 4, INT);
- setBounds(rune2, 130, 48, 5, INT);
- addRuneText(ID+5, ra1+1, r1, TDA);
- setBounds(ID+5, 26, 79, 6, INT);
- addRuneText(ID+6, ra2+1, r2, TDA);
- setBounds(ID+6, 87, 79, 7, INT);
- addRuneText(ID+7, ra3+1, r3, TDA);
- setBounds(ID+7, 142, 79, 8, INT);
- }
- 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 = addInterface(ID);
- rsInterface.id = ID;
- rsInterface.parentID = 1151;
- rsInterface.type = 5;
- rsInterface.atActionType = type;
- rsInterface.contentType = 0;
- rsInterface.hoverType = ID+1;
- //rsInterface.spellUsableOn = suo;
- rsInterface.selectedActionName = "Cast on";
- rsInterface.width = 20;
- rsInterface.height = 20;
- rsInterface.tooltip = "Cast @gre@"+name;
- rsInterface.spellName = name;
- rsInterface.valueCompareType = new int[4];
- rsInterface.requiredValues = new int[4];
- rsInterface.valueCompareType[0] = 3;
- rsInterface.requiredValues[0] = ra1;
- rsInterface.valueCompareType[1] = 3;
- rsInterface.requiredValues[1] = ra2;
- rsInterface.valueCompareType[2] = 3;
- rsInterface.requiredValues[2] = ra3;
- rsInterface.valueCompareType[3] = 3;
- rsInterface.requiredValues[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 = LoadLunarSprite(sid, "LUNARON");
- rsInterface.sprite1 = LoadLunarSprite(sid, "LUNAROFF");
- RSInterface INT = addInterface(ID+1);
- INT.interfaceShown = true;
- INT.totalChildren(9);
- addLunarSprite(ID+2, 2, "BOX");
- setBounds(ID+2, 0, 0, 0, INT);
- addText(ID+3, "Level "+(lvl+1)+": "+name, 0xFF981F, true, true, 52, TDA, 1);
- setBounds(ID+3, 90, 4, 1, INT);
- addText(ID+4, descr, 0xAF6A1A, true, true, 52, TDA, 0);
- setBounds(ID+4, 90, 34, 2, INT);
- setBounds(30016, 14, 61, 3, INT);
- setBounds(rune1, 74, 61, 4, INT);
- setBounds(rune2, 130, 61, 5, INT);
- addRuneText(ID+5, ra1+1, r1, TDA);
- setBounds(ID+5, 26, 92, 6, INT);
- addRuneText(ID+6, ra2+1, r2, TDA);
- setBounds(ID+6, 87, 92, 7, INT);
- addRuneText(ID+7, ra3+1, r3, TDA);
- setBounds(ID+7, 142, 92, 8, INT);
- }
- public static void configureLunar(TextDrawingArea[] TDA) {
- constructLunar();
- 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, "Monster Teleport","Teleports you to moonclan island",TDA,6,0,5);
- addLunar3RunesBigBox(30075, 9075, 563, 557, 1, 0, 3, 30012, 30006, 69,"Minigame Teleport", "Teleports players to Moonclan\\nisland",TDA, 7,0,5);
- addLunar3RunesSmallBox(30083, 9075, 563, 557, 1, 0, 5, 30012, 30006, 70, "Boss Teleport","Teleports you to ourania rune altar",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,"Pking Teleport", "Teleports you to Waterbirth island",TDA,11,0,5);
- addLunar3RunesBigBox(30114, 9075, 563, 555, 1, 0, 4, 30012, 30004, 72,"SkillZone Teleport", "Teleports players to Waterbirth\\nisland",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,"Coming Soon.", "Teleports you to the Barbarian\\noutpost",TDA, 15,0,5);
- addLunar3RunesBigBox(30146, 9075, 563, 554, 1, 1, 5, 30012, 30003, 75,"Coming Soon.", "Teleports players to the Barbarian\\noutpost",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, "Coming Soon.","Teleports you to Port khazard",TDA,18,0,5);
- addLunar3RunesSmallBox(30170, 9075, 563, 555, 1, 1, 7, 30012, 30004, 78, "Coming Soon.","Teleports players to Port khazard",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, "Coming Soon.","Teleports you to the fishing guild",TDA,26,0,5);
- addLunar3RunesLargeBox(30234, 9075, 563, 555, 1, 2, 13, 30012, 30004, 85, "Coming Soon.", "Teleports players to the Fishing\\nGuild",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, "Coming Soon","Teleports you to Catherby",TDA,29,0,5);
- addLunar3RunesSmallBox(30258, 9075, 563, 555, 2, 2, 14, 30012, 30004, 87, "Coming Soon","Teleports players to Catherby",TDA,30,0,5);
- addLunar3RunesSmallBox(30266, 9075, 563, 555, 2, 2, 7, 30012, 30004, 88, "Coming Soon","Teleports you to Ice Plateau",TDA,31,0,5);
- addLunar3RunesBigBox(30274, 9075, 563, 555, 2, 2, 15, 30012, 30004, 89, "Coming Soon","Teleports players to Ice Plateau",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 = addInterface(29999);
- Interface.totalChildren(80);
- 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 addButton(int i, int j, String name, int W, int H, String S, int AT) {
- RSInterface RSInterface = addInterface(i);
- RSInterface.id = i;
- RSInterface.parentID = i;
- RSInterface.type = 5;
- RSInterface.atActionType = AT;
- RSInterface.contentType = 0;
- RSInterface.opacity = 0;
- RSInterface.hoverType = 52;
- RSInterface.sprite1 = imageLoader(j,name);
- RSInterface.sprite2 = imageLoader(j,name);
- RSInterface.width = W;
- RSInterface.height = H;
- RSInterface.tooltip = S;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment