Guest User

RSInterface

a guest
Dec 13th, 2012
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 215.75 KB | None | 0 0
  1. // Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
  2. // Jad home page: http://www.kpdus.com/jad.html
  3. // Decompiler options: packimports(3)
  4.  
  5. public final class RSInterface {
  6.  
  7.     public void swapInventoryItems(int i, int j) {
  8.         int k = inv[i];
  9.         inv[i] = inv[j];
  10.         inv[j] = k;
  11.         k = invStackSizes[i];
  12.         invStackSizes[i] = invStackSizes[j];
  13.         invStackSizes[j] = k;
  14.     }
  15.  
  16.     public static void unpack(StreamLoader streamLoader, TextDrawingArea textDrawingAreas[], StreamLoader streamLoader_1) {
  17.         fonts = textDrawingAreas;
  18.         RSFont = textDrawingAreas;
  19.         aMRUNodes_238 = new MRUNodes(50000);
  20.         Stream stream = new Stream(streamLoader.getDataForName("data"));
  21.         int i = -1;
  22.         int j = stream.readUnsignedWord();
  23.         interfaceCache = new RSInterface[31000];
  24.         while(stream.currentOffset < stream.buffer.length) {
  25.             int k = stream.readUnsignedWord();
  26.             if(k == 65535) {
  27.                 i = stream.readUnsignedWord();
  28.                 k = stream.readUnsignedWord();
  29.             }
  30.             RSInterface rsInterface = interfaceCache[k] = new RSInterface();
  31.             rsInterface.id = k;
  32.             rsInterface.parentID = i;
  33.             rsInterface.type = stream.readUnsignedByte();
  34.             rsInterface.atActionType = stream.readUnsignedByte();
  35.             rsInterface.contentType = stream.readUnsignedWord();
  36.             rsInterface.width = stream.readUnsignedWord();
  37.             rsInterface.height = stream.readUnsignedWord();
  38.             rsInterface.opacity = (byte) stream.readUnsignedByte();
  39.             rsInterface.hoverType = stream.readUnsignedByte();
  40.             if(rsInterface.hoverType != 0)
  41.                 rsInterface.hoverType = (rsInterface.hoverType - 1 << 8) + stream.readUnsignedByte();
  42.             else
  43.                 rsInterface.hoverType = -1;
  44.             int i1 = stream.readUnsignedByte();
  45.             if(i1 > 0) {
  46.                 rsInterface.valueCompareType = new int[i1];
  47.                 rsInterface.requiredValues = new int[i1];
  48.                 for(int j1 = 0; j1 < i1; j1++) {
  49.                     rsInterface.valueCompareType[j1] = stream.readUnsignedByte();
  50.                     rsInterface.requiredValues[j1] = stream.readUnsignedWord();
  51.                 }
  52.  
  53.             }
  54.             int k1 = stream.readUnsignedByte();
  55.             if(k1 > 0) {
  56.                 rsInterface.valueIndexArray = new int[k1][];
  57.                 for(int l1 = 0; l1 < k1; l1++) {
  58.                     int i3 = stream.readUnsignedWord();
  59.                     rsInterface.valueIndexArray[l1] = new int[i3];
  60.                     for(int l4 = 0; l4 < i3; l4++)
  61.                         rsInterface.valueIndexArray[l1][l4] = stream.readUnsignedWord();
  62.  
  63.                 }
  64.  
  65.             }
  66.             if(rsInterface.type == 0) {
  67.                 rsInterface.drawsTransparent = false;
  68.                 rsInterface.scrollMax = stream.readUnsignedWord();
  69.                 rsInterface.interfaceShown = stream.readUnsignedByte() == 1;
  70.                 int i2 = stream.readUnsignedWord();
  71.                 rsInterface.children = new int[i2];
  72.                 rsInterface.childX = new int[i2];
  73.                 rsInterface.childY = new int[i2];
  74.                 for(int j3 = 0; j3 < i2; j3++) {
  75.                     rsInterface.children[j3] = stream.readUnsignedWord();
  76.                     rsInterface.childX[j3] = stream.readSignedWord();
  77.                     rsInterface.childY[j3] = stream.readSignedWord();
  78.                 }
  79.             }
  80.             if(rsInterface.type == 1) {
  81.                 stream.readUnsignedWord();
  82.                 stream.readUnsignedByte();
  83.             }
  84.             if(rsInterface.type == 2) {
  85.                 rsInterface.inv = new int[rsInterface.width * rsInterface.height];
  86.                 rsInterface.invStackSizes = new int[rsInterface.width * rsInterface.height];
  87.                 rsInterface.aBoolean259 = stream.readUnsignedByte() == 1;
  88.                 rsInterface.isInventoryInterface = stream.readUnsignedByte() == 1;
  89.                 rsInterface.usableItemInterface = stream.readUnsignedByte() == 1;
  90.                 rsInterface.aBoolean235 = stream.readUnsignedByte() == 1;
  91.                 rsInterface.invSpritePadX = stream.readUnsignedByte();
  92.                 rsInterface.invSpritePadY = stream.readUnsignedByte();
  93.                 rsInterface.spritesX = new int[20];
  94.                 rsInterface.spritesY = new int[20];
  95.                 rsInterface.sprites = new Sprite[20];
  96.                 for(int j2 = 0; j2 < 20; j2++) {
  97.                     int k3 = stream.readUnsignedByte();
  98.                     if(k3 == 1) {
  99.                         rsInterface.spritesX[j2] = stream.readSignedWord();
  100.                         rsInterface.spritesY[j2] = stream.readSignedWord();
  101.                         String s1 = stream.readString();
  102.                         if(streamLoader_1 != null && s1.length() > 0) {
  103.                             int i5 = s1.lastIndexOf(",");
  104.                             rsInterface.sprites[j2] = method207(Integer.parseInt(s1.substring(i5 + 1)), streamLoader_1, s1.substring(0, i5));
  105.                         }
  106.                     }
  107.                 }
  108.                 rsInterface.actions = new String[5];
  109.                 for(int l3 = 0; l3 < 5; l3++) {
  110.                     rsInterface.actions[l3] = stream.readString();
  111.                     if(rsInterface.actions[l3].length() == 0)
  112.                         rsInterface.actions[l3] = null;
  113.                     if(rsInterface.parentID == 1644)
  114.                         rsInterface.actions[2] = "Operate";
  115.                     if(rsInterface.parentID == 3824)
  116.                         rsInterface.actions[4] = "Buy X";
  117.                 }
  118.             }
  119.             if(rsInterface.type == 3)
  120.                 rsInterface.aBoolean227 = stream.readUnsignedByte() == 1;
  121.             if(rsInterface.type == 4 || rsInterface.type == 1) {
  122.                 rsInterface.centerText = stream.readUnsignedByte() == 1;
  123.                 int k2 = stream.readUnsignedByte();
  124.                 if(textDrawingAreas != null)
  125.                     rsInterface.textDrawingAreas = textDrawingAreas[k2];
  126.                 rsInterface.textShadow = stream.readUnsignedByte() == 1;
  127.             }
  128.             if(rsInterface.type == 4) {
  129.                 rsInterface.message = stream.readString();
  130.                 rsInterface.aString228 = stream.readString();
  131.             }
  132.             if(rsInterface.type == 1 || rsInterface.type == 3 || rsInterface.type == 4)
  133.                 rsInterface.textColor = stream.readDWord();
  134.             if(rsInterface.type == 3 || rsInterface.type == 4) {
  135.                 rsInterface.anInt219 = stream.readDWord();
  136.                 rsInterface.anInt216 = stream.readDWord();
  137.                 rsInterface.anInt239 = stream.readDWord();
  138.             }
  139.             if(rsInterface.type == 5) {
  140.                 rsInterface.drawsTransparent = false;
  141.                 String s = stream.readString();
  142.                 if(streamLoader_1 != null && s.length() > 0) {
  143.                     int i4 = s.lastIndexOf(",");
  144.                     rsInterface.sprite1 = method207(Integer.parseInt(s.substring(i4 + 1)), streamLoader_1, s.substring(0, i4));
  145.                 }
  146.                 s = stream.readString();
  147.                 if(streamLoader_1 != null && s.length() > 0) {
  148.                     int j4 = s.lastIndexOf(",");
  149.                     rsInterface.sprite2 = method207(Integer.parseInt(s.substring(j4 + 1)), streamLoader_1, s.substring(0, j4));
  150.                 }
  151.             }
  152.             if(rsInterface.type == 6) {
  153.                 int l = stream.readUnsignedByte();
  154.                 if(l != 0) {
  155.                     rsInterface.anInt233 = 1;
  156.                     rsInterface.mediaID = (l - 1 << 8) + stream.readUnsignedByte();
  157.                 }
  158.                 l = stream.readUnsignedByte();
  159.                 if(l != 0) {
  160.                     rsInterface.anInt255 = 1;
  161.                     rsInterface.anInt256 = (l - 1 << 8) + stream.readUnsignedByte();
  162.                 }
  163.                 l = stream.readUnsignedByte();
  164.                 if(l != 0)
  165.                     rsInterface.anInt257 = (l - 1 << 8) + stream.readUnsignedByte();
  166.                 else
  167.                     rsInterface.anInt257 = -1;
  168.                 l = stream.readUnsignedByte();
  169.                 if(l != 0)
  170.                     rsInterface.anInt258 = (l - 1 << 8) + stream.readUnsignedByte();
  171.                 else
  172.                     rsInterface.anInt258 = -1;
  173.                 rsInterface.modelZoom = stream.readUnsignedWord();
  174.                 rsInterface.modelRotation1 = stream.readUnsignedWord();
  175.                 rsInterface.modelRotation2 = stream.readUnsignedWord();
  176.             }
  177.             if(rsInterface.type == 7) {
  178.                 rsInterface.inv = new int[rsInterface.width * rsInterface.height];
  179.                 rsInterface.invStackSizes = new int[rsInterface.width * rsInterface.height];
  180.                 rsInterface.centerText = stream.readUnsignedByte() == 1;
  181.                 int l2 = stream.readUnsignedByte();
  182.                 if(textDrawingAreas != null)
  183.                     rsInterface.textDrawingAreas = textDrawingAreas[l2];
  184.                 rsInterface.textShadow = stream.readUnsignedByte() == 1;
  185.                 rsInterface.textColor = stream.readDWord();
  186.                 rsInterface.invSpritePadX = stream.readSignedWord();
  187.                 rsInterface.invSpritePadY = stream.readSignedWord();
  188.                 rsInterface.isInventoryInterface = stream.readUnsignedByte() == 1;
  189.                 rsInterface.actions = new String[5];
  190.                 for(int k4 = 0; k4 < 5; k4++) {
  191.                     rsInterface.actions[k4] = stream.readString();
  192.                     if(rsInterface.actions[k4].length() == 0)
  193.                         rsInterface.actions[k4] = null;
  194.                 }
  195.  
  196.             }
  197.             if(rsInterface.atActionType == 2 || rsInterface.type == 2) {
  198.                 rsInterface.selectedActionName = stream.readString();
  199.                 rsInterface.spellName = stream.readString();
  200.                 rsInterface.spellUsableOn = stream.readUnsignedWord();
  201.             }
  202.  
  203.             if(rsInterface.type == 8)
  204.                 rsInterface.message = stream.readString();
  205.  
  206.             if(rsInterface.atActionType == 1 || rsInterface.atActionType == 4 || rsInterface.atActionType == 5 || rsInterface.atActionType == 6) {
  207.                 rsInterface.tooltip = stream.readString();
  208.                 if(rsInterface.tooltip.length() == 0) {
  209.                     if(rsInterface.atActionType == 1)
  210.                         rsInterface.tooltip = "Ok";
  211.                     if(rsInterface.atActionType == 4)
  212.                         rsInterface.tooltip = "Select";
  213.                     if(rsInterface.atActionType == 5)
  214.                         rsInterface.tooltip = "Select";
  215.                     if(rsInterface.atActionType == 6)
  216.                         rsInterface.tooltip = "Continue";
  217.                 }
  218.             }
  219.         }
  220.         aClass44 = streamLoader;
  221.         bountyHunter(textDrawingAreas);
  222.         prayerTab(textDrawingAreas);
  223.         PVPInterface(textDrawingAreas);
  224.         PVPInterface2(textDrawingAreas);
  225.         PVPInterface3(textDrawingAreas);
  226.         Trade(textDrawingAreas);
  227.         taskInterface(textDrawingAreas);
  228.         taskInterface2(textDrawingAreas);
  229.         Bank();
  230.         Shop(textDrawingAreas);
  231.         skillTab602(fonts);
  232.         optionTab(textDrawingAreas);
  233.         clanChatTab(textDrawingAreas);
  234.         Sidebar0(textDrawingAreas);
  235.         friendsTab(textDrawingAreas);
  236.         ignoreTab(textDrawingAreas);
  237.         Pestpanel(textDrawingAreas);
  238.         Pestpanel2(textDrawingAreas);
  239.         itemsOnDeath(textDrawingAreas);
  240.         itemsOnDeathDATA(textDrawingAreas);
  241.         EquipmentTab(textDrawingAreas);
  242.         equipmentScreen(textDrawingAreas);
  243.         magicTab(textDrawingAreas);
  244.         ancientMagicTab(textDrawingAreas);
  245.         configureLunar(textDrawingAreas);
  246.         curseTab(textDrawingAreas);
  247.         /**Custom added by Omar**/
  248.         buyRXPShop1(textDrawingAreas);
  249.         playerinfo(textDrawingAreas);
  250.         SpawnT(textDrawingAreas);
  251.         teleportingInterface(textDrawingAreas);
  252.         advisorInterface(textDrawingAreas);
  253.         SkillTab(textDrawingAreas);
  254.         achievement(textDrawingAreas);
  255.         emoteTab();
  256.         netWork(textDrawingAreas);
  257.         skilllevel(textDrawingAreas);
  258.         Classes(textDrawingAreas);
  259.         nonDonatorTab(textDrawingAreas);
  260.         note(textDrawingAreas);
  261.         selectPanelTab(textDrawingAreas);
  262.         selectUserTab(textDrawingAreas);
  263.         selectDonTab(textDrawingAreas);
  264.         selectSupTab(textDrawingAreas);
  265.         selectResTab(textDrawingAreas);
  266.         selectStaffTab(textDrawingAreas);
  267.         aMRUNodes_238 = null;
  268.     }
  269.    
  270.     public static void addHoverText(int id, String text, String tooltip, TextDrawingArea tda[], int idx, int color, boolean center, boolean textShadow, int width) {
  271.         RSInterface rsinterface = addInterface(id);
  272.         rsinterface.id = id;
  273.         rsinterface.parentID = id;
  274.         rsinterface.type = 4;
  275.         rsinterface.atActionType = 1;
  276.         rsinterface.width = width;
  277.         rsinterface.height = 11;
  278.         rsinterface.contentType = 0;
  279.         rsinterface.opacity = 0;
  280.         rsinterface.hoverType = -1;
  281.         rsinterface.centerText = center;
  282.         rsinterface.textShadow = textShadow;
  283.         rsinterface.textDrawingAreas = tda[idx];
  284.         rsinterface.message = text;
  285.         rsinterface.aString228 = "";
  286.         rsinterface.textColor = color;
  287.         rsinterface.anInt219 = 0;
  288.         rsinterface.anInt216 = 0xffffff;
  289.         rsinterface.anInt239 = 0;
  290.         rsinterface.tooltip = tooltip;
  291.     }  
  292.    
  293.     public static void addHoverButton1(int i, String imageName, int j, int width, int height, String text, int hoverOver, int aT) {
  294.         RSInterface tab = addTabInterface(i);
  295.         tab.id = i;
  296.         tab.parentID = i;
  297.         tab.type = 5;
  298.         tab.atActionType = aT;
  299.         tab.opacity = 0;
  300.         tab.hoverType = hoverOver;
  301.         tab.sprite1 = imageLoader(j, imageName);
  302.         tab.sprite2 = imageLoader(j, imageName);
  303.         tab.width = width;
  304.         tab.height = height;
  305.         tab.tooltip = text;
  306.     }
  307.      
  308.     public static void setChildren(int total, RSInterface rsinterface) {
  309.             rsinterface.children = new int[total];
  310.             rsinterface.childX = new int[total];
  311.             rsinterface.childY = new int[total];
  312.     }
  313.    
  314.     public static void Classes(TextDrawingArea[] TDA){
  315.         RSInterface tab = addTabInterface(17050);
  316.         addSprite(17051, 1, "Interfaces/Classes/CHOOSE");
  317.         addHover(17052, 1, 0, 19151, 3, "Interfaces/Classes/MELEE", 134, 180, "Choose Melee As A Class");
  318.         addHover(17053, 1, 0, 19151, 1, "Interfaces/Classes/MAGIC", 134, 180, "Choose Mage As A Class");
  319.         addHover(17054, 1, 0, 19151, 2, "Interfaces/Classes/RANGE", 134, 180, "Choose Range As A Class");
  320.         tab.totalChildren(4);
  321.         tab.child(0, 17051, 10, 5);
  322.         tab.child(1, 17052, 34, 124);
  323.         tab.child(2, 17053, 200, 110);
  324.         tab.child(3, 17054, 334, 124);
  325.         }
  326.    
  327.         public static void achievement(TextDrawingArea[] TDA) {
  328.         RSInterface tab = addTabInterface(19500);
  329.         RSInterface scroll = addTabInterface(19501);
  330.         addText(19502, "pkxile Achievements", TDA, 2, 0xFF9900, false, true);
  331.         addSprite(19503, 0, "Interfaces/Achieve/ACH");
  332.         addSprite(19504, 3, "Interfaces/Achieve/ACH");
  333.         addSprite(19505, 0, "Interfaces/Achieve/ACH");
  334.         addButton(19590, 1, "QuestTab/QUEST", 18, 18, "Swap To Quest Tab", 1);
  335.         tab.totalChildren(6);
  336.         tab.child(0, 19502, 5, 5);
  337.         tab.child(1, 19503, 0, 25);
  338.         tab.child(2, 19504, 0, 28);
  339.         tab.child(3, 19505, 0, 249);
  340.         tab.child(4, 19501, 0, 25);
  341.         tab.child(5, 19590, 165, 3);
  342.         scroll.width = 174; scroll.height = 224; scroll.scrollMax = 1250;
  343.        
  344.         addHoverText(19549, "", "Read", TDA, 1, 0xFF9900, false, true, 150);
  345.         addText(19506, "Player Killing:", TDA, 2, 0xFF9900, false, true);
  346.         addHoverText(19507, "Kill 100 Player's", "View", TDA, 0, 0xff0000, false, true, 150);
  347.         addHoverText(19508, "Kill 145 Player's", "View", TDA, 0, 0xff0000, false, true, 150);
  348.         addHoverText(19509, "Kill 200 Player's", "View", TDA, 0, 0xff0000, false, true, 150);
  349.         addHoverText(19510, "Kill 250 Player's", "View", TDA, 0, 0xff0000, false, true, 150);
  350.         addHoverText(19511, "Kill 325 Player's", "View", TDA, 0, 0xff0000, false, true, 150);
  351.         addHoverText(19512, "Kill 400 Player's", "View", TDA, 0, 0xff0000, false, true, 150);
  352.         addHoverText(19513, "Kill 500 Player's", "View", TDA, 0, 0xff0000, false, true, 150);
  353.         addHoverText(19514, "Kill 1500 Player's", "View", TDA, 0, 0xff0000, false, true, 150);
  354.         addHoverText(19515, "Kill 2000 Player's", "View", TDA, 0, 0xff0000, false, true, 150);
  355.         addText(19516, "Skilling:", TDA, 2, 0xFF9900, false, true);
  356.         addHoverText(19517, "99 Mining", "View", TDA, 0, 0xff0000, false, true, 150);
  357.         addHoverText(19518, "99 Fishing", "View", TDA, 0, 0xff0000, false, true, 150);
  358.         addHoverText(19519, "99 Herblore", "View", TDA, 0, 0xff0000, false, true, 150);
  359.         addHoverText(19520, "99 Thieving", "View", TDA, 0, 0xff0000, false, true, 150);
  360.         addHoverText(19521, "99 Crafting", "View", TDA, 0, 0xff0000, false, true, 150);
  361.         addHoverText(19522, "99 Hunter", "View", TDA, 0, 0xff0000, false, true, 150);
  362.         addHoverText(19523, "99 Summoning", "View", TDA, 0, 0xff0000, false, true, 150);
  363.         addHoverText(19524, "99 Slayer", "View", TDA, 0, 0xff0000, false, true, 150);
  364.         addHoverText(19525, "All stat's 99", "View", TDA, 0, 0xff0000, false, true, 150);
  365.         addText(19526, "Kill Streaks:", TDA, 2, 0xFF9900, false, true);
  366.         addHoverText(19527, "Killstreak of 10", "View", TDA, 0, 0xff0000, false, true, 150);
  367.         addHoverText(19528, "Killstreak of 15", "View", TDA, 0, 0xff0000, false, true, 150);
  368.         addHoverText(19529, "Killstreak of 20", "View", TDA, 0, 0xff0000, false, true, 150);
  369.         addHoverText(19530, "Killstreak of 30", "View", TDA, 0, 0xff0000, false, true, 150);
  370.         addHoverText(19531, "Killstreak of 40", "View", TDA, 0, 0xff0000, false, true, 150);
  371.         addHoverText(19532, "Killstreak of 50", "View", TDA, 0, 0xff0000, false, true, 150);
  372.         addHoverText(19533, "Killstreak of 75", "View", TDA, 0, 0xff0000, false, true, 150);
  373.         addHoverText(19534, "Killstreak of 100", "View", TDA, 0, 0xff0000, false, true, 150);
  374.         addText(19535, "Miscellaneous:", TDA, 2, 0xFF9900, false, true);
  375.         addHoverText(19536, "2 Days Playing", "View", TDA, 0, 0xff0000, false, true, 150);
  376.         addHoverText(19537, "7 Days Playing", "View", TDA, 0, 0xff0000, false, true, 150);
  377.         addHoverText(19538, "10 Days Playing", "View", TDA, 0, 0xff0000, false, true, 150);
  378.         addHoverText(19539, "100 Days Playing", "View", TDA, 0, 0xff0000, false, true, 150);
  379.         addHoverText(19540, "Finish Kony Quest", "View", TDA, 0, 0xff0000, false, true, 150);
  380.         addHoverText(19541, "Earn 1000 DT Points", "View", TDA, 0, 0xff0000, false, true, 150);
  381.         addHoverText(19542, "", "View", TDA, 0, 0xff0000, false, true, 150);
  382.         addHoverText(19543, "", "View", TDA, 0, 0xff0000, false, true, 150);
  383.         addHoverText(19544, "", "View", TDA, 0, 0xff0000, false, true, 150);
  384.         addHoverText(19545, "", "View", TDA, 0, 0xff0000, false, true, 150);
  385.         addHoverText(19546, "", "View", TDA, 0, 0xff0000, false, true, 150);
  386.         addHoverText(19547, "", "View", TDA, 0, 0xff0000, false, true, 150);
  387.         addHoverText(19548, "", "View", TDA, 0, 0xff0000, false, true, 150);
  388.         scroll.totalChildren(44);
  389.         scroll.child(0, 19507, 5, 47);
  390.         scroll.child(1, 19508, 5, 61);
  391.         scroll.child(2, 19509, 5, 75);
  392.         scroll.child(3, 19510, 5, 89);
  393.         scroll.child(4, 19511, 5, 103);
  394.         scroll.child(5, 19506, 5, 20);
  395.         scroll.child(6, 19512, 5, 117);
  396.         scroll.child(7, 19513, 5, 131);
  397.         scroll.child(8, 19514, 5, 145);
  398.         scroll.child(9, 19515, 5, 159);
  399.         scroll.child(10, 19516, 5, 187);
  400.         scroll.child(11, 19517, 5, 215);
  401.         scroll.child(12, 19518, 5, 229);
  402.         scroll.child(13, 19519, 5, 243);
  403.         scroll.child(14, 19520, 5, 257);
  404.         scroll.child(15, 19521, 5, 271);
  405.         scroll.child(16, 19522, 5, 285);
  406.         scroll.child(17, 19523, 5, 299);
  407.         scroll.child(18, 19524, 5, 313);
  408.         scroll.child(19, 19525, 5, 327);
  409.         scroll.child(20, 19526, 5, 350);
  410.         scroll.child(21, 19527, 5, 380);
  411.         scroll.child(22, 19528, 5, 393);
  412.         scroll.child(23, 19529, 5, 411);
  413.         scroll.child(24, 19530, 5, 424);
  414.         scroll.child(25, 19531, 5, 439);
  415.         scroll.child(26, 19532, 5, 453);
  416.         scroll.child(27, 19533, 5, 467);
  417.         scroll.child(28, 19534, 5, 481);
  418.         scroll.child(29, 19535, 5, 509);
  419.         scroll.child(30, 19536, 5, 537);
  420.         scroll.child(31, 19537, 5, 551);
  421.         scroll.child(32, 19538, 5, 565);
  422.         scroll.child(33, 19539, 5, 579);
  423.         scroll.child(34, 19540, 5, 593);
  424.         scroll.child(35, 19541, 5, 607);
  425.         scroll.child(36, 19542, 5, 621);
  426.         scroll.child(37, 19543, 5, 635);
  427.         scroll.child(38, 19544, 5, 649);
  428.         scroll.child(39, 19545, 5, 663);
  429.         scroll.child(40, 19546, 5, 677);
  430.         scroll.child(41, 19547, 5, 691);
  431.         scroll.child(42, 19548, 5, 705);
  432.         scroll.child(43, 19549, 5, 6);
  433.     }  
  434.    
  435.      public static void selectStaffTab(TextDrawingArea[] TDA)
  436.   {
  437.     RSInterface localRSInterface = addTabInterface(11409);
  438.     addText(11558, "@red@Owner @lre@Panel", TDA, 0, 16750899, false, true);
  439.  
  440.     addText(11012, "Santa", TDA, 0, 16750899, false, true);
  441.     addText(11013, "Demon", TDA, 0, 16750899, false, true);
  442.     addText(11014, "Brute", TDA, 0, 16750899, false, true);
  443.     addText(11015, "God", TDA, 0, 16750899, false, true);
  444.     addText(11016, "Fall", TDA, 0, 16750899, false, true);
  445.     addText(11017, "Freeze", TDA, 0, 16750899, false, true);
  446.     addText(11018, "Zombie", TDA, 0, 16750899, false, true);
  447.     addText(11021, "Dance", TDA, 0, 16750899, false, true);
  448.     addText(11022, "Omar", TDA, 0, 16750899, false, true);
  449.     addText(11023, "Stefano", TDA, 0, 16750899, false, true);
  450.     addText(11020, "Staff Zone", TDA, 0, 16750899, false, true);
  451.  
  452.     addSprite(11569, 6, "Interfaces/cPanels/SPRITE");
  453.     addHoverButton(11528, "Interfaces/cPanels/SPRITE", 7, 58, 28, "Santa NPC", 1804, 11529, 1);
  454.     addHoveredButton(11529, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11530);
  455.     addHoverButton(11531, "Interfaces/cPanels/SPRITE", 7, 58, 28, "Demon NPC", 1805, 11532, 1);
  456.     addHoveredButton(11532, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11533);
  457.     addHoverButton(11534, "Interfaces/cPanels/SPRITE", 7, 58, 28, "Brute NPC", 1806, 11535, 1);
  458.     addHoveredButton(11535, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11536);
  459.     addHoverButton(11537, "Interfaces/cPanels/SPRITE", 7, 58, 28, "God Mode", 1807, 11538, 1);
  460.     addHoveredButton(11538, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11539);
  461.     addHoverButton(11540, "Interfaces/cPanels/SPRITE", 7, 58, 28, "Fall", 1808, 11541, 1);
  462.     addHoveredButton(11541, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11542);
  463.     addHoverButton(11543, "Interfaces/cPanels/SPRITE", 7, 58, 28, "Freeze", 1809, 11544, 1);
  464.     addHoveredButton(11544, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11545);
  465.     addHoverButton(11546, "Interfaces/cPanels/SPRITE", 7, 58, 28, "Zombie", 1810, 11547, 1);
  466.     addHoveredButton(11547, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11548);
  467.     addHoverButton(11549, "Interfaces/cPanels/SPRITE", 7, 58, 28, "Dance", 1811, 11550, 1);
  468.     addHoveredButton(11550, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11551);
  469.     addHoverButton(11562, "Interfaces/cPanels/SPRITE", 7, 58, 28, "Omar's Gear", 1812, 11563, 1);
  470.     addHoveredButton(11563, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11564);
  471.     addHoverButton(11559, "Interfaces/cPanels/SPRITE", 7, 58, 28, "Stefano's Gear", 1813, 11560, 1);
  472.     addHoveredButton(11560, "Interfaces/cPanels/SPRITE", 8, 58, 28, 11561);
  473.     addHoverButton(11552, "Interfaces/cPanels/SPRITE", 0, 129, 28, "Staff Zone", -1, 11553, 1);
  474.     addHoveredButton(11553, "Interfaces/cPanels/SPRITE", 1, 129, 28, 11554);
  475.     addHoverButton(11570, "Interfaces/cPanels/SPRITE", 4, 16, 15, "Back", -1, 11571, 1);
  476.     addHoveredButton(11571, "Interfaces/cPanels/SPRITE", 5, 16, 15, 11572);
  477.     localRSInterface.totalChildren(38);
  478.     localRSInterface.child(0, 11558, 46, 5);
  479.     localRSInterface.child(1, 11569, 0, 21);
  480.     localRSInterface.child(2, 11569, 0, 220);
  481.  
  482.     localRSInterface.child(3, 11528, 31, 30);
  483.     localRSInterface.child(4, 11529, 31, 30);
  484.     localRSInterface.child(5, 11531, 99, 30);
  485.     localRSInterface.child(6, 11532, 99, 30);
  486.     localRSInterface.child(7, 11534, 31, 70);
  487.     localRSInterface.child(8, 11535, 31, 70);
  488.     localRSInterface.child(9, 11537, 99, 70);
  489.     localRSInterface.child(10, 11538, 99, 70);
  490.     localRSInterface.child(11, 11540, 31, 110);
  491.     localRSInterface.child(12, 11541, 31, 110);
  492.     localRSInterface.child(13, 11543, 99, 110);
  493.     localRSInterface.child(14, 11544, 99, 110);
  494.     localRSInterface.child(15, 11546, 31, 150);
  495.     localRSInterface.child(16, 11547, 31, 150);
  496.     localRSInterface.child(17, 11549, 99, 150);
  497.     localRSInterface.child(18, 11550, 99, 150);
  498.     localRSInterface.child(19, 11562, 31, 190);
  499.     localRSInterface.child(20, 11563, 31, 190);
  500.     localRSInterface.child(21, 11559, 99, 190);
  501.     localRSInterface.child(22, 11560, 99, 190);
  502.     localRSInterface.child(23, 11552, 29, 230);
  503.     localRSInterface.child(24, 11553, 29, 230);
  504.     localRSInterface.child(25, 13570, 170, 3);
  505.     localRSInterface.child(26, 13571, 170, 3);
  506.  
  507.     localRSInterface.child(27, 11012, 47, 40);
  508.     localRSInterface.child(28, 11013, 110, 40);
  509.     localRSInterface.child(29, 11014, 50, 80);
  510.     localRSInterface.child(30, 11015, 113, 80);
  511.     localRSInterface.child(31, 11016, 44, 120);
  512.     localRSInterface.child(32, 11017, 107, 120);
  513.     localRSInterface.child(33, 11018, 50, 160);
  514.     localRSInterface.child(34, 11021, 113, 160);
  515.     localRSInterface.child(35, 11022, 50, 200);
  516.     localRSInterface.child(36, 11023, 115, 200);
  517.     localRSInterface.child(37, 11020, 68, 238);
  518.   }
  519.  
  520.   public static void selectResTab(TextDrawingArea[] TDA)
  521.   {
  522.     RSInterface localRSInterface = addTabInterface(12409);
  523.     addText(19558, "@yel@Administrator @lre@Panel", TDA, 0, 16750899, false, true);
  524.  
  525.     addText(18012, "Master", TDA, 0, 16750899, false, true);
  526.     addText(18013, "Pure", TDA, 0, 16750899, false, true);
  527.     addText(18014, "Zerk", TDA, 0, 16750899, false, true);
  528.     addText(18015, "Spec", TDA, 0, 16750899, false, true);
  529.     addText(18016, "Pray", TDA, 0, 16750899, false, true);
  530.     addText(18017, "HP", TDA, 0, 16750899, false, true);
  531.     addText(18018, "L337", TDA, 0, 16750899, false, true);
  532.     addText(18021, "Dance", TDA, 0, 16750899, false, true);
  533.     addText(18020, "Staff Zone", TDA, 0, 16750899, false, true);
  534.  
  535.     addSprite(12569, 6, "Interfaces/cPanels/SPRITE");
  536.     addHoverButton(12528, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Master Stats", 1819, 12529, 1);
  537.     addHoveredButton(12529, "Interfaces/cPanels/SPRITE", 3, 58, 38, 12530);
  538.     addHoverButton(12531, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Pure Stats", -1, 12532, 1);
  539.     addHoveredButton(12532, "Interfaces/cPanels/SPRITE", 3, 58, 38, 12533);
  540.     addHoverButton(12534, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Zerk Stats", -1, 12535, 1);
  541.     addHoveredButton(12535, "Interfaces/cPanels/SPRITE", 3, 58, 38, 12536);
  542.     addHoverButton(12537, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Restore Special", -1, 12538, 1);
  543.     addHoveredButton(12538, "Interfaces/cPanels/SPRITE", 3, 58, 38, 12539);
  544.     addHoverButton(12540, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Restore Prayer", -1, 12541, 1);
  545.     addHoveredButton(12541, "Interfaces/cPanels/SPRITE", 3, 58, 38, 12542);
  546.     addHoverButton(12543, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Restore HP", -1, 12544, 1);
  547.     addHoveredButton(12544, "Interfaces/cPanels/SPRITE", 3, 58, 38, 12545);
  548.     addHoverButton(12546, "Interfaces/cPanels/SPRITE", 2, 58, 38, "l337 Stats", -1, 12547, 1);
  549.     addHoveredButton(12547, "Interfaces/cPanels/SPRITE", 3, 58, 38, 12548);
  550.     addHoverButton(12549, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Admin Dance", -1, 12550, 1);
  551.     addHoveredButton(12550, "Interfaces/cPanels/SPRITE", 3, 58, 38, 12551);
  552.     addHoverButton(12552, "Interfaces/cPanels/SPRITE", 0, 129, 28, "Teleport to Staff Zone", -1, 12553, 1);
  553.     addHoveredButton(12553, "Interfaces/cPanels/SPRITE", 1, 129, 28, 12554);
  554.     addHoverButton(12570, "Interfaces/cPanels/SPRITE", 4, 16, 15, "Back", -1, 12571, 1);
  555.     addHoveredButton(12571, "Interfaces/cPanels/SPRITE", 5, 16, 15, 12572);
  556.     localRSInterface.totalChildren(31);
  557.     localRSInterface.child(0, 19558, 22, 5);
  558.     localRSInterface.child(1, 13569, 0, 21);
  559.  
  560.     localRSInterface.child(2, 12528, 31, 40);
  561.     localRSInterface.child(3, 12529, 31, 40);
  562.     localRSInterface.child(4, 12531, 99, 40);
  563.     localRSInterface.child(5, 12532, 99, 40);
  564.     localRSInterface.child(6, 12534, 31, 80);
  565.     localRSInterface.child(7, 12535, 31, 80);
  566.     localRSInterface.child(8, 12537, 99, 80);
  567.     localRSInterface.child(9, 12538, 99, 80);
  568.     localRSInterface.child(10, 12540, 31, 120);
  569.     localRSInterface.child(11, 12541, 31, 120);
  570.     localRSInterface.child(12, 12543, 99, 120);
  571.     localRSInterface.child(13, 12544, 99, 120);
  572.     localRSInterface.child(14, 12546, 31, 160);
  573.     localRSInterface.child(15, 12547, 31, 160);
  574.     localRSInterface.child(16, 12549, 99, 160);
  575.     localRSInterface.child(17, 12550, 99, 160);
  576.     localRSInterface.child(18, 12552, 31, 200);
  577.     localRSInterface.child(19, 12553, 31, 200);
  578.     localRSInterface.child(20, 13570, 170, 3);
  579.     localRSInterface.child(21, 13571, 170, 3);
  580.  
  581.     localRSInterface.child(22, 18012, 42, 55);
  582.     localRSInterface.child(23, 18013, 105, 55);
  583.     localRSInterface.child(24, 18014, 50, 95);
  584.     localRSInterface.child(25, 18015, 115, 95);
  585.     localRSInterface.child(26, 18016, 47, 135);
  586.     localRSInterface.child(27, 18017, 120, 135);
  587.     localRSInterface.child(28, 18018, 39, 175);
  588.     localRSInterface.child(29, 18021, 110, 175);
  589.     localRSInterface.child(30, 18020, 50, 210);
  590.   }
  591.  
  592.  
  593.         public static void SpawnT(TextDrawingArea[] TDA){
  594.             RSInterface Interface = addTabInterface(9460);
  595.             setChildren(12, Interface);
  596.             addSprite(9461, 0, "Shop/BACKGROUND");
  597.             addHover(9462, 3, 0, 8463, 1, "Bank/BANK", 17, 17, "Close Shop!");
  598.             addHovered(9463, 2, "Bank2/BANK", 17, 17, 3827);
  599.             addButton(9466, 1, "Shop/CHECK", 95, 19, "Spawn Max Strength Bonus", 1);
  600.             addButton(9467, 2, "Shop/CHECK", 95, 19, "Spawn Max Mage Bonus", 1);
  601.             addButton(9468, 3, "Shop/CHECK", 95, 19, "Spawn Max Range Bonus", 1);
  602.             addButton(9469, 4, "Shop/CHECK", 95, 19, "Spawn Vengance Runes", 1);
  603.             addButton(9470, 5, "Shop/CHECK", 95, 19, "Spawn Rocktail", 1);
  604.             addButton(9471, 6, "Shop/CHECK", 95, 19, "Spawn Overload", 1);
  605.             addButton(9472, 7, "Shop/CHECK", 95, 19, "Spawn Barrage Runes", 1);
  606.             addButton(9473, 8, "Shop/CHECK", 95, 19, "Spawn Dharok's set", 1);
  607.             addButton(9474, 9, "Shop/CHECK", 95, 19, "Spawn Torva", 1);
  608.             setBounds(9461, 12, 12, 0, Interface);
  609.             setBounds(9462, 471, 22, 1, Interface);
  610.             setBounds(9463, 471, 22, 2, Interface);
  611.             setBounds(9466, 27, 125, 3, Interface);//start
  612.             setBounds(9467, 127, 125, 4, Interface);
  613.             setBounds(9468, 226, 125, 5, Interface);
  614.             setBounds(9469, 27, 205, 6, Interface);
  615.             setBounds(9470, 127, 205, 7, Interface);
  616.             setBounds(9471, 226, 205, 8, Interface);
  617.             setBounds(9472, 27, 285, 9, Interface);
  618.             setBounds(9473, 126, 285, 10, Interface);
  619.             setBounds(9474, 227, 285, 11, Interface);//end
  620.  
  621.         }
  622.  
  623.   public static void selectSupTab(TextDrawingArea[] TDA)
  624.   {
  625.     RSInterface localRSInterface = addTabInterface(13109);
  626.     addText(18558, "@blu@Moderator @lre@Panel", TDA, 0, 16750899, false, true);
  627.  
  628.     addText(19012, "Bank", TDA, 0, 16750899, false, true);
  629.     addText(19013, "Veng", TDA, 0, 16750899, false, true);
  630.     addText(19014, "BRunes", TDA, 0, 16750899, false, true);
  631.     addText(19015, "Spec", TDA, 0, 16750899, false, true);
  632.     addText(19016, "Dance", TDA, 0, 16750899, false, true);
  633.     addText(19017, "Gear", TDA, 0, 16750899, false, true);
  634.     addText(19018, "", TDA, 0, 16750899, false, true);
  635.     addText(19021, "", TDA, 0, 16750899, false, true);
  636.     addText(19020, "Staff Zone", TDA, 0, 16750899, false, true);
  637.  
  638.     addSprite(13569, 6, "Interfaces/cPanels/SPRITE");
  639.     addHoverButton(13528, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Bank", -1, 13529, 1);
  640.     addHoveredButton(13529, "Interfaces/cPanels/SPRITE", 3, 58, 38, 13530);
  641.     addHoverButton(13531, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Veng", -1, 13532, 1);
  642.     addHoveredButton(13532, "Interfaces/cPanels/SPRITE", 3, 58, 38, 13533);
  643.     addHoverButton(13534, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Barrage Runes", -1, 13535, 1);
  644.     addHoveredButton(13535, "Interfaces/cPanels/SPRITE", 3, 58, 38, 13536);
  645.     addHoverButton(13537, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Restore Special", -1, 13538, 1);
  646.     addHoveredButton(13538, "Interfaces/cPanels/SPRITE", 3, 58, 38, 13539);
  647.     addHoverButton(13540, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Mod Dance", -1, 13541, 1);
  648.     addHoveredButton(13541, "Interfaces/cPanels/SPRITE", 3, 58, 38, 13542);
  649.     addHoverButton(13543, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Mod Gear", -1, 13544, 1);
  650.     addHoveredButton(13544, "Interfaces/cPanels/SPRITE", 3, 58, 38, 13545);
  651.     addHoverButton(13546, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Teleport to Slayer Task", -1, 13547, 1);
  652.     addHoveredButton(13547, "Interfaces/cPanels/SPRITE", 3, 58, 38, 13548);
  653.     addHoverButton(13549, "Interfaces/cPanels/SPRITE", 2, 58, 38, "", -1, 13550, 1);
  654.     addHoveredButton(13550, "Interfaces/cPanels/SPRITE", 3, 58, 38, 13551);
  655.     addHoverButton(13552, "Interfaces/cPanels/SPRITE", 0, 129, 28, "Teleport to Staff Zone", -1, 13553, 1);
  656.     addHoveredButton(13553, "Interfaces/cPanels/SPRITE", 1, 129, 28, 13554);
  657.     addHoverButton(13570, "Interfaces/cPanels/SPRITE", 4, 16, 15, "Back", -1, 13571, 1);
  658.     addHoveredButton(13571, "Interfaces/cPanels/SPRITE", 5, 16, 15, 13572);
  659.     localRSInterface.totalChildren(31);
  660.     localRSInterface.child(0, 18558, 22, 5);
  661.     localRSInterface.child(1, 13569, 0, 21);
  662.  
  663.     localRSInterface.child(2, 13528, 31, 40);
  664.     localRSInterface.child(3, 13529, 31, 40);
  665.     localRSInterface.child(4, 13531, 99, 40);
  666.     localRSInterface.child(5, 13532, 99, 40);
  667.     localRSInterface.child(6, 13534, 31, 80);
  668.     localRSInterface.child(7, 13535, 31, 80);
  669.     localRSInterface.child(8, 13537, 99, 80);
  670.     localRSInterface.child(9, 13538, 99, 80);
  671.     localRSInterface.child(10, 13540, 31, 120);
  672.     localRSInterface.child(11, 13541, 31, 120);
  673.     localRSInterface.child(12, 13543, 99, 120);
  674.     localRSInterface.child(13, 13544, 99, 120);
  675.     localRSInterface.child(14, 13546, 31, 160);
  676.     localRSInterface.child(15, 13547, 31, 160);
  677.     localRSInterface.child(16, 13549, 99, 160);
  678.     localRSInterface.child(17, 13550, 99, 160);
  679.     localRSInterface.child(18, 13552, 31, 200);
  680.     localRSInterface.child(19, 13553, 31, 200);
  681.     localRSInterface.child(20, 13570, 170, 3);
  682.     localRSInterface.child(21, 13571, 170, 3);
  683.  
  684.     localRSInterface.child(22, 19012, 48, 55);
  685.     localRSInterface.child(23, 19013, 115, 55);
  686.     localRSInterface.child(24, 19014, 34, 95);
  687.     localRSInterface.child(25, 19015, 112, 95);
  688.     localRSInterface.child(26, 19016, 37, 135);
  689.     localRSInterface.child(27, 19017, 103, 135);
  690.     localRSInterface.child(28, 19018, 50, 175);
  691.     localRSInterface.child(29, 19021, 107, 175);
  692.     localRSInterface.child(30, 19020, 53, 210);
  693.   }
  694.  
  695.   public static void selectDonTab(TextDrawingArea[] TDA)
  696.   {
  697.     RSInterface localRSInterface = addTabInterface(14409);
  698.     addText(14558, "@mag@Donator @lre@Panel", TDA, 0, 16750899, false, true);
  699.     addText(14559, "Ancient", TDA, 0, 16750899, false, true);
  700.     addText(14560, "Overload", TDA, 0, 16750899, false, true);
  701.     addText(14561, "Lunar", TDA, 0, 16750899, false, true);
  702.     addText(14562, "Don. Zone", TDA, 0, 16750899, false, true);
  703.     addText(14563, "Tickets", TDA, 0, 16750899, false, true);
  704.     addText(14564, "Task", TDA, 0, 16750899, false, true);
  705.     addText(14565, "Emote", TDA, 0, 16750899, false, true);
  706.     addText(14566, "DTrain", TDA, 0, 16750899, false, true);
  707.     addText(14567, "Dpoints", TDA, 0, 16750899, false, true);
  708.     addText(14568, "Dcash", TDA, 0, 16750899, false, true);
  709.     addSprite(14569, 6, "Interfaces/cPanels/SPRITE");
  710.     addHoverButton(14528, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Ancient Spell Book", -1, 14529, 1);
  711.     addHoveredButton(14529, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14530);
  712.     addHoverButton(14531, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Overload", -1, 14532, 1);
  713.     addHoveredButton(14532, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14533);
  714.     addHoverButton(14534, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Lunar Magic", -1, 14535, 1);
  715.     addHoveredButton(14535, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14536);
  716.     addHoverButton(14537, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Donator Zone", -1, 14538, 1);
  717.     addHoveredButton(14538, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14539);
  718.     addHoverButton(14540, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Reset Task", -1, 14541, 1);
  719.     addHoveredButton(14541, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14542);
  720.     addHoverButton(14543, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Buy Tickets", -1, 14544, 1);
  721.     addHoveredButton(14544, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14545);
  722.     addHoverButton(14546, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Donator Training Zone", -1, 14547, 1);
  723.     addHoveredButton(14547, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14548);
  724.     addHoverButton(14549, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Random Emote", -1, 14550, 1);
  725.     addHoveredButton(14550, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14551);
  726.     addHoverButton(14552, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Donator Shop", -1, 14553, 1);
  727.     addHoveredButton(14553, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14554);
  728.     addHoverButton(14555, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Donator Daily Cash", 1818, 14556, 1);
  729.     addHoveredButton(14556, "Interfaces/cPanels/SPRITE", 3, 58, 38, 14557);
  730.     addHoverButton(14570, "Interfaces/cPanels/SPRITE", 4, 16, 15, "Back", -1, 14571, 1);
  731.     addHoveredButton(14571, "Interfaces/cPanels/SPRITE", 5, 16, 15, 14572);
  732.     localRSInterface.totalChildren(34);
  733.     localRSInterface.child(0, 14558, 42, 5);
  734.     localRSInterface.child(1, 14569, 0, 21);
  735.     localRSInterface.child(2, 14528, 31, 40);
  736.     localRSInterface.child(3, 14529, 31, 40);
  737.     localRSInterface.child(4, 14531, 99, 40);
  738.     localRSInterface.child(5, 14532, 99, 40);
  739.     localRSInterface.child(6, 14534, 31, 80);
  740.     localRSInterface.child(7, 14535, 31, 80);
  741.     localRSInterface.child(8, 14537, 99, 80);
  742.     localRSInterface.child(9, 14538, 99, 80);
  743.     localRSInterface.child(10, 14540, 31, 120);
  744.     localRSInterface.child(11, 14541, 31, 120);
  745.     localRSInterface.child(12, 14543, 99, 120);
  746.     localRSInterface.child(13, 14544, 99, 120);
  747.     localRSInterface.child(14, 14546, 31, 160);
  748.     localRSInterface.child(15, 14547, 31, 160);
  749.     localRSInterface.child(16, 14549, 99, 160);
  750.     localRSInterface.child(17, 14550, 99, 160);
  751.     localRSInterface.child(18, 14552, 31, 200);
  752.     localRSInterface.child(19, 14553, 31, 200);
  753.     localRSInterface.child(20, 14555, 99, 200);
  754.     localRSInterface.child(21, 14556, 99, 200);
  755.     localRSInterface.child(22, 14570, 160, 3);
  756.     localRSInterface.child(23, 14571, 160, 3);
  757.     localRSInterface.child(24, 14559, 42, 55);
  758.     localRSInterface.child(25, 14560, 108, 55);
  759.     localRSInterface.child(26, 14561, 46, 95);
  760.     localRSInterface.child(27, 14562, 104, 95);
  761.     localRSInterface.child(28, 14563, 113, 135);
  762.     localRSInterface.child(29, 14564, 49, 135);
  763.     localRSInterface.child(30, 14565, 107, 175);
  764.     localRSInterface.child(31, 14566, 42, 175);
  765.     localRSInterface.child(32, 14567, 49, 215);
  766.     localRSInterface.child(33, 14568, 117, 215);
  767.   }
  768.  
  769.   public static void selectUserTab(TextDrawingArea[] TDA)
  770.   {
  771.     RSInterface localRSInterface = addTabInterface(16409);
  772.     addText(16558, "@mon@User @lre@Panel", TDA, 0, 16750899, false, true);
  773.     addText(16559, "Home", TDA, 0, 16750899, false, true);
  774.     addText(16560, "Bosses", TDA, 0, 16750899, false, true);
  775.     addText(16561, "StaffList", TDA, 0, 16750899, false, true);
  776.     addText(16562, "Rules", TDA, 0, 16750899, false, true);
  777.     addText(16563, "Help", TDA, 0, 16750899, false, true);
  778.     addText(16564, "Commands", TDA, 0, 16750899, false, true);
  779.     addText(16565, "  Links", TDA, 0, 16750899, false, true);
  780.     addText(16566, "ResetStats", TDA, 0, 16750899, false, true);
  781.     addText(16567, "Vote!", TDA, 0, 16750899, false, true);
  782.     addText(16568, "Donate!", TDA, 0, 16750899, false, true);
  783.     addSprite(16569, 6, "Interfaces/cPanels/SPRITE");
  784.     addHoverButton(16528, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Home", 1802, 16529, 1);
  785.     addHoveredButton(16529, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16530);
  786.     addHoverButton(16531, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Bosses", 1801, 16532, 1);
  787.     addHoveredButton(16532, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16533);
  788.     addHoverButton(16534, "Interfaces/cPanels/SPRITE", 2, 58, 38, "StaffList", 1803, 16535, 1);
  789.     addHoveredButton(16535, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16536);
  790.     addHoverButton(16537, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Rules", -1, 16538, 1);
  791.     addHoveredButton(16538, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16539);
  792.     addHoverButton(16540, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Commands", 1815, 16541, 1);
  793.     addHoveredButton(16541, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16542);
  794.     addHoverButton(16543, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Help", 1814, 16544, 1);
  795.     addHoveredButton(16544, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16545);
  796.     addHoverButton(16546, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Reset Stats", 1816, 16547, 1);
  797.     addHoveredButton(16547, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16548);
  798.     addHoverButton(16549, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Links", 1817, 16550, 1);
  799.     addHoveredButton(16550, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16551);
  800.     addHoverButton(16552, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Vote", -1, 16553, 1);
  801.     addHoveredButton(16553, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16554);
  802.     addHoverButton(16555, "Interfaces/cPanels/SPRITE", 2, 58, 38, "Donate", -1, 16556, 1);
  803.     addHoveredButton(16556, "Interfaces/cPanels/SPRITE", 3, 58, 38, 16557);
  804.     addHoverButton(16570, "Interfaces/cPanels/SPRITE", 4, 16, 15, "Back", -1, 16571, 1);
  805.     addHoveredButton(16571, "Interfaces/cPanels/SPRITE", 5, 16, 15, 16572);
  806.     localRSInterface.totalChildren(34);
  807.     localRSInterface.child(0, 16558, 50, 5);
  808.     localRSInterface.child(1, 16569, 0, 21);
  809.     localRSInterface.child(2, 16528, 31, 40);
  810.     localRSInterface.child(3, 16529, 31, 40);
  811.     localRSInterface.child(4, 16531, 99, 40);
  812.     localRSInterface.child(5, 16532, 99, 40);
  813.     localRSInterface.child(6, 16534, 31, 80);
  814.     localRSInterface.child(7, 16535, 31, 80);
  815.     localRSInterface.child(8, 16537, 99, 80);
  816.     localRSInterface.child(9, 16538, 99, 80);
  817.     localRSInterface.child(10, 16540, 31, 120);
  818.     localRSInterface.child(11, 16541, 31, 120);
  819.     localRSInterface.child(12, 16543, 99, 120);
  820.     localRSInterface.child(13, 16544, 99, 120);
  821.     localRSInterface.child(14, 16546, 31, 160);
  822.     localRSInterface.child(15, 16547, 31, 160);
  823.     localRSInterface.child(16, 16549, 99, 160);
  824.     localRSInterface.child(17, 16550, 99, 160);
  825.     localRSInterface.child(18, 16552, 31, 200);
  826.     localRSInterface.child(19, 16553, 31, 200);
  827.     localRSInterface.child(20, 16555, 99, 200);
  828.     localRSInterface.child(21, 16556, 99, 200);
  829.     localRSInterface.child(22, 16570, 160, 3);
  830.     localRSInterface.child(23, 16571, 160, 3);
  831.     localRSInterface.child(24, 16559, 44, 55);
  832.     localRSInterface.child(25, 16560, 110, 55);
  833.     localRSInterface.child(26, 16561, 36, 95);
  834.     localRSInterface.child(27, 16562, 111, 95);
  835.     localRSInterface.child(28, 16563, 117, 135);
  836.     localRSInterface.child(29, 16564, 38, 135);
  837.     localRSInterface.child(30, 16565, 105, 175);
  838.     localRSInterface.child(31, 16566, 36, 175);
  839.     localRSInterface.child(32, 16567, 47, 215);
  840.     localRSInterface.child(33, 16568, 111, 215);
  841.   }
  842.  
  843.   public static void selectPanelTab(TextDrawingArea[] TDA)
  844.   {
  845.     RSInterface localRSInterface = addTabInterface(16509);
  846.     addText(16500, "@blu@pkxile @lre@User Panel", TDA, 0, 16750899, false, true);
  847.     addText(16501, "@mon@User @lre@Panel", TDA, 0, 16750899, false, true);
  848.     addText(16502, "@mag@Donator @lre@Panel", TDA, 0, 16750899, false, true);
  849.     addText(16526, "     @cya@Moderator @lre@Panel", TDA, 0, 16750899, false, true);
  850.     addText(16527, "   @yel@Administrator @lre@Panel", TDA, 0, 16750899, false, true);
  851.     addText(16503, "@red@Owner @lre@Panel", TDA, 0, 16750899, false, true);
  852.     addSprite(16519, 6, "Interfaces/cPanels/SPRITE");
  853.     addHoverButton(16510, "Interfaces/cPanels/SPRITE", 0, 129, 28, "User Panel", -1, 16511, 1);
  854.     addHoveredButton(16511, "Interfaces/cPanels/SPRITE", 1, 129, 28, 16512);
  855.     addHoverButton(16513, "Interfaces/cPanels/SPRITE", 0, 129, 28, "Donator Panel", -1, 16514, 1);
  856.     addHoveredButton(16514, "Interfaces/cPanels/SPRITE", 1, 129, 28, 16515);
  857.     addHoverButton(16520, "Interfaces/cPanels/SPRITE", 0, 129, 28, "Moderator Panel", -1, 16521, 1);
  858.     addHoveredButton(16521, "Interfaces/cPanels/SPRITE", 1, 129, 28, 16522);
  859.     addHoverButton(16523, "Interfaces/cPanels/SPRITE", 0, 129, 28, "Administrator Panel", -1, 16524, 1);
  860.     addHoveredButton(16524, "Interfaces/cPanels/SPRITE", 1, 129, 28, 16525);
  861.     addHoverButton(16516, "Interfaces/cPanels/SPRITE", 0, 129, 28, "Owner Panel", -1, 16517, 1);
  862.     addHoveredButton(16517, "Interfaces/cPanels/SPRITE", 1, 129, 28, 16518);
  863.     localRSInterface.totalChildren(17);
  864.     localRSInterface.child(0, 16500, 58, 5);
  865.     localRSInterface.child(1, 16519, 0, 21);
  866.     localRSInterface.child(2, 16510, 29, 40);
  867.     localRSInterface.child(3, 16511, 29, 40);
  868.     localRSInterface.child(4, 16513, 29, 85);
  869.     localRSInterface.child(5, 16514, 29, 85);
  870.     localRSInterface.child(6, 16520, 29, 130);
  871.     localRSInterface.child(7, 16521, 29, 130);
  872.     localRSInterface.child(8, 16523, 29, 175);
  873.     localRSInterface.child(9, 16524, 29, 175);
  874.     localRSInterface.child(10, 16516, 29, 220);
  875.     localRSInterface.child(11, 16517, 29, 220);
  876.     localRSInterface.child(12, 16501, 61, 48);
  877.     localRSInterface.child(13, 16502, 61, 93);
  878.     localRSInterface.child(14, 16526, 37, 138);
  879.     localRSInterface.child(15, 16527, 37, 184);
  880.     localRSInterface.child(16, 16503, 61, 228);
  881.   }
  882.  
  883.         public static void playerinfo(TextDrawingArea[] tda) {
  884.             RSInterface tab = addScreenInterface(26099);
  885.             addSprite(26100, 7, "User/CUSTOM");
  886.             //addHead(26101, 50, 50, 1600);
  887.             addText(26102, "", tda, 2, 0x00FFFF, true, false); //Title of interface - Top Text
  888.             addButton(26103, 8, "Equipment/CUSTOM", "Close");
  889.             addText(26104, "pkxile", 0xff9b00, false, true, 38, tda, 1);
  890.             addText(26105, "Total Kills", 0xff9b00, false, true, 38, tda, 1);
  891.             addText(26106, "Total Deaths", 0xff9b00, false, true, 38, tda, 1);
  892.             addText(26107, "Player Name", 0xff9b00, false, true, 38, tda, 1);
  893.             addText(26108, "Combat Level", 0xff9b00, false, true, 38, tda, 1);
  894.             addText(26109, "Rank", 0xff9b00, false, true, 38, tda, 1);
  895.             addText(26110, "", 0xff9b00, false, true, 38, tda, 0);
  896.             addText(26111, "Donator", tda, 0, 0xff9b00, false, true);
  897.             addText(26112, "Donator Points", tda, 0, 0xff9b00, false, true);
  898.             addText(26113, "Loyalty", tda, 0, 0xff9b00, false, true);
  899.             addButton(26114, 7, "User/Button", "Rest");
  900.             addText(26115, "Black Marks", tda, 0, 0xff9b00, false, true);
  901.             addText(26116, "Muted", tda, 0, 0xff9b00, false, true);
  902.             addText(26117, "PT", tda, 0, 0xff9b00, false, true);
  903.            
  904.             addText(26118, "Highest Killstreak", tda, 0, 0xff9b00, false, true);
  905.             addText(26119, "Current Killstreak", tda, 0, 0xff9b00, false, true);
  906.             addText(26120, "Entitlement Points", tda, 0, 0xff9b00, false, true);
  907.             addText(26121, "", tda, 0, 0xff9b00, false, true);
  908.             addText(26122, "", tda, 0, 0xff9b00, false, true);
  909.             tab.totalChildren(23);
  910.             tab.child(0, 26100, 4, 16); //background
  911.             tab.child(1, 26101, 77, 124); //face showing
  912.             tab.child(2, 26102, 266, 27); //top text
  913.             tab.child(3, 26103, 477, 21); //close button
  914.             tab.child(14, 26114, 198, 239); //resting button
  915.             tab.child(4, 26104, 175, 91); //add texts - Time Online
  916.             tab.child(5, 26105, 175, 115); //add texts - Kills
  917.             tab.child(6, 26106, 175, 143); //add texts - Deaths
  918.             tab.child(7, 26107, 34, 236); //add texts - Player Name
  919.             tab.child(8, 26108, 34, 259); //add texts - Combat
  920.             tab.child(9, 26109, 34, 280); //add texts - Rank
  921.             tab.child(10, 26110, 477, 282); //add texts
  922.            
  923.             tab.child(11, 26111, 325, 45); //Source Points
  924.             tab.child(12, 26112, 325, 65); //Activity Points
  925.             tab.child(13, 26113, 325, 85); //Pking Points
  926.             tab.child(15, 26115, 325, 105); //Boss Points
  927.             tab.child(16, 26116, 325, 125); //Pest Control Points
  928.             tab.child(17, 26117, 325, 145); //Assult points
  929.            
  930.             tab.child(18, 26118, 325, 190); //Gambles Won
  931.             tab.child(19, 26119, 325, 210); //Gambles lost
  932.             tab.child(20, 26120, 325, 230); //Battles Won
  933.             tab.child(21, 26121, 325, 250); //Battles lost
  934.             tab.child(22, 26122, 325, 270); //Npc Kills
  935.         }  
  936.    
  937.     public static void advisorInterface(TextDrawingArea[] TDA) {
  938.     RSInterface Interface = addTabInterface(23600);
  939.  
  940.     setChildren(19, Interface);
  941.     addSprite(23601, 1, "Interfaces/Advisor/BACKGROUND");// Background
  942.     addHover(23602, 3, 0, 23603, 1, "", 17, 17, "Exit");//Close Button
  943.     addHovered(23603, 2, "", 17, 17, 23604);//Close Button
  944.     addText(23605, "Advise based on your current status:", TDA, 1, 0xFFFFFF, false, true);//1st Line
  945.     addText(23606, "Where can I get some free stuff?", TDA, 1, 0xF8C800, false, true);//2nd Line
  946.     addText(23607, "Put your advise or wharever you need to put here.", TDA, 1, 0x60C8F8, false, true);//3rd Line
  947.     addText(23608, "Put your advise or wharever you need to put here.", TDA, 1, 0x60C8F8, false, true);//4th Line
  948.     addText(23609, "Advise based on nearby location:", TDA, 1, 0xFFFFFF, false, true);//5th Line
  949.     addText(23610, "What is this nearby fire useful for?", TDA, 1, 0xF8C800, false, true);//6th Line
  950.     addText(23611, "Put your advise or wharever you need to put here.", TDA, 1, 0x60C8F8, false, true);//7th Line
  951.     addText(23612, "Put your advise or wharever you need to put here.", TDA, 1, 0x60C8F8, false, true);//8th Line
  952.     addText(23613, "Put your advise or wharever you need to put here.", TDA, 1, 0x60C8F8, false, true);//9th Line
  953.     addSprite(23614, 1, "Interfaces/Advisor/IMAGE");//Firemaking Icon
  954.     addText(23615, "What is this nearby bank useful for?", TDA, 1, 0xF8C800, false, true);//10th Line
  955.     addSprite(23616, 2, "Interfaces/Advisor/IMAGE");//Bank Icon
  956.     addText(23617, "Put your advise or wharever you need to put here.", TDA, 1, 0x60C8F8, false, true);//11th Line
  957.     addText(23618, "What is this nearby tree useful for?", TDA, 1, 0xF8C800, false, true);//12th Line
  958.     addSprite(23619, 3, "Interfaces/Advisor/IMAGE");//Woodcutting Icon
  959.     addText(23620, "Put your advise or wharever you need to put here.", TDA, 1, 0x60C8F8, false, true);//13th Line
  960.     addText(23621, "Put your advise or wharever you need to put here.", TDA, 1, 0x60C8F8, false, true);//14th Line
  961.  
  962.     setBounds(23601, 2, 2, 0, Interface);//background
  963.     setBounds(23602, 486, 6, 1, Interface);//Close Button
  964.     setBounds(23605, 32, 35, 2, Interface);//1st Line
  965.     setBounds(23606, 32, 59, 3, Interface);//2nd Line
  966.     setBounds(23607, 32, 74, 4, Interface);//3rd Line
  967.     setBounds(23608, 32, 88, 5, Interface);//4th Line
  968.     setBounds(23609, 32, 112, 6, Interface);//5th Line
  969.     setBounds(23610, 32, 136, 7, Interface);//6th Line
  970.     setBounds(23614, 14, 136, 8, Interface);//Firemaking Icon
  971.     setBounds(23611, 32, 150, 9, Interface);//7th Line
  972.     setBounds(23612, 32, 164, 10, Interface);//8th Line
  973.     setBounds(23613, 32, 178, 11, Interface);//9th Line
  974.     setBounds(23615, 32, 202, 12, Interface);//10th Line
  975.     setBounds(23616, 14, 202, 13, Interface);//Bank Icon
  976.     setBounds(23617, 32, 216, 14, Interface);//11th Line
  977.     setBounds(23618, 32, 240, 15, Interface);//12th Line
  978.     setBounds(23619, 16, 240, 16, Interface);//Woodcutting Icon
  979.     setBounds(23620, 32, 254, 17, Interface);//13th Line
  980.     setBounds(23621, 32, 268, 18, Interface);//14th Line
  981. }
  982.    
  983.         public static void emoteTab() {
  984.         RSInterface tab = addTabInterface(147);
  985.         RSInterface scroll = addTabInterface(148);
  986.         tab.totalChildren(1);
  987.         tab.child(0, 148, 0, 1);
  988.         addButton(168, 0, "/Emotes/EMOTE", "Yes",41,47);
  989.         addButton(169, 1, "/Emotes/EMOTE", "No",41,47);
  990.         addButton(164, 2, "/Emotes/EMOTE", "Bow",41,47);
  991.         addButton(165, 3, "/Emotes/EMOTE", "Angry",41,47);
  992.         addButton(162, 4, "/Emotes/EMOTE", "Think",41,47);
  993.         addButton(163, 5, "/Emotes/EMOTE", "Wave",41,47);
  994.         addButton(13370, 6, "/Emotes/EMOTE", "Shrug",41,47);
  995.         addButton(171, 7, "/Emotes/EMOTE", "Cheer",41,47);
  996.         addButton(167, 8, "/Emotes/EMOTE", "Beckon",41,47);
  997.         addButton(170, 9, "/Emotes/EMOTE", "Laugh",41,47);
  998.         addButton(13366, 10, "/Emotes/EMOTE", "Jump for Joy",41,47);
  999.         addButton(13368, 11, "/Emotes/EMOTE", "Yawn",41,47);
  1000.         addButton(166, 12, "/Emotes/EMOTE", "Dance",41,47);
  1001.         addButton(13363, 13, "/Emotes/EMOTE", "Jig",41,47);
  1002.         addButton(13364, 14, "/Emotes/EMOTE", "Spin",41,47);
  1003.         addButton(13365, 15, "/Emotes/EMOTE", "Headbang",41,47);
  1004.         addButton(161, 16, "/Emotes/EMOTE", "Cry",41,47);
  1005.         addButton(11100, 17, "/Emotes/EMOTE", "Blow kiss",41,47);
  1006.         addButton(13362, 18, "/Emotes/EMOTE", "Panic",41,47);
  1007.         addButton(13367, 19, "/Emotes/EMOTE", "Raspberry",41,47);
  1008.         addButton(172, 20, "/Emotes/EMOTE", "Clap",41,47);
  1009.         addButton(13369, 21, "/Emotes/EMOTE", "Salute",41,47);
  1010.         addButton(13383, 22, "/Emotes/EMOTE", "Goblin Bow",41,47);
  1011.         addButton(13384, 23, "/Emotes/EMOTE", "Goblin Salute",41,47);
  1012.         addButton(667, 24, "/Emotes/EMOTE", "Glass Box",41,47);
  1013.         addButton(6503, 25, "/Emotes/EMOTE", "Climb Rope",41,47);
  1014.         addButton(6506, 26, "/Emotes/EMOTE", "Lean On Air",41,47);
  1015.         addButton(666, 27, "/Emotes/EMOTE", "Glass Wall",41,47);
  1016.         addButton(18464, 28, "/Emotes/EMOTE", "Zombie Walk",41,47);
  1017.         addButton(18465, 29, "/Emotes/EMOTE", "Zombie Dance",41,47);
  1018.         addButton(15166, 30, "/Emotes/EMOTE", "Scared",41,47);
  1019.         addButton(18686, 31, "/Emotes/EMOTE", "Rabbit Hop",41,47);
  1020.         addButton(154, 32, "/Emotes/EMOTE", "Skillcape Emote", 41, 47);
  1021.         addConfigButton(154, 147, 32, 32,"/EMOTES/EMOTE", 41, 47, "Skillcape Emote", 0, 1, 700);
  1022.         scroll.totalChildren(33);
  1023.         scroll.child(0, 168, 10, 7);
  1024.         scroll.child(1, 169, 54, 7);
  1025.         scroll.child(2, 164, 98, 14);
  1026.         scroll.child(3, 165, 137, 7);
  1027.         scroll.child(4, 162, 9, 56);
  1028.         scroll.child(5, 163, 48, 56);
  1029.         scroll.child(6, 13370, 95, 56);
  1030.         scroll.child(7, 171, 137, 56);
  1031.         scroll.child(8, 167, 7, 105);
  1032.         scroll.child(9, 170, 51, 105);
  1033.         scroll.child(10, 13366, 95, 104);
  1034.         scroll.child(11, 13368, 139, 105);
  1035.         scroll.child(12, 166, 6, 154);
  1036.         scroll.child(13, 13363, 50, 154);
  1037.         scroll.child(14, 13364, 90, 154);
  1038.         scroll.child(15, 13365, 135, 154);
  1039.         scroll.child(16, 161, 8, 204);
  1040.         scroll.child(17, 11100, 51, 203);
  1041.         scroll.child(18, 13362, 99, 204);
  1042.         scroll.child(19, 13367, 137, 203);
  1043.         scroll.child(20, 172, 10, 253);
  1044.         scroll.child(21, 13369, 53, 253);
  1045.         scroll.child(22, 13383, 88, 258);
  1046.         scroll.child(23, 13384, 138, 252);
  1047.         scroll.child(24, 667, 2, 303);
  1048.         scroll.child(25, 6503, 49, 302);
  1049.         scroll.child(26, 6506, 93, 302);
  1050.         scroll.child(27, 666, 137, 302);
  1051.         scroll.child(28, 18464, 9, 352);
  1052.         scroll.child(29, 18465, 50, 352);
  1053.         scroll.child(30, 15166, 94, 356);
  1054.         scroll.child(31, 18686, 141, 353);
  1055.         scroll.child(32, 154, 5, 401);
  1056.         scroll.width = 173; scroll.height = 258; scroll.scrollMax = 460;
  1057.     }
  1058.    
  1059.     public static void drawTooltip(int id, String text) {
  1060.         RSInterface rsinterface = addTabInterface(id);
  1061.         rsinterface.parentID = id;
  1062.         rsinterface.type = 0;
  1063.         rsinterface.interfaceShown = true;
  1064.         rsinterface.hoverType = -1;
  1065.         addTooltipBox(id + 1, text);
  1066.         rsinterface.totalChildren(1);
  1067.         rsinterface.child(0, id + 1, 0, 0);
  1068.     }
  1069.    
  1070.         public static void nonDonatorTab(TextDrawingArea[] TDA) {
  1071.     RSInterface Interface = addTabInterface(25900);
  1072.     setChildren(13, Interface);
  1073.     addSprite(25901, 0, "Interfaces/donatorInterface/BACKGROUND");// Background
  1074.     addHover(25902, 3, 0, 23903, 1, "", 17, 17, "Exit");//Close Button
  1075.     addHovered(25903, 2, "", 17, 17, 23904);//Close Button
  1076.     addText(25905, "Donating & Benifits", TDA, 2, 0xFF9900, false, true);//Title
  1077.     addSprite(25906, 0, "Interfaces/donatorInterface/BANNER");// Background
  1078.     addHoverButton(25907, "Interfaces/donatorInterface/BUTTON", 0, 180, 25, "Go to Forums", -1, 25908, 1);//Done Button
  1079.     addHoveredButton(25908, "Interfaces/donatorInterface/BUTTON", 1, 180, 25, 25909);//Done Button Hover
  1080.     addText(25910, "Go to forums", TDA, 1, 0xFFFFFF, false, true);//Done Button Text
  1081.     addHoverButton(25911, "Interfaces/donatorInterface/BUTTON", 0, 180, 25, "Go to Forums", -1, 25912, 1);//Done Button
  1082.     addHoveredButton(25912, "Interfaces/donatorInterface/BUTTON", 1, 180, 25, 25913);//Done Button Hover
  1083.     addText(25914, "Donate", TDA, 1, 0xFFFFFF, false, true);//Done Button Text
  1084.     addText(25915, "There are lots of benifits from donating to pkxile!", TDA, 0, 0xFFFFFF, false, true);//Text1
  1085.     addText(25916, "There is a donation page that you can find on the forums which contains everything that", TDA, 0, 0xFFFFFF, false, true);//Text2
  1086.     addText(25917, "you need to know about the benifits you can gain from donating to pkxile! - Enjoy", TDA, 0, 0xFFFFFF, false, true);//Text3
  1087.  
  1088.     setBounds(25901, 12, 45, 0, Interface);//background
  1089.     setBounds(25902, 476, 53, 1, Interface);//Close Button
  1090.     setBounds(25905, 199, 54, 2, Interface);//Title
  1091.     setBounds(25906, 19, 126, 3, Interface);//Image
  1092.     setBounds(25907, 65, 259, 4, Interface);//BUTTON1
  1093.     setBounds(25908, 65, 259, 5, Interface);//BUTTON1HOVER
  1094.     setBounds(25910, 115, 264, 6, Interface);//Button 1 Text
  1095.     setBounds(25911, 265, 259, 7, Interface);//BUTTON2
  1096.     setBounds(25912, 265, 259, 8, Interface);//BUTTON2HOVER
  1097.     setBounds(25914, 335, 264, 9, Interface);//Button 2 Text
  1098.     setBounds(25915, 36, 83, 10, Interface);//Text1
  1099.     setBounds(25916, 36, 95, 11, Interface);//Text2
  1100.     setBounds(25917, 36, 107, 12, Interface);//Text3
  1101.  
  1102.     }      
  1103.    
  1104.             public static void SkillTab(TextDrawingArea[] tda){
  1105.         RSInterface Interface = addInterface(25000);
  1106.             int offset = 0;
  1107.             setChildren(36, Interface);
  1108.             addButton(25001, 0, "/Skill/SKILL", 188, 27, "View @or1@Attack", 1);
  1109.             addText(25002, "Attack", tda, 2, 0xFFcc33, false, true);
  1110.             addText(25003, "Level: 99/99", tda, 0, 0xFFcc33, false, true);
  1111.             addText(25004, "Exp: 14000000", tda, 0, 0xFFcc33, false, true);
  1112.             setBounds(25001, 1, 1, 0, Interface);
  1113.             setBounds(25002, 33, 6, 1, Interface);
  1114.             setBounds(25003, 108, 3, 2, Interface);
  1115.             setBounds(25004, 108, 13, 3, Interface);
  1116.             offset += 2;
  1117.             addButton(25005, 1, "/Skill/SKILL", 188, 27, "View @or1@Defence", 1);
  1118.             addText(25006, "Defence", tda, 2, 0xFFcc33, false, true);
  1119.             addText(25007, "Level: 99/99", tda, 0, 0xFFcc33, false, true);
  1120.             addText(25008, "Exp: 14000000", tda, 0, 0xFFcc33, false, true);
  1121.             setBounds(25005, 1, 28+offset, 4, Interface);
  1122.             setBounds(25006, 33, 33+offset, 5, Interface);
  1123.             setBounds(25007, 108, 30+offset, 6, Interface);
  1124.             setBounds(25008, 108, 40+offset, 7, Interface);
  1125.             offset += 2;
  1126.             addButton(25009, 2, "/Skill/SKILL", 188, 27, "View @or1@Strength", 1);
  1127.             addText(25010, "Strength", tda, 2, 0xFFcc33, false, true);
  1128.             addText(25011, "Level: 99/99", tda, 0, 0xFFcc33, false, true);
  1129.             addText(25012, "Exp: 14000000", tda, 0, 0xFFcc33, false, true);
  1130.             setBounds(25009, 1, 55+offset, 8, Interface);
  1131.             setBounds(25010, 33, 60+offset, 9, Interface);
  1132.             setBounds(25011, 108, 57+offset, 10, Interface);
  1133.             setBounds(25012, 108, 67+offset, 11, Interface);
  1134.             offset += 2;
  1135.             addButton(25013, 3, "/Skill/SKILL", 188, 27, "View @or1@Hitpoints", 1);
  1136.             addText(25014, "Hitpoints", tda, 2, 0xFFcc33, false, true);
  1137.             addText(25015, "Level: 99/99", tda, 0, 0xFFcc33, false, true);
  1138.             addText(25016, "Exp: 14000000", tda, 0, 0xFFcc33, false, true);
  1139.             setBounds(25013, 1, 82+offset, 12, Interface);
  1140.             setBounds(25014, 33, 87+offset, 13, Interface);
  1141.             setBounds(25015, 108, 84+offset, 14, Interface);
  1142.             setBounds(25016, 108, 94+offset, 15, Interface);
  1143.             offset += 2;
  1144.             addButton(25017, 4, "/Skill/SKILL", 188, 27, "View @or1@Ranged", 1);
  1145.             addText(25018, "Ranged", tda, 2, 0xFFcc33, false, true);
  1146.             addText(25019, "Level: 99/99", tda, 0, 0xFFcc33, false, true);
  1147.             addText(25020, "Exp: 14000000", tda, 0, 0xFFcc33, false, true);
  1148.             setBounds(25017, 1, 109+offset, 16, Interface);
  1149.             setBounds(25018, 33, 114+offset, 17, Interface);
  1150.             setBounds(25019, 108, 111+offset, 18, Interface);
  1151.             setBounds(25020, 108, 121+offset, 19, Interface);
  1152.             offset += 2;
  1153.             addButton(25021, 5, "/Skill/SKILL", 188, 27, "View @or1@Prayer", 1);
  1154.             addText(25022, "Prayer", tda, 2, 0xFFcc33, false, true);
  1155.             addText(25023, "Level: 99/99", tda, 0, 0xFFcc33, false, true);
  1156.             addText(25024, "Exp: 14000000", tda, 0, 0xFFcc33, false, true);
  1157.             setBounds(25021, 1, 136+offset, 20, Interface);
  1158.             setBounds(25022, 33, 141+offset, 21, Interface);
  1159.             setBounds(25023, 108, 138+offset, 22, Interface);
  1160.             setBounds(25024, 108, 148+offset, 23, Interface);
  1161.             offset += 2;
  1162.             addButton(25025, 6, "/Skill/SKILL", 188, 27, "View @or1@Magic", 1);
  1163.             addText(25026, "Magic", tda, 2, 0xFFcc33, false, true);
  1164.             addText(25027, "Level: 99/99", tda, 0, 0xFFcc33, false, true);
  1165.             addText(25028, "Exp: 14000000", tda, 0, 0xFFcc33, false, true);
  1166.             setBounds(25025, 1, 163+offset, 24, Interface);
  1167.             setBounds(25026, 33, 168+offset, 25, Interface);
  1168.             setBounds(25027, 108, 165+offset, 26, Interface);
  1169.             setBounds(25028, 108, 175+offset, 27, Interface);
  1170.             offset += 2;
  1171.             addButton(25029, 7, "/Skill/SKILL", 188, 27, "View @or1@Pking", 1);
  1172.             addText(25030, "Pking", tda, 2, 0xFFcc33, false, true);
  1173.             addText(25031, "Level: 99/99", tda, 0, 0xFFcc33, false, true);
  1174.             addText(25032, "Exp: 14000000", tda, 0, 0xFFcc33, false, true);
  1175.             setBounds(25029, 1, 190+offset, 28, Interface);
  1176.             setBounds(25030, 33, 195+offset, 29, Interface);
  1177.             setBounds(25031, 108, 192+offset, 30, Interface);
  1178.             setBounds(25032, 108, 202+offset, 31, Interface);
  1179.             offset += 2;
  1180.             addButton(25033, 8, "/Skill/SKILL", 188, 27, "View @or1@Total", 1);
  1181.             addText(25034, "Total", tda, 2, 0xFFcc33, false, true);
  1182.             addText(25035, "Level: 792", tda, 0, 0xFFcc33, false, true);
  1183.             addText(25036, "Exp: 112000000", tda, 0, 0xFFcc33, false, true);
  1184.             setBounds(25033, 1, 217+offset, 32, Interface);
  1185.             setBounds(25034, 33, 222+offset, 33, Interface);
  1186.             setBounds(25035, 108, 219+offset, 34, Interface);
  1187.             setBounds(25036, 108, 229+offset, 35, Interface);
  1188.     }
  1189.    
  1190.     public static void bountyHunter(TextDrawingArea[] tda) {
  1191.         RSInterface tab = addInterface(25347);
  1192.         tab.totalChildren(5);
  1193.  
  1194.         addText(25349, "Target:", 0xffcccc, false, true, -1, tda, 1);
  1195.         addText(25350, "Username Here", 0xff6666, true, true, -1, tda, 2);
  1196.         addText(25351, "Pickup penalty:", 0xff3333, false, true, -1, tda, 1);
  1197.         addText(25352, "Sec here", 0xff6666, true, true, -1, tda, 2);
  1198.        
  1199.         addTransparentSprite(25348, 0, "Other/bh");//128
  1200.  
  1201.         tab.child(0,25348,332,3);
  1202.         tab.child(1,25349,340,13);
  1203.         tab.child(2,25350,452,13);
  1204.         tab.child(3,25351,340,34);
  1205.         tab.child(4,25352,470,34);
  1206.     }
  1207.    
  1208.             public static void teleportingInterface(TextDrawingArea[] wid) {
  1209.         RSInterface rsinterface = addTabInterface(24000);
  1210.         rsinterface.totalChildren(31);
  1211.         addSprite(24001, 0, "Interfaces/teleporting/SPRITE");
  1212.         //corp beast (first row)
  1213.         addHoverButton(24002, "Interfaces/teleporting/SPRITE", 1, 60, 76, "Teleport", -1, 24003, 1);
  1214.         addHoveredButton(24003, "Interfaces/teleporting/SPRITE", 2, 60, 76, 24004);
  1215.         //nomad (first row)
  1216.         addHoverButton(24005, "Interfaces/teleporting/SPRITE", 3, 60, 76, "Teleport", -1, 24006, 1);
  1217.         addHoveredButton(24006, "Interfaces/teleporting/SPRITE", 4, 60, 76, 24007);
  1218.         //sea troll queen (first row)
  1219.         addHoverButton(24008, "Interfaces/teleporting/SPRITE", 5, 60, 76, "Teleport", -1, 24009, 1);
  1220.         addHoveredButton(24009, "Interfaces/teleporting/SPRITE", 6, 60, 76, 24010);
  1221.         //mole (second row)
  1222.         addHoverButton(24011, "Interfaces/teleporting/SPRITE", 7, 60, 76, "Teleport", -1, 24012, 1);
  1223.         addHoveredButton(24012, "Interfaces/teleporting/SPRITE", 8, 60, 76, 24013);
  1224.         //Kq (second row)
  1225.         addHoverButton(24014, "Interfaces/teleporting/SPRITE", 9, 60, 76, "Teleport", -1, 24015, 1);
  1226.         addHoveredButton(24015, "Interfaces/teleporting/SPRITE", 10, 60, 76, 24016);
  1227.         //Kbd (second row)
  1228.         addHoverButton(24017, "Interfaces/teleporting/SPRITE", 11, 60, 76, "Teleport", -1, 24018, 1);
  1229.         addHoveredButton(24018, "Interfaces/teleporting/SPRITE", 12, 60, 76, 24019);
  1230.         //next (third row)
  1231.         addHoverButton(24020, "Interfaces/teleporting/SPRITE", 19, 131, 24, "Next Screen", -1, 24021, 1);
  1232.         addHoveredButton(24021, "Interfaces/teleporting/SPRITE", 20, 131, 24, 24022);
  1233.         //close (third row)
  1234.         addHoverButton(24023, "Interfaces/teleporting/SPRITE", 21, 131, 24, "Close Screen", -1, 24024, 3);
  1235.         addHoveredButton(24024, "Interfaces/teleporting/SPRITE", 22, 131, 24, 24025);
  1236.         //previous (third row)
  1237.         addHoverButton(24026, "Interfaces/teleporting/SPRITE", 17, 131, 24, "Previous Screen", -1, 24027, 1);
  1238.         addHoveredButton(24027, "Interfaces/teleporting/SPRITE", 18, 131, 24, 24028);
  1239.         //dagg kings (fourth row)
  1240.         addHoverButton(24029, "Interfaces/teleporting/SPRITE", 13, 60, 76, "Teleport", -1, 24030, 1);
  1241.         addHoveredButton(24030, "Interfaces/teleporting/SPRITE", 14, 60, 76, 24031);
  1242.         //Everlast (fourth row)
  1243.         addHoverButton(24032, "Interfaces/teleporting/SPRITE", 15, 60, 76, "Teleport", -1, 24033, 1);
  1244.         addHoveredButton(24033, "Interfaces/teleporting/SPRITE", 16, 60, 76, 24034);
  1245.         //Tormented demon(fourth row)
  1246.         addHoverButton(24035, "Interfaces/teleporting/SPRITE", 23, 60, 76, "Teleport", -1, 24036, 1);
  1247.         addHoveredButton(24036, "Interfaces/teleporting/SPRITE", 24, 60, 76, 24037);
  1248.         //barrelchest (fifth row)
  1249.         addHoverButton(24038, "Interfaces/teleporting/SPRITE", 25, 60, 76, "Teleport", -1, 24039, 1);
  1250.         addHoveredButton(24039, "Interfaces/teleporting/SPRITE", 26, 60, 76, 24040);
  1251.         //Godwars (fifth row)
  1252.         addHoverButton(24041, "Interfaces/teleporting/SPRITE", 27, 60, 76, "Teleport", -1, 24042, 1);
  1253.         addHoveredButton(24042, "Interfaces/teleporting/SPRITE", 28, 60, 76, 24043);
  1254.         //Ice queen (fifth row)
  1255.         addHoverButton(24044, "Interfaces/teleporting/SPRITE", 29, 60, 76, "Teleport", -1, 24045, 1);
  1256.         addHoveredButton(24045, "Interfaces/teleporting/SPRITE", 30, 60, 76, 24046);
  1257.         //main screen
  1258.         rsinterface.child(0, 24001, 2, 2);
  1259.         //first row
  1260.         rsinterface.child(1, 24002, 35, 35);
  1261.         rsinterface.child(2, 24003, 35, 35);
  1262.         rsinterface.child(3, 24005, 35, 124);
  1263.         rsinterface.child(4, 24006, 35, 124);
  1264.         rsinterface.child(5, 24008, 35, 219);
  1265.         rsinterface.child(6, 24009, 35, 219);
  1266.         //second row
  1267.         rsinterface.child(7, 24011, 110, 35);
  1268.         rsinterface.child(8, 24012, 110, 35);
  1269.         rsinterface.child(9, 24014, 110, 124);
  1270.         rsinterface.child(10, 24015, 110, 124);
  1271.         rsinterface.child(11, 24017, 110, 219);
  1272.         rsinterface.child(12, 24018, 110, 219);
  1273.         //third row
  1274.         rsinterface.child(13, 24020, 185, 35);
  1275.         rsinterface.child(14, 24021, 185, 35);
  1276.         rsinterface.child(15, 24023, 185, 124);
  1277.         rsinterface.child(16, 24024, 185, 124);
  1278.         rsinterface.child(17, 24026, 185, 219);
  1279.         rsinterface.child(18, 24027, 185, 219);
  1280.         //fourth row
  1281.         rsinterface.child(19, 24029, 350, 35);
  1282.         rsinterface.child(20, 24030, 350, 35);
  1283.         rsinterface.child(21, 24032, 350, 124);
  1284.         rsinterface.child(22, 24033, 350, 124);
  1285.         rsinterface.child(23, 24035, 350, 219);
  1286.         rsinterface.child(24, 24036, 350, 219);
  1287.         //fifth row
  1288.         rsinterface.child(25, 24038, 425, 35);
  1289.         rsinterface.child(26, 24039, 425, 35);
  1290.         rsinterface.child(27, 24041, 425, 124);
  1291.         rsinterface.child(28, 24042, 425, 124);
  1292.         rsinterface.child(29, 24044, 425, 219);
  1293.         rsinterface.child(30, 24045, 425, 219);
  1294.     }
  1295.    
  1296.     public static void dominionTower(TextDrawingArea[] tda) {
  1297.         RSInterface tab = addInterface(26347);
  1298.         tab.totalChildren(5);
  1299.         addText(26349, "Dominion Tower", 0xffcccc, false, true, -1, tda, 1);
  1300.         addText(26350, "Wave: ", 0xff6666, true, true, -1, tda, 2);
  1301.         addText(26351, "Monsters Left:", 0xff3333, false, true, -1, tda, 1);
  1302.         addText(26352, "Dominion Points:", 0xff6666, true, true, -1, tda, 2);
  1303.         tab.child(0,26348,332,3);
  1304.         tab.child(1,26349,340,13);
  1305.         tab.child(2,26350,452,13);
  1306.         tab.child(3,26351,340,34);
  1307.         tab.child(4,26352,470,34);
  1308.     }
  1309.    
  1310.     public static void addAura(int i) {
  1311.         RSInterface rsinterface = interfaceCache[i] = new RSInterface();
  1312.         rsinterface.actions = new String[5];
  1313.         rsinterface.spritesX = new int[20];
  1314.         rsinterface.invStackSizes = new int[30];
  1315.         rsinterface.inv = new int[30];
  1316.         rsinterface.spritesY = new int[20];
  1317.         rsinterface.children = new int[0];
  1318.         rsinterface.childX = new int[0];
  1319.         rsinterface.childY = new int[0];
  1320.         rsinterface.spritesY[0] = 0;
  1321.         rsinterface.spritesY[1] = 0;
  1322.         rsinterface.spritesY[2] = 0;
  1323.         rsinterface.spritesY[3] = 0;
  1324.         rsinterface.spritesY[4] = 0;
  1325.         rsinterface.spritesY[5] = 0;
  1326.         rsinterface.spritesY[6] = 0;
  1327.         rsinterface.spritesY[7] = 0;
  1328.         rsinterface.spritesY[8] = 0;
  1329.         rsinterface.spritesY[9] = 0;
  1330.         rsinterface.spritesY[10] = 0;
  1331.         rsinterface.spritesY[11] = 0;
  1332.         rsinterface.spritesY[12] = 0;
  1333.         rsinterface.spritesY[13] = 0;
  1334.         rsinterface.spritesY[14] = 0;
  1335.         rsinterface.spritesY[15] = 0;
  1336.         rsinterface.spritesY[16] = 0;
  1337.         rsinterface.spritesY[17] = 0;
  1338.         rsinterface.spritesY[18] = 0;
  1339.         rsinterface.spritesY[19] = 0;
  1340.         rsinterface.invStackSizes[0] = 0;
  1341.         rsinterface.invStackSizes[1] = 0;
  1342.         rsinterface.invStackSizes[2] = 0;
  1343.         rsinterface.invStackSizes[3] = 0;
  1344.         rsinterface.invStackSizes[4] = 0;
  1345.         rsinterface.invStackSizes[5] = 0;
  1346.         rsinterface.invStackSizes[6] = 0;
  1347.         rsinterface.invStackSizes[7] = 0;
  1348.         rsinterface.invStackSizes[8] = 0;
  1349.         rsinterface.invStackSizes[9] = 0;
  1350.         rsinterface.invStackSizes[10] = 0;
  1351.         rsinterface.invStackSizes[11] = 0;
  1352.         rsinterface.invStackSizes[12] = 0;
  1353.         rsinterface.invStackSizes[13] = 0;
  1354.         rsinterface.invStackSizes[14] = 0;
  1355.         rsinterface.invStackSizes[15] = 0;
  1356.         rsinterface.invStackSizes[16] = 0;
  1357.         rsinterface.invStackSizes[17] = 0;
  1358.         rsinterface.invStackSizes[18] = 0;
  1359.         rsinterface.invStackSizes[19] = 0;
  1360.         rsinterface.invStackSizes[20] = 0;
  1361.         rsinterface.invStackSizes[21] = 0;
  1362.         rsinterface.invStackSizes[22] = 0;
  1363.         rsinterface.invStackSizes[23] = 0;
  1364.         rsinterface.invStackSizes[24] = 0;
  1365.         rsinterface.invStackSizes[25] = 0;
  1366.         rsinterface.invStackSizes[26] = 0;
  1367.         rsinterface.invStackSizes[27] = 0;
  1368.         rsinterface.invStackSizes[28] = 0;
  1369.         rsinterface.invStackSizes[29] = 0;
  1370.         rsinterface.inv[0] = 0;
  1371.         rsinterface.inv[1] = 0;
  1372.         rsinterface.inv[2] = 0;
  1373.         rsinterface.inv[3] = 0;
  1374.         rsinterface.inv[4] = 0;
  1375.         rsinterface.inv[5] = 0;
  1376.         rsinterface.inv[6] = 0;
  1377.         rsinterface.inv[7] = 0;
  1378.         rsinterface.inv[8] = 0;
  1379.         rsinterface.inv[9] = 0;
  1380.         rsinterface.inv[10] = 0;
  1381.         rsinterface.inv[11] = 0;
  1382.         rsinterface.inv[12] = 0;
  1383.         rsinterface.inv[13] = 0;
  1384.         rsinterface.inv[14] = 0;
  1385.         rsinterface.inv[15] = 0;
  1386.         rsinterface.inv[16] = 0;
  1387.         rsinterface.inv[17] = 0;
  1388.         rsinterface.inv[18] = 0;
  1389.         rsinterface.inv[19] = 0;
  1390.         rsinterface.inv[20] = 0;
  1391.         rsinterface.inv[21] = 0;
  1392.         rsinterface.inv[22] = 0;
  1393.         rsinterface.inv[23] = 0;
  1394.         rsinterface.inv[24] = 0;
  1395.         rsinterface.inv[25] = 0;
  1396.         rsinterface.inv[26] = 0;
  1397.         rsinterface.inv[27] = 0;
  1398.         rsinterface.inv[28] = 0;
  1399.         rsinterface.inv[29] = 0;
  1400.         rsinterface.spritesX[0] = 0;
  1401.         rsinterface.spritesX[1] = 0;
  1402.         rsinterface.spritesX[2] = 0;
  1403.         rsinterface.spritesX[3] = 0;
  1404.         rsinterface.spritesX[4] = 0;
  1405.         rsinterface.spritesX[5] = 0;
  1406.         rsinterface.spritesX[6] = 0;
  1407.         rsinterface.spritesX[7] = 0;
  1408.         rsinterface.spritesX[8] = 0;
  1409.         rsinterface.spritesX[9] = 0;
  1410.         rsinterface.spritesX[10] = 0;
  1411.         rsinterface.spritesX[11] = 0;
  1412.         rsinterface.spritesX[12] = 0;
  1413.         rsinterface.spritesX[13] = 0;
  1414.         rsinterface.spritesX[14] = 0;
  1415.         rsinterface.spritesX[15] = 0;
  1416.         rsinterface.spritesX[16] = 0;
  1417.         rsinterface.spritesX[17] = 0;
  1418.         rsinterface.spritesX[18] = 0;
  1419.         rsinterface.spritesX[19] = 0;
  1420.         rsinterface.actions[0] = null;
  1421.         rsinterface.actions[1] = null;
  1422.         rsinterface.actions[2] = null;
  1423.         rsinterface.actions[3] = null;
  1424.         rsinterface.actions[4] = null;
  1425.         rsinterface.centerText = false;
  1426.         rsinterface.aBoolean227 = false;
  1427.         rsinterface.aBoolean235 = false;
  1428.         rsinterface.usableItemInterface = false;
  1429.         rsinterface.isInventoryInterface = false;
  1430.         rsinterface.aBoolean259 = true;
  1431.         rsinterface.interfaceShown = false;
  1432.         rsinterface.textShadow = false;
  1433.         rsinterface.width = 6;
  1434.         rsinterface.hoverType = -1;
  1435.         rsinterface.invSpritePadX = 24;
  1436.         rsinterface.parentID = 10794;
  1437.         rsinterface.invSpritePadY = 24;
  1438.         rsinterface.type = 2;
  1439.         rsinterface.height = 5;
  1440.     }
  1441.    
  1442.         public static void addHovered(int i, int j, String s, int k, int l, int i1)
  1443.     {
  1444.         RSInterface rsinterface = addTabInterface(i);
  1445.         rsinterface.parentID = i;
  1446.         rsinterface.id = i;
  1447.         rsinterface.type = 0;
  1448.         rsinterface.atActionType = 0;
  1449.         rsinterface.width = k;
  1450.         rsinterface.height = l;
  1451.         rsinterface.interfaceShown = true;
  1452.         rsinterface.hoverType = -1;
  1453.         addSprite(i1, j, s);
  1454.         setChildren(1, rsinterface);
  1455.         setBounds(i1, 0, 0, 0, rsinterface);
  1456.     }
  1457.  
  1458.  public static void addToggleButton(int id, int sprite, int setconfig, int width, int height, String s)
  1459.     {
  1460.         RSInterface rsi = addInterface(id);
  1461.         rsi.sprite1 = CustomSpriteLoader(sprite, "");
  1462.         rsi.sprite2 = CustomSpriteLoader(sprite, "a");
  1463.         rsi.requiredValues = new int[1];
  1464.         rsi.requiredValues[0] = 1;
  1465.         rsi.valueCompareType = new int[1];
  1466.         rsi.valueCompareType[0] = 1;
  1467.         rsi.valueIndexArray = new int[1][3];
  1468.         rsi.valueIndexArray[0][0] = 5;
  1469.         rsi.valueIndexArray[0][1] = setconfig;
  1470.         rsi.valueIndexArray[0][2] = 0;
  1471.         rsi.atActionType = 4;
  1472.         rsi.width = width;
  1473.         rsi.hoverType = -1;
  1474.         rsi.parentID = id;
  1475.         rsi.id = id;
  1476.         rsi.type = 5;
  1477.         rsi.height = height;
  1478.         rsi.tooltip = s;
  1479.     }
  1480.    
  1481.     public static void netWork(TextDrawingArea[] TDA) {
  1482.         RSInterface Interface = addTabInterface(14233);
  1483.         setChildren(7, Interface);
  1484.         addSprite(14501, 1, "NETWORK/BACKGROUND");
  1485.         addHover(14502, 3, 0, 16003, 1, "NETWORK/CLOSE", 17, 17, "Exit");
  1486.         addHovered(14503, 2, "NETWORK/CLOSE", 17, 17, 14004);
  1487.         addText(14506, "Like us, Follow us, Watch us.", 0xFFFF00, false, true, 52,TDA, 1);
  1488.         addButton(14512, 1, "NETWORK/ITEM", 64, 64, "@or1@ Facebook", 1);
  1489.         addButton(14513, 2, "NETWORK/ITEM", 64, 64, "@or1@ Twitter", 1);
  1490.         addButton(14514, 3, "NETWORK/ITEM", 64, 64, "@or1@ Youtube", 1);
  1491.         setBounds(14501, 55, 95, 0, Interface);
  1492.         setBounds(14502, 424, 104, 1, Interface);
  1493.         setBounds(14503, 424, 104, 2, Interface);
  1494.         setBounds(14506, 185, 104, 3, Interface);
  1495.         setBounds(14512, 110, 165, 4, Interface);
  1496.         setBounds(14513, 230, 165, 5, Interface);
  1497.         setBounds(14514, 350, 165, 6, Interface);
  1498.     }
  1499.    
  1500.                     public static void note(TextDrawingArea[] tda) {
  1501.         RSInterface tab = addTabInterface(173);
  1502.         addSprite(17351, 0, "NOTE");
  1503.         addHoverButton(17352, "NOTE", 1, 200, 30, "Add note", -1, 17353, 1);
  1504.         addHoveredButton(17353, "NOTE", 2, 200, 30, 17354);
  1505.         addHoverButton(17355, "NOTE", 3, 200, 30, "Delete all", -1, 17356, 1);
  1506.         addHoveredButton(17356, "NOTE", 4, 200, 30, 17357);
  1507.         addText(13800, "No notes", tda, 0, 0xffffff, false, true);
  1508.         addText(17801, "", tda, 0, 0xff981f, false, true);
  1509.         addText(17812, "", tda, 0, 0xff981f, false, true);
  1510.         addText(17813, "", tda, 0, 0xff981f, false, true);
  1511.         addText(17814, "", tda, 0, 0xff981f, false, true);
  1512.         tab.totalChildren(6);
  1513.         tab.child(0, 17351, 0, 0);
  1514.         tab.child(1, 17352, 8, 2);
  1515.         tab.child(2, 17353, 8, 2);
  1516.         tab.child(3, 17355, 165, 237);
  1517.         tab.child(4, 17356, 165, 237);
  1518.         tab.child(5, 13800, 68, 78);
  1519.         tab = addTabInterface(14000);
  1520.         tab.width = 474;
  1521.         tab.height = 213;
  1522.         tab.scrollMax = 305;
  1523.         for(int i = 14001; i <= 14030; i++){
  1524.         addText(i, "", tda, 1, 0xffffff, false, true);
  1525.         }
  1526.         tab.totalChildren(30);
  1527.         int Child = 0;
  1528.         int Y = 5;
  1529.         for(int i = 14001; i <= 14030; i++){
  1530.         tab.child(Child, i, 248, Y);
  1531.         Child++;
  1532.         Y += 13;
  1533.         }
  1534.     }
  1535.    
  1536.     public static void buyRXPShop1(TextDrawingArea[] tda) {
  1537.     RSInterface tab = addTabInterface(21850);
  1538.         RSInterface scroll = addTabInterface(21849);
  1539.     addSprite(21851, 45, "Interfaces/rxShop/SPRITE");
  1540.     addSprite(21852, 11, "Interfaces/rxShop/SPRITE");
  1541.     addSprite(21853, 12, "Interfaces/rxShop/SPRITE");
  1542.         addHoverButton1(21854, "Interfaces/rxShop/SPRITE", 9, 102, 19, "Home", 21855, 1);
  1543.         addHoveredButton(21855, "Interfaces/rxShop/SPRITE", 10, 102, 19, 21856);
  1544.         addHoverButton1(21859, "Interfaces/rxShop/SPRITE", 32, 218, 61, "Auras", 21860, 1);
  1545.         addHoveredButton(21860, "Interfaces/rxShop/SPRITE", 33, 218, 61, 21861);
  1546.         addHoverButton1(21865, "Interfaces/rxShop/SPRITE", 34, 218, 61, "Title", 21866, 1);
  1547.         addHoveredButton(21866, "Interfaces/rxShop/SPRITE", 35, 218, 61, 21867);
  1548.         addHoverButton1(21868, "Interfaces/rxShop/SPRITE", 36, 218, 61, "Re-Colour", 21869, 1);
  1549.         addHoveredButton(21869, "Interfaces/rxShop/SPRITE", 37, 218, 61, 21870);
  1550.     addSprite(21857, 14, "Interfaces/rxShop/SPRITE");
  1551.     addSprite(21858, 1, "Interfaces/rxShop/SPRITE");
  1552. //buttons
  1553.         addHoverButton1(21862, "Interfaces/rxShop/SPRITE", 21, 120, 28, "Auras", 21863, 1);
  1554.         addHoveredButton(21863, "Interfaces/rxShop/SPRITE", 22, 120, 28, 21864);
  1555.         addHoverButton1(21871, "Interfaces/rxShop/SPRITE", 23, 120, 28, "Pets", 21872, 1);
  1556.         addHoveredButton(21872, "Interfaces/rxShop/SPRITE", 24, 120, 28, 21873);
  1557.         addHoverButton1(21874, "Interfaces/rxShop/SPRITE", 51, 120, 28, "Items", 21875, 1);
  1558.         addHoveredButton(21875, "Interfaces/rxShop/SPRITE", 52, 120, 28, 21876);
  1559.         addHoverButton1(21877, "Interfaces/rxShop/SPRITE", 25, 120, 28, "Titles", 21878, 1);
  1560.         addHoveredButton(21878, "Interfaces/rxShop/SPRITE", 26, 120, 28, 21880);
  1561.         addHoverButton1(21881, "Interfaces/rxShop/SPRITE", 49, 120, 28, "Features", 21882, 1);
  1562.         addHoveredButton(21882, "Interfaces/rxShop/SPRITE", 50, 120, 28, 21883);
  1563.         addHoverButton1(21897, "Interfaces/rxShop/SPRITE", 38, 120, 28, "Special Offers", 21898, 1);
  1564.         addHoveredButton(21898, "Interfaces/rxShop/SPRITE", 39, 120, 28, 21899);
  1565.         addHoverButton1(21907, "Interfaces/rxShop/SPRITE", 40, 78, 16, "Favourites", 21908, 1);
  1566.         addHoveredButton(21908, "Interfaces/rxShop/SPRITE", 41, 78, 16, 21909);
  1567.         addHoverButton1(21911, "Interfaces/rxShop/SPRITE", 42, 15, 13, "Close", 21912, 1);
  1568.         addHoveredButton(21912, "Interfaces/rxShop/SPRITE", 43, 15, 13, 21913);
  1569. //text
  1570.     addText(21884, "RXP Shop", tda, 0, 0xe6be78, false, true);
  1571.     addText(21885, "My RXP:", tda, 0, 0xe6be78, false, true);
  1572.     addText(21886, "1,000", tda, 0, 0xe6be78, false, true);
  1573.     addText(21887, "Now Viewing: Titles", tda, 0, 0xe6be78, false, true);
  1574.     addText(21888, "Auras", tda, 0, 0xe6be78, false, true);
  1575.     addText(21889, "Pets", tda, 0, 0xe6be78, false, true);
  1576.     addText(21890, "Items", tda, 0, 0xe6be78, false, true);
  1577.     addText(21891, "Titles", tda, 0, 0xe6be78, false, true);
  1578.     addText(21892, "Features", tda, 0, 0xe6be78, false, true);
  1579.     addText(21893, "", tda, 0, 0xe6be78, false, true);
  1580.     addText(21894, "Vampyrism", tda, 0, 0xe6be78, false, true);
  1581.     addText(21895, "23,000 Points", tda, 0, 0xe6be78, false, true);
  1582.     addText(21896, "See More", tda, 0, 0xe6be78, false, true);
  1583.     addText(21900, "Special Offers", tda, 0, 0xe6be78, false, true);
  1584.     addText(21901, "Disappear", tda, 0, 0xe6be78, false, true);
  1585.     addText(21902, "12,000 Points", tda, 0, 0xe6be78, false, true);
  1586.     addText(21903, "See More", tda, 0, 0xe6be78, false, true);
  1587.     addText(21904, "King", tda, 0, 0xe6be78, false, true);
  1588.     addText(21905, "25,000 Points", tda, 0, 0xe6be78, false, true);
  1589.     addText(21906, "See More", tda, 0, 0xe6be78, false, true);
  1590.     addText(21910, "Edit Titles", tda, 0, 0xe6be78, false, true);
  1591. //
  1592. //title buttons & backs
  1593.     addSprite(21914, 44, "Interfaces/rxShop/SPRITE");
  1594.     addText(21915, "Sir", tda, 0, 0xe6be78, false, true);
  1595.     addText(21916, "1,000 Points", tda, 0, 0xdb9000, false, true);
  1596.     addText(21917, "Buy", tda, 0, 0xe6be78, false, true);
  1597.         addHoverButton1(21923, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21924, 1);
  1598.         addHoveredButton(21924, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21925);
  1599.     addSprite(21922, 44, "Interfaces/rxShop/SPRITE");
  1600.         addHoverButton1(21926, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21927, 1);
  1601.         addHoveredButton(21927, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21928);
  1602.         addHoverButton1(21929, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21930, 1);
  1603.         addHoveredButton(21930, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21931);
  1604.         addHoverButton1(21932, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21933, 1);
  1605.         addHoveredButton(21933, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21934);
  1606.         addHoverButton1(21935, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21936, 1);
  1607.         addHoveredButton(21936, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21937);
  1608.         addHoverButton1(21938, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21939, 1);
  1609.         addHoveredButton(21939, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21940);
  1610.     //3rd row below
  1611.         addHoverButton1(21941, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21942, 1);
  1612.         addHoveredButton(21942, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21943);
  1613.         addHoverButton1(21944, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21945, 1);
  1614.         addHoveredButton(21945, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21946);
  1615.         addHoverButton1(21947, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21948, 1);
  1616.         addHoveredButton(21948, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21949);
  1617.     //4th row
  1618.         addHoverButton1(21950, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21951, 1);
  1619.         addHoveredButton(21951, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21952);
  1620.         addHoverButton1(21953, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21954, 1);
  1621.         addHoveredButton(21954, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21955);
  1622.         addHoverButton1(21956, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21957, 1);
  1623.         addHoveredButton(21957, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21958);
  1624.     //5th
  1625.         addHoverButton1(21959, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21960, 1);
  1626.         addHoveredButton(21960, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21961);
  1627.         addHoverButton1(21962, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21963, 1);
  1628.         addHoveredButton(21963, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21964);
  1629.         addHoverButton1(21965, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21966, 1);
  1630.         addHoveredButton(21966, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21967);
  1631.     //6th
  1632.         addHoverButton1(21968, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21969, 1);
  1633.         addHoveredButton(21969, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21970);
  1634.         addHoverButton1(21971, "Interfaces/rxShop/SPRITE", 8, 56, 11, "Buy", 21972, 1);
  1635.         addHoveredButton(21972, "Interfaces/rxShop/SPRITE", 7, 56, 11, 21973);
  1636.     //start titles & price
  1637.     addText(21919, "Lord", tda, 0, 0xe6be78, false, true);
  1638.     addText(21920, "1,000 Points", tda, 0, 0xdb9000, false, true);
  1639.     addText(21921, "Buy", tda, 0, 0xe6be78, false, true);
  1640.     addText(21974, "Duderino", tda, 0, 0xe6be78, false, true);
  1641.     addText(21975, "4,000 Points", tda, 0, 0xdb9000, false, true);
  1642.     addText(21976, "Lionheart", tda, 0, 0xe6be78, false, true);
  1643.     addText(21977, "4,000 Points", tda, 0, 0xdb9000, false, true);
  1644.     addText(21978, "Crusader", tda, 0, 0xe6be78, false, true);
  1645.     addText(21979, "8,000 Points", tda, 0, 0xdb9000, false, true);
  1646.     addText(21980, "HellRaiser", tda, 0, 0xe6be78, false, true);
  1647.     addText(21981, "8,000 Points", tda, 0, 0xdb9000, false, true);
  1648.     addText(21982, "Desperado", tda, 0, 0xe6be78, false, true);
  1649.     addText(21843, "10,000 Points", tda, 0, 0xdb9000, false, true);
  1650.     addText(21842, "Baron", tda, 0, 0xe6be78, false, true);
  1651.     addText(21985, "10,000 Points", tda, 0, 0xdb9000, false, true);
  1652.     addText(21986, "Count", tda, 0, 0xe6be78, false, true);
  1653.     addText(21987, "15,000 Points", tda, 0, 0xdb9000, false, true);
  1654.     addText(21988, "Overlord", tda, 0, 0xe6be78, false, true);
  1655.     addText(21989, "15,000 Points", tda, 0, 0xdb9000, false, true);
  1656.     addText(21990, "Bandito", tda, 0, 0xe6be78, false, true);
  1657.     addText(21991, "20,000 Points", tda, 0, 0xdb9000, false, true);
  1658.     addText(21992, "Duke", tda, 0, 0xe6be78, false, true);
  1659.     addText(21993, "20,000 Points", tda, 0, 0xdb9000, false, true);
  1660.     addText(21994, "Big Cheese", tda, 0, 0xe6be78, false, true);
  1661.     addText(21995, "25,000 Points", tda, 0, 0xdb9000, false, true);
  1662.     addText(21996, "Bigwig", tda, 0, 0xe6be78, false, true);
  1663.     addText(21848, "25,000 Points", tda, 0, 0xdb9000, false, true);
  1664.     addText(21847, "King", tda, 0, 0xe6be78, false, true);
  1665.     addText(21846, "25,000 Points", tda, 0, 0xdb9000, false, true);
  1666.     addText(21845, "Wunderkin", tda, 0, 0xe6be78, false, true);
  1667.     addText(21844, "50,000 Points", tda, 0, 0xdb9000, false, true);
  1668.     addText(21841, "Bigwig", tda, 0, 0xe6be78, false, true);
  1669.     addText(21840, "25,000 Points", tda, 0, 0xdb9000, false, true);
  1670.     addText(21839, "Master", tda, 0, 0xe6be78, false, true);
  1671.     addText(21838, "75,000 Points", tda, 0, 0xdb9000, false, true);
  1672.     //
  1673. //
  1674.     tab.totalChildren(27);
  1675.     tab.child(0, 21851, 1, 1);
  1676.     //tab.child(1, 21854, 15, 50);
  1677.     //tab.child(2, 21855, 15, 50);
  1678.     /*tab.child(3, 21859, 360, 90);
  1679.     tab.child(4, 21860, 360, 90);
  1680.     tab.child(5, 21865, 360, 155);
  1681.     tab.child(6, 21866, 360, 155);
  1682.     tab.child(7, 21868, 360, 220);
  1683.     tab.child(8, 21869, 360, 220);*/
  1684.     tab.child(1, 21862, 9, 96);
  1685.     tab.child(2, 21863, 9, 96);
  1686.     tab.child(3, 21871, 9, 126);
  1687.     tab.child(4, 21872, 9, 126);
  1688.     tab.child(5, 21874, 9, 156);
  1689.     tab.child(6, 21875, 9, 156);
  1690.     tab.child(7, 21877, 9, 186);
  1691.     tab.child(8, 21878, 9, 186);
  1692.     tab.child(9, 21881, 9, 216);
  1693.     tab.child(10, 21882, 9, 216);
  1694.     tab.child(11, 21884, 45, 55);
  1695.     tab.child(12, 21885, 16, 79);
  1696.     tab.child(13, 21886, 75, 79);
  1697.     tab.child(14, 21887, 132, 53);
  1698.     tab.child(15, 21888, 84, 104);
  1699.     tab.child(16, 21889, 80, 134);
  1700.     tab.child(17, 21890, 90, 164);
  1701.     tab.child(18, 21891, 87, 194);
  1702.     tab.child(19, 21892, 68, 224);
  1703.     tab.child(20, 21893, 145, 104);
  1704.     tab.child(21, 21911, 491, 6);
  1705.     tab.child(22, 21912, 491, 6);
  1706.     tab.child(23, 21897, 9, 246);
  1707.     tab.child(24, 21898, 9, 246);
  1708.     tab.child(25, 21900, 39, 254);
  1709.     tab.child(26, 21849, 130, 70);
  1710.  
  1711.     scroll.totalChildren(102);
  1712.     scroll.child(0, 21914, 5, 5);
  1713.     scroll.child(1, 21915, 65, 13);
  1714.     scroll.child(2, 21916, 45, 24);
  1715.     scroll.child(3, 21923, 54, 38);
  1716.     scroll.child(4, 21924, 54, 38);
  1717.     scroll.child(5, 21922, 122, 5);
  1718.     scroll.child(6, 21917, 72, 38);
  1719.     scroll.child(7, 21922, 240, 5);
  1720.     scroll.child(8, 21922, 5, 55);
  1721.     scroll.child(9, 21922, 122, 55);
  1722.     scroll.child(10, 21922, 240, 55);
  1723.     scroll.child(11, 21922, 5, 105);
  1724.     scroll.child(12, 21922, 122, 105);
  1725.     scroll.child(13, 21922, 240, 105);
  1726.     scroll.child(14, 21922, 5, 155);
  1727.     scroll.child(15, 21922, 122, 155);
  1728.     scroll.child(16, 21922, 240, 155);
  1729.     scroll.child(17, 21922, 5, 205);
  1730.     scroll.child(18, 21922, 122, 205);
  1731.     scroll.child(19, 21922, 240, 205);
  1732.     scroll.child(20, 21922, 5, 255);
  1733.     scroll.child(21, 21922, 122, 255);
  1734.     scroll.child(22, 21926, 172, 38);
  1735.     scroll.child(23, 21927, 172, 38);
  1736.     scroll.child(24, 21929, 290, 38);
  1737.     scroll.child(25, 21930, 290, 38);
  1738.     //2ndrow
  1739.     scroll.child(26, 21932, 54, 88);
  1740.     scroll.child(27, 21933, 54, 88);
  1741.     scroll.child(28, 21935, 172, 88);
  1742.     scroll.child(29, 21936, 172, 88);
  1743.     scroll.child(30, 21938, 290, 88);
  1744.     scroll.child(31, 21939, 290, 88);
  1745.     //3rdrow
  1746.     scroll.child(32, 21941, 54, 138);
  1747.     scroll.child(33, 21942, 54, 138);
  1748.     scroll.child(34, 21944, 172, 138);
  1749.     scroll.child(35, 21945, 172, 138);
  1750.     scroll.child(36, 21947, 290, 138);
  1751.     scroll.child(37, 21948, 290, 138);
  1752.     //4throw
  1753.     scroll.child(38, 21950, 54, 188);
  1754.     scroll.child(39, 21951, 54, 188);
  1755.     scroll.child(40, 21953, 172, 188);
  1756.     scroll.child(41, 21954, 172, 188);
  1757.     scroll.child(42, 21956, 290, 188);
  1758.     scroll.child(43, 21957, 290, 188);
  1759.     //5th
  1760.     scroll.child(44, 21959, 54, 238);
  1761.     scroll.child(45, 21960, 54, 238);
  1762.     scroll.child(46, 21962, 172, 238);
  1763.     scroll.child(47, 21963, 172, 238);
  1764.     scroll.child(48, 21965, 290, 238);
  1765.     scroll.child(49, 21966, 290, 238);
  1766.     //6th
  1767.     scroll.child(50, 21968, 54, 288);
  1768.     scroll.child(51, 21969, 54, 288);
  1769.     scroll.child(52, 21971, 172, 288);
  1770.     scroll.child(53, 21972, 172, 288);
  1771. //buy 1st column
  1772.     scroll.child(54, 21917, 72, 88);
  1773.     scroll.child(55, 21917, 72, 138);
  1774.     scroll.child(56, 21917, 72, 188);
  1775.     scroll.child(57, 21917, 72, 238);
  1776.     scroll.child(58, 21917, 72, 288);
  1777. //2nd column
  1778.     scroll.child(59, 21917, 190, 38);
  1779.     scroll.child(60, 21917, 190, 88);
  1780.     scroll.child(61, 21917, 190, 138);
  1781.     scroll.child(62, 21917, 190, 188);
  1782.     scroll.child(63, 21917, 190, 238);
  1783.     scroll.child(64, 21917, 190, 288);
  1784. //3rd column buy
  1785.     scroll.child(65, 21917, 308, 38);
  1786.     scroll.child(66, 21917, 308, 88);
  1787.     scroll.child(67, 21917, 308, 138);
  1788.     scroll.child(68, 21917, 308, 188);
  1789.     scroll.child(69, 21917, 308, 238);
  1790.     //start titles
  1791.         //1st row
  1792.     scroll.child(70, 21919, 183, 13);
  1793.     scroll.child(71, 21920, 163, 24);
  1794.     scroll.child(72, 21974, 293, 13);
  1795.     scroll.child(73, 21975, 281, 24);
  1796.         //2nd row
  1797.     scroll.child(74, 21976, 57, 63);
  1798.     scroll.child(75, 21977, 45, 74);
  1799.     scroll.child(76, 21978, 174, 63);
  1800.     scroll.child(77, 21979, 163, 74);
  1801.     scroll.child(78, 21980, 289, 63);
  1802.     scroll.child(79, 21981, 281, 74);
  1803.         //3rd row
  1804.     scroll.child(80, 21982, 52, 113);
  1805.     scroll.child(81, 21843, 43, 124);
  1806.     scroll.child(82, 21842, 183, 113);
  1807.     scroll.child(83, 21985, 161, 124);
  1808.     scroll.child(84, 21986, 301, 113);
  1809.     scroll.child(85, 21987, 279, 124);
  1810.         //4th row
  1811.     scroll.child(86, 21988, 57, 163);
  1812.     scroll.child(87, 21989, 45, 174);
  1813.     scroll.child(88, 21990, 178, 163);
  1814.     scroll.child(89, 21991, 160, 174);
  1815.     scroll.child(90, 21992, 301, 163);
  1816.     scroll.child(91, 21993, 278, 174);
  1817.         //5th row
  1818.     scroll.child(92, 21994, 52, 213);
  1819.     scroll.child(93, 21848, 42, 224);
  1820.     scroll.child(94, 21841, 179, 213);
  1821.     scroll.child(95, 21840, 160, 224);
  1822.     scroll.child(96, 21847, 301, 213);
  1823.     scroll.child(97, 21846, 278, 224);
  1824.         //6th row
  1825.     scroll.child(98, 21845, 52, 263);
  1826.     scroll.child(99, 21844, 42, 274);
  1827.     scroll.child(100, 21839, 180, 263);
  1828.     scroll.child(101, 21838, 160, 274);
  1829.     scroll.width = 357;
  1830.     scroll.height = 238;
  1831.     scroll.scrollMax = 302;
  1832. //UPDATE TOTAL CHILDS!
  1833.     }
  1834.  
  1835.    
  1836.     public static void magicTab(TextDrawingArea[] tda) {
  1837.         RSInterface tab = addTabInterface(1151);
  1838.         RSInterface homeHover = addTabInterface(1196);
  1839.         RSInterface spellButtons = interfaceCache[12424];
  1840.         spellButtons.scrollMax = 0; spellButtons.height = 260; spellButtons.width = 190;
  1841.         int[] spellButton = {
  1842.             1196, 1199, 1206, 1215, 1224, 1231, 1240, 1249, 1258, 1267, 1274, 1283, 1573,
  1843.             1290, 1299, 1308, 1315, 1324, 1333, 1340, 1349, 1358, 1367, 1374, 1381, 1388,
  1844.             1397, 1404, 1583, 12038, 1414, 1421, 1430, 1437, 1446, 1453, 1460, 1469, 15878,
  1845.             1602, 1613, 1624, 7456, 1478, 1485, 1494, 1503, 1512, 1521, 1530, 1544, 1553,
  1846.             1563, 1593, 1635, 12426, 12436, 12446, 12456, 6004, 18471
  1847.         };
  1848.         tab.totalChildren(63);
  1849.         tab.child(0, 12424, 13, 24);
  1850.         for(int i1 = 0; i1 < spellButton.length; i1++) {
  1851.             int yPos = i1 > 34 ? 8 : 183;
  1852.             tab.child(1, 1195, 13, 24);
  1853.             tab.child(i1 + 2, spellButton[i1], 5, yPos);
  1854.             addButton(1195, 1, "Magic/Home", "Cast @gre@Home Teleport");
  1855.             RSInterface homeButton = interfaceCache[1195];
  1856.             homeButton.hoverType = 1196;
  1857.         }
  1858.         for(int i2 = 0; i2 < spellButton.length; i2++) {
  1859.             if(i2 < 60)
  1860.                 spellButtons.childX[i2] = spellButtons.childX[i2] + 24;
  1861.             if(i2 == 6 || i2 == 12 || i2 == 19 || i2 == 35 || i2 == 41 || i2 == 44 || i2 == 49 || i2 == 51)
  1862.                 spellButtons.childX[i2] = 0;
  1863.             spellButtons.childY[6] = 24; spellButtons.childY[12] = 48;
  1864.             spellButtons.childY[19] = 72; spellButtons.childY[49] = 96;
  1865.             spellButtons.childY[44] = 120; spellButtons.childY[51] = 144;
  1866.             spellButtons.childY[35] = 170; spellButtons.childY[41] = 192;
  1867.         }
  1868.         homeHover.interfaceShown = true;
  1869.         addText(1197, "Level 0: Home Teleport", tda, 1, 0xFE981F, true, true);
  1870.         RSInterface homeLevel = interfaceCache[1197]; homeLevel.width = 174; homeLevel.height = 68;
  1871.         addText(1198, "A teleport which requires no", tda, 0, 0xAF6A1A, true, true);
  1872.         addText(18998, "runes and no required level that", tda, 0, 0xAF6A1A, true, true);
  1873.         addText(18999, "teleports you to the main land.", tda, 0, 0xAF6A1A, true, true);
  1874.         homeHover.totalChildren(4);
  1875.         homeHover.child(0, 1197, 3, 4);
  1876.         homeHover.child(1, 1198, 91, 23);
  1877.         homeHover.child(2, 18998, 91, 34);
  1878.         homeHover.child(3, 18999, 91, 45);
  1879.     }
  1880.    
  1881.     public static void ancientMagicTab(TextDrawingArea[] tda) {
  1882.         RSInterface tab = addInterface(12855);
  1883.         addButton(12856, 1, "Magic/Home", "Cast @gre@Home Teleport");
  1884.         RSInterface homeButton = interfaceCache[12856];
  1885.         homeButton.hoverType = 1196;
  1886.         int[] itfChildren = {
  1887.             12856, 12939, 12987, 13035, 12901, 12861, 13045, 12963, 13011, 13053, 12919, 12881, 13061,
  1888.             12951, 12999, 13069, 12911, 12871, 13079, 12975, 13023, 13087, 12929, 12891, 13095, 1196,
  1889.             12940, 12988, 13036, 12902, 12862, 13046, 12964, 13012, 13054, 12920, 12882, 13062, 12952,
  1890.             13000, 13070, 12912, 12872, 13080, 12976, 13024, 13088, 12930, 12892, 13096
  1891.         };
  1892.         tab.totalChildren(itfChildren.length);
  1893.         for(int i1 = 0, xPos = 18, yPos = 8; i1 < itfChildren.length; i1++, xPos += 45) {
  1894.             if(xPos > 175) {
  1895.                 xPos = 18; yPos += 28;
  1896.             }
  1897.             if(i1 < 25)
  1898.                 tab.child(i1, itfChildren[i1], xPos, yPos);
  1899.             if(i1 > 24) {
  1900.                 yPos = i1 < 41 ? 181 : 1;
  1901.                 tab.child(i1, itfChildren[i1], 4, yPos);
  1902.             }
  1903.         }
  1904.     }
  1905.    
  1906.     public static void drawBlackBox(int xPos, int yPos) {
  1907.         DrawingArea.drawPixels(71, yPos - 1, xPos - 2, 0x726451, 1);
  1908.         DrawingArea.drawPixels(69, yPos, xPos + 174, 0x726451, 1);
  1909.         DrawingArea.drawPixels(1, yPos - 2, xPos - 2, 0x726451, 178);
  1910.         DrawingArea.drawPixels(1, yPos + 68, xPos, 0x726451, 174);
  1911.         DrawingArea.drawPixels(71, yPos - 1, xPos - 1, 0x2E2B23, 1);
  1912.         DrawingArea.drawPixels(71, yPos - 1, xPos + 175, 0x2E2B23, 1);
  1913.         DrawingArea.drawPixels(1, yPos - 1, xPos, 0x2E2B23, 175);
  1914.         DrawingArea.drawPixels(1, yPos + 69, xPos, 0x2E2B23, 175);
  1915.         DrawingArea.method335(0x000000, yPos, 174, 68, 220, xPos);
  1916.     }
  1917.    
  1918.    
  1919.     public static void addButton(int id, int sid, String spriteName, String tooltip) {
  1920.         RSInterface tab = interfaceCache[id] = new RSInterface();
  1921.         tab.id = id;
  1922.         tab.parentID = id;
  1923.         tab.type = 5;
  1924.         tab.atActionType = 1;
  1925.         tab.contentType = 0;
  1926.         tab.opacity = (byte)0;
  1927.         tab.hoverType = 52;
  1928.         tab.sprite1 = imageLoader(sid, spriteName);
  1929.         tab.sprite2 = imageLoader(sid, spriteName);
  1930.         tab.width = tab.sprite1.myWidth;
  1931.         tab.height = tab.sprite2.myHeight;
  1932.         tab.tooltip = tooltip;
  1933.     }
  1934.    
  1935.     public static void addButton(int id, int sid, String spriteName, String tooltip, int mOver, int atAction, int width, int height) {
  1936.         RSInterface tab = interfaceCache[id] = new RSInterface();
  1937.         tab.id = id;
  1938.         tab.parentID = id;
  1939.         tab.atActionType = atAction;
  1940.         tab.contentType = 0;
  1941.         tab.opacity = 0;
  1942.         tab.hoverType = mOver;
  1943.         tab.sprite1 = imageLoader(sid, spriteName);
  1944.         tab.sprite2 = imageLoader(sid, spriteName);
  1945.         tab.width = width;
  1946.         tab.height = height;
  1947.         tab.tooltip = tooltip;
  1948.     }
  1949.      
  1950.     public static void PVPInterface(TextDrawingArea[] tda) {
  1951.         RSInterface RSinterface = addInterface(21200);
  1952.         addSprite(21201, 0, "PvP/NOTINWILD1");
  1953.         addText(21202, "", tda, 1, 0xff9040, true, true);
  1954.         int last = 2;
  1955.         RSinterface.children = new int[last];
  1956.         RSinterface.childX = new int[last];
  1957.         RSinterface.childY = new int[last];
  1958.         setBounds(21201, 400, 285, 0,RSinterface);
  1959.         setBounds(21202, 444, 318, 1,RSinterface);
  1960.     }
  1961.    
  1962.     public static void PVPInterface2(TextDrawingArea[] tda) {
  1963.             RSInterface RSinterface = addInterface(21300);
  1964.             addSprite(21301, 0, "PvP/INWILD1");
  1965.             addText(21302, "", tda, 1, 0xff9040, true, true);
  1966.             int last = 2;
  1967.             RSinterface.children = new int[last];
  1968.             RSinterface.childX = new int[last];
  1969.             RSinterface.childY = new int[last];
  1970.             setBounds(21301, 400, 285, 0,RSinterface);
  1971.             setBounds(21302, 444, 318, 1,RSinterface);
  1972.     }
  1973.    
  1974.     public static void PVPInterface3(TextDrawingArea[] tda) {
  1975.             RSInterface RSinterface = addInterface(21400);
  1976.             addSprite(21401, 0, "PvP/INCOUNT1");
  1977.             addText(21402, "", tda, 1, 0xff9040, true, true);
  1978.             addText(21403, "", tda,1,0xffffff, true, true);
  1979.             int last = 3;
  1980.             RSinterface.children = new int[last];
  1981.             RSinterface.childX = new int[last];
  1982.             RSinterface.childY = new int[last];
  1983.             setBounds(21401, 400, 285, 0,RSinterface);
  1984.             setBounds(21402, 444, 318, 1,RSinterface);
  1985.             setBounds(21403, 412, 290, 2,RSinterface);
  1986.     }
  1987.  
  1988.     public static void Trade(TextDrawingArea[] TDA){
  1989.         RSInterface Interface = addTabInterface(3323);
  1990.         setChildren(15, Interface);
  1991.         addSprite(3324, 6, "Bank/TRADE");
  1992.         addHover(3442, 3, 0, 3325, 1, "Bank/BANK", 17, 17, "Close Window");
  1993.         addHovered(3325, 2, "Bank/BANK", 17, 17, 3326);
  1994.         addText(3417, "Trading With:", 0xFF9933, true, true, 52,TDA, 2);
  1995.         addText(3418, "Trader's Offer", 0xFF9933, false, true, 52,TDA, 1);
  1996.         addText(3419, "Your Offer", 0xFF9933, false, true, 52,TDA, 1);
  1997.         addText(3421, "Accept", 0x00C000, true, true, 52,TDA, 1);
  1998.         addText(3423, "Decline", 0xC00000, true, true, 52,TDA, 1);
  1999.         addText(3431, "Waiting For Other Player", 0xFFFFFF, true, true, 52,TDA, 1);
  2000.         addHover(3420, 1, 0, 3327, 5, "Bank/TRADE", 65, 32, "Accept");
  2001.         addHovered(3327, 2, "Bank/TRADE", 65, 32, 3328);
  2002.         addHover(3422, 3, 0, 3329, 5, "Bank/TRADE", 65, 32, "Close Window");
  2003.         addHovered(3329, 2, "Bank/TRADE", 65, 32, 3330);
  2004.         setBounds(3324, 0, 16, 0, Interface);
  2005.         setBounds(3442, 485, 24, 1, Interface);
  2006.         setBounds(3325, 485, 24, 2, Interface);
  2007.         setBounds(3417, 258, 25, 3, Interface);
  2008.         setBounds(3418, 355, 51, 4, Interface);
  2009.         setBounds(3419, 68, 51, 5, Interface);
  2010.         setBounds(3420, 223, 120, 6, Interface);
  2011.         setBounds(3327, 223, 120, 7, Interface);
  2012.         setBounds(3422, 223, 160, 8, Interface);
  2013.         setBounds(3329, 223, 160, 9, Interface);
  2014.         setBounds(3421, 256, 127, 10, Interface);
  2015.         setBounds(3423, 256, 167, 11, Interface);
  2016.         setBounds(3431, 256, 272, 12, Interface);
  2017.         setBounds(3415, 12, 64, 13, Interface);
  2018.         setBounds(3416, 321, 64, 14, Interface);
  2019.         Interface = addTabInterface(3443);
  2020.         setChildren(15, Interface);
  2021.         addSprite(3444, 3, "Bank/TRADE");
  2022.         addButton(3546, 2, "Bank/SHOP", 63, 24, "Accept", 1);
  2023.         addButton(3548, 2, "Bank/SHOP", 63, 24, "Decline", 3);
  2024.         addText(3547, "Accept", 0x00C000, true, true, 52,TDA, 1);
  2025.         addText(3549, "Decline", 0xC00000, true, true, 52,TDA, 1);
  2026.         addText(3450, "Trading With:", 0x00FFFF, true, true, 52,TDA, 2);
  2027.         addText(3451, "Yourself", 0x00FFFF, true, true, 52,TDA, 2);
  2028.         setBounds(3444, 12, 20, 0, Interface);
  2029.         setBounds(3442, 470, 32, 1, Interface);
  2030.         setBounds(3325, 470, 32, 2, Interface);
  2031.         setBounds(3535, 130, 28, 3, Interface);
  2032.         setBounds(3536, 105, 47, 4, Interface);
  2033.         setBounds(3546, 189, 295, 5, Interface);
  2034.         setBounds(3548, 258, 295, 6, Interface);
  2035.         setBounds(3547, 220, 299, 7, Interface);
  2036.         setBounds(3549, 288, 299, 8, Interface);
  2037.         setBounds(3557, 71, 87, 9, Interface);
  2038.         setBounds(3558, 315, 87, 10, Interface);
  2039.         setBounds(3533, 64, 70, 11, Interface);
  2040.         setBounds(3534, 297, 70, 12, Interface);
  2041.         setBounds(3450, 95, 289, 13, Interface);
  2042.         setBounds(3451, 95, 304, 14, Interface);
  2043.     }
  2044.  
  2045.  
  2046.     public static void taskInterface(TextDrawingArea[] TDA) { /** Interface by Cody' **/
  2047.         RSInterface Interface = addTabInterface(23800);
  2048.         setChildren(43, Interface);
  2049.         addSprite(23801, 1, "Interfaces/Task/TaskSystemInterface");
  2050.         addHover(23802, 3, 0, 23803, 1, "Interfaces/Task/taskButton", 18, 18, "Close");
  2051.         addHovered(23803, 2, "Interfaces/Task/taskButton", 16, 16, 23804);
  2052.         addHoverButton(23805, "Interfaces/Task/Task", 3, 20, 20, "Filter-sets", 0, 23806, 1);
  2053.         addHoveredButton(23806, "Interfaces/Task/Task", 5, 20, 20, 23807);
  2054.         addHoverButton(23808, "Interfaces/Task/Task", 4, 20, 20, "Filter-done", 0, 23809, 1);
  2055.         addHoveredButton(23809, "Interfaces/Task/Task", 6, 20, 20, 23810);
  2056.         addHoverButton(23811, "Interfaces/Task/Task", 23, 68, 54, "Summary for Skills", 0, 23812, 1);
  2057.         addHoveredButton(23812, "Interfaces/Task/Task", 22, 68, 54, 23813);
  2058.         addHoverButton(23814, "Interfaces/Task/Task", 32, 68, 54, "Summary for Quarter Centurion", 0, 23815, 1);
  2059.         addHoveredButton(23815, "Interfaces/Task/Task", 33, 68, 54, 23816);
  2060.         addHoverButton(23817, "Interfaces/Task/Task", 36, 68, 54, "Summary for Hi Ho, Silver", 0, 23818, 1);
  2061.         addHoveredButton(23818, "Interfaces/Task/Task", 37, 68, 54, 23819);
  2062.         addHoverButton(23820, "Interfaces/Task/Task", 38, 68, 54, "Summary for Grab The Cash", 0, 23821, 1);
  2063.         addHoveredButton(23821, "Interfaces/Task/Task", 39, 68, 54, 23822);
  2064.         addHoverButton(23823, "Interfaces/Task/Task", 40, 68, 54, "Summary for Intervention", 0, 23824, 1);
  2065.         addHoveredButton(23824, "Interfaces/Task/Task", 41, 68, 54, 23825);
  2066.         addHoverButton(23826, "Interfaces/Task/Task", 7, 14, 14, "Turn-on popups", 0, 23827, 1);
  2067.         addHoveredButton(23827, "Interfaces/Task/Task", 8, 14, 14, 23828);
  2068.         addHoverButton(23829, "Interfaces/Task/Task", 1, 68, 54, "Summary for Undefeatable", 0, 23830, 1);
  2069.         addHoveredButton(23830, "Interfaces/Task/Task", 2, 68, 54, 23831);
  2070.         addHoverButton(23832, "Interfaces/Task/Task", 24, 68, 54, "Summary for You Doity Rat", 0, 23833, 1);
  2071.         addHoveredButton(23833, "Interfaces/Task/Task", 25, 68, 54, 23834);
  2072.         addHoverButton(23835, "Interfaces/Task/Task", 26, 68, 54, "Summary for Can't Touch This", 0, 23836, 1);
  2073.         addHoveredButton(23836, "Interfaces/Task/Task", 27, 68, 54, 23837);
  2074.         addHoverButton(23838, "Interfaces/Task/Task", 28, 68, 54, "Summary for Ease of Access", 0, 23839, 1);
  2075.         addHoveredButton(23839, "Interfaces/Task/Task", 29, 68, 54, 23840);
  2076.         addHoverButton(23841, "Interfaces/Task/Task", 42, 68, 54, "Summary for Bovine Intervention", 0, 23842, 1);
  2077.         addHoveredButton(23842, "Interfaces/Task/Task", 43, 68, 54, 23843);
  2078.         addHoverButton(23844, "Interfaces/Task/Task", 44, 68, 54, "Summary for Armed and Dangerous", 0, 23845, 1);
  2079.         addHoveredButton(23845, "Interfaces/Task/Task", 45, 68, 54, 23846);
  2080.         addHoverButton(23847, "Interfaces/Task/Task", 46, 68, 54, "Summary for You Can Bank On Us", 0, 23848, 1);
  2081.         addHoveredButton(23848, "Interfaces/Task/Task", 47, 68, 54, 23849);
  2082.         addHoverButton(23850, "Interfaces/Task/Task", 48, 68, 54, "Summary for Air Craft", 0, 23851, 1);
  2083.         addHoveredButton(23851, "Interfaces/Task/Task", 49, 68, 54, 23852);
  2084.         addHoverButton(23853, "Interfaces/Task/Task", 50, 68, 54, "Summary for I Wonder If It'll Sprout", 0, 23854, 1);
  2085.         addHoveredButton(23854, "Interfaces/Task/Task", 51, 68, 54, 23855);
  2086.         addHoverButton(23856, "Interfaces/Task/Task", 30, 68, 54, "Summary for Always Be Prepared", 0, 23857, 1);
  2087.         addHoveredButton(23857, "Interfaces/Task/Task", 31, 68, 54, 23858);
  2088.         addText(23859, "Click on a Task to view its details", TDA, 0, 0xFFFFFF, false, true);
  2089.         addHoverButton(23860, "Interfaces/Task/Progress", 1, 0, 0, "", 0, 23861, 1);
  2090.         addHoveredButton(23861, "Interfaces/Task/Progress", 1, 0, 0, 23862);
  2091.         addText(23863, "Progress:  0 / 15", TDA, 0, 0xFFFFFF, false, true);
  2092.         setBounds(23801, 5, 4, 0, Interface); // Background
  2093.         setBounds(23802, 482, 7, 1, Interface); // Close
  2094.         setBounds(23803, 482, 7, 2, Interface);
  2095.         setBounds(23805, 458, 32, 3, Interface); // Task option 1
  2096.         setBounds(23806, 458, 32, 4, Interface);
  2097.         setBounds(23808, 481, 32, 5, Interface); // Task option 2
  2098.         setBounds(23809, 481, 32, 6, Interface);
  2099.         // Row one
  2100.         setBounds(23811, 20, 60, 7, Interface);
  2101.         setBounds(23812, 20, 60, 8, Interface);
  2102.         setBounds(23814, 120, 60, 9, Interface);
  2103.         setBounds(23815, 120, 60, 10, Interface);
  2104.         setBounds(23817, 220, 60, 11, Interface);
  2105.         setBounds(23818, 220, 60, 12, Interface);
  2106.         setBounds(23820, 320, 60, 13, Interface);
  2107.         setBounds(23821, 320, 60, 14, Interface);
  2108.         setBounds(23823, 420, 60, 15, Interface);
  2109.         setBounds(23824, 420, 60, 16, Interface);
  2110.         setBounds(23826, 9, 298, 17, Interface);
  2111.         setBounds(23827, 9, 298, 18, Interface);
  2112.         // Row 2
  2113.         setBounds(23829, 20, 145, 19, Interface);
  2114.         setBounds(23830, 20, 145, 20, Interface);
  2115.         setBounds(23832, 120, 145, 21, Interface);
  2116.         setBounds(23833, 120, 145, 22, Interface);
  2117.         setBounds(23835, 220, 145, 23, Interface);
  2118.         setBounds(23836, 220, 145, 24, Interface);
  2119.         setBounds(23838, 320, 145, 25, Interface);
  2120.         setBounds(23839, 320, 145, 26, Interface);
  2121.         setBounds(23841, 420, 145, 27, Interface);
  2122.         setBounds(23842, 420, 145, 28, Interface);
  2123.         // Row 3
  2124.         setBounds(23844, 120, 230, 29, Interface);
  2125.         setBounds(23845, 120, 230, 30, Interface);
  2126.         setBounds(23847, 220, 230, 31, Interface);
  2127.         setBounds(23848, 220, 230, 32, Interface);
  2128.         setBounds(23850, 320, 230, 33, Interface);
  2129.         setBounds(23851, 320, 230, 34, Interface);
  2130.         setBounds(23853, 420, 230, 35, Interface);
  2131.         setBounds(23854, 420, 230, 36, Interface);
  2132.         setBounds(23856, 20, 230, 37, Interface);
  2133.         setBounds(23857, 20, 230, 38, Interface);
  2134.         /** TEXT **/
  2135.         setBounds(23859, 340, 300, 39, Interface);
  2136.         /** INFO **/
  2137.         setBounds(23860, 10, 33, 40, Interface);
  2138.         setBounds(23861, 10, 33, 41, Interface);
  2139.         setBounds(23863, 27, 37, 42, Interface);
  2140.     }
  2141.  
  2142.     public static void taskInterface2(TextDrawingArea[] TDA) { /** Interface by Cody' **/
  2143.         RSInterface rsinterface = addTabInterface(23900);
  2144.         setChildren(17, rsinterface);
  2145.         addSprite(23901, 2, "Interfaces/Task/TaskSystemInterface");
  2146.         addHoverButton(23907, "Interfaces/Task/taskOpen", 1, 181, 17, "Open", 0, 23908, 1);
  2147.         addHoveredButton(23908, "Interfaces/Task/taskOpen", 2, 181, 17, 23909);
  2148.         addHoverButton(23910, "Interfaces/Task/sideTask", 1, 68, 54, "Summary", 0, 23911, 1);
  2149.         addHoveredButton(23911, "Interfaces/Task/sideTask", 2, 68, 54, 23912);
  2150.         addHoverButton(23913, "Interfaces/Task/sideTask", 3, 68, 54, "Summary", 0, 23914, 1);
  2151.         addHoveredButton(23914, "Interfaces/Task/sideTask", 4, 68, 54, 23915);
  2152.         addHoverButton(23916, "Interfaces/Task/sideTask", 5, 68, 54, "Summary", 0, 23917, 1);
  2153.         addHoveredButton(23917, "Interfaces/Task/sideTask", 6, 68, 54, 23918);
  2154.         addHoverButton(23919, "Interfaces/Task/sideTask", 7, 68, 54, "Summary", 0, 23920, 1);
  2155.         addHoveredButton(23920, "Interfaces/Task/sideTask", 8, 68, 54, 23921);
  2156.         addHoverButton(23922, "Interfaces/Task/sideTask", 9, 68, 54, "Summary", 0, 23923, 1);
  2157.         addHoveredButton(23923, "Interfaces/Task/sideTask", 10, 68, 54, 23924);
  2158.         addHoverButton(23926, "Interfaces/Task/sideTask", 11, 68, 54, "Summary", 0, 23927, 1);
  2159.         addHoveredButton(23927, "Interfaces/Task/sideTask", 12, 68, 54, 23928);
  2160.         addText(23929, "Open Task List", TDA, 0, 0xFFFFFF, false, true);
  2161.         addText(23930, "Progress:  0 / 15", TDA, 0, 0xFFFFFF, false, true);
  2162.         rsinterface.child(0, 23901, 0, 0);
  2163.         rsinterface.child(1, 23907, 3, 240); // Task List Button
  2164.         rsinterface.child(2, 23908, 3, 240); // Task List Button
  2165.         rsinterface.child(3, 23910, 15, 50); // Task 1
  2166.         rsinterface.child(4, 23911, 15, 50);
  2167.         rsinterface.child(5, 23913, 105, 50); // Task 2
  2168.         rsinterface.child(6, 23914, 105, 50);
  2169.         rsinterface.child(7, 23916, 15, 110); // Task 3
  2170.         rsinterface.child(8, 23917, 15, 110);
  2171.         rsinterface.child(9, 23919, 105, 110); // Task 4
  2172.         rsinterface.child(10, 23920, 105, 110);
  2173.         rsinterface.child(11, 23922, 15, 170); // Task 5
  2174.         rsinterface.child(12, 23923, 15, 170);
  2175.         rsinterface.child(13, 23926, 105, 170); // Task 6
  2176.         rsinterface.child(14, 23927, 105, 170);
  2177.         rsinterface.child(15, 23929, 58, 243);  // Open Text
  2178.         rsinterface.child(16, 23930, 47, 24);  // Open Text
  2179.     }
  2180.    
  2181.     public static void prayerTab(TextDrawingArea[] tda) {
  2182.         RSInterface tab = addTabInterface(5608);
  2183.         RSInterface currentPray = interfaceCache[687];
  2184.         currentPray.textColor = 0xFF981F;
  2185.         currentPray.textShadow = true;
  2186.         currentPray.message = "%1/%2";
  2187.         addSprite(5651, 0, "PRAYER");
  2188.         addPrayer(18000, 0, 601, 7, 0, "Sharp Eye");
  2189.         addPrayer(18002, 0, 602, 8, 1, "Mystic Will");
  2190.         addPrayer(18004, 0, 603, 25, 2, "Hawk Eye");
  2191.         addPrayer(18006, 0, 604, 26, 3, "Mystic Lore");
  2192.         addPrayer(18008, 0, 605, 43, 4, "Eagle Eye");
  2193.         addPrayer(18010, 0, 606, 44, 5, "Mystic Might");
  2194.         addPrayer(18012, 0, 607, 59, 6, "Chivalry");
  2195.         addPrayer(18014, 0, 608, 69, 7, "Rapid Renewal");
  2196.         addPrayer(18016, 0, 609, 70, 8, "Piety");
  2197.         addPrayer(18018, 0, 610, 71, 9, "Rigour");
  2198.         addPrayer(18020, 0, 611, 72, 10, "Augury");
  2199.         tab.totalChildren(60);
  2200.         /* Buttons/glows */
  2201.         tab.child(0, 5609, 6, 4);
  2202.         tab.child(1, 5610, 42, 4);
  2203.         tab.child(2, 5611, 78, 4);
  2204.         tab.child(3, 5612, 6, 40);
  2205.         tab.child(4, 5613, 42, 40);
  2206.         tab.child(5, 5614, 78, 40);
  2207.         tab.child(6, 5615, 114, 40);
  2208.         tab.child(7, 5616, 150, 40);
  2209.         tab.child(8, 5617, 6, 76);
  2210.         tab.child(9, 5618, 114, 76);
  2211.         tab.child(10, 5619, 150, 76);
  2212.         tab.child(11, 5620, 6, 112);
  2213.         tab.child(12, 5621, 42, 112);
  2214.         tab.child(13, 5622, 78, 112);
  2215.         tab.child(14, 5623, 114, 112);
  2216.         tab.child(15, 683, 42, 148);
  2217.         tab.child(16, 684, 78, 148);
  2218.         tab.child(17, 685, 114, 148);
  2219.         /* Sprites */
  2220.         tab.child(18, 5632, 8, 6);
  2221.         tab.child(19, 5633, 44, 6);
  2222.         tab.child(20, 5634, 80, 6);
  2223.         tab.child(21, 5635, 8, 42);
  2224.         tab.child(22, 5636, 44, 42);
  2225.         tab.child(23, 5637, 80, 42);
  2226.         tab.child(24, 5638, 116, 42);
  2227.         tab.child(25, 5639, 152, 42);
  2228.         tab.child(26, 5640, 8, 79);
  2229.         tab.child(27, 5641, 116, 78);
  2230.         tab.child(28, 5642, 152, 78);
  2231.         tab.child(29, 5643, 8, 114);
  2232.         tab.child(30, 5644, 44, 114);
  2233.         tab.child(31, 686, 80, 114);
  2234.         tab.child(32, 5645, 116, 114);
  2235.         tab.child(33, 5649, 44, 150);
  2236.         tab.child(34, 5647, 80, 150);
  2237.         tab.child(35, 5648, 116, 150);
  2238.         /* New prayers */
  2239.         tab.child(36, 18000, 114, 4);
  2240.         tab.child(37, 18001, 117, 8);
  2241.         tab.child(38, 18002, 150, 4);
  2242.         tab.child(39, 18003, 153, 7);
  2243.         tab.child(40, 18004, 42, 76);
  2244.         tab.child(41, 18005, 45, 80);
  2245.         tab.child(42, 18006, 78, 76);
  2246.         tab.child(43, 18007, 81, 79);
  2247.         tab.child(44, 18008, 150, 112);
  2248.         tab.child(45, 18009, 153, 116);
  2249.         tab.child(46, 18010, 6, 148);
  2250.         tab.child(47, 18011, 9, 151);
  2251.         tab.child(48, 18012, 150, 148);
  2252.         tab.child(49, 18013, 157, 151);
  2253.         tab.child(50, 18014, 6, 182);
  2254.         tab.child(51, 18015, 9, 185);
  2255.         tab.child(54, 18016, 41, 182);
  2256.         tab.child(55, 18017, 44, 192);
  2257.         tab.child(56, 18018, 78, 182);
  2258.         tab.child(57, 18019, 81, 185);
  2259.         tab.child(58, 18020, 115, 182);
  2260.         tab.child(59, 18021, 118, 185);
  2261.         /* Prayer icons & text */
  2262.         tab.child(52, 5651, 65, 242);
  2263.         tab.child(53, 687, 14, 244);
  2264.         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",
  2265.                           "Protect from Magic", "Protect from Range", "Protect from Melee", "Retribution", "Redemption", "Smite"};
  2266.         int count = 0;
  2267.         for (int j = 5609; j <= 5623; j++) {
  2268.             RSInterface tab2 = interfaceCache[j];
  2269.             tab2.tooltip = "Activate @or2@" + tools[count++];
  2270.         }
  2271.         for (int j = 683; j <= 685; j++) {
  2272.             RSInterface tab2 = interfaceCache[j];
  2273.             tab2.tooltip = "Activate @or2@" + tools[count++];
  2274.         }
  2275.     }
  2276.    
  2277.     public String popupString;
  2278.     public static void addTooltipBox(int id, String text) {
  2279.         RSInterface rsi = addInterface(id);
  2280.         rsi.id = id;
  2281.         rsi.parentID = id;
  2282.         rsi.type = 8;
  2283.         rsi.popupString = text;
  2284.     }
  2285.     public static void addTooltip(int id, String text) {
  2286.         RSInterface rsi = addInterface(id);
  2287.         rsi.id = id;
  2288.         rsi.type = 0;
  2289.         rsi.interfaceShown = true;
  2290.         rsi.hoverType = -1;
  2291.         addTooltipBox(id + 1, text);
  2292.         rsi.totalChildren(1);
  2293.         rsi.child(0, id + 1, 0, 0);
  2294.     }
  2295.     public static void Bank()
  2296.     {
  2297.         RSInterface rsinterface = addTabInterface(5292);
  2298.         setChildren(21, rsinterface);
  2299.         addSprite(5293, 0, "Bank/BANK");
  2300.         setBounds(5293, 13, 13, 0, rsinterface);
  2301.         addHover(5384, 3, 0, 5380, 1, "Bank/BANK", 17, 17, "Close Window");
  2302.         addHovered(5380, 2, "Bank/BANK", 17, 17, 5379);
  2303.         addHoverButton(22020, "Interfaces/Equipment/BANK", 0, 72, 32, "Equipment Stats", -1, 22021, 5);
  2304.         addHoveredButton(22021, "Interfaces/Equipment/BANK", 1, 72, 32, 22033);
  2305.         setBounds(5384, 476, 16, 3, rsinterface);
  2306.         setBounds(5380, 476, 16, 4, rsinterface);
  2307.         setBounds(22020, 457, 35, 19, rsinterface);
  2308.         setBounds(22021, 457, 35, 20, rsinterface);
  2309.         addHover(5294, 4, 0, 5295, 3, "Bank/BANK", 114, 25, "Set A Bank PIN");
  2310.         addHovered(5295, 4, "Bank/BANK", 114, 25, 5296);
  2311.         setBounds(5294, 110, 285, 5, rsinterface);
  2312.         setBounds(5295, 110, 285, 6, rsinterface);
  2313.         addHoverButton(22020, "Bank/BANK", 23, 72, 32, "Equipment Stats", -1, 22021, 5);
  2314.         addHoveredButton(22021, "Bank/BANK", 24, 72, 32, 22022);   
  2315.         setBounds(22020, 457, 35, 19, rsinterface);
  2316.         setBounds(22021, 457, 35, 20, rsinterface);
  2317.         addHoverButton(21000, "Bank/BANK", 7, 35, 25, "Swap Withdraw Mode", -1, 21001, 5);
  2318.         addHoveredButton(21001, "Bank/BANK", 8, 35, 25, 22030);
  2319.         setBounds(21000, 25, 285, 7, rsinterface);
  2320.         setBounds(21001, 25, 285, 8, rsinterface);
  2321.         addHoverButton(21004, "Bank/BANK", 14, 35, 25, "Search Bank", -1, 21005, 5);
  2322.         addHoveredButton(21005, "Bank/BANK", 15, 35, 25, 22029);
  2323.         setBounds(21004, 65, 285, 9, rsinterface);
  2324.         setBounds(21005, 65, 285, 10, rsinterface);
  2325.         addHoverButton(21008, "Bank/BANK", 9, 35, 25, "Swap Items Noted", -1, 21009, 5);
  2326.         addHoveredButton(21009, "Bank/BANK", 11, 35, 25, 22031);
  2327.         setBounds(21008, 240, 285, 11, rsinterface);
  2328.         setBounds(21009, 240, 285, 12, rsinterface);
  2329.         addHoverButton(21012, "Bank/BANK", 17, 35, 25, "Deposit Carried Items", -1, 21013, 5);
  2330.         addHoveredButton(21013, "Bank/BANK", 18, 35, 25, 22032);
  2331.         setBounds(21012, 375, 285, 13, rsinterface);
  2332.         setBounds(21013, 375, 285, 14, rsinterface);
  2333.         addHoverButton(21016, "Bank/BANK", 19, 35, 25, "Deposit Worn Items", -1, 21017, 5);
  2334.         addHoveredButton(21017, "Bank/BANK", 20, 35, 25, 22023);
  2335.         setBounds(21016, 415, 285, 15, rsinterface);
  2336.         setBounds(21017, 415, 285, 16, rsinterface);
  2337.         addHoverButton(21020, "Bank/BANK", 21, 35, 25, "Deposit Money Pouch", -1, 21021, 5);
  2338.         addHoveredButton(21021, "Bank/BANK", 22, 35, 25, 22022);
  2339.         setBounds(21020, 455, 285, 17, rsinterface);
  2340.         setBounds(21021, 455, 285, 18, rsinterface);
  2341.         setBounds(5383, 170, 15, 1, rsinterface);
  2342.         setBounds(5385, -4, 74, 2, rsinterface);
  2343.         rsinterface = interfaceCache[5385];
  2344.         rsinterface.height = 206;
  2345.         rsinterface.width = 480;
  2346.         rsinterface = interfaceCache[5382];
  2347.         rsinterface.width = 10;
  2348.         rsinterface.invSpritePadX = 12;
  2349.         rsinterface.height = 35;
  2350.     }
  2351.    
  2352.         public static void skilllevel(TextDrawingArea[] tda) {
  2353.      RSInterface text = interfaceCache[7202];
  2354.      RSInterface attack = interfaceCache[6247];
  2355.      RSInterface defence = interfaceCache[6253];
  2356.      RSInterface str = interfaceCache[6206];
  2357.      RSInterface hits = interfaceCache[6216];
  2358.      RSInterface rng = interfaceCache[4443];
  2359.      RSInterface pray = interfaceCache[6242];
  2360.      RSInterface mage = interfaceCache[6211];
  2361.      RSInterface cook = interfaceCache[6226];
  2362.      RSInterface wood = interfaceCache[4272];
  2363.      RSInterface flet = interfaceCache[6231];
  2364.      RSInterface fish = interfaceCache[6258];
  2365.      RSInterface fire = interfaceCache[4282];
  2366.      RSInterface craf = interfaceCache[6263];
  2367.      RSInterface smit = interfaceCache[6221];
  2368.      RSInterface mine = interfaceCache[4416];
  2369.      RSInterface herb = interfaceCache[6237];
  2370.      RSInterface agil = interfaceCache[4277];
  2371.      RSInterface thie = interfaceCache[4261];
  2372.      RSInterface slay = interfaceCache[12122];
  2373.      RSInterface farm = interfaceCache[5267];
  2374.      RSInterface rune = interfaceCache[4267];
  2375.      RSInterface cons = interfaceCache[7267];
  2376.      RSInterface hunt = interfaceCache[8267];
  2377.      RSInterface summ = addInterface(9267);
  2378.      RSInterface dung = addInterface(10267);
  2379.         addSprite(17878, 0, "Interfaces/skillchat/skill");
  2380.         addSprite(17879, 1, "Interfaces/skillchat/skill");
  2381.         addSprite(17880, 2, "Interfaces/skillchat/skill");
  2382.         addSprite(17881, 3, "Interfaces/skillchat/skill");
  2383.         addSprite(17882, 4, "Interfaces/skillchat/skill");
  2384.         addSprite(17883, 5, "Interfaces/skillchat/skill");
  2385.         addSprite(17884, 6, "Interfaces/skillchat/skill");
  2386.         addSprite(17885, 7, "Interfaces/skillchat/skill");
  2387.         addSprite(17886, 8, "Interfaces/skillchat/skill");
  2388.         addSprite(17887, 9, "Interfaces/skillchat/skill");
  2389.         addSprite(17888, 10, "Interfaces/skillchat/skill");
  2390.         addSprite(17889, 11, "Interfaces/skillchat/skill");
  2391.         addSprite(17890, 12, "Interfaces/skillchat/skill");
  2392.         addSprite(17891, 13, "Interfaces/skillchat/skill");
  2393.         addSprite(17892, 14, "Interfaces/skillchat/skill");
  2394.         addSprite(17893, 15, "Interfaces/skillchat/skill");
  2395.         addSprite(17894, 16, "Interfaces/skillchat/skill");
  2396.         addSprite(17895, 17, "Interfaces/skillchat/skill");
  2397.         addSprite(17896, 18, "Interfaces/skillchat/skill");
  2398.         addSprite(11897, 19, "Interfaces/skillchat/skill");
  2399.         addSprite(17898, 20, "Interfaces/skillchat/skill");
  2400.         addSprite(17899, 21, "Interfaces/skillchat/skill");
  2401.         addSprite(17900, 22, "Interfaces/skillchat/skill");
  2402.         addSprite(17901, 23, "Interfaces/skillchat/skill");    
  2403.         addSprite(17902, 24, "Interfaces/skillchat/skill");
  2404.                 setChildren(4, attack);
  2405.                 setBounds(17878, 20, 30, 0, attack);
  2406.                 setBounds(4268, 80, 15, 1, attack);
  2407.                 setBounds(4269, 80, 45, 2, attack);
  2408.                 setBounds(358, 95, 75, 3, attack);
  2409.                 setChildren(4, defence);
  2410.                 setBounds(17879, 20, 30, 0, defence);
  2411.                 setBounds(4268, 80, 15, 1, defence);
  2412.                 setBounds(4269, 80, 45, 2, defence);
  2413.                 setBounds(358, 95, 75, 3, defence);
  2414.                 setChildren(4, str);
  2415.                 setBounds(17880, 20, 30, 0, str);
  2416.                 setBounds(4268, 80, 15, 1, str);
  2417.                 setBounds(4269, 80, 45, 2, str);
  2418.                 setBounds(358, 95, 75, 3, str);
  2419.                 setChildren(4, hits);
  2420.                 setBounds(17881, 20, 30, 0, hits);
  2421.                 setBounds(4268, 80, 15, 1, hits);
  2422.                 setBounds(4269, 80, 45, 2, hits);
  2423.                 setBounds(358, 95, 75, 3, hits);
  2424.                 setChildren(4, rng);
  2425.                 setBounds(17882, 20, 30, 0, rng);
  2426.                 setBounds(4268, 80, 15, 1, rng);
  2427.                 setBounds(4269, 80, 45, 2, rng);
  2428.                 setBounds(358, 95, 75, 3, rng);
  2429.                 setChildren(4, pray);
  2430.                 setBounds(17883, 20, 30, 0, pray);
  2431.                 setBounds(4268, 80, 15, 1, pray);
  2432.                 setBounds(4269, 80, 45, 2, pray);
  2433.                 setBounds(358, 95, 75, 3, pray);
  2434.                 setChildren(4, mage);
  2435.                 setBounds(17884, 20, 30, 0, mage);
  2436.                 setBounds(4268, 80, 15, 1, mage);
  2437.                 setBounds(4269, 80, 45, 2, mage);
  2438.                 setBounds(358, 95, 75, 3, mage);
  2439.                 setChildren(4, cook);
  2440.                 setBounds(17885, 20, 30, 0, cook);
  2441.                 setBounds(4268, 80, 15, 1, cook);
  2442.                 setBounds(4269, 80, 45, 2, cook);
  2443.                 setBounds(358, 95, 75, 3, cook);
  2444.                 setChildren(4, wood);
  2445.                 setBounds(17886, 20, 30, 0, wood);
  2446.                 setBounds(4268, 80, 15, 1, wood);
  2447.                 setBounds(4269, 80, 45, 2, wood);
  2448.                 setBounds(358, 95, 75, 3, wood);
  2449.                 setChildren(4, flet);
  2450.                 setBounds(17887, 20, 30, 0, flet);
  2451.                 setBounds(4268, 80, 15, 1, flet);
  2452.                 setBounds(4269, 80, 45, 2, flet);
  2453.                 setBounds(358, 95, 75, 3, flet);
  2454.                 setChildren(4, fish);
  2455.                 setBounds(17888, 20, 30, 0, fish);
  2456.                 setBounds(4268, 80, 15, 1, fish);
  2457.                 setBounds(4269, 80, 45, 2, fish);
  2458.                 setBounds(358, 95, 75, 3, fish);
  2459.                 setChildren(4, fire);
  2460.                 setBounds(17889, 20, 30, 0, fire);
  2461.                 setBounds(4268, 80, 15, 1, fire);
  2462.                 setBounds(4269, 80, 45, 2, fire);
  2463.                 setBounds(358, 95, 75, 3, fire);
  2464.                 setChildren(4, craf);
  2465.                 setBounds(17890, 20, 30, 0, craf);
  2466.                 setBounds(4268, 80, 15, 1, craf);
  2467.                 setBounds(4269, 80, 45, 2, craf);
  2468.                 setBounds(358, 95, 75, 3, craf);
  2469.                 setChildren(4, smit);
  2470.                 setBounds(17891, 20, 30, 0, smit);
  2471.                 setBounds(4268, 80, 15, 1, smit);
  2472.                 setBounds(4269, 80, 45, 2, smit);
  2473.                 setBounds(358, 95, 75, 3, smit);
  2474.                 setChildren(4, mine);
  2475.                 setBounds(17892, 20, 30, 0, mine);
  2476.                 setBounds(4268, 80, 15, 1, mine);
  2477.                 setBounds(4269, 80, 45, 2, mine);
  2478.                 setBounds(358, 95, 75, 3, mine);
  2479.                 setChildren(4, herb);
  2480.                 setBounds(17893, 20, 30, 0, herb);
  2481.                 setBounds(4268, 80, 15, 1, herb);
  2482.                 setBounds(4269, 80, 45, 2, herb);
  2483.                 setBounds(358, 95, 75, 3, herb);
  2484.                 setChildren(4, agil);
  2485.                 setBounds(17894, 20, 30, 0, agil);
  2486.                 setBounds(4268, 80, 15, 1, agil);
  2487.                 setBounds(4269, 80, 45, 2, agil);
  2488.                 setBounds(358, 95, 75, 3, agil);
  2489.                 setChildren(4, thie);
  2490.                 setBounds(17895, 20, 30, 0, thie);
  2491.                 setBounds(4268, 80, 15, 1, thie);
  2492.                 setBounds(4269, 80, 45, 2, thie);
  2493.                 setBounds(358, 95, 75, 3, thie);
  2494.                 setChildren(4, slay);
  2495.                 setBounds(17896, 20, 30, 0, slay);
  2496.                 setBounds(4268, 80, 15, 1, slay);
  2497.                 setBounds(4269, 80, 45, 2, slay);
  2498.                 setBounds(358, 95, 75, 3, slay);
  2499.                 setChildren(3, farm);
  2500.                 setBounds(4268, 80, 15, 0, farm);
  2501.                 setBounds(4269, 80, 45, 1, farm);
  2502.                 setBounds(358, 95, 75, 2, farm);
  2503.                 setChildren(4, rune);
  2504.                 setBounds(17898, 20, 30, 0, rune);
  2505.                 setBounds(4268, 80, 15, 1, rune);
  2506.                 setBounds(4269, 80, 45, 2, rune);
  2507.                 setBounds(358, 95, 75, 3, rune);
  2508.                 setChildren(3, cons);
  2509.                 setBounds(4268, 80, 15, 0, cons);
  2510.                 setBounds(4269, 80, 45, 1, cons);
  2511.                 setBounds(358, 95, 75, 2, cons);
  2512.                 setChildren(3, hunt);
  2513.                 setBounds(4268, 80, 15, 0, hunt);
  2514.                 setBounds(4269, 80, 45, 1, hunt);
  2515.                 setBounds(358, 95, 75, 2, hunt);
  2516.                 setChildren(4, summ);
  2517.                 setBounds(17901, 20, 30, 0, summ);
  2518.                 setBounds(4268, 80, 15, 1, summ);
  2519.                 setBounds(4269, 80, 45, 2, summ);
  2520.                 setBounds(358, 95, 75, 3, summ);
  2521.                 setChildren(4, dung);
  2522.                 setBounds(17902, 20, 30, 0, dung);
  2523.                 setBounds(4268, 80, 15, 1, dung);
  2524.                 setBounds(4269, 80, 45, 2, dung);
  2525.                 setBounds(358, 95, 75, 3, dung);
  2526.     }
  2527.    
  2528.     public static void Shop(TextDrawingArea[] TDA) {
  2529.         RSInterface rsinterface = addTabInterface(3824);
  2530.         setChildren(8, rsinterface);
  2531.         addSprite(3825, 0, "Shop/SHOP");
  2532.         addHover(3902, 3, 0, 3826, 1, "Shop/CLOSE", 17, 17, "Close Window");
  2533.         addHovered(3826, 2, "Shop/CLOSE", 17, 17, 3827);
  2534.         addText(19679, "", 0xff981f, false, true, 52, TDA, 1);
  2535.         addText(19680, "", 0xbf751d, false, true, 52, TDA, 1);
  2536.         addButton(19681, 2, "Shop/SHOP", 0, 0, "", 1);
  2537.         addSprite(19687, 1, "Shop/ITEMBG");
  2538.         setBounds(3825, 6, 8, 0, rsinterface);
  2539.         setBounds(3902, 478, 10, 1, rsinterface);
  2540.         setBounds(3826, 478, 10, 2, rsinterface);
  2541.         setBounds(3900, 26, 44, 3, rsinterface);
  2542.         setBounds(3901, 240, 11, 4, rsinterface);
  2543.         setBounds(19679, 42, 54, 5, rsinterface);
  2544.         setBounds(19680, 150, 54, 6, rsinterface);
  2545.         setBounds(19681, 129, 50, 7, rsinterface);
  2546.         rsinterface = interfaceCache[3900];
  2547.         setChildren(1, rsinterface);
  2548.         setBounds(19687, 6, 15, 0, rsinterface);
  2549.         rsinterface.invSpritePadX = 15;
  2550.         rsinterface.width = 10;
  2551.         rsinterface.height = 4;
  2552.         rsinterface.invSpritePadY = 25;
  2553.         rsinterface = addTabInterface(19682);
  2554.         addSprite(19683, 1, "Shop/SHOP");
  2555.         addText(19684, "Main Stock", 0xbf751d, false, true, 52, TDA, 1);
  2556.         addText(19685, "Store Info", 0xff981f, false, true, 52, TDA, 1);
  2557.         addButton(19686, 2, "Shop/SHOP", 95, 19, "Main Stock", 1);
  2558.         setChildren(7, rsinterface);
  2559.         setBounds(19683, 12, 12, 0, rsinterface);
  2560.         setBounds(3901, 240, 21, 1, rsinterface);
  2561.         setBounds(19684, 42, 54, 2, rsinterface);
  2562.         setBounds(19685, 150, 54, 3, rsinterface);
  2563.         setBounds(19686, 23, 50, 4, rsinterface);
  2564.         setBounds(3902, 471, 22, 5, rsinterface);
  2565.         setBounds(3826, 60, 85, 6, rsinterface);
  2566.     }
  2567.    
  2568.     public static TextDrawingArea[] fonts;
  2569.     public static TextDrawingArea[] RSFont;
  2570.  
  2571.     public static void skillTab602(TextDrawingArea[] TDA) {
  2572.         RSInterface skill = addInterface(3917);
  2573.         addText(27203, "99", 0xFFFF00, false, true, -1, TDA, 0);
  2574.         addText(27204, "99", 0xFFFF00, false, true, -1, TDA, 0);
  2575.         addText(27205, "99", 0xFFFF00, false, true, -1, TDA, 0);
  2576.         addText(27206, "99", 0xFFFF00, false, true, -1, TDA, 0);
  2577.         skill.totalChildren(4);
  2578.         skill.child(0, 27203, 158, 175);
  2579.         skill.child(1, 27204, 171, 186);
  2580.         skill.child(2, 27205, 158, 203);
  2581.         skill.child(3, 27206, 171, 214);
  2582.         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" };
  2583.         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 };
  2584.         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 };
  2585.         int[][] text = { { 4004, 4005 }, { 4016, 4017 }, { 4028, 4029 },
  2586.                 { 4006, 4007 }, { 4018, 4019 }, { 4030, 4031 }, { 4008, 4009 },
  2587.                 { 4020, 4021 }, { 4032, 4033 }, { 4010, 4011 }, { 4022, 4023 },
  2588.                 { 4034, 4035 }, { 4012, 4013 }, { 4024, 4025 }, { 4036, 4037 },
  2589.                 { 4014, 4015 }, { 4026, 4027 }, { 4038, 4039 }, { 4152, 4153 },
  2590.                 { 12166, 12167 }, { 13926, 13927 }, { 18165, 18169 },
  2591.                 { 18166, 18170 }, { 18167, 18171 }, { 18168, 18172 } };
  2592.  
  2593.         int[] icons = { 3965, 3966, 3967, 3968, 3969, 3970, 3971, 3972, 3973,
  2594.                 3974, 3975, 3976, 3977, 3978, 3979, 3980, 3981, 3982, 4151,
  2595.                 12165, 13925, 27127, 27128, 27129, 27130 };
  2596.  
  2597.         int[][] buttonCoords = { { 0, 4 }, { 62, 4 }, { 124, 4 }, { 0, 32 },
  2598.                 { 62, 32 }, { 124, 32 }, { 0, 60 }, { 62, 60 }, { 124, 60 },
  2599.                 { 0, 88 }, { 62, 88 }, { 124, 88 }, { 0, 116 }, { 62, 116 },
  2600.                 { 124, 116 }, { 0, 144 }, { 62, 144 }, { 124, 144 },
  2601.                 { 0, 172 }, { 62, 172 }, { 124, 172 }, { 0, 200 }, { 62, 200 },
  2602.                 { 124, 200 }, { 0, 229 } };
  2603.         int[][] iconCoords = { { 2, 6 }, { 65, 7 }, { 127, 6 }, { 5, 34 },
  2604.                 { 64, 33 }, { 127, 36 }, { 5, 64 }, { 63, 63 }, { 127, 61 },
  2605.                 { 5/*range*/, 91 }, { 68, 94 }, { 128/*cook*/, 90 }, { 5/*prayer*/, 118 }, { 70, 120 },
  2606.                 { 126, 118 }, { 2, 147 }, { 65, 146 }, { 128, 146 },
  2607.                 { 2, 173 }, { 65, 173 }, { 126, 174 }, { 2, 202 }, { 65, 201 },
  2608.                 { 127, 202 }, { 2, 230 } };
  2609.         int[][] textCoords = { { 27, 7, 40, 18 }, { 89, 7, 102, 18 },
  2610.                 { 151, 7, 164, 18 }, { 27, 35, 40, 46 }, { 89, 35, 102, 46 },
  2611.                 { 151, 35, 164, 46 }, { 27, 63, 40, 74 }, { 89, 63, 102, 74 },
  2612.                 { 151, 63, 164, 74 }, { 27, 91, 40, 102 },
  2613.                 { 89, 91, 102, 102 }, { 151, 91, 164, 102 },
  2614.                 { 27, 119, 40, 130 }, { 89, 119, 102, 130 },
  2615.                 { 151, 119, 164, 130 }, { 27, 147, 40, 158 },
  2616.                 { 89, 147, 102, 158 }, { 151, 147, 164, 158 },
  2617.                 { 27, 175, 40, 186 }, { 89, 175, 102, 186 },
  2618.                 { 151, 175, 164, 186 }, { 27, 203, 40, 214 },
  2619.                 { 89, 203, 102, 214 }, { 151, 203, 164, 214 },
  2620.                 { 27, 231, 40, 242 } };
  2621.         int[][] newText = { { 18165, 18166, 18167, 18168 },
  2622.                 { 18169, 18170, 18171, 18172 } };
  2623.                 //27123, 27124, 27125, 27126
  2624.         for (int i = 0; i < hovers.length; i++) {
  2625.             createSkillHover(hovers[i], 206 + i);
  2626.             addSkillButton(buttons[i]);
  2627.             addImage(icons[i], spriteNames[i]);
  2628.         }
  2629.         for (int i = 0; i < 4; i++) {
  2630.             addSkillText(newText[0][i], false, i + 21);
  2631.             addSkillText(newText[1][i], true, i + 21);
  2632.         }
  2633.         skill.children(icons.length + (text.length * 2) + hovers.length + buttons.length + 1);
  2634.         int frame = 0;
  2635.         RSInterface totalLevel = interfaceCache[3984];
  2636.         totalLevel.message = "@yel@Total level: %1";
  2637.         totalLevel.textDrawingAreas = fonts[2];
  2638.         skill.child(frame, 3984, 74, 237); frame++;
  2639.         for (int i = 0; i < buttons.length; i++) {
  2640.             skill.child(frame, buttons[i], buttonCoords[i][0], buttonCoords[i][1]); frame++;
  2641.         }
  2642.         for (int i = 0; i < icons.length; i++) {
  2643.             skill.child(frame, icons[i], iconCoords[i][0], iconCoords[i][1]); frame++;
  2644.         }
  2645.         for (int i = 0; i < text.length; i++) {
  2646.             skill.child(frame, text[i][0], textCoords[i][0], textCoords[i][1]); frame++;
  2647.         }
  2648.         for (int i = 0; i < text.length; i++) {
  2649.             skill.child(frame, text[i][1], textCoords[i][2], textCoords[i][3]); frame++;
  2650.         }
  2651.         for (int i = 0; i < hovers.length; i++) {
  2652.             skill.child(frame, hovers[i], buttonCoords[i][0], buttonCoords[i][1]); frame++;
  2653.         }
  2654.     }
  2655.  
  2656.     public void children(int total) {
  2657.         children = new int[total];
  2658.         childX = new int[total];
  2659.         childY = new int[total];
  2660.     }
  2661.  
  2662.  
  2663.     public static void createSkillHover(int id, int x) {
  2664.         RSInterface hover = addInterface(id);
  2665.         hover.type = 8;
  2666.         hover.message = "TESTING!";
  2667.         hover.contentType = x;
  2668.         hover.width = 60;
  2669.         hover.height = 28;
  2670.         hover.inventoryHover = true;
  2671.     }
  2672.     public static void addImage(int id, String s) {
  2673.         RSInterface image = addInterface(id);
  2674.         image.type = 5;
  2675.         image.atActionType = 0;
  2676.         image.contentType = 0;
  2677.         image.width = 100;
  2678.         image.height = 100;
  2679.         image.sprite1 = getSprite(s);
  2680.     }
  2681.    
  2682.     public static void addSkillText(int id, boolean max, int skill) {
  2683.         RSInterface text = addInterface(id);
  2684.         text.id = id;
  2685.         text.parentID = id;
  2686.         text.type = 4;
  2687.         text.atActionType = 0;
  2688.         text.width = 15;
  2689.         text.height = 12;
  2690.         text.textDrawingAreas = fonts[0];
  2691.         text.textShadow = true;
  2692.         text.centerText = true;
  2693.         text.textColor = 16776960;
  2694.         if (!max) {
  2695.             text.valueIndexArray = new int[1][];
  2696.             text.valueIndexArray[0] = new int[3];
  2697.             text.valueIndexArray[0][0] = 1;
  2698.             text.valueIndexArray[0][1] = skill;
  2699.             text.valueIndexArray[0][2] = 0;
  2700.         } else {
  2701.             text.valueIndexArray = new int[2][];
  2702.             text.valueIndexArray[0] = new int[3];
  2703.             text.valueIndexArray[0][0] = 1;
  2704.             text.valueIndexArray[0][1] = skill;
  2705.             text.valueIndexArray[0][2] = 0;
  2706.             text.valueIndexArray[1] = new int[1];
  2707.             text.valueIndexArray[1][0] = 0;
  2708.         }
  2709.         text.message = "%1";
  2710.     }
  2711.    
  2712.     public static Sprite getSprite(String s) {
  2713.         Sprite image;
  2714.         try {
  2715.             image = new Sprite("/Skill/" + s);
  2716.             if (image != null) {
  2717.                 return image;
  2718.             }
  2719.         } catch (Exception e) {
  2720.             e.printStackTrace();
  2721.             return null;
  2722.         }
  2723.         return image;
  2724.     }
  2725.  
  2726.     public boolean inventoryHover;
  2727.     public static void addSkillButton(int id) {
  2728.         RSInterface button = addInterface(id);
  2729.         button.type = 5;
  2730.         button.atActionType = 5;
  2731.         button.contentType = 0;
  2732.         button.width = 60;
  2733.         button.height = 27;
  2734.         button.sprite1 = CustomSpriteLoader(33225, "");
  2735.         button.sprite1 = getSprite("Button");
  2736.         button.tooltip = "View";
  2737.     }
  2738.    
  2739.    
  2740.     public static void addHover(int i, int aT, int cT, int hoverid,int sId, String NAME, int W, int H, String tip) {
  2741.         RSInterface rsinterfaceHover = addInterface(i);
  2742.         rsinterfaceHover.id = i;
  2743.         rsinterfaceHover.parentID = i;
  2744.         rsinterfaceHover.type = 5;
  2745.         rsinterfaceHover.atActionType = aT;
  2746.         rsinterfaceHover.contentType = cT;
  2747.         rsinterfaceHover.hoverType = hoverid;
  2748.         rsinterfaceHover.sprite1 = imageLoader(sId, NAME);
  2749.         rsinterfaceHover.sprite2 = imageLoader(sId, NAME);
  2750.         rsinterfaceHover.width = W;
  2751.         rsinterfaceHover.height = H;
  2752.         rsinterfaceHover.tooltip = tip;
  2753.     }
  2754.  
  2755.  
  2756.     public static void addPrayer(int i, int configId, int configFrame, int requiredValues, int spriteID, String prayerName) {
  2757.         RSInterface tab = addTabInterface(i);
  2758.         tab.id = i;
  2759.         tab.parentID = 5608;
  2760.         tab.type = 5;
  2761.         tab.atActionType = 4;
  2762.         tab.contentType = 0;
  2763.         tab.opacity = 0;
  2764.         tab.hoverType = -1;
  2765.         tab.sprite1 = imageLoader(0, "PRAYERGLOW");
  2766.         tab.sprite2 = imageLoader(1, "PRAYERGLOW");
  2767.         tab.width = 34;
  2768.         tab.height = 34;
  2769.         tab.valueCompareType = new int[1];
  2770.         tab.requiredValues = new int[1];
  2771.         tab.valueCompareType[0] = 1;
  2772.         tab.requiredValues[0] = configId;
  2773.         tab.valueIndexArray = new int[1][3];
  2774.         tab.valueIndexArray[0][0] = 5;
  2775.         tab.valueIndexArray[0][1] = configFrame;
  2776.         tab.valueIndexArray[0][2] = 0;
  2777.         tab.tooltip = "Activate@or2@ " + prayerName;
  2778.         //tab.tooltip = "Select";
  2779.         RSInterface tab2 = addTabInterface(i + 1);
  2780.         tab2.id = i + 1;
  2781.         tab2.parentID = 5608;
  2782.         tab2.type = 5;
  2783.         tab2.atActionType = 0;
  2784.         tab2.contentType  = 0;
  2785.         tab2.opacity = 0;
  2786.         tab2.hoverType = -1;
  2787.         tab2.sprite1 = imageLoader(spriteID, "/PRAYER/PRAYON");
  2788.         tab2.sprite2 = imageLoader(spriteID, "/PRAYER/PRAYOFF");
  2789.         tab2.width = 34;
  2790.         tab2.height = 34;
  2791.         tab2.valueCompareType = new int[1];
  2792.         tab2.requiredValues = new int[1];
  2793.         tab2.valueCompareType[0] = 2;
  2794.         tab2.requiredValues[0] = requiredValues + 1;
  2795.         tab2.valueIndexArray = new int[1][3];
  2796.         tab2.valueIndexArray[0][0] = 2;
  2797.         tab2.valueIndexArray[0][1] = 5;
  2798.         tab2.valueIndexArray[0][2] = 0;
  2799.         //RSInterface tab3 = addTabInterface(i + 50);
  2800.     }
  2801.     public static void friendsTab(TextDrawingArea[] kam) {
  2802.         RSInterface tab = addTabInterface(5065);
  2803.         tab.width = 192;
  2804.         tab.height = 263;
  2805.         addText(5067, "Friends List", kam, 1, 0xff9933, true, true);
  2806.         addText(5068, "RuneScape 1", kam, 1, 0xff9933, true, true);
  2807.         addSprite(5069, 0, "Interfaces/Kamiel/SPRITE");
  2808.         addSprite(5070, 1, "Interfaces/Kamiel/SPRITE");
  2809.         addSprite(5071, 1, "Interfaces/Kamiel/SPRITE");
  2810.         addSprite(5072, 2, "Interfaces/Kamiel/SPRITE");
  2811.         addHoverButton(5073, "Interfaces/Kamiel/SPRITE", 3, 17, 17, "Add friend", 201, 5074, 1);
  2812.         addHoveredButton(5074, "Interfaces/Kamiel/SPRITE", 4, 17, 17, 5075);
  2813.         addHoverButton(5076, "Interfaces/Kamiel/SPRITE", 5, 17, 17, "Delete friend", 202, 5077, 1);
  2814.         addHoveredButton(5077, "Interfaces/Kamiel/SPRITE", 6, 17, 17, 5078);
  2815.         addText(5079, "0 / 200", kam, 0, 0xF5F5DC, false, true, 901, 0);
  2816.         addButton(5080, 10, "Interfaces/Kamiel/SPRITE", "Show ignores tab", 17, 17);
  2817.         addSprite(5081, 7, "Interfaces/Kamiel/SPRITE");
  2818.        
  2819.         RSInterface friendsList = interfaceCache[5066];
  2820.         friendsList.height = 197; friendsList.width = 174;
  2821.         for(int id = 5092; id <= 5191; id++) {
  2822.             int i = id - 5092;
  2823.             friendsList.children[i] = id;
  2824.             friendsList.childX[i] = 3;
  2825.             friendsList.childY[i] = friendsList.childY[i] - 3;
  2826.         }
  2827.         for(int id = 5192; id <= 5291; id++) {
  2828.             int i = id - 5092;
  2829.             friendsList.children[i] = id;
  2830.             friendsList.childX[i] = 113;
  2831.             friendsList.childY[i] = friendsList.childY[i] - 3;
  2832.         }
  2833.        
  2834.         tab.totalChildren(14);
  2835.         tab.child(0, 5067, 92, 2);
  2836.         tab.child(1, 5068, 92, 17);
  2837.         tab.child(2, 5069, 0, 39);
  2838.         tab.child(3, 5070, 0, 36);
  2839.         tab.child(4, 5071, 0, 237);
  2840.         tab.child(5, 5072, 107, 39);
  2841.         tab.child(6, 5073, 5, 242);
  2842.         tab.child(7, 5074, 5, 242);
  2843.         tab.child(8, 5076, 23, 242);
  2844.         tab.child(9, 5077, 23, 242);
  2845.         tab.child(10, 5079, 46, 245);
  2846.         tab.child(11, 5080, 170, 242);
  2847.         tab.child(12, 5081, 151, 242);
  2848.         tab.child(13, 5066, 0, 39);
  2849.  
  2850.     }
  2851.    
  2852.     public static void ignoreTab(TextDrawingArea[] kam) {
  2853.         RSInterface tab = addTabInterface(5715);
  2854.         tab.width = 192;
  2855.         tab.height = 263;
  2856.         addText(5717, "Ignore List", kam, 1, 0xff9933, true, true);
  2857.         addSprite(5718, 0, "Interfaces/Kamiel/SPRITE");
  2858.         addSprite(5719, 1, "Interfaces/Kamiel/SPRITE");
  2859.         addSprite(5720, 1, "Interfaces/Kamiel/SPRITE");
  2860.         addHoverButton(5721, "Interfaces/Kamiel/SPRITE", 11, 17, 17, "Add name", 501, 5722, 1);
  2861.         addHoveredButton(5722, "Interfaces/Kamiel/SPRITE", 12, 17, 17, 5723);
  2862.         addHoverButton(5724, "Interfaces/Kamiel/SPRITE", 13, 17, 17, "Delete name", 502, 5725, 1);
  2863.         addHoveredButton(5725, "Interfaces/Kamiel/SPRITE", 14, 17, 17, 5726);
  2864.         addText(5727, "0 / 100", kam, 0, 0xF5F5DC, false, true, 902, 0);
  2865.         addSprite(5728, 8, "Interfaces/Kamiel/SPRITE");
  2866.         addButton(5729, 9, "Interfaces/Kamiel/SPRITE", "Show friends tab", 17, 17);
  2867.        
  2868.         RSInterface ignoresList = interfaceCache[5716];
  2869.         ignoresList.height = 197; ignoresList.width = 174;
  2870.         for(int id = 5742; id <= 5841; id++) {
  2871.             int i = id - 5742;
  2872.             ignoresList.children[i] = id;
  2873.             ignoresList.childX[i] = 3;
  2874.             ignoresList.childY[i] = ignoresList.childY[i] - 3;
  2875.         }
  2876.        
  2877.         tab.totalChildren(12);
  2878.         tab.child(0, 5717, 95, 9);
  2879.         tab.child(1, 5718, 0, 39);
  2880.         tab.child(2, 5719, 0, 36);
  2881.         tab.child(3, 5720, 0, 237);
  2882.         tab.child(4, 5721, 5, 242);
  2883.         tab.child(5, 5722, 5, 242);
  2884.         tab.child(6, 5724, 23, 242);
  2885.         tab.child(7, 5725, 23, 242);
  2886.         tab.child(8, 5727, 46, 245);
  2887.         tab.child(9, 5728, 170, 242);
  2888.         tab.child(10, 5729, 151, 242);
  2889.         tab.child(11, 5716, 0, 39);
  2890.  
  2891.     }
  2892.    
  2893.     public static void addText(int id, String text, TextDrawingArea tda[], int idx, int color, boolean center, boolean shadow, int contentType, int actionType) {
  2894.         RSInterface tab = addTabInterface(id);
  2895.         tab.parentID = id;
  2896.         tab.id = id;
  2897.         tab.type = 4;
  2898.         tab.atActionType = actionType;
  2899.         tab.width = 0;
  2900.         tab.height = 11;
  2901.         tab.contentType = contentType;
  2902.         tab.centerText = center;
  2903.         tab.textShadow = shadow;
  2904.         tab.textDrawingAreas = tda[idx];
  2905.         tab.message = text;
  2906.         tab.aString228 = "";
  2907.         tab.textColor = color;
  2908.         tab.anInt219 = 0;
  2909.         tab.anInt216 = 0;
  2910.         tab.anInt239 = 0;
  2911.     }
  2912.  
  2913.         private static Sprite CustomSpriteLoader(int id, String s)
  2914.     {
  2915.         long l = (TextClass.method585(s) << 8) + (long)id;
  2916.         Sprite sprite = (Sprite)aMRUNodes_238.insertFromCache(l);
  2917.         if(sprite != null) { return sprite; }
  2918.         try {
  2919.             sprite = new Sprite("/Attack/"+id + s);
  2920.             aMRUNodes_238.removeFromCache(sprite, l);
  2921.         } catch(Exception exception) {
  2922.             return null; }
  2923.         return sprite;
  2924.     }
  2925.  
  2926.     public static RSInterface addInterface(int id)
  2927.     {
  2928.         RSInterface rsi = interfaceCache[id] = new RSInterface();
  2929.         rsi.id = id;
  2930.         rsi.parentID = id;
  2931.         rsi.width = 512;
  2932.         rsi.height = 334;
  2933.         return rsi;
  2934.     }
  2935.  
  2936.     public static void addText(int id, String text, TextDrawingArea tda[], int idx, int color, boolean centered) {
  2937.         RSInterface rsi = interfaceCache[id] = new RSInterface();
  2938.         if(centered)
  2939.           rsi.centerText = true;
  2940.         rsi.textShadow = true;
  2941.         rsi.textDrawingAreas = tda[idx];
  2942.         rsi.message = text;
  2943.         rsi.textColor = color;
  2944.         rsi.id = id;
  2945.         rsi.type = 4;
  2946.     }
  2947.  
  2948.     public static void textColor(int id, int color)
  2949.     { RSInterface rsi = interfaceCache[id]; rsi.textColor = color; }
  2950.  
  2951.     public static void textSize(int id, TextDrawingArea tda[], int idx)
  2952.     { RSInterface rsi = interfaceCache[id]; rsi.textDrawingAreas = tda[idx]; }
  2953.  
  2954.     public static void addCacheSprite(int id, int sprite1, int sprite2, String sprites)
  2955.     {
  2956.         RSInterface rsi = interfaceCache[id] = new RSInterface();
  2957.         rsi.sprite1 = method207(sprite1, aClass44, sprites);
  2958.         rsi.sprite2 = method207(sprite2, aClass44, sprites);
  2959.         rsi.parentID = id;
  2960.         rsi.id = id;
  2961.         rsi.type = 5;
  2962.     }
  2963.    
  2964.     public static void sprite1(int id, int sprite)
  2965.     { RSInterface class9 = interfaceCache[id];
  2966.         class9.sprite1 = CustomSpriteLoader(sprite, "");
  2967.     }
  2968.  
  2969.     public static void addActionButton(int id, int sprite, int sprite2, int width, int height, String s)
  2970.     {
  2971.         RSInterface rsi = interfaceCache[id] = new RSInterface();
  2972.         rsi.sprite1 = CustomSpriteLoader(sprite, "");
  2973.         if (sprite2 == sprite)
  2974.           rsi.sprite2 = CustomSpriteLoader(sprite, "a");
  2975.         else
  2976.           rsi.sprite2 = CustomSpriteLoader(sprite2, "");
  2977.         rsi.tooltip = s;
  2978.         rsi.contentType = 0;
  2979.         rsi.atActionType = 1;
  2980.         rsi.width = width;
  2981.         rsi.hoverType = 52;
  2982.         rsi.parentID = id;
  2983.         rsi.id = id;
  2984.         rsi.type = 5;
  2985.         rsi.height = height;
  2986.     }
  2987.  
  2988.     public void totalChildren(int id, int x, int y)
  2989.     { children = new int[id]; childX = new int[x]; childY = new int[y]; }
  2990.  
  2991.     public static void removeSomething(int id)
  2992.     { RSInterface rsi = interfaceCache[id] = new RSInterface(); }
  2993.    
  2994.  public void specialBar(int i)
  2995.     {
  2996.         addActionButton(i - 12, 7587, -1, 152, 28, "Use @gre@Special Attack");
  2997.         for(int j = i - 11; j < i; j++)
  2998.         {
  2999.             removeSomething(j);
  3000.         }
  3001.  
  3002.         RSInterface rsinterface = interfaceCache[i - 12];
  3003.         rsinterface.width = 152;
  3004.         rsinterface.height = 28;
  3005.         rsinterface = interfaceCache[i];
  3006.         rsinterface.width = 152;
  3007.         rsinterface.height = 28;
  3008.         rsinterface.child(0, i - 12, 1, 3);
  3009.         rsinterface.child(12, i + 1, 1, 3);
  3010.         rsinterface.child(23, i + 12, 16, 9);
  3011.         for(int k = 13; k < 23; k++)
  3012.         {
  3013.             rsinterface.childY[k]--;
  3014.         }
  3015.  
  3016.         rsinterface = interfaceCache[i + 1];
  3017.         rsinterface.type = 5;
  3018.         rsinterface.sprite1 = CustomSpriteLoader(7600, "");
  3019.         for(int l = i + 2; l < i + 12; l++)
  3020.         {
  3021.             RSInterface rsinterface1 = interfaceCache[l];
  3022.             rsinterface1.type = 5;
  3023.         }
  3024.  
  3025.         sprite1(i + 2, 7601);
  3026.         sprite1(i + 3, 7602);
  3027.         sprite1(i + 4, 7603);
  3028.         sprite1(i + 5, 7604);
  3029.         sprite1(i + 6, 7605);
  3030.         sprite1(i + 7, 7606);
  3031.         sprite1(i + 8, 7607);
  3032.         sprite1(i + 9, 7608);
  3033.         sprite1(i + 10, 7609);
  3034.         sprite1(i + 11, 7610);
  3035.     }
  3036.  
  3037.     public static void Sidebar0(TextDrawingArea[] tda)
  3038.     {
  3039.         /*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);*/
  3040.             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);
  3041.             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);
  3042.             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);
  3043.             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);
  3044.             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);
  3045.             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);
  3046.             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);
  3047.             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);
  3048.         /*Sidebar0b(id, id2, "text1", "text2", "text3", "text4", str1x, str1y, str2x, str2y, str3x, str3y, str4x, str4y, img1x, img1y, img2x, img2y, img3x, img3y, img4x, img4y, tda);*/
  3049.             Sidebar0b(776, 779, "Reap", "Chop", "Jab", "Block", 42, 75, 126, 75, 46, 128, 125, 128, 122, 103, 122, 50, 40, 103, 40, 50, tda);
  3050.         /*Sidebar0c(id, id2, id3, "text1", "text2", "text3", str1x, str1y, str2x, str2y, str3x, str3y, img1x, img1y, img2x, img2y, img3x, img3y, tda);*/
  3051.             Sidebar0c(425, 428, 7474, "Pound", "Pummel", "Block", 39, 75, 121, 75, 42, 128, 40, 103, 40, 50, 122, 50, tda);
  3052.             Sidebar0c(1749, 1752, 7524, "Accurate", "Rapid", "Longrange", 33, 75, 125, 75, 29, 128, 40, 103, 40, 50, 122, 50, tda);
  3053.             Sidebar0c(1764, 1767, 7549, "Accurate", "Rapid", "Longrange", 33, 75, 125, 75, 29, 128, 40, 103, 40, 50, 122, 50, tda);
  3054.             Sidebar0c(4446, 4449, 7649, "Accurate", "Rapid", "Longrange", 33, 75, 125, 75, 29, 128, 40, 103, 40, 50, 122, 50, tda);
  3055.             Sidebar0c(5855, 5857, 7749, "Punch", "Kick", "Block", 40, 75, 129, 75, 42, 128, 40, 50, 122, 50, 40, 103, tda);
  3056.             Sidebar0c(6103, 6132, 6117, "Bash", "Pound", "Block", 43, 75, 124, 75, 42, 128, 40, 103, 40, 50, 122, 50, tda);
  3057.             Sidebar0c(8460, 8463, 8493, "Jab", "Swipe", "Fend", 46, 75, 124, 75, 43, 128, 40, 103, 40, 50, 122, 50, tda);
  3058.             Sidebar0c(12290, 12293, 12323, "Flick", "Lash", "Deflect", 44, 75, 127, 75, 36, 128, 40, 50, 40, 103, 122, 50, tda);
  3059.         /*Sidebar0d(id, id2, "text1", "text2", "text3", str1x, str1y, str2x, str2y, str3x, str3y, img1x, img1y, img2x, img2y, img3x, img3y, tda);*/
  3060.             Sidebar0d(328, 331, "Bash", "Pound", "Focus", 42, 66, 39, 101, 41, 136, 40, 120, 40, 50, 40, 85, tda);
  3061.  
  3062.         RSInterface rsi = addInterface(19300);
  3063.         /*addToggleButton(id, sprite, config, width, height, wid);*/
  3064.         addToggleButton(150, 150, 172, 150, 44, "Auto Retaliate");
  3065.         rsi.totalChildren(3, 3, 3);
  3066.         rsi.child(0, 19000, 92, 26); //Combat level
  3067.         rsi.child(2, 19001, 500, 500); //Constitution updating
  3068.         rsi.child(1, 150, 21, 153); //auto retaliate
  3069.  
  3070.         addText(19000, "Combat level:", tda, 0, 0xff981f, true, false);
  3071.         addText(19001, "lolquoi", tda, 0, 0xff981f, true, false);
  3072.     }
  3073.  
  3074.     public static void Sidebar0a(int id, int id2, int id3, String text1, String text2, String text3, String text4,
  3075.                                                int str1x, int str1y, int str2x, int str2y, int str3x, int str3y, int str4x, int str4y,
  3076.                                                int img1x, int img1y, int img2x, int img2y, int img3x, int img3y, int img4x, int img4y, TextDrawingArea[] tda) //4button spec
  3077.     {
  3078.         RSInterface rsi = addInterface(id); //2423
  3079.         /*addText(ID, "Text", tda, Size, Colour, Centered);*/
  3080.             addText(id2, "-2", tda, 3, 0xff981f, true); //2426
  3081.             addText(id2+11, text1, tda, 0, 0xff981f, false);
  3082.             addText(id2+12, text2, tda, 0, 0xff981f, false);
  3083.             addText(id2+13, text3, tda, 0, 0xff981f, false);
  3084.             addText(id2+14, text4, tda, 0, 0xff981f, false);
  3085.         /*specialBar(ID);*/
  3086.             rsi.specialBar(id3); //7599
  3087.  
  3088.             rsi.width = 190;
  3089.             rsi.height = 261;
  3090.  
  3091.         int last = 15; int frame = 0;
  3092.         rsi.totalChildren(last, last, last);
  3093.  
  3094.             rsi.child(frame, id2+3, 21, 46); frame++; //2429
  3095.             rsi.child(frame, id2+4, 104, 99); frame++; //2430
  3096.             rsi.child(frame, id2+5, 21, 99); frame++; //2431
  3097.             rsi.child(frame, id2+6, 105, 46); frame++; //2432
  3098.  
  3099.             rsi.child(frame, id2+7, img1x, img1y); frame++; //bottomright 2433
  3100.             rsi.child(frame, id2+8, img2x, img2y); frame++; //topleft 2434
  3101.             rsi.child(frame, id2+9, img3x, img3y); frame++; //bottomleft 2435
  3102.             rsi.child(frame, id2+10, img4x, img4y); frame++; //topright 2436
  3103.  
  3104.             rsi.child(frame, id2+11, str1x, str1y); frame++; //chop 2437
  3105.             rsi.child(frame, id2+12, str2x, str2y); frame++; //slash 2438
  3106.             rsi.child(frame, id2+13, str3x, str3y); frame++; //lunge 2439
  3107.             rsi.child(frame, id2+14, str4x, str4y); frame++; //block 2440
  3108.  
  3109.             rsi.child(frame, 19300, 0, 0); frame++; //stuffs
  3110.             rsi.child(frame, id2, 94, 4); frame++; //weapon 2426
  3111.             rsi.child(frame, id3, 21, 205); frame++; //special attack 7599
  3112.  
  3113.         for (int i = id2+3; i < id2+7; i++) { //2429 - 2433
  3114.         rsi = interfaceCache[i];
  3115.             rsi.sprite1 = CustomSpriteLoader(19301, ""); rsi.sprite2 = CustomSpriteLoader(19301, "a");
  3116.             rsi.width = 68; rsi.height = 44;
  3117.         }
  3118.     }
  3119.  
  3120.     public static void Sidebar0b(int id, int id2, String text1, String text2, String text3, String text4,
  3121.                                                int str1x, int str1y, int str2x, int str2y, int str3x, int str3y, int str4x, int str4y,
  3122.                                                int img1x, int img1y, int img2x, int img2y, int img3x, int img3y, int img4x, int img4y, TextDrawingArea[] tda) //4button nospec
  3123.     {
  3124.         RSInterface rsi = addInterface(id); //2423
  3125.         /*addText(ID, "Text", tda, Size, Colour, Centered);*/
  3126.             addText(id2, "-2", tda, 3, 0xff981f, true); //2426
  3127.             addText(id2+11, text1, tda, 0, 0xff981f, false);
  3128.             addText(id2+12, text2, tda, 0, 0xff981f, false);
  3129.             addText(id2+13, text3, tda, 0, 0xff981f, false);
  3130.             addText(id2+14, text4, tda, 0, 0xff981f, false);
  3131.  
  3132.             rsi.width = 190;
  3133.             rsi.height = 261;
  3134.  
  3135.         int last = 14; int frame = 0;
  3136.         rsi.totalChildren(last, last, last);
  3137.  
  3138.             rsi.child(frame, id2+3, 21, 46); frame++; //2429
  3139.             rsi.child(frame, id2+4, 104, 99); frame++; //2430
  3140.             rsi.child(frame, id2+5, 21, 99); frame++; //2431
  3141.             rsi.child(frame, id2+6, 105, 46); frame++; //2432
  3142.  
  3143.             rsi.child(frame, id2+7, img1x, img1y); frame++; //bottomright 2433
  3144.             rsi.child(frame, id2+8, img2x, img2y); frame++; //topleft 2434
  3145.             rsi.child(frame, id2+9, img3x, img3y); frame++; //bottomleft 2435
  3146.             rsi.child(frame, id2+10, img4x, img4y); frame++; //topright 2436
  3147.  
  3148.             rsi.child(frame, id2+11, str1x, str1y); frame++; //chop 2437
  3149.             rsi.child(frame, id2+12, str2x, str2y); frame++; //slash 2438
  3150.             rsi.child(frame, id2+13, str3x, str3y); frame++; //lunge 2439
  3151.             rsi.child(frame, id2+14, str4x, str4y); frame++; //block 2440
  3152.  
  3153.             rsi.child(frame, 19300, 0, 0); frame++; //stuffs
  3154.             rsi.child(frame, id2, 94, 4); frame++; //weapon 2426
  3155.  
  3156.         for (int i = id2+3; i < id2+7; i++) { //2429 - 2433
  3157.         rsi = interfaceCache[i];
  3158.             rsi.sprite1 = CustomSpriteLoader(19301, ""); rsi.sprite2 = CustomSpriteLoader(19301, "a");
  3159.             rsi.width = 68; rsi.height = 44;
  3160.         }
  3161.     }
  3162.  
  3163.     public static void Sidebar0c(int id, int id2, int id3, String text1, String text2, String text3,
  3164.                                                int str1x, int str1y, int str2x, int str2y, int str3x, int str3y,
  3165.                                                int img1x, int img1y, int img2x, int img2y, int img3x, int img3y, TextDrawingArea[] tda) //3button spec
  3166.     {
  3167.         RSInterface rsi = addInterface(id); //2423
  3168.         /*addText(ID, "Text", tda, Size, Colour, Centered);*/
  3169.             addText(id2, "-2", tda, 3, 0xff981f, true); //2426
  3170.             addText(id2+9, text1, tda, 0, 0xff981f, false);
  3171.             addText(id2+10, text2, tda, 0, 0xff981f, false);
  3172.             addText(id2+11, text3, tda, 0, 0xff981f, false);
  3173.         /*specialBar(ID);*/
  3174.             rsi.specialBar(id3); //7599
  3175.  
  3176.             rsi.width = 190;
  3177.             rsi.height = 261;
  3178.  
  3179.         int last = 12; int frame = 0;
  3180.         rsi.totalChildren(last, last, last);
  3181.  
  3182.             rsi.child(frame, id2+3, 21, 99); frame++;
  3183.             rsi.child(frame, id2+4, 105, 46); frame++;
  3184.             rsi.child(frame, id2+5, 21, 46); frame++;
  3185.  
  3186.             rsi.child(frame, id2+6, img1x, img1y); frame++; //topleft
  3187.             rsi.child(frame, id2+7, img2x, img2y); frame++; //bottomleft
  3188.             rsi.child(frame, id2+8, img3x, img3y); frame++; //topright
  3189.  
  3190.             rsi.child(frame, id2+9, str1x, str1y); frame++; //chop
  3191.             rsi.child(frame, id2+10, str2x, str2y); frame++; //slash
  3192.             rsi.child(frame, id2+11, str3x, str3y); frame++; //lunge
  3193.  
  3194.             rsi.child(frame, 19300, 0, 0); frame++; //stuffs
  3195.             rsi.child(frame, id2, 94, 4); frame++; //weapon
  3196.             rsi.child(frame, id3, 21, 205); frame++; //special attack 7599
  3197.  
  3198.         for (int i = id2+3; i < id2+6; i++) {
  3199.         rsi = interfaceCache[i];
  3200.             rsi.sprite1 = CustomSpriteLoader(19301, ""); rsi.sprite2 = CustomSpriteLoader(19301, "a");
  3201.             rsi.width = 68; rsi.height = 44;
  3202.         }
  3203.     }
  3204.  
  3205.     public static void Sidebar0d(int id, int id2, String text1, String text2, String text3,
  3206.                                                int str1x, int str1y, int str2x, int str2y, int str3x, int str3y,
  3207.                                                int img1x, int img1y, int img2x, int img2y, int img3x, int img3y, TextDrawingArea[] tda) //3button nospec (magic intf)
  3208.     {
  3209.         RSInterface rsi = addInterface(id); //2423
  3210.         /*addText(ID, "Text", tda, Size, Colour, Centered);*/
  3211.             addText(id2, "-2", tda, 3, 0xff981f, true); //2426
  3212.             addText(id2+9, text1, tda, 0, 0xff981f, false);
  3213.             addText(id2+10, text2, tda, 0, 0xff981f, false);
  3214.             addText(id2+11, text3, tda, 0, 0xff981f, false);
  3215.  
  3216.             //addText(353, "Spell", tda, 0, 0xff981f, false);
  3217.             removeSomething(353);
  3218.             addText(354, "Spell", tda, 0, 0xff981f, false);
  3219.  
  3220.             addCacheSprite(337, 19, 0, "combaticons");
  3221.             addCacheSprite(338, 13, 0, "combaticons2");
  3222.             addCacheSprite(339, 14, 0, "combaticons2");
  3223.  
  3224.         /*addToggleButton(id, sprite, config, width, height, tooltip);*/
  3225.             //addToggleButton(349, 349, 108, 68, 44, "Select");
  3226.             removeSomething(349);
  3227.             addToggleButton(350, 350, 108, 68, 44, "Select");
  3228.  
  3229.             rsi.width = 190;
  3230.             rsi.height = 261;
  3231.  
  3232.             int last = 15; int frame = 0;
  3233.             rsi.totalChildren(last, last, last);
  3234.  
  3235.             rsi.child(frame, id2+3, 20, 115); frame++;
  3236.             rsi.child(frame, id2+4, 20, 80); frame++;
  3237.             rsi.child(frame, id2+5, 20, 45); frame++;
  3238.  
  3239.             rsi.child(frame, id2+6, img1x, img1y); frame++; //topleft
  3240.             rsi.child(frame, id2+7, img2x, img2y); frame++; //bottomleft
  3241.             rsi.child(frame, id2+8, img3x, img3y); frame++; //topright
  3242.  
  3243.             rsi.child(frame, id2+9, str1x, str1y); frame++; //bash
  3244.             rsi.child(frame, id2+10, str2x, str2y); frame++; //pound
  3245.             rsi.child(frame, id2+11, str3x, str3y); frame++; //focus
  3246.  
  3247.             rsi.child(frame, 349, 105, 46); frame++; //spell1
  3248.             rsi.child(frame, 350, 104, 106); frame++; //spell2
  3249.  
  3250.             rsi.child(frame, 353, 125, 74); frame++; //spell
  3251.             rsi.child(frame, 354, 125, 134); frame++; //spell
  3252.  
  3253.             rsi.child(frame, 19300, 0, 0); frame++; //stuffs
  3254.             rsi.child(frame, id2, 94, 4); frame++; //weapon
  3255.     }
  3256.    
  3257.     public static void addPrayer(int i, int configId, int configFrame, int requiredValues, int prayerSpriteID, String PrayerName, int Hover) {
  3258.         RSInterface Interface = addTabInterface(i);
  3259.         Interface.id = i;
  3260.         Interface.parentID = 22500;
  3261.         Interface.type = 5;
  3262.         Interface.atActionType = 4;
  3263.         Interface.contentType = 0;
  3264.         Interface.opacity = 0;
  3265.         Interface.hoverType = Hover;
  3266.         Interface.sprite1 = imageLoader(0, "Interfaces/CurseTab/GLOW");
  3267.         Interface.sprite2 = imageLoader(1, "Interfaces/CurseTab/GLOW");
  3268.         Interface.width = 34;
  3269.         Interface.height = 34;
  3270.         Interface.valueCompareType = new int[1];
  3271.         Interface.requiredValues = new int[1];
  3272.         Interface.valueCompareType[0] = 1;
  3273.         Interface.requiredValues[0] = configId;
  3274.         Interface.valueIndexArray = new int[1][3];
  3275.         Interface.valueIndexArray[0][0] = 5;
  3276.         Interface.valueIndexArray[0][1] = configFrame;
  3277.         Interface.valueIndexArray[0][2] = 0;
  3278.         Interface.tooltip = "Activate@lre@ " + PrayerName;
  3279.         Interface = addTabInterface(i + 1);
  3280.         Interface.id = i + 1;
  3281.         Interface.parentID = 22500;
  3282.         Interface.type = 5;
  3283.         Interface.atActionType = 0;
  3284.         Interface.contentType  = 0;
  3285.         Interface.opacity = 0;
  3286.         Interface.sprite1 = imageLoader(prayerSpriteID, "Interfaces/CurseTab/PRAYON");
  3287.         Interface.sprite2 = imageLoader(prayerSpriteID, "Interfaces/CurseTab/PRAYOFF");
  3288.         Interface.width = 34;
  3289.         Interface.height = 34;
  3290.         Interface.valueCompareType = new int[1];
  3291.         Interface.requiredValues = new int[1];
  3292.         Interface.valueCompareType[0] = 2;
  3293.         Interface.requiredValues[0] = requiredValues + 1;
  3294.         Interface.valueIndexArray = new int[1][3];
  3295.         Interface.valueIndexArray[0][0] = 2;
  3296.         Interface.valueIndexArray[0][1] = 5;
  3297.         Interface.valueIndexArray[0][2] = 0;
  3298.     }
  3299.    
  3300.     public static void addSpriteWithHover(int id, int spriteId, String spriteName, int hover) {
  3301.         RSInterface tab = interfaceCache[id] = new RSInterface();
  3302.         tab.id = id;
  3303.         tab.parentID = id;
  3304.         tab.type = 5;
  3305.         tab.atActionType = 0;
  3306.         tab.contentType = 0;
  3307.         tab.opacity = (byte)0;
  3308.         tab.hoverType = hover;
  3309.         tab.sprite1 = imageLoader(spriteId, spriteName);
  3310.         tab.sprite2 = imageLoader(spriteId, spriteName);
  3311.         tab.width = 190;
  3312.         tab.height = 47;
  3313.     }
  3314.    
  3315.     public static void curseTab(TextDrawingArea[] TDA) {
  3316.         RSInterface Interface = addTabInterface(22500);
  3317.         int index = 0;
  3318.         addSpriteWithHover(688, 11, "Interfaces/CurseTab/SPRITE", 19021);
  3319.         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.");
  3320.         addButton(689, 12, "Interfaces/CurseTab/SPRITE", "",190,17);
  3321.         addText(19025, "Hide stat adjustments.", 0xFFCC00, false, true, -1, TDA, 0);
  3322.         addText(690, "", 0xFF981F, false, false, -1, TDA, 0);
  3323.         addText(691, "", 0xFF981F, false, false, -1, TDA, 0);
  3324.         addText(692, "", 0xFF981F, false, false, -1, TDA, 0);
  3325.         addText(693, "", 0xFF981F, false, false, -1, TDA, 0);
  3326.         addText(694, "", 0xFF981F, false, false, -1, TDA, 0);
  3327.         addText(687, "99/99", 0xFF981F, false, false, -1, TDA, 1);
  3328.         addSprite(22502, 0, "Interfaces/CurseTab/ICON");
  3329.         addPrayer(22503, 0, 83, 49, 7, "Protect Item", 22582);
  3330.         addPrayer(22505, 0, 84, 49, 4, "Sap Warrior", 22544);
  3331.         addPrayer(22507, 0, 85, 51, 5, "Sap Ranger", 22546);
  3332.         addPrayer(22509, 0, 101, 53, 3, "Sap Mage", 22548);
  3333.         addPrayer(22511, 0, 102, 55, 2, "Sap Spirit", 22550);
  3334.         addPrayer(22513, 0, 86, 58, 18, "Berserker", 22552);
  3335.         addPrayer(22515, 0, 87, 61, 15, "Deflect Summoning", 22554);
  3336.         addPrayer(22517, 0, 88, 64, 17, "Deflect Magic", 22556);
  3337.         addPrayer(22519, 0, 89, 67, 16, "Deflect Missiles", 22558);
  3338.         addPrayer(22521, 0, 90, 70, 6, "Deflect Melee", 22560);
  3339.         addPrayer(22523, 0, 91, 73, 9, "Leech Attack", 22562);
  3340.         addPrayer(22525, 0, 103, 75, 10, "Leech Ranged", 22564);
  3341.         addPrayer(22527, 0, 104, 77, 11, "Leech Magic", 22566);
  3342.         addPrayer(22529, 0, 92, 79, 12, "Leech Defence", 22568);
  3343.         addPrayer(22531, 0, 93, 81, 13, "Leech Strength", 22570);
  3344.         addPrayer(22533, 0, 94, 83, 14, "Leech Energy", 22572);
  3345.         addPrayer(22535, 0, 95, 85, 19, "Leech Special Attack", 22574);
  3346.         addPrayer(22537, 0, 96, 88, 1, "Wrath", 22576);
  3347.         addPrayer(22539, 0, 97, 91, 8, "Soul Split", 22578);
  3348.         addPrayer(22541, 0, 105, 94, 20, "Turmoil", 22580);
  3349.         drawTooltip(22582, "Level 50\nProtect Item\nKeep 1 extra item if you die");
  3350.         drawTooltip(22544, "Level 50\nSap Warrior\nDrains 10% of enemy Attack,\nStrength and Defence,\nincreasing to 20% over time");
  3351.         drawTooltip(22546, "Level 52\nSap Ranger\nDrains 10% of enemy Ranged\nand Defence, increasing to 20%\nover time");
  3352.         drawTooltip(22548, "Level 54\nSap Mage\nDrains 10% of enemy Magic\nand Defence, increasing to 20%\nover time");
  3353.         drawTooltip(22550, "Level 56\nSap Spirit\nDrains enenmy special attack\nenergy");
  3354.         drawTooltip(22552, "Level 59\nBerserker\nBoosted stats last 15% longer");
  3355.         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");
  3356.         drawTooltip(22556, "Level 65\nDeflect Magic\nProtects against magical attacks\nand can deflect some of the\ndamage back to the attacker");
  3357.         drawTooltip(22558, "Level 68\nDeflect Missiles\nProtects against ranged attacks\nand can deflect some of the\ndamage back to the attacker");
  3358.         drawTooltip(22560, "Level 71\nDeflect Melee\nProtects against melee attacks\nand can deflect some of the\ndamage back to the attacker");
  3359.         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");
  3360.         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");
  3361.         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");
  3362.         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");
  3363.         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");
  3364.         drawTooltip(22572, "Level 84\nLeech Energy\nDrains enemy run energy, while\nincreasing your own");
  3365.         drawTooltip(22574, "Level 86\nLeech Special Attack\nDrains enemy special attack\nenergy, while increasing your\nown");
  3366.         drawTooltip(22576, "Level 89\nWrath\nInflicts damage to nearby\ntargets if you die");
  3367.         drawTooltip(22578, "Level 92\nSoul Split\n1/4 of damage dealt is also removed\nfrom opponent's Prayer and\nadded to your Hitpoints");
  3368.         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");
  3369.         setChildren(71, Interface);
  3370.     /*curse start*/
  3371.         setBounds(689, 0, 217, index, Interface);index++;
  3372.         //setBounds(701, 0, 217, index, Interface);index++;
  3373.         setBounds(687, 85, 241, index, Interface);index++;
  3374.         setBounds(688, 0, 170, index, Interface);index++;
  3375.         setBounds(690, 89, 200, index, Interface);index++;
  3376.         setBounds(691, 10, 200, index, Interface);index++;
  3377.         setBounds(692, 50, 200, index, Interface);index++;
  3378.         setBounds(693, 130, 200, index, Interface);index++;
  3379.         setBounds(694, 170, 200, index, Interface);index++;
  3380.        
  3381.         setBounds(19025, 47, 217, index, Interface);index++;
  3382.         //setBounds(19030, 47, 219, index, Interface);index++;
  3383.         setBounds(22502, 65, 241, index, Interface);index++;
  3384.         setBounds(22503, 2, 5, index, Interface);index++;
  3385.         setBounds(22504, 8, 8, index, Interface);index++;
  3386.         setBounds(22505, 40, 5, index, Interface);index++;
  3387.         setBounds(22506, 47, 12, index, Interface);index++;
  3388.         setBounds(22507, 76, 5, index, Interface);index++;
  3389.         setBounds(22508, 82, 11, index, Interface);index++;
  3390.         setBounds(22509, 113, 5, index, Interface);index++;
  3391.         setBounds(22510, 116, 8, index, Interface);index++;
  3392.         setBounds(22511, 150, 5, index, Interface);index++;
  3393.         setBounds(22512, 155, 10, index, Interface);index++;
  3394.         setBounds(22513, 2, 45, index, Interface);index++;
  3395.         setBounds(22514, 9, 48, index, Interface);index++;
  3396.         setBounds(22515, 39, 45, index, Interface);index++;
  3397.         setBounds(22516, 42, 47, index, Interface);index++;
  3398.         setBounds(22517, 76, 45, index, Interface);index++;
  3399.         setBounds(22518, 79, 48, index, Interface);index++;
  3400.         setBounds(22519, 113, 45, index, Interface);index++;
  3401.         setBounds(22520, 116, 48, index, Interface);index++;
  3402.         setBounds(22521, 151, 45, index, Interface);index++;
  3403.         setBounds(22522, 154, 48, index, Interface);index++;
  3404.         setBounds(22523, 2, 82, index, Interface);index++;
  3405.         setBounds(22524, 6, 86, index, Interface);index++;
  3406.         setBounds(22525, 40, 82, index, Interface);index++;
  3407.         setBounds(22526, 42, 86, index, Interface);index++;
  3408.         setBounds(22527, 77, 82, index, Interface);index++;
  3409.         setBounds(22528, 79, 86, index, Interface);index++;
  3410.         setBounds(22529, 114, 83, index, Interface);index++;
  3411.         setBounds(22530, 119, 87, index, Interface);index++;
  3412.         setBounds(22531, 153, 83, index, Interface);index++;
  3413.         setBounds(22532, 156, 86, index, Interface);index++;
  3414.         setBounds(22533, 2, 120, index, Interface);index++;
  3415.         setBounds(22534, 7, 125, index, Interface);index++;
  3416.         setBounds(22535, 40, 120, index, Interface);index++;
  3417.         setBounds(22536, 45, 124, index, Interface);index++;
  3418.         setBounds(22537, 78, 120, index, Interface);index++;
  3419.         setBounds(22538, 86, 124, index, Interface);index++;
  3420.         setBounds(22539, 114, 120, index, Interface);index++;
  3421.         setBounds(22540, 120, 125, index, Interface);index++;
  3422.         setBounds(22541, 151, 120, index, Interface);index++;
  3423.         setBounds(22542, 153, 127, index, Interface);index++;
  3424.         setBounds(22582, 10, 40, index, Interface);index++;
  3425.         setBounds(22544, 20, 40, index, Interface);index++;
  3426.         setBounds(22546, 20, 40, index, Interface);index++;
  3427.         setBounds(22548, 20, 40, index, Interface);index++;
  3428.         setBounds(22550, 20, 40, index, Interface);index++;
  3429.         setBounds(22552, 10, 80, index, Interface);index++;
  3430.         setBounds(22554, 10, 80, index, Interface);index++;
  3431.         setBounds(22556, 10, 80, index, Interface);index++;
  3432.         setBounds(22558, 10, 80, index, Interface);index++;
  3433.         setBounds(22560, 10, 80, index, Interface);index++;
  3434.         setBounds(22562, 10, 120, index, Interface);index++;
  3435.         setBounds(22564, 10, 120, index, Interface);index++;
  3436.         setBounds(22566, 10, 120, index, Interface);index++;
  3437.         setBounds(22568, 5, 120, index, Interface);index++;
  3438.         setBounds(22570, 5, 120, index, Interface);index++;
  3439.         setBounds(22572, 10, 160, index, Interface);index++;
  3440.         setBounds(22574, 10, 160, index, Interface);index++;
  3441.         setBounds(22576, 10, 160, index, Interface);index++;
  3442.         setBounds(22578, 10, 160, index, Interface);index++;
  3443.         setBounds(22580, 10, 160, index, Interface);index++;
  3444.         setBounds(19021, 1, 40, index, Interface);index++;
  3445.     }
  3446.    
  3447.         public static void SquealOfFortune(TextDrawingArea[] tda) {
  3448.         RSInterface Interface = addTabInterface(48500);
  3449.         addSprite(48501, 0, "SquealOfFortune/BG");
  3450.         addHoverButton(48502, "SquealOfFortune/SPRITE", 0, 156, 62, "Open Squeal of Fortune", -1, 48503, 1);
  3451.         addHoveredButton(48503, "SquealOfFortune/SPRITE", 1, 156, 62, 48504);
  3452.         addHoverButton(48505, "SquealOfFortune/SPRITE", 0, 156, 62, "Buy Spins", -1, 48506, 1);
  3453.         addHoveredButton(48506, "SquealOfFortune/SPRITE", 2, 156, 62, 48507);
  3454.         addText(48508, "0", tda, 0, 0xE3CCCF, true, true);
  3455.         setChildren(6, Interface); 
  3456.         setBounds(48501, 8, 0, 0, Interface);//326, 276
  3457.         setBounds(48502, 25, 81, 1, Interface);    
  3458.         setBounds(48503, 25, 81, 2, Interface);
  3459.         setBounds(48505, 25, 149, 3, Interface);       
  3460.         setBounds(48506, 25, 149, 4, Interface);   
  3461.         setBounds(48508, 102, 241, 5, Interface);  
  3462.     }
  3463.    
  3464.     public static void optionTab(TextDrawingArea[] tda) {
  3465.         RSInterface tab = addTabInterface(904);
  3466.         RSInterface energy = interfaceCache[149];
  3467.         energy.textColor = 0xff9933;
  3468.         addSprite(905, 9, "/Options/SPRITE");
  3469.         addSprite(907, 18, "/Options/SPRITE");
  3470.         addSprite(909, 29, "/Options/SPRITE");
  3471.         addSprite(951, 32, "/Options/SPRITE");
  3472.         addSprite(953, 33, "/Options/SPRITE");
  3473.         addSprite(955, 34, "/Options/SPRITE");
  3474.         addSprite(947, 36, "/Options/SPRITE");
  3475.         addSprite(949, 35, "/Options/SPRITE");
  3476.         //run button here
  3477.         addConfigButton(152, 904, 30, 31, "/Options/SPRITE", 40, 40, "Toggle-run", 1, 5, 173);
  3478.         addConfigButton(906, 904, 10, 14, "/Options/SPRITE", 32, 16, "Dark", 1, 5, 166);
  3479.         addConfigButton(908, 904, 11, 15, "/Options/SPRITE", 32, 16, "Normal", 2, 5, 166);
  3480.         addConfigButton(910, 904, 12, 16, "/Options/SPRITE", 32, 16, "Bright", 3, 5, 166);
  3481.         addConfigButton(912, 904, 13, 17, "/Options/SPRITE", 32, 16, "Very Bright", 4, 5, 166);
  3482.         addConfigButton(930, 904, 19, 24, "/Options/SPRITE", 26, 16, "Music Off", 4, 5, 168);
  3483.         addConfigButton(931, 904, 20, 25, "/Options/SPRITE", 26, 16, "Music Level-1", 3, 5, 168);
  3484.         addConfigButton(932, 904, 21, 26, "/Options/SPRITE", 26, 16, "Music Level-2", 2, 5, 168);
  3485.         addConfigButton(933, 904, 22, 27, "/Options/SPRITE", 26, 16, "Music Level-3", 1, 5, 168);
  3486.         addConfigButton(934, 904, 23, 28, "/Options/SPRITE", 24, 16, "Music Level-4", 0, 5, 168);
  3487.         addConfigButton(941, 904, 19, 24, "/Options/SPRITE", 26, 16, "Sound Effects Off", 4, 5, 169);
  3488.         addConfigButton(942, 904, 20, 25, "/Options/SPRITE", 26, 16, "Sound Effects Level-1", 3, 5, 169);
  3489.         addConfigButton(943, 904, 21, 26, "/Options/SPRITE", 26, 16, "Sound Effects Level-2", 2, 5, 169);
  3490.         addConfigButton(944, 904, 22, 27, "/Options/SPRITE", 26, 16, "Sound Effects Level-3", 1, 5, 169);
  3491.         addConfigButton(945, 904, 23, 28, "/Options/SPRITE", 24, 16, "Sound Effects Level-4", 0, 5, 169);
  3492.         addConfigButton(913, 904, 30, 31, "/Options/SPRITE", 40, 40, "Toggle-Mouse Buttons", 0, 5, 170);
  3493.         addConfigButton(915, 904, 30, 31, "/Options/SPRITE", 40, 40, "Toggle-Chat Effects", 0, 5, 171);
  3494.         addConfigButton(957, 904, 30, 31, "/Options/SPRITE", 40, 40, "Toggle-Split Private Chat", 1, 5, 287);
  3495.         addConfigButton(12464, 904, 30, 31, "/Options/SPRITE", 40, 40, "Toggle-Accept Aid", 0, 5, 427);
  3496.         tab.totalChildren(28);
  3497.         int x = 0;
  3498.         int y = 2;
  3499.         tab.child(0, 905, 13 + x, 10 + y);
  3500.         tab.child(1, 906, 48 + x, 18 + y);
  3501.         tab.child(2, 908, 80 + x, 18 + y);
  3502.         tab.child(3, 910, 112 + x, 18 + y);
  3503.         tab.child(4, 912, 144 + x, 18 + y);
  3504.         tab.child(5, 907, 14 + x, 55 + y);
  3505.         tab.child(6, 930, 49 + x, 61 + y);
  3506.         tab.child(7, 931, 75 + x, 61 + y);
  3507.         tab.child(8, 932, 101 + x, 61 + y);
  3508.         tab.child(9, 933, 127 + x, 61 + y);
  3509.         tab.child(10, 934, 151 + x, 61 + y);
  3510.         tab.child(11, 909, 13 + x, 99 + y);
  3511.         tab.child(12, 941, 49 + x, 104 + y);
  3512.         tab.child(13, 942, 75 + x, 104 + y);
  3513.         tab.child(14, 943, 101 + x, 104 + y);
  3514.         tab.child(15, 944, 127 + x, 104 + y);
  3515.         tab.child(16, 945, 151 + x, 104 + y);
  3516.         tab.child(17, 913, 15, 153);
  3517.         tab.child(18, 955, 19, 159);
  3518.         tab.child(19, 915, 75, 153);
  3519.         tab.child(20, 953, 79, 160);
  3520.         tab.child(21, 957, 135, 153);
  3521.         tab.child(22, 951, 139, 159);
  3522.         tab.child(23, 12464, 15, 208);
  3523.         tab.child(24, 949, 20, 213);
  3524.         tab.child(25, 152, 75, 208);
  3525.         tab.child(26, 947, 87, 212);
  3526.         tab.child(27, 149, 80, 231);
  3527.     }
  3528.    
  3529.     public static void clanChatTab(TextDrawingArea[] tda) {
  3530.         RSInterface tab = addTabInterface(18128);
  3531.         addHoverButton(18129, "/Clan Chat/SPRITE", 6, 72, 32, "Join Chat", 550, 18130, 1);
  3532.         addHoveredButton(18130, "/Clan Chat/SPRITE", 7, 72, 32, 18131);
  3533.         addHoverButton(18132, "/Clan Chat/SPRITE", 6, 72, 32, "Leave Chat", -1, 18133, 5);
  3534.         addHoveredButton(18133, "/Clan Chat/SPRITE", 7, 72, 32, 18134);
  3535.         addButton(18250, 0, "/Clan Chat/Lootshare", "Toggle lootshare");
  3536.         addText(18135, "Join Chat", tda, 0, 0xff9b00, true, true);
  3537.         addText(18136, "Leave Chat", tda, 0, 0xff9b00, true, true);
  3538.         addSprite(18137, 37, "/Clan Chat/SPRITE");
  3539.         addText(18138, "Clan Chat", tda, 1, 0xff9b00, true, true);
  3540.         addText(18139, "Talking in: Not in chat", tda, 0, 0xff9b00, false, true);
  3541.         addText(18140, "Owner: None", tda, 0, 0xff9b00, false, true);
  3542.         tab.totalChildren(14);
  3543.         tab.child(0, 16126, 0, 221);
  3544.         tab.child(1, 16126, 0, 59);
  3545.         tab.child(2, 18137, 0, 62);
  3546.         tab.child(3, 18143, 0, 62);
  3547.         tab.child(4, 18129, 15, 226);
  3548.         tab.child(5, 18130, 15, 226);
  3549.         tab.child(6, 18132, 103, 226);
  3550.         tab.child(7, 18133, 103, 226);
  3551.         tab.child(8, 18135, 51, 237);
  3552.         tab.child(9, 18136, 139, 237);
  3553.         tab.child(10, 18138, 95, 1);
  3554.         tab.child(11, 18139, 10, 23);
  3555.         tab.child(12, 18140, 25, 38);
  3556.         tab.child(13, 18250, 145,15);
  3557.         /* Text area */
  3558.         RSInterface list = addTabInterface(18143);
  3559.         list.totalChildren(100);
  3560.         for(int i = 18144; i <= 18244; i++) {
  3561.             addText(i, "", tda, 0, 0xffffff, false, true);
  3562.         }
  3563.         for(int id = 18144, i = 0; id <= 18243 && i <= 99; id++, i++) {
  3564.             list.children[i] = id; list.childX[i] = 5;
  3565.             for(int id2 = 18144, i2 = 1; id2 <= 18243 && i2<= 99; id2++, i2++) {
  3566.                 list.childY[0] = 2;
  3567.                 list.childY[i2] = list.childY[i2 - 1] + 14;
  3568.             }
  3569.         }
  3570.         list.height = 158; list.width = 174;
  3571.         list.scrollMax = 1405;
  3572.     }
  3573.    
  3574.     public static void addText(int i, String s,int k, boolean l, boolean m, int a,TextDrawingArea[] TDA, int j) {
  3575.         RSInterface RSInterface = addInterface(i);
  3576.         RSInterface.parentID = i;
  3577.         RSInterface.id = i;
  3578.         RSInterface.type = 4;
  3579.         RSInterface.atActionType = 0;
  3580.         RSInterface.width = 0;
  3581.         RSInterface.height = 0;
  3582.         RSInterface.contentType = 0;
  3583.         RSInterface.opacity = 0;
  3584.         RSInterface.hoverType = a;
  3585.         RSInterface.centerText = l;
  3586.         RSInterface.textShadow = m;
  3587.         RSInterface.textDrawingAreas = TDA[j];
  3588.         RSInterface.message = s;
  3589.         RSInterface.aString228 = "";
  3590.         RSInterface.textColor = k;
  3591.     }
  3592.    
  3593.     public static void Pestpanel(TextDrawingArea[] tda) {
  3594.         RSInterface RSinterface = addInterface(21119);
  3595.         addText(21120, "What", 0x999999, false, true, 52, tda, 1);
  3596.         addText(21121, "What", 0x33cc00, false, true, 52, tda, 1);
  3597.         addText(21122, "(Need 5 to 25 players)", 0xFFcc33, false, true, 52, tda, 1);
  3598.         addText(21123, "Points", 0x33ccff, false, true, 52, tda, 1);
  3599.         int last = 4;
  3600.         RSinterface.children = new int[last];
  3601.         RSinterface.childX = new int[last];
  3602.         RSinterface.childY = new int[last];
  3603.         setBounds(21120, 15, 12, 0,RSinterface);
  3604.         setBounds(21121, 15, 30, 1,RSinterface);
  3605.         setBounds(21122, 15, 48, 2,RSinterface);
  3606.         setBounds(21123, 15, 66, 3,RSinterface);
  3607.     }
  3608.        
  3609.     public static void Pestpanel2(TextDrawingArea[] tda) {
  3610.         RSInterface RSinterface = addInterface(21100);
  3611.         addSprite(21101, 0, "Pest Control/PEST1");
  3612.         addSprite(21102, 1, "Pest Control/PEST1");
  3613.         addSprite(21103, 2, "Pest Control/PEST1");
  3614.         addSprite(21104, 3, "Pest Control/PEST1");
  3615.         addSprite(21105, 4, "Pest Control/PEST1");
  3616.         addSprite(21106, 5, "Pest Control/PEST1");
  3617.         addText(21107, "", 0xCC00CC, false, true, 52, tda, 1);
  3618.         addText(21108, "", 0x0000FF, false, true, 52, tda, 1);
  3619.         addText(21109, "", 0xFFFF44, false, true, 52, tda, 1);
  3620.         addText(21110, "", 0xCC0000, false, true, 52, tda, 1);
  3621.         addText(21111, "250", 0x99FF33, false, true, 52, tda, 1);//w purp
  3622.         addText(21112, "250", 0x99FF33, false, true, 52, tda, 1);//e blue
  3623.         addText(21113, "250", 0x99FF33, false, true, 52, tda, 1);//se yel
  3624.         addText(21114, "250", 0x99FF33, false, true, 52, tda, 1);//sw red
  3625.         addText(21115, "200", 0x99FF33, false, true, 52, tda, 1);//attacks
  3626.         addText(21116, "0", 0x99FF33, false, true, 52, tda, 1);//knights hp
  3627.         addText(21117, "Time Remaining:", 0xFFFFFF, false, true, 52, tda, 0);
  3628.         addText(21118, "", 0xFFFFFF, false, true, 52, tda, 0);
  3629.         int last = 18;
  3630.         RSinterface.children = new int[last];
  3631.         RSinterface.childX = new int[last];
  3632.         RSinterface.childY = new int[last];
  3633.         setBounds(21101, 361, 26, 0,RSinterface);
  3634.         setBounds(21102, 396, 26, 1,RSinterface);
  3635.         setBounds(21103, 436, 26, 2,RSinterface);
  3636.         setBounds(21104, 474, 26, 3,RSinterface);
  3637.         setBounds(21105, 3, 21, 4,RSinterface);
  3638.         setBounds(21106, 3, 50, 5,RSinterface);
  3639.         setBounds(21107, 371, 60, 6,RSinterface);
  3640.         setBounds(21108, 409, 60, 7,RSinterface);
  3641.         setBounds(21109, 443, 60, 8,RSinterface);
  3642.         setBounds(21110, 479, 60, 9,RSinterface);
  3643.         setBounds(21111, 362, 10, 10,RSinterface);
  3644.         setBounds(21112, 398, 10, 11,RSinterface);
  3645.         setBounds(21113, 436, 10, 12,RSinterface);
  3646.         setBounds(21114, 475, 10, 13,RSinterface);
  3647.         setBounds(21115, 32, 32, 14,RSinterface);
  3648.         setBounds(21116, 32, 62, 15,RSinterface);
  3649.         setBounds(21117, 8, 88, 16,RSinterface);
  3650.         setBounds(21118, 87, 88, 17,RSinterface);
  3651.     }
  3652.    
  3653.     public String hoverText;
  3654.     public static void addHoverBox(int id, String text) {
  3655.         RSInterface rsi = interfaceCache[id];//addTabInterface(id);
  3656.         rsi.id = id;
  3657.         rsi.parentID = id;
  3658.         rsi.interfaceShown = true;
  3659.         rsi.type = 8;
  3660.         rsi.hoverText = text;
  3661.     }
  3662.    
  3663.     public static void addText(int id, String text, TextDrawingArea tda[], int idx, int color, boolean center, boolean shadow) {
  3664.         RSInterface tab = addTabInterface(id);
  3665.         tab.parentID = id;
  3666.         tab.id = id;
  3667.         tab.type = 4;
  3668.         tab.atActionType = 0;
  3669.         tab.width = 0;
  3670.         tab.height = 11;
  3671.         tab.contentType = 0;
  3672.         tab.opacity = 0;
  3673.         tab.hoverType = -1;
  3674.         tab.centerText = center;
  3675.         tab.textShadow = shadow;
  3676.         tab.textDrawingAreas = tda[idx];
  3677.         tab.message = text;
  3678.         tab.aString228 = "";
  3679.         tab.textColor = color;
  3680.         tab.anInt219 = 0;
  3681.         tab.anInt216 = 0;
  3682.         tab.anInt239 = 0;  
  3683.     }
  3684.  
  3685.     public static void addButton(int id, int sid, String spriteName, String tooltip, int w, int h) {
  3686.         RSInterface tab = interfaceCache[id] = new RSInterface();
  3687.         tab.id = id;
  3688.         tab.parentID = id;
  3689.         tab.type = 5;
  3690.         tab.atActionType = 1;
  3691.         tab.contentType = 0;
  3692.         tab.opacity = (byte)0;
  3693.         tab.hoverType = 52;
  3694.         tab.sprite1 = imageLoader(sid, spriteName);
  3695.         tab.sprite2 = imageLoader(sid, spriteName);
  3696.         tab.width = w;
  3697.         tab.height = h;
  3698.         tab.tooltip = tooltip;
  3699.     }
  3700.    
  3701.     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) {
  3702.         RSInterface Tab = addTabInterface(ID);
  3703.         Tab.parentID = pID;
  3704.         Tab.id = ID;
  3705.         Tab.type = 5;
  3706.         Tab.atActionType = aT;
  3707.         Tab.contentType = 0;
  3708.         Tab.width = width;
  3709.         Tab.height = height;
  3710.         Tab.opacity = 0;
  3711.         Tab.hoverType = -1;
  3712.         Tab.valueCompareType = new int[1];
  3713.         Tab.requiredValues = new int[1];
  3714.         Tab.valueCompareType[0] = 1;
  3715.         Tab.requiredValues[0] = configID;
  3716.         Tab.valueIndexArray = new int[1][3];
  3717.         Tab.valueIndexArray[0][0] = 5;
  3718.         Tab.valueIndexArray[0][1] = configFrame;
  3719.         Tab.valueIndexArray[0][2] = 0;
  3720.         Tab.sprite1 = imageLoader(bID, bName);
  3721.         Tab.sprite2 = imageLoader(bID2, bName);
  3722.         Tab.tooltip = tT;
  3723.     }
  3724.  
  3725.     public static void addSprite(int id, int spriteId, String spriteName) {
  3726.         RSInterface tab = interfaceCache[id] = new RSInterface();
  3727.         tab.id = id;
  3728.         tab.parentID = id;
  3729.         tab.type = 5;
  3730.         tab.atActionType = 0;
  3731.         tab.contentType = 0;
  3732.         tab.opacity = (byte)0;
  3733.         tab.hoverType = 52;
  3734.         tab.sprite1 = imageLoader(spriteId, spriteName);
  3735.         tab.sprite2 = imageLoader(spriteId, spriteName);
  3736.         tab.width = 512;
  3737.         tab.height = 334;
  3738.     }
  3739.  
  3740.     public static void addHoverButton(int i, String imageName, int j, int width, int height, String text, int contentType, int hoverOver, int aT) {//hoverable button
  3741.         RSInterface tab = addTabInterface(i);
  3742.         tab.id = i;
  3743.         tab.parentID = i;
  3744.         tab.type = 5;
  3745.         tab.atActionType = aT;
  3746.         tab.contentType = contentType;
  3747.         tab.opacity = 0;
  3748.         tab.hoverType = hoverOver;
  3749.         tab.sprite1 = imageLoader(j, imageName);
  3750.         tab.sprite2 = imageLoader(j, imageName);
  3751.         tab.width = width;
  3752.         tab.height = height;
  3753.         tab.tooltip = text;
  3754.     }
  3755.  
  3756.     public static void addHoveredButton(int i, String imageName, int j, int w, int h, int IMAGEID) {//hoverable button
  3757.         RSInterface tab = addTabInterface(i);
  3758.         tab.parentID = i;
  3759.         tab.id = i;
  3760.         tab.type = 0;
  3761.         tab.atActionType = 0;
  3762.         tab.width = w;
  3763.         tab.height = h;
  3764.         tab.interfaceShown = true;
  3765.         tab.opacity = 0;
  3766.         tab.hoverType = -1;
  3767.         tab.scrollMax = 0;
  3768.         addHoverImage(IMAGEID, j, j, imageName);
  3769.         tab.totalChildren(1);
  3770.         tab.child(0, IMAGEID, 0, 0);
  3771.     }
  3772.  
  3773.     public static void addHoverImage(int i, int j, int k, String name) {
  3774.         RSInterface tab = addTabInterface(i);
  3775.         tab.id = i;
  3776.         tab.parentID = i;
  3777.         tab.type = 5;
  3778.         tab.atActionType = 0;
  3779.         tab.contentType = 0;
  3780.         tab.width = 512;
  3781.         tab.height = 334;
  3782.         tab.opacity = 0;
  3783.         tab.hoverType = 52;
  3784.         tab.sprite1 = imageLoader(j, name);
  3785.         tab.sprite2 = imageLoader(k, name);
  3786.     }
  3787.  
  3788.     public static void addTransparentSprite(int id, int spriteId, String spriteName) {
  3789.         RSInterface tab = interfaceCache[id] = new RSInterface();
  3790.         tab.id = id;
  3791.         tab.parentID = id;
  3792.         tab.type = 5;
  3793.         tab.atActionType = 0;
  3794.         tab.contentType = 0;
  3795.         tab.opacity = (byte)0;
  3796.         tab.hoverType = 52;
  3797.         tab.sprite1 = imageLoader(spriteId, spriteName);
  3798.         tab.sprite2 = imageLoader(spriteId, spriteName);
  3799.         tab.width = 512;
  3800.         tab.height = 334;
  3801.         tab.drawsTransparent = true;
  3802.     }
  3803.  
  3804.     public static RSInterface addScreenInterface(int id) {
  3805.         RSInterface tab = interfaceCache[id] = new RSInterface();
  3806.         tab.id = id;
  3807.         tab.parentID = id;
  3808.         tab.type = 0;
  3809.         tab.atActionType = 0;
  3810.         tab.contentType = 0;
  3811.         tab.width = 512;
  3812.         tab.height = 334;
  3813.         tab.opacity = (byte)0;
  3814.         tab.hoverType = 0;
  3815.         return tab;
  3816.     }
  3817.  
  3818.     public static RSInterface addTabInterface(int id) {
  3819.         RSInterface tab = interfaceCache[id] = new RSInterface();
  3820.         tab.id = id;//250
  3821.         tab.parentID = id;//236
  3822.         tab.type = 0;//262
  3823.         tab.atActionType = 0;//217
  3824.         tab.contentType = 0;
  3825.         tab.width = 512;//220
  3826.         tab.height = 700;//267
  3827.         tab.opacity = (byte)0;
  3828.         tab.hoverType = -1;//Int 230
  3829.         return tab;
  3830.     }
  3831.  
  3832.     private static Sprite imageLoader(int i, String s) {
  3833.         long l = (TextClass.method585(s) << 8) + (long)i;
  3834.         Sprite sprite = (Sprite) aMRUNodes_238.insertFromCache(l);
  3835.         if(sprite != null)
  3836.             return sprite;
  3837.         try {
  3838.             sprite = new Sprite(s+" "+i);
  3839.             aMRUNodes_238.removeFromCache(sprite, l);
  3840.         } catch(Exception exception) {
  3841.             return null;
  3842.         }
  3843.         return sprite;
  3844.     }
  3845.  
  3846.     public void child(int id, int interID, int x, int y) {
  3847.         children[id] = interID;
  3848.         childX[id] = x;
  3849.         childY[id] = y;
  3850.     }
  3851.  
  3852.     public void totalChildren(int t) {
  3853.         children = new int[t];
  3854.         childX = new int[t];
  3855.         childY = new int[t];
  3856.     }
  3857.  
  3858.     private Model method206(int i, int j)
  3859.     {
  3860.         Model model = (Model) aMRUNodes_264.insertFromCache((i << 16) + j);
  3861.         if(model != null)
  3862.             return model;
  3863.         if(i == 1)
  3864.             model = Model.method462(j);
  3865.         if(i == 2)
  3866.             model = EntityDef.forID(j).method160();
  3867.         if(i == 3)
  3868.             model = client.myPlayer.method453();
  3869.         if(i == 4)
  3870.             model = ItemDef.forID(j).method202(50);
  3871.         if(i == 5)
  3872.             model = null;
  3873.         if(model != null)
  3874.             aMRUNodes_264.removeFromCache(model, (i << 16) + j);
  3875.         return model;
  3876.     }
  3877.  
  3878.     private static Sprite method207(int i, StreamLoader streamLoader, String s) {
  3879.         long l = (TextClass.method585(s) << 8) + (long)i;
  3880.         Sprite sprite = (Sprite) aMRUNodes_238.insertFromCache(l);
  3881.         if(sprite != null)
  3882.             return sprite;
  3883.         try {
  3884.             sprite = new Sprite(streamLoader, s, i);
  3885.             aMRUNodes_238.removeFromCache(sprite, l);
  3886.         } catch(Exception _ex) {
  3887.             return null;
  3888.         }
  3889.         return sprite;
  3890.     }
  3891.  
  3892.     public static void method208(boolean flag, Model model) {
  3893.         int i = 0;//was parameter
  3894.         int j = 5;//was parameter
  3895.         if(flag)
  3896.             return;
  3897.         aMRUNodes_264.unlinkAll();
  3898.         if(model != null && j != 4)
  3899.             aMRUNodes_264.removeFromCache(model, (j << 16) + i);
  3900.     }
  3901.  
  3902.     public Model method209(int j, int k, boolean flag) {
  3903.         Model model;
  3904.         if(flag)
  3905.             model = method206(anInt255, anInt256);
  3906.         else
  3907.             model = method206(anInt233, mediaID);
  3908.         if(model == null)
  3909.             return null;
  3910.         if(k == -1 && j == -1 && model.anIntArray1640 == null)
  3911.             return model;
  3912.         Model model_1 = new Model(true, Class36.method532(k) & Class36.method532(j), false, model);
  3913.         if(k != -1 || j != -1)
  3914.             model_1.method469();
  3915.         if(k != -1)
  3916.             model_1.method470(k);
  3917.         if(j != -1)
  3918.             model_1.method470(j);
  3919.         model_1.method479(64, 768, -50, -10, -50, true);
  3920.             return model_1;
  3921.     }
  3922.  
  3923.     public RSInterface() {}
  3924.  
  3925.     public static StreamLoader aClass44;
  3926.     public boolean drawsTransparent;
  3927.     public Sprite sprite1;
  3928.     public int anInt208;
  3929.     public Sprite sprites[];
  3930.     public static RSInterface interfaceCache[];
  3931.     public int requiredValues[];
  3932.     public int contentType;//anInt214
  3933.     public int spritesX[];
  3934.     public int anInt216;
  3935.     public int atActionType;
  3936.     public String spellName;
  3937.     public int anInt219;
  3938.     public int width;
  3939.     public String tooltip;
  3940.     public String selectedActionName;
  3941.     public boolean centerText;
  3942.     public int scrollPosition;
  3943.     public String actions[];
  3944.     public int valueIndexArray[][];
  3945.     public boolean aBoolean227;
  3946.     public String aString228;
  3947.     public int hoverType;
  3948.     public int invSpritePadX;
  3949.     public int textColor;
  3950.     public int anInt233;
  3951.     public int mediaID;
  3952.     public boolean aBoolean235;
  3953.     public int parentID;
  3954.     public int spellUsableOn;
  3955.     private static MRUNodes aMRUNodes_238;
  3956.     public int anInt239;
  3957.     public int children[];
  3958.     public int childX[];
  3959.     public boolean usableItemInterface;
  3960.     public TextDrawingArea textDrawingAreas;
  3961.     public int invSpritePadY;
  3962.     public int valueCompareType[];
  3963.     public int anInt246;
  3964.     public int spritesY[];
  3965.     public String message;
  3966.     public boolean isInventoryInterface;
  3967.     public int id;
  3968.     public int invStackSizes[];
  3969.     public int inv[];
  3970.     public byte opacity;
  3971.     private int anInt255;
  3972.     private int anInt256;
  3973.     public int anInt257;
  3974.     public int anInt258;
  3975.     public boolean aBoolean259;
  3976.     public Sprite sprite2;
  3977.     public int scrollMax;
  3978.     public int type;
  3979.     public int anInt263;
  3980.     private static final MRUNodes aMRUNodes_264 = new MRUNodes(30);
  3981.     public int anInt265;
  3982.     public boolean interfaceShown;
  3983.     public int height;
  3984.     public boolean textShadow;
  3985.     public int modelZoom;
  3986.     public int modelRotation1;
  3987.     public int modelRotation2;
  3988.     public int childY[];
  3989.    
  3990.     public static void addText(int id, String text, TextDrawingArea tda[], int idx, int color) {
  3991.         RSInterface tab = addTabInterface(id);
  3992.         tab.id = id;
  3993.         tab.parentID = id;
  3994.         tab.type = 4;
  3995.         tab.atActionType = 0;
  3996.         tab.width = 174;
  3997.         tab.height = 11;
  3998.         tab.contentType = 0;
  3999.         tab.opacity = 0;
  4000.         tab.hoverType = -1;
  4001.         tab.centerText = false;
  4002.         tab.textShadow = true;
  4003.         tab.textDrawingAreas = tda[idx];
  4004.         tab.message = text;
  4005.         tab.aString228 = "";
  4006.         tab.textColor = color;
  4007.         tab.anInt219 = 0;
  4008.         tab.anInt216 = 0;
  4009.         tab.anInt239 = 0;  
  4010.     }
  4011.    
  4012.     public static void itemsOnDeath(TextDrawingArea[] wid) {
  4013.         RSInterface rsinterface = addInterface(17100);
  4014.         rsinterface.scrollMax = 0;
  4015.         rsinterface.interfaceShown = false;
  4016.         addSprite(17101, 2, "Equipment/Sprite");
  4017.         addHover(17102, 3, 0, 10601, 1, "Equipment/Sprite", 17, 17, "Close Window");
  4018.         addHovered(10601, 3, "Equipment/Sprite", 17, 17, 10602);
  4019.         addText(17103, "", wid, 2, 0xff981f);
  4020.         addText(17104, "", wid, 1, 0xff981f);
  4021.         addText(17105, "", wid, 1, 0xff981f);
  4022.         addText(17106, "", wid, 1, 0xff981f);
  4023.         addText(17107, "", wid, 1, 0xffcc33);
  4024.         addText(17108, "", wid, 1, 0xffcc33);
  4025.         addText(17124, "", wid, 0, 0xff981f);
  4026.         rsinterface.totalChildren(14);
  4027.         setBounds(17101, 7, 8, 0, rsinterface);
  4028.         setBounds(17102, 480, 17, 1, rsinterface);
  4029.         setBounds(17103, 185, 18, 2, rsinterface);
  4030.         setBounds(17104, 22, 50, 3, rsinterface);
  4031.         setBounds(17105, 22, 110, 4, rsinterface);
  4032.         setBounds(17106, 347, 47, 5, rsinterface);
  4033.         setBounds(17107, 349, 270, 6, rsinterface);
  4034.         setBounds(17108, 398, 298, 7, rsinterface);
  4035.         setBounds(17129, 348, 64, 8, rsinterface);
  4036.         setBounds(10494, 26, 74, 9, rsinterface);
  4037.         setBounds(10600, 26, 133, 10, rsinterface);
  4038.         setBounds(10601, 480, 17, 11, rsinterface);
  4039.         setBounds(17131, 480, 17, 12, rsinterface);
  4040.         setBounds(17124, 349, 255, 13, rsinterface);///Carried Wealth
  4041.     }
  4042.    
  4043.       /*public static void itemsOnDeath(TextDrawingArea[] wid)
  4044.       {
  4045.         RSInterface localRSInterface = addInterface(17100);
  4046.         addSprite(17101, 2, "Equipment/Sprite");
  4047.         addHover(17102, 3, 0, 10601, 1, "Equipment/Sprite", 17, 17, "Close Window");
  4048.         addHovered(10601, 3, "Equipment/Sprite", 17, 17, 10602);
  4049.         addText(17103, "", wid, 2, 0xff981f);
  4050.         addText(17104, "", wid, 1, 0xff981f);
  4051.         addText(17105, "", wid, 1, 0xff981f);
  4052.         addText(17106, "", wid, 1, 0xff981f);
  4053.         addText(17107, "", wid, 1, 0xffcc33);
  4054.         addText(17108, "", wid, 1, 0xffcc33);
  4055.         addText(17124, "", wid, 0, 0xff981f);
  4056.         localRSInterface.scrollMax = 0;
  4057.         localRSInterface.interfaceShown = false;
  4058.         localRSInterface.children = new int[12];
  4059.         localRSInterface.childX = new int[12];
  4060.         localRSInterface.childY = new int[12];
  4061.         localRSInterface.children[0] = 17101;
  4062.         localRSInterface.childX[0] = 7;
  4063.         localRSInterface.childY[0] = 8;
  4064.         localRSInterface.children[1] = 17102;
  4065.         localRSInterface.childX[1] = 480;
  4066.         localRSInterface.childY[1] = 17;
  4067.         localRSInterface.children[2] = 17103;
  4068.         localRSInterface.childX[2] = 185;
  4069.         localRSInterface.childY[2] = 18;
  4070.         localRSInterface.children[3] = 17104;
  4071.         localRSInterface.childX[3] = 22;
  4072.         localRSInterface.childY[3] = 50;
  4073.         localRSInterface.children[4] = 17105;
  4074.         localRSInterface.childX[4] = 22;
  4075.         localRSInterface.childY[4] = 110;
  4076.         localRSInterface.children[5] = 17106;
  4077.         localRSInterface.childX[5] = 347;
  4078.         localRSInterface.childY[5] = 47;
  4079.         localRSInterface.children[6] = 17107;
  4080.         localRSInterface.childX[6] = 349;
  4081.         localRSInterface.childY[6] = 270;
  4082.         localRSInterface.children[7] = 17108;
  4083.         localRSInterface.childX[7] = 398;
  4084.         localRSInterface.childY[7] = 298;
  4085.         localRSInterface.children[8] = 17115;
  4086.         localRSInterface.childX[8] = 348;
  4087.         localRSInterface.childY[8] = 64;
  4088.         localRSInterface.children[9] = 10494;
  4089.         localRSInterface.childX[9] = 26;
  4090.         localRSInterface.childY[9] = 74;
  4091.         localRSInterface.children[10] = 10600;
  4092.         localRSInterface.childX[10] = 26;
  4093.         localRSInterface.childY[10] = 133;
  4094.         localRSInterface.children[11] = 10601;
  4095.         localRSInterface.childX[11] = 480;
  4096.         localRSInterface.childY[11] = 17;
  4097.       }*/
  4098.    
  4099.     public static void itemsOnDeathDATA(TextDrawingArea[] wid) {
  4100.         RSInterface rsinterface = addInterface(17129);
  4101.         rsinterface.parentID = 17129;
  4102.         rsinterface.id = 17129;
  4103.         rsinterface.type = 0;
  4104.         rsinterface.atActionType = 0;
  4105.         rsinterface.contentType = 0;
  4106.         rsinterface.width = 130;
  4107.         rsinterface.height = 180;
  4108.         rsinterface.opacity = 0;
  4109.         rsinterface.hoverType = -1;
  4110.         rsinterface.scrollMax = 280;
  4111.         int y = 0;
  4112.         int index = 0;
  4113.         setChildren(15, rsinterface);
  4114.         for(int idx = 17109; idx <= 17123;idx++) {
  4115.             addText(idx, "", wid, 0, 0xff981f);
  4116.             setBounds(idx, 0, y, index, rsinterface);
  4117.             index++;
  4118.             y += 12;
  4119.         }
  4120.     }
  4121.  
  4122.       public static void EquipmentTab(TextDrawingArea[] wid)
  4123.       {
  4124.         RSInterface localRSInterface = interfaceCache[1644];
  4125.         addHoverButton(15201, "Equipment/CUSTOM", 1, 40, 40, "Show Equipment Screen", 0, 15202, 1);
  4126.         addHoveredButton(15202, "Equipment/CUSTOM", 5, 40, 40, 15203);
  4127.         addHoverButton(15204, "Equipment/CUSTOM", 2, 40, 40, "Items Kept on Death", 0, 15205, 1);
  4128.         addHoveredButton(15205, "Equipment/CUSTOM", 4, 40, 40, 15206);
  4129.         localRSInterface.child(23, 15201, 21, 210);
  4130.         //localRSInterface.child(1, 15226, 95, 250);
  4131.         localRSInterface.child(24, 15202, 21, 210);
  4132.         localRSInterface.child(25, 15204, 129, 210);
  4133.         localRSInterface.child(26, 15205, 129, 210);
  4134.       }
  4135.    
  4136.     public static void equipmentScreen(TextDrawingArea[] wid) {
  4137.         /*RSInterface Interface = RSInterface.interfaceCache[1644];
  4138.         int ix = 0;
  4139.         addAura(ix);
  4140.         addButton(19144, 6, "Equipment/CUSTOM", 150, 40, "Show Equipment Stats", 1);
  4141.         removeSomething(19145);
  4142.         removeSomething(19146);
  4143.         removeSomething(19147);
  4144.         setBounds(19144, 21, 210, 23, Interface);
  4145.         setBounds(19145, 40, 210, 24, Interface);
  4146.         setBounds(19146, 40, 210, 25, Interface);
  4147.         setBounds(19147, 40, 210, 26, Interface);*/
  4148.        
  4149.         RSInterface tab = addTabInterface(15106);
  4150.         addSprite(15107, 1, "bg");
  4151.         addHoverButton(15210, "SPRITE", 1, 21, 21, "Close", 250, 15211, 3);
  4152.         addHoveredButton(15211, "SPRITE", 3, 21, 21, 15212);
  4153.         addHoverButton(22024, "Bank/BANK", 25, 72, 32, "Return To Bank", -1, 22025, 5);
  4154.             addHoveredButton(22025, "Bank/BANK", 26, 72, 32, 22026);
  4155.         addText(15111, "", wid, 2, 0xe4a146, false, true);
  4156.         int rofl = 3;
  4157.         addText(15112, "Attack bonuses", wid, 2, 0xFF8900, false, true);
  4158.         addText(15113, "Defence bonuses", wid, 2, 0xFF8900, false, true);
  4159.         addText(15114, "Other bonuses", wid, 2, 0xFF8900, false, true);
  4160.         addText(19148, "Summoning: +0", wid, 1, 0xFF8900, false, true);
  4161.         addText(19149, "Absorb Melee: +0%", wid, 1, 0xFF9200, false, true);
  4162.         addText(19150, "Absorb Magic: +0%", wid, 1, 0xFF9200, false, true);
  4163.         addText(19151, "Absorb Ranged: +0%", wid, 1, 0xFF9200, false, true);
  4164.         addText(19152, "Ranged Strength: 0", wid, 1, 0xFF9200, false, true);
  4165.         addText(19153, "Magic Damage: +0%", wid, 1, 0xFF9200, false, true);
  4166.         for(int i = 1675; i <= 1684; i++) {
  4167.             textSize(i, wid, 1);
  4168.         }
  4169.         textSize(1686, wid, 1);
  4170.         textSize(1687, wid, 1);
  4171.         addChar(15125);
  4172.         tab.totalChildren(50);
  4173.         tab.child(0, 15107, 15, 5);
  4174.         tab.child(1, 15210, 476, 8);
  4175.         tab.child(2, 15211, 476, 8);
  4176.         tab.child(3, 15111, 14, 30);
  4177.         int Child = 4; int Y = 45;
  4178.         tab.child(16, 15112, 24, 30 - rofl);
  4179.         for(int i = 1675; i <= 1679; i++) {
  4180.             tab.child(Child, i, 29, Y - rofl);
  4181.             Child++;
  4182.             Y += 14;
  4183.         }
  4184.         int edit = 7 + rofl;
  4185.         tab.child(18, 15113, 24, 122 - edit); // 147
  4186.         tab.child(9, 1680, 29, 137 - edit - 2); // 161
  4187.         tab.child(10, 1681, 29, 153 - edit - 3);
  4188.         tab.child(11, 1682, 29, 168 - edit - 3);
  4189.         tab.child(12, 1683, 29, 183 - edit - 3);
  4190.         tab.child(13, 1684, 29, 197 - edit - 3);
  4191.         tab.child(44, 19148, 29, 211 - edit - 3);
  4192.         tab.child(45, 19149, 29, 225 - edit - 3);
  4193.         tab.child(46, 19150, 29, 239 - edit - 3);
  4194.         tab.child(47, 19151, 29, 253 - edit - 3);
  4195.        
  4196.         int edit2 = 33 - rofl, edit3 = 2;
  4197.         tab.child(19, 15114, 24, 223 + edit2);
  4198.         tab.child(14, 1686, 29, 262-24 + edit2 - edit3);
  4199.         tab.child(17, 19152, 29, 276-24 + edit2 - edit3);
  4200.         tab.child(48, 1687, 29, 290-24 + edit2 - edit3);
  4201.         tab.child(49, 19153, 29, 304-24 + edit2 - edit3);
  4202.        
  4203.         tab.child(15, 15125, 170, 200);
  4204.         tab.child(20, 1645, 104+295, 149-52);
  4205.         tab.child(21, 1646, 399, 163);
  4206.         tab.child(22, 1647, 399, 163);
  4207.         tab.child(23, 1648, 399, 58+146);
  4208.         tab.child(24, 1649, 26+22+297-2, 110-44+118-13+5);
  4209.         tab.child(25, 1650, 321+22, 58+154);
  4210.         tab.child(26, 1651, 321+134, 58+118);
  4211.         tab.child(27, 1652, 321+134, 58+154);
  4212.         tab.child(28, 1653, 321+48, 58+81);
  4213.         tab.child(29, 1654, 321+107, 58+81);
  4214.         tab.child(30, 1655, 321+58, 58+42);
  4215.         tab.child(31, 1656, 321+112, 58+41);
  4216.         tab.child(32, 1657, 321+78, 58+4);
  4217.         tab.child(33, 1658, 321+37, 58+43);
  4218.         tab.child(34, 1659, 321+78, 58+43);
  4219.         tab.child(35, 1660, 321+119, 58+43);
  4220.         tab.child(36, 1661, 321+22, 58+82);
  4221.         tab.child(37, 1662, 321+78, 58+82);
  4222.         tab.child(38, 1663, 321+134, 58+82);
  4223.         tab.child(39, 1664, 321+78, 58+122);
  4224.         tab.child(40, 1665, 321+78, 58+162);
  4225.         tab.child(41, 1666, 321+22, 58+162);
  4226.         tab.child(42, 1667, 321+134, 58+162);
  4227.         tab.child(43, 1688, 50+297-2, 110-13+5);
  4228.         tab.child(44, 22024, 457, 30);
  4229.         tab.child(45, 22025, 457, 30);
  4230.         for(int i = 1675; i <= 1684; i++){
  4231.             RSInterface rsi = interfaceCache[i];
  4232.             rsi.textColor = 0xFF9200;
  4233.             rsi.centerText = false;
  4234.         }
  4235.         for(int i = 1686; i <= 1687; i++) {
  4236.             RSInterface rsi = interfaceCache[i];
  4237.             rsi.textColor = 0xFF9200;
  4238.             rsi.centerText = false;
  4239.         }
  4240.     }
  4241.        
  4242.         public static void addChar(int ID) {
  4243.             RSInterface t = interfaceCache[ID] = new RSInterface();
  4244.             t.id = ID;
  4245.             t.parentID = ID;
  4246.             t.type = 6;
  4247.             t.atActionType = 0;
  4248.             t.contentType = 328;
  4249.             t.width = 180;
  4250.             t.height = 190;
  4251.             t.opacity = 0;
  4252.             t.hoverType = 0;
  4253.             t.modelZoom = 560;
  4254.             t.modelRotation1 = 30;
  4255.             t.modelRotation2 = 0;
  4256.             t.anInt257 = -1;
  4257.             t.anInt258 = -1;
  4258.         }
  4259.        
  4260.         private static Sprite LoadLunarSprite(int i, String s) {
  4261.             Sprite sprite = imageLoader(i,"/Lunar/" + s);
  4262.             return sprite;
  4263.         }
  4264.        
  4265.         public static void addLunarSprite(int i, int j, String name) {
  4266.         RSInterface RSInterface = addInterface(i);
  4267.         RSInterface.id = i;
  4268.         RSInterface.parentID = i;
  4269.         RSInterface.type = 5;
  4270.         RSInterface.atActionType = 5;
  4271.         RSInterface.contentType = 0;
  4272.         RSInterface.opacity = 0;
  4273.         RSInterface.hoverType = 52;
  4274.         RSInterface.sprite1 = LoadLunarSprite(j, name);
  4275.         RSInterface.width = 500;
  4276.         RSInterface.height = 500;
  4277.         RSInterface.tooltip = "";
  4278.     }
  4279.     public static void drawRune(int i,int id, String runeName) {
  4280.         RSInterface RSInterface = addInterface(i);
  4281.         RSInterface.type = 5;
  4282.         RSInterface.atActionType = 0;
  4283.         RSInterface.contentType = 0;
  4284.         RSInterface.opacity = 0;
  4285.         RSInterface.hoverType = 52;
  4286.         RSInterface.sprite1 = LoadLunarSprite(id, "RUNE");
  4287.         RSInterface.width = 500;
  4288.         RSInterface.height = 500;
  4289.     }
  4290.     public static void addRuneText(int ID, int runeAmount, int RuneID, TextDrawingArea[] font){
  4291.         RSInterface rsInterface = addInterface(ID);
  4292.         rsInterface.id = ID;
  4293.         rsInterface.parentID = 1151;
  4294.         rsInterface.type = 4;
  4295.         rsInterface.atActionType = 0;
  4296.         rsInterface.contentType = 0;
  4297.         rsInterface.width = 0;
  4298.         rsInterface.height = 14;
  4299.         rsInterface.opacity = 0;
  4300.         rsInterface.hoverType= -1;
  4301.         rsInterface.valueCompareType = new int[1];
  4302.         rsInterface.requiredValues = new int[1];
  4303.         rsInterface.valueCompareType[0] = 3;
  4304.         rsInterface.requiredValues[0] = runeAmount;
  4305.         rsInterface.valueIndexArray = new int[1][4];
  4306.         rsInterface.valueIndexArray[0][0] = 4;
  4307.         rsInterface.valueIndexArray[0][1] = 3214;
  4308.         rsInterface.valueIndexArray[0][2] = RuneID;
  4309.         rsInterface.valueIndexArray[0][3] = 0;
  4310.         rsInterface.centerText = true;
  4311.         rsInterface.textDrawingAreas = font[0];
  4312.         //rsInterface.textShadowed = true;
  4313.         rsInterface.message = "%1/"+runeAmount+"";
  4314.         rsInterface.popupString = "";
  4315.         //rsInterface.disabledColour = 12582912;
  4316.         //rsInterface.enabledColour = 49152;   
  4317.     }
  4318.     public static void homeTeleport(){
  4319.         RSInterface RSInterface = addInterface(30000);
  4320.         RSInterface.tooltip = "Cast @gre@Lunar Home Teleport";
  4321.         RSInterface.id = 30000;
  4322.         RSInterface.parentID = 30000;
  4323.         RSInterface.type = 5;
  4324.         RSInterface.atActionType = 5;
  4325.         RSInterface.contentType = 0;
  4326.         RSInterface.opacity = 0;
  4327.         RSInterface.hoverType = 30001;
  4328.         RSInterface.sprite1 = LoadLunarSprite(1, "SPRITE");
  4329.         RSInterface.width = 20;
  4330.         RSInterface.height = 20;
  4331.         RSInterface Int = addInterface(30001);
  4332.         Int.interfaceShown = true;
  4333.         Int.totalChildren(1);
  4334.         addLunarSprite(30002, 0, "SPRITE");
  4335.         setBounds(30002, 0, 0,0, Int);
  4336.     }
  4337.     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){
  4338.         RSInterface rsInterface = addInterface(ID);
  4339.         rsInterface.id = ID;
  4340.         rsInterface.parentID = 1151;
  4341.         rsInterface.type = 5;
  4342.         rsInterface.atActionType = type;
  4343.         rsInterface.contentType = 0;
  4344.         rsInterface.hoverType = ID+1;
  4345.         //rsInterface.spellUsableOn = suo;
  4346.         rsInterface.selectedActionName = "Cast On";
  4347.         rsInterface.width = 20;
  4348.         rsInterface.height = 20;
  4349.         rsInterface.tooltip = "Cast @gre@"+name;
  4350.         rsInterface.spellName = name;
  4351.         rsInterface.valueCompareType = new int[3];
  4352.         rsInterface.requiredValues = new int[3];
  4353.         rsInterface.valueCompareType[0] = 3;
  4354.         rsInterface.requiredValues[0] = ra1;
  4355.         rsInterface.valueCompareType[1] = 3;
  4356.         rsInterface.requiredValues[1] = ra2;
  4357.         rsInterface.valueCompareType[2] = 3;
  4358.         rsInterface.requiredValues[2] = lvl;
  4359.         rsInterface.valueIndexArray = new int[3][];
  4360.         rsInterface.valueIndexArray[0] = new int[4];
  4361.         rsInterface.valueIndexArray[0][0] = 4;
  4362.         rsInterface.valueIndexArray[0][1] = 3214;
  4363.         rsInterface.valueIndexArray[0][2] = r1;
  4364.         rsInterface.valueIndexArray[0][3] = 0;
  4365.         rsInterface.valueIndexArray[1] = new int[4];
  4366.         rsInterface.valueIndexArray[1][0] = 4;
  4367.         rsInterface.valueIndexArray[1][1] = 3214;
  4368.         rsInterface.valueIndexArray[1][2] = r2;
  4369.         rsInterface.valueIndexArray[1][3] = 0;
  4370.         rsInterface.valueIndexArray[2] = new int[3];
  4371.         rsInterface.valueIndexArray[2][0] = 1;
  4372.         rsInterface.valueIndexArray[2][1] = 6;
  4373.         rsInterface.valueIndexArray[2][2] = 0;
  4374.         rsInterface.sprite2 = LoadLunarSprite(sid, "LUNARON");
  4375.         rsInterface.sprite1 = LoadLunarSprite(sid, "LUNAROFF");
  4376.         RSInterface INT = addInterface(ID+1);
  4377.         INT.interfaceShown = true;
  4378.         INT.totalChildren(7);
  4379.         addLunarSprite(ID+2, 0, "BOX");
  4380.         setBounds(ID+2, 0, 0, 0, INT);
  4381.         addText(ID+3, "Level "+(lvl+1)+": "+name, 0xFF981F, true, true, 52, TDA, 1);
  4382.         setBounds(ID+3, 90, 4, 1, INT);
  4383.         addText(ID+4, descr, 0xAF6A1A, true, true, 52, TDA, 0);
  4384.         setBounds(ID+4, 90, 19, 2, INT);
  4385.         setBounds(30016, 37, 35, 3, INT);//Rune
  4386.         setBounds(rune1, 112, 35, 4, INT);//Rune
  4387.         addRuneText(ID+5, ra1+1, r1, TDA);
  4388.         setBounds(ID+5, 50, 66, 5, INT);
  4389.         addRuneText(ID+6, ra2+1, r2, TDA);
  4390.         setBounds(ID+6, 123, 66, 6, INT);
  4391.  
  4392.     }
  4393.     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){
  4394.         RSInterface rsInterface = addInterface(ID);
  4395.         rsInterface.id = ID;
  4396.         rsInterface.parentID = 1151;
  4397.         rsInterface.type = 5;
  4398.         rsInterface.atActionType = type;
  4399.         rsInterface.contentType = 0;
  4400.         rsInterface.hoverType = ID+1;
  4401.         //rsInterface.spellUsableOn = suo;
  4402.         rsInterface.selectedActionName = "Cast on";
  4403.         rsInterface.width = 20;
  4404.         rsInterface.height = 20;
  4405.         rsInterface.tooltip = "Cast @gre@"+name;
  4406.         rsInterface.spellName = name;
  4407.         rsInterface.valueCompareType = new int[4];
  4408.         rsInterface.requiredValues = new int[4];
  4409.         rsInterface.valueCompareType[0] = 3;
  4410.         rsInterface.requiredValues[0] = ra1;
  4411.         rsInterface.valueCompareType[1] = 3;
  4412.         rsInterface.requiredValues[1] = ra2;
  4413.         rsInterface.valueCompareType[2] = 3;
  4414.         rsInterface.requiredValues[2] = ra3;
  4415.         rsInterface.valueCompareType[3] = 3;
  4416.         rsInterface.requiredValues[3] = lvl;
  4417.         rsInterface.valueIndexArray = new int[4][];
  4418.         rsInterface.valueIndexArray[0] = new int[4];
  4419.         rsInterface.valueIndexArray[0][0] = 4;
  4420.         rsInterface.valueIndexArray[0][1] = 3214;
  4421.         rsInterface.valueIndexArray[0][2] = r1;
  4422.         rsInterface.valueIndexArray[0][3] = 0;
  4423.         rsInterface.valueIndexArray[1] = new int[4];
  4424.         rsInterface.valueIndexArray[1][0] = 4;
  4425.         rsInterface.valueIndexArray[1][1] = 3214;
  4426.         rsInterface.valueIndexArray[1][2] = r2;
  4427.         rsInterface.valueIndexArray[1][3] = 0;
  4428.         rsInterface.valueIndexArray[2] = new int[4];
  4429.         rsInterface.valueIndexArray[2][0] = 4;
  4430.         rsInterface.valueIndexArray[2][1] = 3214;
  4431.         rsInterface.valueIndexArray[2][2] = r3;
  4432.         rsInterface.valueIndexArray[2][3] = 0;
  4433.         rsInterface.valueIndexArray[3] = new int[3];
  4434.         rsInterface.valueIndexArray[3][0] = 1;
  4435.         rsInterface.valueIndexArray[3][1] = 6;
  4436.         rsInterface.valueIndexArray[3][2] = 0;
  4437.         rsInterface.sprite2 = LoadLunarSprite(sid, "LUNARON");
  4438.         rsInterface.sprite1 = LoadLunarSprite(sid, "LUNAROFF");
  4439.         RSInterface INT = addInterface(ID+1);
  4440.         INT.interfaceShown = true;
  4441.         INT.totalChildren(9);
  4442.         addLunarSprite(ID+2, 0, "BOX");
  4443.         setBounds(ID+2, 0, 0, 0, INT);
  4444.         addText(ID+3, "Level "+(lvl+1)+": "+name, 0xFF981F, true, true, 52, TDA, 1);setBounds(ID+3, 90, 4, 1, INT);
  4445.         addText(ID+4, descr, 0xAF6A1A, true, true, 52, TDA, 0); setBounds(ID+4, 90, 19, 2, INT);
  4446.         setBounds(30016, 14, 35, 3, INT);
  4447.         setBounds(rune1, 74, 35, 4, INT);
  4448.         setBounds(rune2, 130, 35, 5, INT);
  4449.         addRuneText(ID+5, ra1+1, r1, TDA);
  4450.         setBounds(ID+5, 26, 66, 6, INT);
  4451.         addRuneText(ID+6, ra2+1, r2, TDA);
  4452.         setBounds(ID+6, 87, 66, 7, INT);
  4453.         addRuneText(ID+7, ra3+1, r3, TDA);
  4454.         setBounds(ID+7, 142, 66, 8, INT);
  4455.     }
  4456.     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){
  4457.         RSInterface rsInterface = addInterface(ID);
  4458.         rsInterface.id = ID;
  4459.         rsInterface.parentID = 1151;
  4460.         rsInterface.type = 5;
  4461.         rsInterface.atActionType = type;
  4462.         rsInterface.contentType = 0;
  4463.         rsInterface.hoverType = ID+1;
  4464.         //rsInterface.spellUsableOn = suo;
  4465.         rsInterface.selectedActionName = "Cast on";
  4466.         rsInterface.width = 20;
  4467.         rsInterface.height = 20;
  4468.         rsInterface.tooltip = "Cast @gre@"+name;
  4469.         rsInterface.spellName = name;
  4470.         rsInterface.valueCompareType = new int[4];
  4471.         rsInterface.requiredValues = new int[4];
  4472.         rsInterface.valueCompareType[0] = 3;
  4473.         rsInterface.requiredValues[0] = ra1;
  4474.         rsInterface.valueCompareType[1] = 3;
  4475.         rsInterface.requiredValues[1] = ra2;
  4476.         rsInterface.valueCompareType[2] = 3;
  4477.         rsInterface.requiredValues[2] = ra3;
  4478.         rsInterface.valueCompareType[3] = 3;
  4479.         rsInterface.requiredValues[3] = lvl;
  4480.         rsInterface.valueIndexArray = new int[4][];
  4481.         rsInterface.valueIndexArray[0] = new int[4];
  4482.         rsInterface.valueIndexArray[0][0] = 4;
  4483.         rsInterface.valueIndexArray[0][1] = 3214;
  4484.         rsInterface.valueIndexArray[0][2] = r1;
  4485.         rsInterface.valueIndexArray[0][3] = 0;
  4486.         rsInterface.valueIndexArray[1] = new int[4];
  4487.         rsInterface.valueIndexArray[1][0] = 4;
  4488.         rsInterface.valueIndexArray[1][1] = 3214;
  4489.         rsInterface.valueIndexArray[1][2] = r2;
  4490.         rsInterface.valueIndexArray[1][3] = 0;
  4491.         rsInterface.valueIndexArray[2] = new int[4];
  4492.         rsInterface.valueIndexArray[2][0] = 4;
  4493.         rsInterface.valueIndexArray[2][1] = 3214;
  4494.         rsInterface.valueIndexArray[2][2] = r3;
  4495.         rsInterface.valueIndexArray[2][3] = 0;
  4496.         rsInterface.valueIndexArray[3] = new int[3];
  4497.         rsInterface.valueIndexArray[3][0] = 1;
  4498.         rsInterface.valueIndexArray[3][1] = 6;
  4499.         rsInterface.valueIndexArray[3][2] = 0;
  4500.         rsInterface.sprite2 = LoadLunarSprite(sid, "LUNARON");
  4501.         rsInterface.sprite1 = LoadLunarSprite(sid, "LUNAROFF");
  4502.         RSInterface INT = addInterface(ID+1);
  4503.         INT.interfaceShown = true;
  4504.         INT.totalChildren(9);
  4505.         addLunarSprite(ID+2, 1, "BOX");
  4506.         setBounds(ID+2, 0, 0, 0, INT);
  4507.         addText(ID+3, "Level "+(lvl+1)+": "+name, 0xFF981F, true, true, 52, TDA, 1);setBounds(ID+3, 90, 4, 1, INT);
  4508.         addText(ID+4, descr, 0xAF6A1A, true, true, 52, TDA, 0); setBounds(ID+4, 90, 21, 2, INT);
  4509.         setBounds(30016, 14, 48, 3, INT);
  4510.         setBounds(rune1, 74, 48, 4, INT);
  4511.         setBounds(rune2, 130, 48, 5, INT);
  4512.         addRuneText(ID+5, ra1+1, r1, TDA);
  4513.         setBounds(ID+5, 26, 79, 6, INT);
  4514.         addRuneText(ID+6, ra2+1, r2, TDA);
  4515.         setBounds(ID+6, 87, 79, 7, INT);
  4516.         addRuneText(ID+7, ra3+1, r3, TDA);
  4517.         setBounds(ID+7, 142, 79, 8, INT);
  4518.     }
  4519.     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){
  4520.         RSInterface rsInterface = addInterface(ID);
  4521.         rsInterface.id = ID;
  4522.         rsInterface.parentID = 1151;
  4523.         rsInterface.type = 5;
  4524.         rsInterface.atActionType = type;
  4525.         rsInterface.contentType = 0;
  4526.         rsInterface.hoverType = ID+1;
  4527.         //rsInterface.spellUsableOn = suo;
  4528.         rsInterface.selectedActionName = "Cast on";
  4529.         rsInterface.width = 20;
  4530.         rsInterface.height = 20;
  4531.         rsInterface.tooltip = "Cast @gre@"+name;
  4532.         rsInterface.spellName = name;
  4533.         rsInterface.valueCompareType = new int[4];
  4534.         rsInterface.requiredValues = new int[4];
  4535.         rsInterface.valueCompareType[0] = 3;
  4536.         rsInterface.requiredValues[0] = ra1;
  4537.         rsInterface.valueCompareType[1] = 3;
  4538.         rsInterface.requiredValues[1] = ra2;
  4539.         rsInterface.valueCompareType[2] = 3;
  4540.         rsInterface.requiredValues[2] = ra3;
  4541.         rsInterface.valueCompareType[3] = 3;
  4542.         rsInterface.requiredValues[3] = lvl;
  4543.         rsInterface.valueIndexArray = new int[4][];
  4544.         rsInterface.valueIndexArray[0] = new int[4];
  4545.         rsInterface.valueIndexArray[0][0] = 4;
  4546.         rsInterface.valueIndexArray[0][1] = 3214;
  4547.         rsInterface.valueIndexArray[0][2] = r1;
  4548.         rsInterface.valueIndexArray[0][3] = 0;
  4549.         rsInterface.valueIndexArray[1] = new int[4];
  4550.         rsInterface.valueIndexArray[1][0] = 4;
  4551.         rsInterface.valueIndexArray[1][1] = 3214;
  4552.         rsInterface.valueIndexArray[1][2] = r2;
  4553.         rsInterface.valueIndexArray[1][3] = 0;
  4554.         rsInterface.valueIndexArray[2] = new int[4];
  4555.         rsInterface.valueIndexArray[2][0] = 4;
  4556.         rsInterface.valueIndexArray[2][1] = 3214;
  4557.         rsInterface.valueIndexArray[2][2] = r3;
  4558.         rsInterface.valueIndexArray[2][3] = 0;
  4559.         rsInterface.valueIndexArray[3] = new int[3];
  4560.         rsInterface.valueIndexArray[3][0] = 1;
  4561.         rsInterface.valueIndexArray[3][1] = 6;
  4562.         rsInterface.valueIndexArray[3][2] = 0;
  4563.         rsInterface.sprite2 = LoadLunarSprite(sid, "LUNARON");
  4564.         rsInterface.sprite1 = LoadLunarSprite(sid, "LUNAROFF");
  4565.         RSInterface INT = addInterface(ID+1);
  4566.         INT.interfaceShown = true;
  4567.         INT.totalChildren(9);
  4568.         addLunarSprite(ID+2, 2, "BOX");
  4569.         setBounds(ID+2, 0, 0, 0, INT);
  4570.         addText(ID+3, "Level "+(lvl+1)+": "+name, 0xFF981F, true, true, 52, TDA, 1);
  4571.         setBounds(ID+3, 90, 4, 1, INT);
  4572.         addText(ID+4, descr, 0xAF6A1A, true, true, 52, TDA, 0);
  4573.         setBounds(ID+4, 90, 34, 2, INT);
  4574.         setBounds(30016, 14, 61, 3, INT);
  4575.         setBounds(rune1, 74, 61, 4, INT);
  4576.         setBounds(rune2, 130, 61, 5, INT);
  4577.         addRuneText(ID+5, ra1+1, r1, TDA);
  4578.         setBounds(ID+5, 26, 92, 6, INT);
  4579.         addRuneText(ID+6, ra2+1, r2, TDA);
  4580.         setBounds(ID+6, 87, 92, 7, INT);
  4581.         addRuneText(ID+7, ra3+1, r3, TDA);
  4582.         setBounds(ID+7, 142, 92, 8, INT);
  4583.     }
  4584.     public static void configureLunar(TextDrawingArea[] TDA) {
  4585.         constructLunar();
  4586.         homeTeleport();
  4587.         drawRune(30003,1, "Fire");
  4588.         drawRune(30004,2, "Water");
  4589.         drawRune(30005,3, "Air");
  4590.         drawRune(30006,4, "Earth");
  4591.         drawRune(30007,5, "Mind");
  4592.         drawRune(30008,6, "Body");
  4593.         drawRune(30009,7, "Death");
  4594.         drawRune(30010,8, "Nature");
  4595.         drawRune(30011,9, "Chaos");
  4596.         drawRune(30012,10, "Law");
  4597.         drawRune(30013,11, "Cosmic");
  4598.         drawRune(30014,12, "Blood");
  4599.         drawRune(30015,13, "Soul");
  4600.         drawRune(30016,14, "Astral");
  4601.         addLunar3RunesSmallBox(30017, 9075, 554, 555, 0, 4, 3, 30003, 30004, 64, "Bake Pie","Bake pies without a stove",TDA,0, 16,2);
  4602.         addLunar2RunesSmallBox(30025, 9075, 557, 0, 7, 30006, 65,"Cure Plant", "Cure disease on farming patch",TDA,1, 4,2);
  4603.         addLunar3RunesBigBox(30032, 9075, 564, 558, 0,0, 0, 30013, 30007, 65,"Monster Examine", "Detect the combat statistics of a\\nmonster",TDA, 2,2,2);
  4604.         addLunar3RunesSmallBox(30040, 9075, 564, 556, 0, 0, 1, 30013, 30005, 66, "NPC Contact","Speak with varied NPCs",TDA,3,0,2);
  4605.         addLunar3RunesSmallBox(30048, 9075, 563, 557, 0, 0, 9, 30012, 30006, 67, "Cure Other","Cure poisoned players",TDA,4,8,2);
  4606.         addLunar3RunesSmallBox(30056, 9075, 555, 554, 0, 2, 0, 30004, 30003, 67, "Humidify","fills certain vessels with water",TDA,5,0,5);
  4607.         addLunar3RunesSmallBox(30064, 9075, 563, 557, 1, 0, 1, 30012, 30006, 68, "Monster Teleport","Teleports you to moonclan island",TDA,6,0,5);
  4608.         addLunar3RunesBigBox(30075, 9075, 563, 557, 1, 0, 3, 30012,  30006, 69,"Minigame Teleport", "Teleports players to Moonclan\\nisland",TDA, 7,0,5);
  4609.         addLunar3RunesSmallBox(30083, 9075, 563, 557, 1, 0, 5, 30012, 30006, 70, "Boss Teleport","Teleports you to ourania rune altar",TDA,8,0,5);
  4610.         addLunar3RunesSmallBox(30091, 9075, 564, 563, 1, 1, 0, 30013, 30012, 70, "Cure Me","Cures Poison",TDA,9,0,5);
  4611.         addLunar2RunesSmallBox(30099, 9075, 557, 1, 1, 30006, 70,"Hunter Kit", "Get a kit of hunting gear",TDA,10,0,5);
  4612.         addLunar3RunesSmallBox(30106, 9075, 563, 555,  1, 0,0, 30012, 30004, 71,"Pking Teleport", "Teleports you to Waterbirth island",TDA,11,0,5);
  4613.         addLunar3RunesBigBox(30114, 9075, 563, 555, 1, 0, 4, 30012, 30004, 72,"SkillZone Teleport", "Teleports players to Waterbirth\\nisland",TDA, 12,0,5);
  4614.         addLunar3RunesSmallBox(30122, 9075, 564, 563, 1, 1, 1, 30013, 30012, 73, "Cure Group","Cures Poison on players",TDA,13,0,5);
  4615.         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);
  4616.         addLunar3RunesBigBox(30138, 9075, 563, 554, 1, 1, 2, 30012, 30003, 74,"Coming Soon.", "Teleports you to the Barbarian\\noutpost",TDA, 15,0,5);
  4617.         addLunar3RunesBigBox(30146, 9075, 563, 554, 1, 1, 5, 30012, 30003, 75,"Coming Soon.", "Teleports players to the Barbarian\\noutpost",TDA, 16,0,5);
  4618.         addLunar3RunesSmallBox(30154, 9075, 554, 556, 1, 5, 9, 30003, 30005, 76, "Superglass Make","Make glass without a furnace",TDA,17, 16,2);
  4619.         addLunar3RunesSmallBox(30162, 9075, 563, 555, 1, 1, 3, 30012, 30004, 77, "Coming Soon.","Teleports you to Port khazard",TDA,18,0,5);
  4620.         addLunar3RunesSmallBox(30170, 9075, 563, 555, 1, 1, 7, 30012, 30004, 78, "Coming Soon.","Teleports players to Port khazard",TDA,19,0,5);
  4621.         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);
  4622.         addLunar3RunesSmallBox(30186, 9075, 557, 555, 1, 9, 4, 30006, 30004, 79, "String Jewellery","String amulets without wool",TDA,21,0,5);
  4623.         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);
  4624.         addLunar3RunesSmallBox(30202, 9075, 554, 555, 1, 6, 6, 30003, 30004, 81, "Magic Imbue","Combine runes without a talisman",TDA,23,0,5);
  4625.         addLunar3RunesBigBox(30210, 9075, 561, 557, 2, 1, 14, 30010, 30006, 82,"Fertile Soil", "Fertilise a farming patch with super\\ncompost",TDA, 24, 4,2);
  4626.         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);
  4627.         addLunar3RunesSmallBox(30226, 9075, 563, 555, 2, 2, 9, 30012, 30004, 84, "Coming Soon.","Teleports you to the fishing guild",TDA,26,0,5);
  4628.         addLunar3RunesLargeBox(30234, 9075, 563, 555, 1, 2, 13, 30012, 30004, 85, "Coming Soon.", "Teleports players to the Fishing\\nGuild",TDA, 27,0,5);
  4629.         addLunar3RunesSmallBox(30242, 9075, 557, 561, 2, 14, 0, 30006, 30010, 85, "Plank Make","Turn Logs into planks",TDA,28,16,5);
  4630.         /********Cut Off Limit**********/
  4631.         addLunar3RunesSmallBox(30250, 9075, 563, 555, 2, 2, 9, 30012, 30004, 86, "Coming Soon","Teleports you to Catherby",TDA,29,0,5);
  4632.         addLunar3RunesSmallBox(30258, 9075, 563, 555, 2, 2, 14, 30012, 30004, 87, "Coming Soon","Teleports players to Catherby",TDA,30,0,5);
  4633.         addLunar3RunesSmallBox(30266, 9075, 563, 555, 2, 2, 7, 30012, 30004, 88, "Coming Soon","Teleports you to Ice Plateau",TDA,31,0,5);
  4634.         addLunar3RunesBigBox(30274, 9075, 563, 555, 2, 2, 15, 30012, 30004, 89, "Coming Soon","Teleports players to Ice Plateau",TDA,32,0,5);
  4635.         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);
  4636.         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);
  4637.         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);
  4638.         addLunar3RunesSmallBox(30306, 9075, 560, 557, 3, 1, 9,30009, 30006, 93, "Vengeance","Rebound damage to an opponent",TDA,36,0,5);
  4639.         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);
  4640.         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);
  4641.     }
  4642.     public static void constructLunar(){
  4643.         RSInterface Interface = addInterface(29999);
  4644.         Interface.totalChildren(80);
  4645.         setBounds(30000, 11, 10, 0, Interface);
  4646.         setBounds(30017, 40, 9, 1, Interface);
  4647.         setBounds(30025, 71, 12, 2, Interface);
  4648.         setBounds(30032, 103, 10, 3, Interface);
  4649.         setBounds(30040, 135, 12, 4, Interface);
  4650.         setBounds(30048, 165, 10, 5, Interface);
  4651.         setBounds(30056, 8, 38, 6, Interface);
  4652.         setBounds(30064, 39, 39, 7, Interface);
  4653.         setBounds(30075, 71, 39, 8, Interface);
  4654.         setBounds(30083, 103, 39, 9, Interface);
  4655.         setBounds(30091, 135, 39, 10, Interface);
  4656.         setBounds(30099, 165, 37, 11, Interface);
  4657.         setBounds(30106, 12, 68, 12, Interface);
  4658.         setBounds(30114, 42, 68, 13, Interface);
  4659.         setBounds(30122, 71, 68, 14, Interface);
  4660.         setBounds(30130, 103, 68, 15, Interface);
  4661.         setBounds(30138, 135, 68, 16, Interface);
  4662.         setBounds(30146, 165, 68, 17, Interface);
  4663.         setBounds(30154, 14, 97, 18, Interface);
  4664.         setBounds(30162, 42, 97, 19, Interface);
  4665.         setBounds(30170, 71, 97, 20, Interface);
  4666.         setBounds(30178, 101, 97, 21, Interface);
  4667.         setBounds(30186, 135, 98, 22, Interface);
  4668.         setBounds(30194, 168, 98, 23, Interface);
  4669.         setBounds(30202, 11, 125, 24, Interface);
  4670.         setBounds(30210, 42, 124, 25, Interface);
  4671.         setBounds(30218, 74, 125, 26, Interface);
  4672.         setBounds(30226, 103, 125, 27, Interface);
  4673.         setBounds(30234, 135, 125, 28, Interface);
  4674.         setBounds(30242, 164, 126, 29, Interface);
  4675.         setBounds(30250, 10, 155, 30, Interface);  
  4676.         setBounds(30258, 42, 155, 31, Interface);  
  4677.         setBounds(30266, 71, 155, 32, Interface);  
  4678.         setBounds(30274, 103, 155, 33, Interface);
  4679.         setBounds(30282, 136, 155, 34, Interface); 
  4680.         setBounds(30290, 165, 155, 35, Interface); 
  4681.         setBounds(30298, 13, 185, 36, Interface);  
  4682.         setBounds(30306, 42, 185, 37, Interface);  
  4683.         setBounds(30314, 71, 184, 38, Interface);
  4684.         setBounds(30322, 104, 184, 39, Interface); 
  4685.         setBounds(30001, 6, 184, 40, Interface);//hover
  4686.         setBounds(30018, 5, 176, 41, Interface);//hover
  4687.         setBounds(30026, 5, 176, 42, Interface);//hover
  4688.         setBounds(30033, 5, 163, 43, Interface);//hover
  4689.         setBounds(30041, 5, 176, 44, Interface);//hover
  4690.         setBounds(30049, 5, 176, 45, Interface);//hover
  4691.         setBounds(30057, 5, 176, 46, Interface);//hover
  4692.         setBounds(30065, 5, 176, 47, Interface);//hover
  4693.         setBounds(30076, 5, 163, 48, Interface);//hover
  4694.         setBounds(30084, 5, 176, 49, Interface);//hover
  4695.         setBounds(30092, 5, 176, 50, Interface);//hover
  4696.         setBounds(30100, 5, 176, 51, Interface);//hover
  4697.         setBounds(30107, 5, 176, 52, Interface);//hover
  4698.         setBounds(30115, 5, 163, 53, Interface);//hover
  4699.         setBounds(30123, 5, 176, 54, Interface);//hover
  4700.         setBounds(30131, 5, 163, 55, Interface);//hover
  4701.         setBounds(30139, 5, 163, 56, Interface);//hover
  4702.         setBounds(30147, 5, 163, 57, Interface);//hover
  4703.         setBounds(30155, 5, 176, 58, Interface);//hover
  4704.         setBounds(30163, 5, 176, 59, Interface);//hover
  4705.         setBounds(30171, 5, 176, 60, Interface);//hover
  4706.         setBounds(30179, 5, 163, 61, Interface);//hover
  4707.         setBounds(30187, 5, 176, 62, Interface);//hover
  4708.         setBounds(30195, 5, 149, 63, Interface);//hover
  4709.         setBounds(30203, 5, 176, 64, Interface);//hover
  4710.         setBounds(30211, 5, 163, 65, Interface);//hover
  4711.         setBounds(30219, 5, 163, 66, Interface);//hover
  4712.         setBounds(30227, 5, 176, 67, Interface);//hover
  4713.         setBounds(30235, 5, 149, 68, Interface);//hover
  4714.         setBounds(30243, 5, 176, 69, Interface);//hover
  4715.        
  4716.         setBounds(30251, 5, 5, 70, Interface);//hover
  4717.         setBounds(30259, 5, 5, 71, Interface);//hover
  4718.         setBounds(30267, 5, 5, 72, Interface);//hover
  4719.         setBounds(30275, 5, 5, 73, Interface);//hover  
  4720.         setBounds(30283, 5, 5, 74, Interface);//hover
  4721.         setBounds(30291, 5, 5, 75, Interface);//hover
  4722.         setBounds(30299, 5, 5, 76, Interface);//hover
  4723.         setBounds(30307, 5, 5, 77, Interface);//hover
  4724.         setBounds(30323, 5, 5, 78, Interface);//hover
  4725.         setBounds(30315, 5, 5, 79, Interface);//hover
  4726.     }
  4727.        
  4728.         public static void setBounds(int ID, int X, int Y, int frame, RSInterface RSinterface){
  4729.             RSinterface.children[frame] = ID;
  4730.             RSinterface.childX[frame] = X;
  4731.             RSinterface.childY[frame] = Y;
  4732.         }
  4733.        
  4734.         public static void addButton(int i, int j, String name, int W, int H, String S, int AT) {
  4735.             RSInterface RSInterface = addInterface(i);
  4736.             RSInterface.id = i;
  4737.             RSInterface.parentID = i;
  4738.             RSInterface.type = 5;
  4739.             RSInterface.atActionType = AT;
  4740.             RSInterface.contentType = 0;
  4741.             RSInterface.opacity = 0;
  4742.             RSInterface.hoverType = 52;
  4743.             RSInterface.sprite1 = imageLoader(j,name);
  4744.             RSInterface.sprite2 = imageLoader(j,name);
  4745.             RSInterface.width = W;
  4746.             RSInterface.height = H;
  4747.             RSInterface.tooltip = S;
  4748.         }
  4749.  
  4750.  
  4751.    
  4752.    
  4753. }
Advertisement
Add Comment
Please, Sign In to add comment