SHOW:
|
|
- or go back to the newest paste.
| 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 = inventory[i]; | |
| 9 | inventory[i] = inventory[j]; | |
| 10 | inventory[j] = k; | |
| 11 | k = inventoryValue[i]; | |
| 12 | inventoryValue[i] = inventoryValue[j]; | |
| 13 | inventoryValue[j] = k; | |
| 14 | } | |
| 15 | ||
| 16 | public static void unpack(NamedArchive archive, RSFont rsFonts[], NamedArchive streamLoader_1) {
| |
| 17 | spriteNodes = new MRUNodes(50000); | |
| 18 | Stream stream = new Stream(archive.getDataForName("data"));
| |
| 19 | int i = -1; | |
| 20 | int j = stream.readUnsignedWord(); | |
| 21 | interfaceCache = new RSInterface[j + 31000]; | |
| 22 | while(stream.currentOffset < stream.buffer.length) {
| |
| 23 | int k = stream.readUnsignedWord(); | |
| 24 | if(k == 65535) {
| |
| 25 | i = stream.readUnsignedWord(); | |
| 26 | k = stream.readUnsignedWord(); | |
| 27 | } | |
| 28 | RSInterface rsInterface = interfaceCache[k] = new RSInterface(); | |
| 29 | rsInterface.id = k; | |
| 30 | rsInterface.parentID = i; | |
| 31 | rsInterface.interfaceType = stream.readUnsignedByte(); | |
| 32 | rsInterface.atActionType = stream.readUnsignedByte(); | |
| 33 | rsInterface.contentType = stream.readUnsignedWord(); | |
| 34 | rsInterface.width = stream.readUnsignedWord(); | |
| 35 | rsInterface.height = stream.readUnsignedWord(); | |
| 36 | rsInterface.opacity = (byte) stream.readUnsignedByte(); | |
| 37 | rsInterface.hoverType = stream.readUnsignedByte(); | |
| 38 | if(rsInterface.hoverType != 0) | |
| 39 | rsInterface.hoverType = (rsInterface.hoverType - 1 << 8) + stream.readUnsignedByte(); | |
| 40 | else | |
| 41 | rsInterface.hoverType = -1; | |
| 42 | int i1 = stream.readUnsignedByte(); | |
| 43 | if(i1 > 0) {
| |
| 44 | rsInterface.valueCompareType = new int[i1]; | |
| 45 | rsInterface.requiredValues = new int[i1]; | |
| 46 | for(int j1 = 0; j1 < i1; j1++) {
| |
| 47 | rsInterface.valueCompareType[j1] = stream.readUnsignedByte(); | |
| 48 | rsInterface.requiredValues[j1] = stream.readUnsignedWord(); | |
| 49 | } | |
| 50 | } | |
| 51 | int k1 = stream.readUnsignedByte(); | |
| 52 | if(k1 > 0) {
| |
| 53 | rsInterface.valueIndexArray = new int[k1][]; | |
| 54 | for(int l1 = 0; l1 < k1; l1++) {
| |
| 55 | int i3 = stream.readUnsignedWord(); | |
| 56 | rsInterface.valueIndexArray[l1] = new int[i3]; | |
| 57 | for(int l4 = 0; l4 < i3; l4++) | |
| 58 | rsInterface.valueIndexArray[l1][l4] = stream.readUnsignedWord(); | |
| 59 | } | |
| 60 | } | |
| 61 | if(rsInterface.interfaceType == 0) {
| |
| 62 | rsInterface.drawsTransparent = false; | |
| 63 | rsInterface.scrollMax = stream.readUnsignedWord(); | |
| 64 | rsInterface.interfaceShown = stream.readUnsignedByte() == 1; | |
| 65 | int i2 = stream.readUnsignedWord(); | |
| 66 | rsInterface.children = new int[i2]; | |
| 67 | rsInterface.childX = new int[i2]; | |
| 68 | rsInterface.childY = new int[i2]; | |
| 69 | for(int j3 = 0; j3 < i2; j3++) {
| |
| 70 | rsInterface.children[j3] = stream.readUnsignedWord(); | |
| 71 | rsInterface.childX[j3] = stream.readSignedWord(); | |
| 72 | rsInterface.childY[j3] = stream.readSignedWord(); | |
| 73 | } | |
| 74 | } | |
| 75 | if(rsInterface.interfaceType == 1) {
| |
| 76 | stream.readUnsignedWord(); | |
| 77 | stream.readUnsignedByte(); | |
| 78 | } | |
| 79 | if(rsInterface.interfaceType == 2) {
| |
| 80 | rsInterface.inventory = new int[rsInterface.width * rsInterface.height]; | |
| 81 | rsInterface.inventoryValue = new int[rsInterface.width * rsInterface.height]; | |
| 82 | rsInterface.allowSwapItems = stream.readUnsignedByte() == 1; | |
| 83 | rsInterface.isInventoryInterface = stream.readUnsignedByte() == 1; | |
| 84 | rsInterface.usableItemInterface = stream.readUnsignedByte() == 1; | |
| 85 | rsInterface.deletesTargetSlot = stream.readUnsignedByte() == 1; | |
| 86 | rsInterface.invSpritePadX = stream.readUnsignedByte(); | |
| 87 | rsInterface.invSpritePadY = stream.readUnsignedByte(); | |
| 88 | rsInterface.spritesX = new int[20]; | |
| 89 | rsInterface.spritesY = new int[20]; | |
| 90 | rsInterface.sprites = new Sprite[20]; | |
| 91 | for(int j2 = 0; j2 < 20; j2++) {
| |
| 92 | int k3 = stream.readUnsignedByte(); | |
| 93 | if(k3 == 1) {
| |
| 94 | rsInterface.spritesX[j2] = stream.readSignedWord(); | |
| 95 | rsInterface.spritesY[j2] = stream.readSignedWord(); | |
| 96 | String s1 = stream.readString(); | |
| 97 | if(streamLoader_1 != null && s1.length() > 0) {
| |
| 98 | int i5 = s1.lastIndexOf(",");
| |
| 99 | rsInterface.sprites[j2] = method207(Integer.parseInt(s1.substring(i5 + 1)), streamLoader_1, s1.substring(0, i5)); | |
| 100 | } | |
| 101 | } | |
| 102 | } | |
| 103 | rsInterface.itemActions = new String[5]; | |
| 104 | for(int l3 = 0; l3 < 5; l3++) {
| |
| 105 | rsInterface.itemActions[l3] = stream.readString(); | |
| 106 | if(rsInterface.itemActions[l3].length() == 0) | |
| 107 | rsInterface.itemActions[l3] = null; | |
| 108 | if(rsInterface.parentID == 3824) | |
| 109 | rsInterface.itemActions[4] = "Buy 50"; | |
| 110 | if(rsInterface.parentID == 1644) | |
| 111 | rsInterface.itemActions[2] = "Operate"; | |
| 112 | } | |
| 113 | } | |
| 114 | if(rsInterface.interfaceType == 3) | |
| 115 | rsInterface.boxFilled = stream.readUnsignedByte() == 1; | |
| 116 | if(rsInterface.interfaceType == 4 || rsInterface.interfaceType == 1) {
| |
| 117 | rsInterface.textCentered = stream.readUnsignedByte() == 1; | |
| 118 | int k2 = stream.readUnsignedByte(); | |
| 119 | if(rsFonts != null) | |
| 120 | rsInterface.rsFonts = rsFonts[k2]; | |
| 121 | rsInterface.textShadowed = stream.readUnsignedByte() == 1; | |
| 122 | } | |
| 123 | if(rsInterface.interfaceType == 4) {
| |
| 124 | rsInterface.disabledMessage = stream.readString().replaceAll("RuneScape", "Erased-Pkz");
| |
| 125 | rsInterface.enabledMessage = stream.readString(); | |
| 126 | } | |
| 127 | if(rsInterface.interfaceType == 1 || rsInterface.interfaceType == 3 || rsInterface.interfaceType == 4) | |
| 128 | rsInterface.disabledColor = stream.readDWord(); | |
| 129 | if(rsInterface.interfaceType == 3 || rsInterface.interfaceType == 4) {
| |
| 130 | rsInterface.enabledColor = stream.readDWord(); | |
| 131 | rsInterface.disabledHoverColor = stream.readDWord(); | |
| 132 | rsInterface.enabledHoverColor = stream.readDWord(); | |
| 133 | } | |
| 134 | if(rsInterface.interfaceType == 5) {
| |
| 135 | rsInterface.drawsTransparent = false; | |
| 136 | String s = stream.readString(); | |
| 137 | if(streamLoader_1 != null && s.length() > 0) {
| |
| 138 | int i4 = s.lastIndexOf(",");
| |
| 139 | rsInterface.disabledSprite = method207(Integer.parseInt(s.substring(i4 + 1)), streamLoader_1, s.substring(0, i4)); | |
| 140 | } | |
| 141 | s = stream.readString(); | |
| 142 | if(streamLoader_1 != null && s.length() > 0) {
| |
| 143 | int j4 = s.lastIndexOf(",");
| |
| 144 | rsInterface.enabledSprite = method207(Integer.parseInt(s.substring(j4 + 1)), streamLoader_1, s.substring(0, j4)); | |
| 145 | } | |
| 146 | } | |
| 147 | if(rsInterface.interfaceType == 6) {
| |
| 148 | int l = stream.readUnsignedByte(); | |
| 149 | if(l != 0) {
| |
| 150 | rsInterface.disabledMediaType = 1; | |
| 151 | rsInterface.disabledMediaID = (l - 1 << 8) + stream.readUnsignedByte(); | |
| 152 | } | |
| 153 | l = stream.readUnsignedByte(); | |
| 154 | if(l != 0) {
| |
| 155 | rsInterface.enabledMediaType = 1; | |
| 156 | rsInterface.enabledMediaID = (l - 1 << 8) + stream.readUnsignedByte(); | |
| 157 | } | |
| 158 | l = stream.readUnsignedByte(); | |
| 159 | if(l != 0) | |
| 160 | rsInterface.disabledAnimation = (l - 1 << 8) + stream.readUnsignedByte(); | |
| 161 | else | |
| 162 | rsInterface.disabledAnimation = -1; | |
| 163 | l = stream.readUnsignedByte(); | |
| 164 | if(l != 0) | |
| 165 | rsInterface.enabledAnimation = (l - 1 << 8) + stream.readUnsignedByte(); | |
| 166 | else | |
| 167 | rsInterface.enabledAnimation = -1; | |
| 168 | rsInterface.modelZoom = stream.readUnsignedWord(); | |
| 169 | rsInterface.modelRotationY = stream.readUnsignedWord(); | |
| 170 | rsInterface.modelRotationX = stream.readUnsignedWord(); | |
| 171 | } | |
| 172 | if(rsInterface.interfaceType == 7) {
| |
| 173 | rsInterface.inventory = new int[rsInterface.width * rsInterface.height]; | |
| 174 | rsInterface.inventoryValue = new int[rsInterface.width * rsInterface.height]; | |
| 175 | rsInterface.textCentered = stream.readUnsignedByte() == 1; | |
| 176 | int l2 = stream.readUnsignedByte(); | |
| 177 | if(rsFonts != null) | |
| 178 | rsInterface.rsFonts = rsFonts[l2]; | |
| 179 | rsInterface.textShadowed = stream.readUnsignedByte() == 1; | |
| 180 | rsInterface.disabledColor = stream.readDWord(); | |
| 181 | rsInterface.invSpritePadX = stream.readSignedWord(); | |
| 182 | rsInterface.invSpritePadY = stream.readSignedWord(); | |
| 183 | rsInterface.isInventoryInterface = stream.readUnsignedByte() == 1; | |
| 184 | rsInterface.itemActions = new String[5]; | |
| 185 | for(int k4 = 0; k4 < 5; k4++) {
| |
| 186 | rsInterface.itemActions[k4] = stream.readString(); | |
| 187 | if(rsInterface.itemActions[k4].length() == 0) | |
| 188 | rsInterface.itemActions[k4] = null; | |
| 189 | } | |
| 190 | ||
| 191 | } | |
| 192 | if(rsInterface.atActionType == 2 || rsInterface.interfaceType == 2) {
| |
| 193 | rsInterface.selectedActionName = stream.readString(); | |
| 194 | rsInterface.spellName = stream.readString(); | |
| 195 | rsInterface.spellUsableOn = stream.readUnsignedWord(); | |
| 196 | } | |
| 197 | ||
| 198 | if(rsInterface.interfaceType == 8) | |
| 199 | rsInterface.disabledMessage = stream.readString(); | |
| 200 | ||
| 201 | if(rsInterface.atActionType == 1 || rsInterface.atActionType == 4 || rsInterface.atActionType == 5 || rsInterface.atActionType == 6) {
| |
| 202 | rsInterface.tooltip = stream.readString(); | |
| 203 | if(rsInterface.tooltip.length() == 0) {
| |
| 204 | if(rsInterface.atActionType == 1) | |
| 205 | rsInterface.tooltip = "Ok"; | |
| 206 | if(rsInterface.atActionType == 4) | |
| 207 | rsInterface.tooltip = "Select"; | |
| 208 | if(rsInterface.atActionType == 5) | |
| 209 | rsInterface.tooltip = "Select"; | |
| 210 | if(rsInterface.atActionType == 6) | |
| 211 | rsInterface.tooltip = "Continue"; | |
| 212 | } | |
| 213 | } | |
| 214 | } | |
| 215 | aClass44 = archive; | |
| 216 | - | extraEquipment(rsFonts); |
| 216 | + | extraEquipment(rsFonts); |
| 217 | Starter(textDrawingAreas); | |
| 218 | PVPInterface(rsFonts); | |
| 219 | - | //editShopMain(rsFonts); |
| 219 | + | |
| 220 | - | //FriendList(rsFonts); |
| 220 | + | //editShopMain(rsFonts); |
| 221 | - | //IgnoreList(rsFonts); |
| 221 | + | //FriendList(rsFonts); |
| 222 | - | friendsTab(rsFonts); |
| 222 | + | //IgnoreList(rsFonts); |
| 223 | - | ignoreTab(rsFonts); |
| 223 | + | friendsTab(rsFonts); |
| 224 | - | configureBank(rsFonts); |
| 224 | + | ignoreTab(rsFonts); |
| 225 | - | SummonTab(rsFonts); |
| 225 | + | configureBank(rsFonts); |
| 226 | - | Rules(rsFonts); |
| 226 | + | SummonTab(rsFonts); |
| 227 | - | configureCharDesign(rsFonts); |
| 227 | + | Rules(rsFonts); |
| 228 | - | newTrade(rsFonts); |
| 228 | + | configureCharDesign(rsFonts); |
| 229 | - | skillInterface(rsFonts); |
| 229 | + | newTrade(rsFonts); |
| 230 | - | equipmentScreen(rsFonts); |
| 230 | + | skillInterface(rsFonts); |
| 231 | - | musicTab(rsFonts); |
| 231 | + | equipmentScreen(rsFonts); |
| 232 | - | itemsOnDeathDATA(rsFonts); |
| 232 | + | musicTab(rsFonts); |
| 233 | - | itemsOnDeath(rsFonts); |
| 233 | + | itemsOnDeathDATA(rsFonts); |
| 234 | - | EquipmentTab(rsFonts); |
| 234 | + | itemsOnDeath(rsFonts); |
| 235 | - | questTab(rsFonts); |
| 235 | + | EquipmentTab(rsFonts); |
| 236 | - | Logout(rsFonts); |
| 236 | + | questTab(rsFonts); |
| 237 | - | choosespell(rsFonts); |
| 237 | + | Logout(rsFonts); |
| 238 | - | emoteTab(); |
| 238 | + | choosespell(rsFonts); |
| 239 | - | optionTab(rsFonts); |
| 239 | + | emoteTab(); |
| 240 | - | clanChatTab(rsFonts); |
| 240 | + | optionTab(rsFonts); |
| 241 | - | Sidebar0(rsFonts); |
| 241 | + | clanChatTab(rsFonts); |
| 242 | - | Pestpanel(rsFonts); |
| 242 | + | Sidebar0(rsFonts); |
| 243 | - | Pestpanel2(rsFonts); |
| 243 | + | Pestpanel(rsFonts); |
| 244 | - | magicTab(rsFonts); |
| 244 | + | Pestpanel2(rsFonts); |
| 245 | - | ancientMagicTab(rsFonts); |
| 245 | + | magicTab(rsFonts); |
| 246 | - | configureLunar(rsFonts); |
| 246 | + | ancientMagicTab(rsFonts); |
| 247 | - | constructLunar(); |
| 247 | + | configureLunar(rsFonts); |
| 248 | - | Curses(rsFonts); |
| 248 | + | constructLunar(); |
| 249 | - | prayerMenu(rsFonts); |
| 249 | + | Curses(rsFonts); |
| 250 | - | extraOptions(rsFonts); |
| 250 | + | prayerMenu(rsFonts); |
| 251 | - | GodWars(rsFonts); |
| 251 | + | extraOptions(rsFonts); |
| 252 | GodWars(rsFonts); | |
| 253 | spriteNodes = null; | |
| 254 | - | aClass44 = streamLoader; |
| 254 | + | |
| 255 | - | Starter(textDrawingAreas); |
| 255 | + | |
| 256 | Sprite sprite = imageLoader(i,"Interfaces/Lunar/" + s); | |
| 257 | return sprite; | |
| 258 | } | |
| 259 | private static Sprite CustomSpriteLoader(int id, String s) {
| |
| 260 | long l = (TextClass.method585(s) << 8) + (long)id; | |
| 261 | Sprite sprite = (Sprite)spriteNodes.insertFromCache(l); | |
| 262 | if(sprite != null) { return sprite; }
| |
| 263 | try {
| |
| 264 | sprite = new Sprite("/Interfaces/Attack/"+id + s);
| |
| 265 | spriteNodes.removeFromCache(sprite, l); | |
| 266 | } catch(Exception exception) {
| |
| 267 | return null; } | |
| 268 | return sprite; | |
| 269 | } | |
| 270 | private static Sprite imageLoader(int i, String s) {
| |
| 271 | long l = (TextClass.method585(s) << 8) + (long)i; | |
| 272 | Sprite sprite = (Sprite) spriteNodes.insertFromCache(l); | |
| 273 | if(sprite != null) | |
| 274 | return sprite; | |
| 275 | try {
| |
| 276 | sprite = new Sprite(s+" "+i); | |
| 277 | spriteNodes.removeFromCache(sprite, l); | |
| 278 | } catch(Exception exception) {
| |
| 279 | return null; | |
| 280 | } | |
| 281 | return sprite; | |
| 282 | } | |
| 283 | public static void drawBlackBox(int xPos, int yPos) {
| |
| 284 | DrawingArea.drawPixels(71, yPos - 1, xPos - 2, 0x726451, 1); | |
| 285 | DrawingArea.drawPixels(69, yPos, xPos + 174, 0x726451, 1); | |
| 286 | DrawingArea.drawPixels(1, yPos - 2, xPos - 2, 0x726451, 178); | |
| 287 | DrawingArea.drawPixels(1, yPos + 68, xPos, 0x726451, 174); | |
| 288 | DrawingArea.drawPixels(71, yPos - 1, xPos - 1, 0x2E2B23, 1); | |
| 289 | DrawingArea.drawPixels(71, yPos - 1, xPos + 175, 0x2E2B23, 1); | |
| 290 | DrawingArea.drawPixels(1, yPos - 1, xPos, 0x2E2B23, 175); | |
| 291 | DrawingArea.drawPixels(1, yPos + 69, xPos, 0x2E2B23, 175); | |
| 292 | DrawingArea.method335(0x000000, yPos, 174, 68, 220, xPos); | |
| 293 | } | |
| 294 | ||
| 295 | public void child(int id, int interID, int x, int y) {
| |
| 296 | children[id] = interID; | |
| 297 | childX[id] = x; | |
| 298 | childY[id] = y; | |
| 299 | } | |
| 300 | public void totalChildren(int t) {
| |
| 301 | children = new int[t]; | |
| 302 | childX = new int[t]; | |
| 303 | childY = new int[t]; | |
| 304 | } | |
| 305 | public void totalChildren(int id, int x, int y) {
| |
| 306 | children = new int[id]; | |
| 307 | childX = new int[x]; | |
| 308 | childY = new int[y]; | |
| 309 | } | |
| 310 | public static void setChildren(int total, RSInterface rsinterface) {
| |
| 311 | rsinterface.children = new int[total]; | |
| 312 | rsinterface.childX = new int[total]; | |
| 313 | rsinterface.childY = new int[total]; | |
| 314 | } | |
| 315 | public static void setBounds(int ID, int X, int Y, int frame, RSInterface RSinterface){
| |
| 316 | RSinterface.children[frame] = ID; | |
| 317 | RSinterface.childX[frame] = X; | |
| 318 | RSinterface.childY[frame] = Y; | |
| 319 | } | |
| 320 | public static void setBoundry(int frame, int ID, int X, int Y, RSInterface RSInterface) {
| |
| 321 | RSInterface.children[frame] = ID; | |
| 322 | RSInterface.childX[frame] = X; | |
| 323 | RSInterface.childY[frame] = Y; | |
| 324 | } | |
| 325 | public static void removeSomething(int id) {
| |
| 326 | RSInterface rsi = interfaceCache[id] = new RSInterface(); | |
| 327 | } | |
| 328 | public static void disabledSprite(int id, int sprite) {
| |
| 329 | RSInterface class9 = interfaceCache[id]; | |
| 330 | class9.disabledSprite = CustomSpriteLoader(sprite, ""); | |
| 331 | } | |
| 332 | public static void disabledColor(int id, int color) {
| |
| 333 | RSInterface rsi = interfaceCache[id]; rsi.disabledColor = color; | |
| 334 | } | |
| 335 | public static void textSize(int id, RSFont tda[], int idx) {
| |
| 336 | RSInterface rsi = interfaceCache[id]; rsi.rsFonts = tda[idx]; | |
| 337 | } | |
| 338 | ||
| 339 | public static void addHoverBox(int id, String text) {
| |
| 340 | RSInterface rsi = interfaceCache[id]; | |
| 341 | rsi.id = id; | |
| 342 | rsi.parentID = id; | |
| 343 | rsi.interfaceShown = true; | |
| 344 | rsi.interfaceType = 8; | |
| 345 | rsi.hoverText = text; | |
| 346 | } | |
| 347 | public static void addTooltipBox(int id, String text) {
| |
| 348 | RSInterface rsi = addInterface(id); | |
| 349 | rsi.id = id; | |
| 350 | rsi.parentID = id; | |
| 351 | rsi.interfaceType = 9; | |
| 352 | rsi.disabledMessage = text; | |
| 353 | } | |
| 354 | public static void addTooltip(int id, String text) {
| |
| 355 | RSInterface rsi = addInterface(id); | |
| 356 | rsi.id = id; | |
| 357 | rsi.interfaceType = 0; | |
| 358 | rsi.interfaceShown = true; | |
| 359 | rsi.hoverType = -1; | |
| 360 | addTooltipBox(id + 1, text); | |
| 361 | rsi.totalChildren(1); | |
| 362 | rsi.child(0, id + 1, 0, 0); | |
| 363 | } | |
| 364 | public static void drawTooltip(int id, String text) {
| |
| 365 | RSInterface rsinterface = addTabInterface(id); | |
| 366 | rsinterface.parentID = id; | |
| 367 | rsinterface.interfaceType = 0; | |
| 368 | rsinterface.interfaceShown = true; | |
| 369 | rsinterface.hoverType = -1; | |
| 370 | addTooltipBox(id + 1, text); | |
| 371 | rsinterface.totalChildren(1); | |
| 372 | rsinterface.child(0, id + 1, 0, 0); | |
| 373 | } | |
| 374 | public static void addTooltip(int id, int frame, int X, int Y, String text) {
| |
| 375 | RSInterface rsi = addInterface(id); | |
| 376 | rsi.id = id; | |
| 377 | rsi.interfaceType = 0; | |
| 378 | rsi.interfaceShown = true; | |
| 379 | rsi.hoverType = -1; | |
| 380 | addTooltipBox(id + 1, text); | |
| 381 | rsi.totalChildren(1); | |
| 382 | rsi.child(0, id + 1, 0, 0); | |
| 383 | rsi.children[frame] = id; | |
| 384 | rsi.childX[frame] = X; | |
| 385 | rsi.childY[frame] = Y; | |
| 386 | } | |
| 387 | public static RSInterface addInterface(int id) {
| |
| 388 | RSInterface rsi = interfaceCache[id] = new RSInterface(); | |
| 389 | rsi.id = id; | |
| 390 | rsi.parentID = id; | |
| 391 | rsi.width = 512; | |
| 392 | rsi.height = 334; | |
| 393 | return rsi; | |
| 394 | } | |
| 395 | public static RSInterface addTabInterface(int id) {
| |
| 396 | RSInterface tab = interfaceCache[id] = new RSInterface(); | |
| 397 | tab.id = id; | |
| 398 | tab.parentID = id; | |
| 399 | tab.interfaceType = 0; | |
| 400 | tab.atActionType = 0; | |
| 401 | tab.contentType = 0; | |
| 402 | tab.width = 512; | |
| 403 | tab.height = 700; | |
| 404 | tab.opacity = (byte)0; | |
| 405 | tab.hoverType = -1; | |
| 406 | return tab; | |
| 407 | } | |
| 408 | public static RSInterface addScreenInterface(int id) {
| |
| 409 | RSInterface tab = interfaceCache[id] = new RSInterface(); | |
| 410 | tab.id = id; | |
| 411 | tab.parentID = id; | |
| 412 | tab.interfaceType = 0; | |
| 413 | tab.atActionType = 0; | |
| 414 | tab.contentType = 0; | |
| 415 | tab.width = 512; | |
| 416 | tab.height = 334; | |
| 417 | tab.opacity = (byte)0; | |
| 418 | tab.hoverType = 0; | |
| 419 | return tab; | |
| 420 | } | |
| 421 | public static RSInterface addTab(int i) {
| |
| 422 | RSInterface rsinterface = interfaceCache[i] = new RSInterface(); | |
| 423 | rsinterface.id = i; | |
| 424 | rsinterface.parentID = i; | |
| 425 | rsinterface.interfaceType = 0; | |
| 426 | rsinterface.atActionType = 0; | |
| 427 | rsinterface.contentType = 0; | |
| 428 | rsinterface.width = 512; | |
| 429 | rsinterface.height = 334; | |
| 430 | rsinterface.opacity = 0; | |
| 431 | rsinterface.hoverType = 0; | |
| 432 | return rsinterface; | |
| 433 | } | |
| 434 | public static void AddInterfaceButton(int id, int sid, String spriteName, String tooltip) {
| |
| 435 | RSInterface tab = interfaceCache[id] = new RSInterface(); | |
| 436 | tab.id = id; | |
| 437 | tab.parentID = id; | |
| 438 | tab.interfaceType = 5; | |
| 439 | tab.atActionType = 1; | |
| 440 | tab.contentType = 0; | |
| 441 | tab.opacity = (byte)0; | |
| 442 | tab.hoverType = 52; | |
| 443 | tab.disabledSprite = imageLoader(sid, spriteName); | |
| 444 | tab.enabledSprite = imageLoader(sid, spriteName); | |
| 445 | tab.width = tab.disabledSprite.myWidth; | |
| 446 | tab.height = tab.enabledSprite.myHeight; | |
| 447 | tab.tooltip = tooltip; | |
| 448 | } | |
| 449 | public static void AddInterfaceButton(int i, int j, String name, int W, int H, String S, int AT) {
| |
| 450 | RSInterface RSInterface = addInterface(i); | |
| 451 | RSInterface.id = i; | |
| 452 | RSInterface.parentID = i; | |
| 453 | RSInterface.interfaceType = 5; | |
| 454 | RSInterface.atActionType = AT; | |
| 455 | RSInterface.contentType = 0; | |
| 456 | RSInterface.opacity = 0; | |
| 457 | RSInterface.hoverType = 52; | |
| 458 | RSInterface.disabledSprite = imageLoader(j,name); | |
| 459 | RSInterface.enabledSprite = imageLoader(j,name); | |
| 460 | RSInterface.width = W; | |
| 461 | RSInterface.height = H; | |
| 462 | RSInterface.tooltip = S; | |
| 463 | } | |
| 464 | public static void AddInterfaceButton(int id, int sid, String spriteName, String tooltip, int w, int h) {
| |
| 465 | RSInterface tab = interfaceCache[id] = new RSInterface(); | |
| 466 | tab.id = id; | |
| 467 | tab.parentID = id; | |
| 468 | tab.interfaceType = 5; | |
| 469 | tab.atActionType = 1; | |
| 470 | tab.contentType = 0; | |
| 471 | tab.opacity = (byte)0; | |
| 472 | tab.hoverType = 52; | |
| 473 | tab.disabledSprite = imageLoader(sid, spriteName); | |
| 474 | tab.enabledSprite = imageLoader(sid, spriteName); | |
| 475 | tab.width = w; | |
| 476 | tab.height = h; | |
| 477 | tab.tooltip = tooltip; | |
| 478 | } | |
| 479 | public static void AddInterfaceButton(int i, int j, int hoverId, String name, int W, int H, String S, int AT) {
| |
| 480 | RSInterface RSInterface = addInterface(i); | |
| 481 | RSInterface.id = i; | |
| 482 | RSInterface.parentID = i; | |
| 483 | RSInterface.interfaceType = 5; | |
| 484 | RSInterface.atActionType = AT; | |
| 485 | RSInterface.opacity = 0; | |
| 486 | RSInterface.hoverType = hoverId; | |
| 487 | RSInterface.disabledSprite = imageLoader(j,name); | |
| 488 | RSInterface.enabledSprite = imageLoader(j,name); | |
| 489 | RSInterface.width = W; | |
| 490 | RSInterface.height = H; | |
| 491 | RSInterface.tooltip = S; | |
| 492 | } | |
| 493 | public static void AddInterfaceButton(int id, int sid, String spriteName, String tooltip, int mOver, int atAction, int width, int height) {
| |
| 494 | RSInterface tab = interfaceCache[id] = new RSInterface(); | |
| 495 | tab.id = id; | |
| 496 | tab.parentID = id; | |
| 497 | tab.interfaceType = 5; | |
| 498 | tab.atActionType = atAction; | |
| 499 | tab.contentType = 0; | |
| 500 | tab.opacity = 0; | |
| 501 | tab.hoverType = mOver; | |
| 502 | tab.disabledSprite = imageLoader(sid, spriteName); | |
| 503 | tab.enabledSprite = imageLoader(sid, spriteName); | |
| 504 | tab.width = width; | |
| 505 | tab.height = height; | |
| 506 | tab.tooltip = tooltip; | |
| 507 | tab.inventoryhover = true; | |
| 508 | } | |
| 509 | private static void AddInterfaceButton(int ID, int type, int hoverID, int dS, int eS, String NAME, int W, int H, String text, int configFrame, int configId) {
| |
| 510 | RSInterface rsinterface = addInterface(ID); | |
| 511 | rsinterface.id = ID; | |
| 512 | rsinterface.parentID = ID; | |
| 513 | rsinterface.interfaceType = 5; | |
| 514 | rsinterface.atActionType = type; | |
| 515 | rsinterface.opacity = 0; | |
| 516 | rsinterface.hoverType = hoverID; | |
| 517 | rsinterface.disabledSprite = imageLoader(dS, NAME); | |
| 518 | rsinterface.enabledSprite = imageLoader(eS, NAME); | |
| 519 | rsinterface.width = W; | |
| 520 | rsinterface.height = H; | |
| 521 | rsinterface.valueCompareType = new int[1]; | |
| 522 | rsinterface.requiredValues = new int[1]; | |
| 523 | rsinterface.valueCompareType[0] = 1; | |
| 524 | rsinterface.requiredValues[0] = configId; | |
| 525 | rsinterface.valueIndexArray = new int[1][3]; | |
| 526 | rsinterface.valueIndexArray[0][0] = 5; | |
| 527 | rsinterface.valueIndexArray[0][1] = configFrame; | |
| 528 | rsinterface.valueIndexArray[0][2] = 0; | |
| 529 | rsinterface.tooltip = text; | |
| 530 | } | |
| 531 | public static void AddInterfaceButtons(int id, int sid, String spriteName, String tooltip, int mOver, int atAction) {
| |
| 532 | RSInterface rsinterface = interfaceCache[id] = new RSInterface(); | |
| 533 | rsinterface.id = id; | |
| 534 | rsinterface.parentID = id; | |
| 535 | rsinterface.interfaceType = 5; | |
| 536 | rsinterface.atActionType = atAction; | |
| 537 | rsinterface.contentType = 0; | |
| 538 | rsinterface.opacity = (byte)0; | |
| 539 | rsinterface.hoverType = mOver; | |
| 540 | rsinterface.disabledSprite = imageLoader(sid, spriteName); | |
| 541 | rsinterface.enabledSprite = imageLoader(sid, spriteName); | |
| 542 | rsinterface.width = rsinterface.disabledSprite.myWidth; | |
| 543 | rsinterface.height = rsinterface.enabledSprite.myHeight; | |
| 544 | rsinterface.tooltip = tooltip; | |
| 545 | rsinterface.inventoryhover = true; | |
| 546 | } | |
| 547 | public static void addToggleButton(int id, int sprite, int setconfig, int width, int height, String tooltip, int mOver) {
| |
| 548 | RSInterface rsi = addInterface(id); | |
| 549 | rsi.disabledSprite = CustomSpriteLoader(sprite, ""); | |
| 550 | rsi.enabledSprite = CustomSpriteLoader(sprite, "a"); | |
| 551 | rsi.requiredValues = new int[1]; | |
| 552 | rsi.requiredValues[0] = 1; | |
| 553 | rsi.valueCompareType = new int[1]; | |
| 554 | rsi.valueCompareType[0] = 1; | |
| 555 | rsi.valueIndexArray = new int[1][3]; | |
| 556 | rsi.valueIndexArray[0][0] = 5; | |
| 557 | rsi.valueIndexArray[0][1] = setconfig; | |
| 558 | rsi.valueIndexArray[0][2] = 0; | |
| 559 | rsi.atActionType = 4; | |
| 560 | rsi.width = width; | |
| 561 | rsi.hoverType = mOver; | |
| 562 | rsi.parentID = id; | |
| 563 | rsi.id = id; | |
| 564 | rsi.interfaceType = 5; | |
| 565 | rsi.height = height; | |
| 566 | rsi.tooltip = tooltip; | |
| 567 | } | |
| 568 | public static void addToggleButton(int id, int sprite, int setconfig, int width, int height, String s) {
| |
| 569 | RSInterface rsi = addInterface(id); | |
| 570 | rsi.disabledSprite = CustomSpriteLoader(sprite, ""); | |
| 571 | rsi.enabledSprite = CustomSpriteLoader(sprite, "a"); | |
| 572 | rsi.requiredValues = new int[1]; | |
| 573 | rsi.requiredValues[0] = 1; | |
| 574 | rsi.valueCompareType = new int[1]; | |
| 575 | rsi.valueCompareType[0] = 1; | |
| 576 | rsi.valueIndexArray = new int[1][3]; | |
| 577 | rsi.valueIndexArray[0][0] = 5; | |
| 578 | rsi.valueIndexArray[0][1] = setconfig; | |
| 579 | rsi.valueIndexArray[0][2] = 0; | |
| 580 | rsi.atActionType = 4; | |
| 581 | rsi.width = width; | |
| 582 | rsi.hoverType = -1; | |
| 583 | rsi.parentID = id; | |
| 584 | rsi.id = id; | |
| 585 | rsi.interfaceType = 5; | |
| 586 | rsi.height = height; | |
| 587 | rsi.tooltip = s; | |
| 588 | } | |
| 589 | public static void addActionButton(int id, int sprite, int enabledSprite, int width, int height, String s) {
| |
| 590 | RSInterface rsi = interfaceCache[id] = new RSInterface(); | |
| 591 | rsi.disabledSprite = CustomSpriteLoader(sprite, ""); | |
| 592 | if (enabledSprite == sprite) | |
| 593 | rsi.enabledSprite = CustomSpriteLoader(sprite, "a"); | |
| 594 | else | |
| 595 | rsi.enabledSprite = CustomSpriteLoader(enabledSprite, ""); | |
| 596 | rsi.tooltip = s; | |
| 597 | rsi.contentType = 0; | |
| 598 | rsi.atActionType = 1; | |
| 599 | rsi.width = width; | |
| 600 | rsi.hoverType = 52; | |
| 601 | rsi.parentID = id; | |
| 602 | rsi.id = id; | |
| 603 | rsi.interfaceType = 5; | |
| 604 | rsi.height = height; | |
| 605 | } | |
| 606 | public static void addActionButton(int id, int sprite, int enabledSprite, int width, int height, String s, int mOver) {
| |
| 607 | RSInterface rsi = interfaceCache[id] = new RSInterface(); | |
| 608 | rsi.disabledSprite = CustomSpriteLoader(sprite, ""); | |
| 609 | if (enabledSprite == sprite) | |
| 610 | rsi.enabledSprite = CustomSpriteLoader(sprite, "a"); | |
| 611 | else | |
| 612 | rsi.enabledSprite = CustomSpriteLoader(enabledSprite, ""); | |
| 613 | rsi.tooltip = s; | |
| 614 | rsi.contentType = 0; | |
| 615 | rsi.atActionType = 1; | |
| 616 | rsi.width = width; | |
| 617 | rsi.hoverType = mOver; | |
| 618 | rsi.parentID = id; | |
| 619 | rsi.id = id; | |
| 620 | rsi.interfaceType = 5; | |
| 621 | rsi.height = height; | |
| 622 | } | |
| 623 | public static void addActionButton1(int i, int j, int k, int width, int height, String s, int mOver) {
| |
| 624 | RSInterface rsinterface = interfaceCache[i] = new RSInterface(); | |
| 625 | rsinterface.id = i; | |
| 626 | rsinterface.parentID = i; | |
| 627 | rsinterface.interfaceType = 5; | |
| 628 | rsinterface.atActionType = 1; | |
| 629 | rsinterface.contentType = 0; | |
| 630 | rsinterface.width = width; | |
| 631 | rsinterface.height = height; | |
| 632 | rsinterface.opacity = 0; | |
| 633 | rsinterface.hoverType = 52; | |
| 634 | rsinterface.disabledSprite = imageLoader(j, "Interfaces/Equipment/BOX"); | |
| 635 | rsinterface.enabledSprite = imageLoader(k, "Interfaces/Equipment/BOX"); | |
| 636 | rsinterface.tooltip = s; | |
| 637 | } | |
| 638 | 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) {
| |
| 639 | RSInterface Tab = addTabInterface(ID); | |
| 640 | Tab.parentID = pID; | |
| 641 | Tab.id = ID; | |
| 642 | Tab.interfaceType = 5; | |
| 643 | Tab.atActionType = aT; | |
| 644 | Tab.contentType = 0; | |
| 645 | Tab.width = width; | |
| 646 | Tab.height = height; | |
| 647 | Tab.opacity = 0; | |
| 648 | Tab.hoverType = -1; | |
| 649 | Tab.valueCompareType = new int[1]; | |
| 650 | Tab.requiredValues = new int[1]; | |
| 651 | Tab.valueCompareType[0] = 1; | |
| 652 | Tab.requiredValues[0] = configID; | |
| 653 | Tab.valueIndexArray = new int[1][3]; | |
| 654 | Tab.valueIndexArray[0][0] = 5; | |
| 655 | Tab.valueIndexArray[0][1] = configFrame; | |
| 656 | Tab.valueIndexArray[0][2] = 0; | |
| 657 | Tab.disabledSprite = imageLoader(bID, bName); | |
| 658 | Tab.enabledSprite = imageLoader(bID2, bName); | |
| 659 | Tab.tooltip = tT; | |
| 660 | } | |
| 661 | public static void addHoverButton(int i, String imageName, int j, int width, int height, String text, int contentType, int hoverOver, int aT) {
| |
| 662 | RSInterface tab = addTabInterface(i); | |
| 663 | tab.id = i; | |
| 664 | tab.parentID = i; | |
| 665 | tab.interfaceType = 5; | |
| 666 | tab.atActionType = aT; | |
| 667 | tab.contentType = contentType; | |
| 668 | tab.opacity = 0; | |
| 669 | tab.hoverType = hoverOver; | |
| 670 | tab.disabledSprite = imageLoader(j, imageName); | |
| 671 | tab.enabledSprite = imageLoader(j, imageName); | |
| 672 | tab.width = width; | |
| 673 | tab.height = height; | |
| 674 | tab.tooltip = text; | |
| 675 | } | |
| 676 | public static void addHoveredButton(int i, String imageName, int j, int w, int h, int IMAGEID) {
| |
| 677 | RSInterface tab = addTabInterface(i); | |
| 678 | tab.parentID = i; | |
| 679 | tab.id = i; | |
| 680 | tab.interfaceType = 0; | |
| 681 | tab.atActionType = 0; | |
| 682 | tab.width = w; | |
| 683 | tab.height = h; | |
| 684 | tab.interfaceShown = true; | |
| 685 | tab.opacity = 0; | |
| 686 | tab.hoverType = -1; | |
| 687 | tab.scrollMax = 0; | |
| 688 | addHoverImage(IMAGEID, j, j, imageName); | |
| 689 | tab.totalChildren(1); | |
| 690 | tab.child(0, IMAGEID, 0, 0); | |
| 691 | } | |
| 692 | public static void addHover(int i, int aT, int cT, int hoverid,int sId, String NAME, int W, int H, String tip) {
| |
| 693 | RSInterface rsinterfaceHover = addInterface(i); | |
| 694 | rsinterfaceHover.id = i; | |
| 695 | rsinterfaceHover.parentID = i; | |
| 696 | rsinterfaceHover.interfaceType = 5; | |
| 697 | rsinterfaceHover.atActionType = aT; | |
| 698 | rsinterfaceHover.contentType = cT; | |
| 699 | rsinterfaceHover.hoverType = hoverid; | |
| 700 | rsinterfaceHover.disabledSprite = imageLoader(sId, NAME); | |
| 701 | rsinterfaceHover.enabledSprite = imageLoader(sId, NAME); | |
| 702 | rsinterfaceHover.width = W; | |
| 703 | rsinterfaceHover.height = H; | |
| 704 | rsinterfaceHover.tooltip = tip; | |
| 705 | } | |
| 706 | public static void addHovered(int i, int j, String imageName, int w, int h, int IMAGEID) {
| |
| 707 | RSInterface rsinterfaceHover = addInterface(i); | |
| 708 | rsinterfaceHover.parentID = i; | |
| 709 | rsinterfaceHover.id = i; | |
| 710 | rsinterfaceHover.interfaceType = 0; | |
| 711 | rsinterfaceHover.atActionType = 0; | |
| 712 | rsinterfaceHover.width = w; | |
| 713 | rsinterfaceHover.height = h; | |
| 714 | rsinterfaceHover.interfaceShown = true; | |
| 715 | rsinterfaceHover.hoverType = -1; | |
| 716 | addSprite(IMAGEID, j, imageName); | |
| 717 | setChildren(1, rsinterfaceHover); | |
| 718 | setBounds(IMAGEID, 0, 0, 0, rsinterfaceHover); | |
| 719 | } | |
| 720 | public static void addText(int i, String s, int k, boolean l, boolean m, int a, int j) {
| |
| 721 | RSInterface rsinterface = addTabInterface(i); | |
| 722 | rsinterface.parentID = i; | |
| 723 | rsinterface.id = i; | |
| 724 | rsinterface.interfaceType = 4; | |
| 725 | rsinterface.atActionType = 0; | |
| 726 | rsinterface.width = 0; | |
| 727 | rsinterface.height = 0; | |
| 728 | rsinterface.contentType = 0; | |
| 729 | rsinterface.opacity = 0; | |
| 730 | rsinterface.hoverType = a; | |
| 731 | rsinterface.textCentered = l; | |
| 732 | rsinterface.textShadowed = m; | |
| 733 | rsinterface.rsFonts = RSInterface.fonts[j]; | |
| 734 | rsinterface.disabledMessage = s; | |
| 735 | rsinterface.disabledColor = k; | |
| 736 | } | |
| 737 | public static void addText(int id, String text, RSFont wid[], int idx, int color) {
| |
| 738 | RSInterface rsinterface = addTab(id); | |
| 739 | rsinterface.id = id; | |
| 740 | rsinterface.parentID = id; | |
| 741 | rsinterface.interfaceType = 4; | |
| 742 | rsinterface.atActionType = 0; | |
| 743 | rsinterface.width = 174; | |
| 744 | rsinterface.height = 11; | |
| 745 | rsinterface.contentType = 0; | |
| 746 | rsinterface.opacity = 0; | |
| 747 | rsinterface.hoverType = -1; | |
| 748 | rsinterface.textCentered = false; | |
| 749 | rsinterface.textShadowed = true; | |
| 750 | rsinterface.rsFonts = wid[idx]; | |
| 751 | rsinterface.disabledMessage = text; | |
| 752 | rsinterface.enabledMessage = ""; | |
| 753 | rsinterface.disabledColor = color; | |
| 754 | rsinterface.enabledColor = 0; | |
| 755 | rsinterface.disabledHoverColor = 0; | |
| 756 | rsinterface.enabledHoverColor = 0; | |
| 757 | } | |
| 758 | public static void addText(int id, String text, RSFont tda[], int idx, int color, boolean center) {
| |
| 759 | RSInterface rsinterface = addInterface(id); | |
| 760 | rsinterface.id = id; | |
| 761 | rsinterface.parentID = id; | |
| 762 | rsinterface.interfaceType = 4; | |
| 763 | rsinterface.atActionType = 0; | |
| 764 | rsinterface.width = 0; | |
| 765 | rsinterface.height = 11; | |
| 766 | rsinterface.contentType = 0; | |
| 767 | rsinterface.opacity = 0; | |
| 768 | rsinterface.hoverType = -1; | |
| 769 | rsinterface.textCentered = center; | |
| 770 | rsinterface.textShadowed = true; | |
| 771 | rsinterface.rsFonts = tda[idx]; | |
| 772 | rsinterface.disabledMessage = text; | |
| 773 | rsinterface.enabledMessage = ""; | |
| 774 | rsinterface.disabledColor = color; | |
| 775 | rsinterface.enabledColor = 0; | |
| 776 | rsinterface.disabledHoverColor = 0; | |
| 777 | rsinterface.enabledHoverColor = 0; | |
| 778 | } | |
| 779 | public static void addText(int i, String s,int k, boolean l, boolean m, int a,RSFont[] TDA, int j) {
| |
| 780 | RSInterface RSInterface = addInterface(i); | |
| 781 | RSInterface.parentID = i; | |
| 782 | RSInterface.id = i; | |
| 783 | RSInterface.interfaceType = 4; | |
| 784 | RSInterface.atActionType = 0; | |
| 785 | RSInterface.width = 0; | |
| 786 | RSInterface.height = 0; | |
| 787 | RSInterface.contentType = 0; | |
| 788 | RSInterface.opacity = 0; | |
| 789 | RSInterface.hoverType = a; | |
| 790 | RSInterface.textCentered = l; | |
| 791 | RSInterface.textShadowed = m; | |
| 792 | RSInterface.rsFonts = TDA[j]; | |
| 793 | RSInterface.disabledMessage = s; | |
| 794 | RSInterface.enabledMessage = ""; | |
| 795 | RSInterface.disabledColor = k; | |
| 796 | } | |
| 797 | public static void addText(int i, String s,int k, boolean l, boolean m, int a,RSFont[] TDA, int j, int dsc) {
| |
| 798 | RSInterface rsinterface = addInterface(i); | |
| 799 | rsinterface.parentID = i; | |
| 800 | rsinterface.id = i; | |
| 801 | rsinterface.interfaceType = 4; | |
| 802 | rsinterface.atActionType = 1; | |
| 803 | rsinterface.width = 174; | |
| 804 | rsinterface.height = 11; | |
| 805 | rsinterface.contentType = 0; | |
| 806 | rsinterface.opacity = 0; | |
| 807 | rsinterface.hoverType = a; | |
| 808 | rsinterface.textCentered = l; | |
| 809 | rsinterface.textShadowed = m; | |
| 810 | rsinterface.rsFonts = TDA[j]; | |
| 811 | rsinterface.disabledMessage = s; | |
| 812 | rsinterface.enabledMessage = ""; | |
| 813 | rsinterface.enabledColor = 0; | |
| 814 | rsinterface.disabledColor = k; | |
| 815 | rsinterface.enabledHoverColor = dsc; | |
| 816 | rsinterface.tooltip = s; | |
| 817 | } | |
| 818 | public static void addText(int id, String text, RSFont tda[], int idx, int color, boolean centered, boolean textShadowed) {
| |
| 819 | RSInterface rsi = interfaceCache[id] = new RSInterface(); | |
| 820 | if(centered) | |
| 821 | rsi.textCentered = true; | |
| 822 | rsi.textShadowed = textShadowed; | |
| 823 | rsi.rsFonts = tda[idx]; | |
| 824 | rsi.disabledMessage = text; | |
| 825 | rsi.disabledColor = color; | |
| 826 | rsi.id = id; | |
| 827 | rsi.interfaceType = 4; | |
| 828 | } | |
| 829 | public static void addText(int i, String s, String tooltip, int k, boolean l, boolean m, int a,RSFont[] TDA, int j, int dsc) {
| |
| 830 | RSInterface rsinterface = addInterface(i); | |
| 831 | rsinterface.parentID = i; | |
| 832 | rsinterface.id = i; | |
| 833 | rsinterface.interfaceType = 4; | |
| 834 | rsinterface.atActionType = 1; | |
| 835 | rsinterface.width = 174; | |
| 836 | rsinterface.height = 11; | |
| 837 | rsinterface.contentType = 0; | |
| 838 | rsinterface.opacity = 0; | |
| 839 | rsinterface.hoverType = a; | |
| 840 | rsinterface.textCentered = l; | |
| 841 | rsinterface.textShadowed = m; | |
| 842 | rsinterface.rsFonts = TDA[j]; | |
| 843 | rsinterface.disabledMessage = s; | |
| 844 | rsinterface.enabledMessage = ""; | |
| 845 | rsinterface.enabledColor = 0; | |
| 846 | rsinterface.disabledHoverColor = k; | |
| 847 | rsinterface.enabledHoverColor = dsc; | |
| 848 | rsinterface.tooltip = tooltip; | |
| 849 | } | |
| 850 | public static void addHoverText(int id, String text, String tooltip, RSFont tda[], int idx, int color, boolean center, boolean textShadowed, int width) {
| |
| 851 | RSInterface rsinterface = addInterface(id); | |
| 852 | rsinterface.id = id; | |
| 853 | rsinterface.parentID = id; | |
| 854 | rsinterface.interfaceType = 4; | |
| 855 | rsinterface.atActionType = 1; | |
| 856 | rsinterface.width = width; | |
| 857 | rsinterface.height = 11; | |
| 858 | rsinterface.contentType = 0; | |
| 859 | rsinterface.opacity = 0; | |
| 860 | rsinterface.hoverType = -1; | |
| 861 | rsinterface.textCentered = center; | |
| 862 | rsinterface.textShadowed = textShadowed; | |
| 863 | rsinterface.rsFonts = tda[idx]; | |
| 864 | rsinterface.disabledMessage = text; | |
| 865 | rsinterface.enabledMessage = ""; | |
| 866 | rsinterface.disabledColor = color; | |
| 867 | rsinterface.enabledColor = 0; | |
| 868 | rsinterface.disabledHoverColor = 0xffffff; | |
| 869 | rsinterface.enabledHoverColor = 0; | |
| 870 | rsinterface.tooltip = tooltip; | |
| 871 | } | |
| 872 | public static void addSprite(int i, int j, int k) {
| |
| 873 | RSInterface rsinterface = interfaceCache[i] = new RSInterface(); | |
| 874 | rsinterface.id = i; | |
| 875 | rsinterface.parentID = i; | |
| 876 | rsinterface.interfaceType = 5; | |
| 877 | rsinterface.atActionType = 1; | |
| 878 | rsinterface.contentType = 0; | |
| 879 | rsinterface.width = 20; | |
| 880 | rsinterface.height = 20; | |
| 881 | rsinterface.opacity = 0; | |
| 882 | rsinterface.hoverType = 52; | |
| 883 | rsinterface.disabledSprite = imageLoader(j, "Interfaces/Equipment/SPRITE"); | |
| 884 | rsinterface.enabledSprite = imageLoader(k, "Interfaces/Equipment/SPRITE"); | |
| 885 | } | |
| 886 | public static void addSprite(int id, int spriteId, String spriteName) {
| |
| 887 | RSInterface tab = interfaceCache[id] = new RSInterface(); | |
| 888 | tab.id = id; | |
| 889 | tab.parentID = id; | |
| 890 | tab.interfaceType = 5; | |
| 891 | tab.atActionType = 0; | |
| 892 | tab.contentType = 0; | |
| 893 | tab.opacity = (byte)0; | |
| 894 | tab.hoverType = 52; | |
| 895 | tab.disabledSprite = imageLoader(spriteId, spriteName); | |
| 896 | tab.enabledSprite = imageLoader(spriteId, spriteName); | |
| 897 | tab.width = 512; | |
| 898 | tab.height = 334; | |
| 899 | } | |
| 900 | public static void addCacheSprite(int id, int disabledSprite, int enabledSprite, String sprites) {
| |
| 901 | RSInterface rsi = interfaceCache[id] = new RSInterface(); | |
| 902 | rsi.disabledSprite = method207(disabledSprite, aClass44, sprites); | |
| 903 | rsi.enabledSprite = method207(enabledSprite, aClass44, sprites); | |
| 904 | rsi.parentID = id; | |
| 905 | rsi.id = id; | |
| 906 | rsi.interfaceType = 5; | |
| 907 | } | |
| 908 | public static void addTransparentSprite(int id, int spriteId, String spriteName) {
| |
| 909 | RSInterface tab = interfaceCache[id] = new RSInterface(); | |
| 910 | tab.id = id; | |
| 911 | tab.parentID = id; | |
| 912 | tab.interfaceType = 5; | |
| 913 | tab.atActionType = 0; | |
| 914 | tab.contentType = 0; | |
| 915 | tab.opacity = (byte)0; | |
| 916 | tab.hoverType = 52; | |
| 917 | tab.disabledSprite = imageLoader(spriteId, spriteName); | |
| 918 | tab.enabledSprite = imageLoader(spriteId, spriteName); | |
| 919 | tab.width = 512; | |
| 920 | tab.height = 334; | |
| 921 | tab.drawsTransparent = true; | |
| 922 | } | |
| 923 | public static void addPrayerWithTooltip(int i, int configId, int configFrame, int requiredValues, int prayerSpriteID, int Hover, String tooltip) {
| |
| 924 | RSInterface Interface = addTabInterface(i); | |
| 925 | Interface.id = i; | |
| 926 | Interface.parentID = 5608; | |
| 927 | Interface.interfaceType = 5; | |
| 928 | Interface.atActionType = 4; | |
| 929 | Interface.contentType = 0; | |
| 930 | Interface.opacity = 0; | |
| 931 | Interface.hoverType = Hover; | |
| 932 | Interface.disabledSprite = imageLoader(0, "Interfaces/PrayerTab/PRAYERGLOW"); | |
| 933 | Interface.enabledSprite = imageLoader(1, "Interfaces/PrayerTab/PRAYERGLOW"); | |
| 934 | Interface.width = 34; | |
| 935 | Interface.height = 34; | |
| 936 | Interface.valueCompareType = new int[1]; | |
| 937 | Interface.requiredValues = new int[1]; | |
| 938 | Interface.valueCompareType[0] = 1; | |
| 939 | Interface.requiredValues[0] = configId; | |
| 940 | Interface.valueIndexArray = new int[1][3]; | |
| 941 | Interface.valueIndexArray[0][0] = 5; | |
| 942 | Interface.valueIndexArray[0][1] = configFrame; | |
| 943 | Interface.valueIndexArray[0][2] = 0; | |
| 944 | Interface.tooltip = tooltip; | |
| 945 | Interface = addTabInterface(i + 1); | |
| 946 | Interface.id = i + 1; | |
| 947 | Interface.parentID = 5608; | |
| 948 | Interface.interfaceType = 5; | |
| 949 | Interface.atActionType = 0; | |
| 950 | Interface.contentType = 0; | |
| 951 | Interface.opacity = 0; | |
| 952 | Interface.disabledSprite = imageLoader(prayerSpriteID, "Interfaces/PrayerTab/PRAYERON"); | |
| 953 | Interface.enabledSprite = imageLoader(prayerSpriteID, "Interfaces/PrayerTab/PRAYEROFF"); | |
| 954 | Interface.width = 34; | |
| 955 | Interface.height = 34; | |
| 956 | Interface.valueCompareType = new int[1]; | |
| 957 | Interface.requiredValues = new int[1]; | |
| 958 | Interface.valueCompareType[0] = 2; | |
| 959 | Interface.requiredValues[0] = requiredValues + 1; | |
| 960 | Interface.valueIndexArray = new int[1][3]; | |
| 961 | Interface.valueIndexArray[0][0] = 2; | |
| 962 | Interface.valueIndexArray[0][1] = 5; | |
| 963 | Interface.valueIndexArray[0][2] = 0; | |
| 964 | } | |
| 965 | public static void addPrayer(int i, int configId, int configFrame, int requiredValues, int prayerSpriteID, String PrayerName, int Hover) {
| |
| 966 | RSInterface Interface = addTabInterface(i); | |
| 967 | Interface.id = i; | |
| 968 | Interface.parentID = 22500; | |
| 969 | Interface.interfaceType = 5; | |
| 970 | Interface.atActionType = 4; | |
| 971 | Interface.contentType = 0; | |
| 972 | Interface.opacity = 0; | |
| 973 | Interface.hoverType = Hover; | |
| 974 | Interface.disabledSprite = imageLoader(0, "Interfaces/CurseTab/GLOW"); | |
| 975 | Interface.enabledSprite = imageLoader(1, "Interfaces/CurseTab/GLOW"); | |
| 976 | Interface.width = 34; | |
| 977 | Interface.height = 34; | |
| 978 | Interface.valueCompareType = new int[1]; | |
| 979 | Interface.requiredValues = new int[1]; | |
| 980 | Interface.valueCompareType[0] = 1; | |
| 981 | Interface.requiredValues[0] = configId; | |
| 982 | Interface.valueIndexArray = new int[1][3]; | |
| 983 | Interface.valueIndexArray[0][0] = 5; | |
| 984 | Interface.valueIndexArray[0][1] = configFrame; | |
| 985 | Interface.valueIndexArray[0][2] = 0; | |
| 986 | Interface.tooltip = "Activate@lre@ " + PrayerName; | |
| 987 | Interface = addTabInterface(i + 1); | |
| 988 | Interface.id = i + 1; | |
| 989 | Interface.parentID = 22500; | |
| 990 | Interface.interfaceType = 5; | |
| 991 | Interface.atActionType = 0; | |
| 992 | Interface.contentType = 0; | |
| 993 | Interface.opacity = 0; | |
| 994 | Interface.disabledSprite = imageLoader(prayerSpriteID, "Interfaces/CurseTab/PRAYON"); | |
| 995 | Interface.enabledSprite = imageLoader(prayerSpriteID, "Interfaces/CurseTab/PRAYOFF"); | |
| 996 | Interface.width = 34; | |
| 997 | Interface.height = 34; | |
| 998 | Interface.valueCompareType = new int[1]; | |
| 999 | Interface.requiredValues = new int[1]; | |
| 1000 | Interface.valueCompareType[0] = 2; | |
| 1001 | Interface.requiredValues[0] = requiredValues + 1; | |
| 1002 | Interface.valueIndexArray = new int[1][3]; | |
| 1003 | Interface.valueIndexArray[0][0] = 2; | |
| 1004 | Interface.valueIndexArray[0][1] = 5; | |
| 1005 | Interface.valueIndexArray[0][2] = 0; | |
| 1006 | } | |
| 1007 | public static void skillInterface(int i, int j){
| |
| 1008 | RSInterface rsinterface = interfaceCache[i] = new RSInterface(); | |
| 1009 | rsinterface.id = i; | |
| 1010 | rsinterface.parentID = i; | |
| 1011 | rsinterface.interfaceType = 5; | |
| 1012 | rsinterface.atActionType = 0; | |
| 1013 | rsinterface.contentType = 0; | |
| 1014 | rsinterface.width = 26; | |
| 1015 | rsinterface.height = 34; | |
| 1016 | rsinterface.opacity = 0; | |
| 1017 | rsinterface.hoverType = 0; | |
| 1018 | rsinterface.disabledSprite = imageLoader(j, "Interfaces/Skill/Skill"); | |
| 1019 | rsinterface.enabledSprite = imageLoader(j, "Interfaces/Skill/Skill"); | |
| 1020 | } | |
| 1021 | public static void addHoverImage(int i, int j, int k, String name) {
| |
| 1022 | RSInterface tab = addTabInterface(i); | |
| 1023 | tab.id = i; | |
| 1024 | tab.parentID = i; | |
| 1025 | tab.interfaceType = 5; | |
| 1026 | tab.atActionType = 0; | |
| 1027 | tab.contentType = 0; | |
| 1028 | tab.width = 512; | |
| 1029 | tab.height = 334; | |
| 1030 | tab.opacity = 0; | |
| 1031 | tab.hoverType = 52; | |
| 1032 | tab.disabledSprite = imageLoader(j, name); | |
| 1033 | tab.enabledSprite = imageLoader(k, name); | |
| 1034 | } | |
| 1035 | public static void addChar(int ID) {
| |
| 1036 | RSInterface t = interfaceCache[ID] = new RSInterface(); | |
| 1037 | t.id = ID; | |
| 1038 | t.parentID = ID; | |
| 1039 | t.interfaceType = 6; | |
| 1040 | t.atActionType = 0; | |
| 1041 | t.contentType = 328; | |
| 1042 | t.width = 136; | |
| 1043 | t.height = 168; | |
| 1044 | t.opacity = 0; | |
| 1045 | t.hoverType = 0; | |
| 1046 | t.modelZoom = 560; | |
| 1047 | t.modelRotationY = 150; | |
| 1048 | t.modelRotationX = 0; | |
| 1049 | t.disabledAnimation = -1; | |
| 1050 | t.enabledAnimation = -1; | |
| 1051 | } | |
| 1052 | public static void addLunarSprite(int i, int j, String name) {
| |
| 1053 | RSInterface RSInterface = addTabInterface(i); | |
| 1054 | RSInterface.id = i; | |
| 1055 | RSInterface.parentID = i; | |
| 1056 | RSInterface.interfaceType = 5; | |
| 1057 | RSInterface.atActionType = 0; | |
| 1058 | RSInterface.contentType = 0; | |
| 1059 | RSInterface.opacity = 0; | |
| 1060 | RSInterface.hoverType = 52; | |
| 1061 | RSInterface.disabledSprite = imageLoader(j, name); | |
| 1062 | RSInterface.width = 500; | |
| 1063 | RSInterface.height = 500; | |
| 1064 | RSInterface.tooltip = ""; | |
| 1065 | } | |
| 1066 | public static void drawRune(int i, int id, String runeName) {
| |
| 1067 | RSInterface RSInterface = addTabInterface(i); | |
| 1068 | RSInterface.interfaceType = 5; | |
| 1069 | RSInterface.atActionType = 0; | |
| 1070 | RSInterface.contentType = 0; | |
| 1071 | RSInterface.opacity = 0; | |
| 1072 | RSInterface.hoverType = 52; | |
| 1073 | RSInterface.disabledSprite = imageLoader(id, "Interfaces/Lunar/Rune"); | |
| 1074 | RSInterface.width = 500; | |
| 1075 | RSInterface.height = 500; | |
| 1076 | } | |
| 1077 | public static void addRuneText(int ID, int runeAmount, int RuneID, | |
| 1078 | RSFont[] tda) {
| |
| 1079 | RSInterface rsInterface = addTabInterface(ID); | |
| 1080 | rsInterface.id = ID; | |
| 1081 | rsInterface.parentID = 1151; | |
| 1082 | rsInterface.interfaceType = 4; | |
| 1083 | rsInterface.atActionType = 0; | |
| 1084 | rsInterface.contentType = 0; | |
| 1085 | rsInterface.width = 0; | |
| 1086 | rsInterface.height = 14; | |
| 1087 | rsInterface.opacity = 0; | |
| 1088 | rsInterface.hoverType = -1; | |
| 1089 | rsInterface.valueCompareType = new int[1]; | |
| 1090 | rsInterface.requiredValues = new int[1]; | |
| 1091 | rsInterface.valueCompareType[0] = 3; | |
| 1092 | rsInterface.requiredValues[0] = runeAmount; | |
| 1093 | rsInterface.valueIndexArray = new int[1][4]; | |
| 1094 | rsInterface.valueIndexArray[0][0] = 4; | |
| 1095 | rsInterface.valueIndexArray[0][1] = 3214; | |
| 1096 | rsInterface.valueIndexArray[0][2] = RuneID; | |
| 1097 | rsInterface.valueIndexArray[0][3] = 0; | |
| 1098 | rsInterface.textCentered = true; | |
| 1099 | rsInterface.rsFonts = tda[0]; | |
| 1100 | rsInterface.textShadowed = true; | |
| 1101 | rsInterface.disabledMessage = "%1/" + runeAmount + ""; | |
| 1102 | rsInterface.enabledMessage = ""; | |
| 1103 | rsInterface.disabledColor = 12582912; | |
| 1104 | rsInterface.enabledColor = 49152; | |
| 1105 | } | |
| 1106 | public static void addLunar2RunesSmallBox(int ID, int r1, int r2, int ra1, | |
| 1107 | int ra2, int rune1, int lvl, String name, String descr, | |
| 1108 | RSFont[] TDA, int sid, int suo, int type) {
| |
| 1109 | RSInterface rsInterface = addTabInterface(ID); | |
| 1110 | rsInterface.id = ID; | |
| 1111 | rsInterface.parentID = 1151; | |
| 1112 | rsInterface.interfaceType = 5; | |
| 1113 | rsInterface.atActionType = type; | |
| 1114 | rsInterface.contentType = 0; | |
| 1115 | rsInterface.hoverType = ID + 1; | |
| 1116 | rsInterface.spellUsableOn = suo; | |
| 1117 | rsInterface.selectedActionName = "Cast On"; | |
| 1118 | rsInterface.width = 20; | |
| 1119 | rsInterface.height = 20; | |
| 1120 | rsInterface.tooltip = "Cast @gre@" + name; | |
| 1121 | rsInterface.spellName = name; | |
| 1122 | rsInterface.valueCompareType = new int[3]; | |
| 1123 | rsInterface.requiredValues = new int[3]; | |
| 1124 | rsInterface.valueCompareType[0] = 3; | |
| 1125 | rsInterface.requiredValues[0] = ra1; | |
| 1126 | rsInterface.valueCompareType[1] = 3; | |
| 1127 | rsInterface.requiredValues[1] = ra2; | |
| 1128 | rsInterface.valueCompareType[2] = 3; | |
| 1129 | rsInterface.requiredValues[2] = lvl; | |
| 1130 | rsInterface.valueIndexArray = new int[3][]; | |
| 1131 | rsInterface.valueIndexArray[0] = new int[4]; | |
| 1132 | rsInterface.valueIndexArray[0][0] = 4; | |
| 1133 | rsInterface.valueIndexArray[0][1] = 3214; | |
| 1134 | rsInterface.valueIndexArray[0][2] = r1; | |
| 1135 | rsInterface.valueIndexArray[0][3] = 0; | |
| 1136 | rsInterface.valueIndexArray[1] = new int[4]; | |
| 1137 | rsInterface.valueIndexArray[1][0] = 4; | |
| 1138 | rsInterface.valueIndexArray[1][1] = 3214; | |
| 1139 | rsInterface.valueIndexArray[1][2] = r2; | |
| 1140 | rsInterface.valueIndexArray[1][3] = 0; | |
| 1141 | rsInterface.valueIndexArray[2] = new int[3]; | |
| 1142 | rsInterface.valueIndexArray[2][0] = 1; | |
| 1143 | rsInterface.valueIndexArray[2][1] = 6; | |
| 1144 | rsInterface.valueIndexArray[2][2] = 0; | |
| 1145 | rsInterface.enabledSprite = imageLoader(sid, "Interfaces/Lunar/LUNARON"); | |
| 1146 | rsInterface.disabledSprite = imageLoader(sid, "Interfaces/Lunar/LUNAROFF"); | |
| 1147 | RSInterface hover = addTabInterface(ID + 1); | |
| 1148 | hover.hoverType = -1; | |
| 1149 | hover.interfaceShown = true; | |
| 1150 | setChildren(7, hover); | |
| 1151 | addLunarSprite(ID + 2, 0, "Interfaces/Lunar/BOX"); | |
| 1152 | setBounds(ID + 2, 0, 0, 0, hover); | |
| 1153 | addText(ID + 3, "Level " + (lvl + 1) + ": " + name, 0xFF981F, true, | |
| 1154 | true, 52, 1); | |
| 1155 | setBounds(ID + 3, 90, 4, 1, hover); | |
| 1156 | addText(ID + 4, descr, 0xAF6A1A, true, true, 52, 0); | |
| 1157 | setBounds(ID + 4, 90, 19, 2, hover); | |
| 1158 | setBounds(30016, 37, 35, 3, hover);// Rune | |
| 1159 | setBounds(rune1, 112, 35, 4, hover);// Rune | |
| 1160 | addRuneText(ID + 5, ra1 + 1, r1, TDA); | |
| 1161 | setBounds(ID + 5, 50, 66, 5, hover); | |
| 1162 | addRuneText(ID + 6, ra2 + 1, r2, TDA); | |
| 1163 | setBounds(ID + 6, 123, 66, 6, hover); | |
| 1164 | ||
| 1165 | } | |
| 1166 | public static void addLunar3RunesSmallBox(int ID, int r1, int r2, int r3, | |
| 1167 | int ra1, int ra2, int ra3, int rune1, int rune2, int lvl, | |
| 1168 | String name, String descr, RSFont[] TDA, int sid, int suo, int type) {
| |
| 1169 | RSInterface rsInterface = addTabInterface(ID); | |
| 1170 | rsInterface.id = ID; | |
| 1171 | rsInterface.parentID = 1151; | |
| 1172 | rsInterface.interfaceType = 5; | |
| 1173 | rsInterface.atActionType = type; | |
| 1174 | rsInterface.contentType = 0; | |
| 1175 | rsInterface.hoverType = ID + 1; | |
| 1176 | rsInterface.spellUsableOn = suo; | |
| 1177 | rsInterface.selectedActionName = "Cast on"; | |
| 1178 | rsInterface.width = 20; | |
| 1179 | rsInterface.height = 20; | |
| 1180 | rsInterface.tooltip = "Cast @gre@" + name; | |
| 1181 | rsInterface.spellName = name; | |
| 1182 | rsInterface.valueCompareType = new int[4]; | |
| 1183 | rsInterface.requiredValues = new int[4]; | |
| 1184 | rsInterface.valueCompareType[0] = 3; | |
| 1185 | rsInterface.requiredValues[0] = ra1; | |
| 1186 | rsInterface.valueCompareType[1] = 3; | |
| 1187 | rsInterface.requiredValues[1] = ra2; | |
| 1188 | rsInterface.valueCompareType[2] = 3; | |
| 1189 | rsInterface.requiredValues[2] = ra3; | |
| 1190 | rsInterface.valueCompareType[3] = 3; | |
| 1191 | rsInterface.requiredValues[3] = lvl; | |
| 1192 | rsInterface.valueIndexArray = new int[4][]; | |
| 1193 | rsInterface.valueIndexArray[0] = new int[4]; | |
| 1194 | rsInterface.valueIndexArray[0][0] = 4; | |
| 1195 | rsInterface.valueIndexArray[0][1] = 3214; | |
| 1196 | rsInterface.valueIndexArray[0][2] = r1; | |
| 1197 | rsInterface.valueIndexArray[0][3] = 0; | |
| 1198 | rsInterface.valueIndexArray[1] = new int[4]; | |
| 1199 | rsInterface.valueIndexArray[1][0] = 4; | |
| 1200 | rsInterface.valueIndexArray[1][1] = 3214; | |
| 1201 | rsInterface.valueIndexArray[1][2] = r2; | |
| 1202 | rsInterface.valueIndexArray[1][3] = 0; | |
| 1203 | rsInterface.valueIndexArray[2] = new int[4]; | |
| 1204 | rsInterface.valueIndexArray[2][0] = 4; | |
| 1205 | rsInterface.valueIndexArray[2][1] = 3214; | |
| 1206 | rsInterface.valueIndexArray[2][2] = r3; | |
| 1207 | rsInterface.valueIndexArray[2][3] = 0; | |
| 1208 | rsInterface.valueIndexArray[3] = new int[3]; | |
| 1209 | rsInterface.valueIndexArray[3][0] = 1; | |
| 1210 | rsInterface.valueIndexArray[3][1] = 6; | |
| 1211 | rsInterface.valueIndexArray[3][2] = 0; | |
| 1212 | rsInterface.enabledSprite = imageLoader(sid, "Interfaces/Lunar/LUNARON"); | |
| 1213 | rsInterface.disabledSprite = imageLoader(sid, "Interfaces/Lunar/LUNAROFF"); | |
| 1214 | RSInterface hover = addTabInterface(ID + 1); | |
| 1215 | hover.hoverType = -1; | |
| 1216 | hover.interfaceShown = true; | |
| 1217 | setChildren(9, hover); | |
| 1218 | addLunarSprite(ID + 2, 0, "Interfaces/Lunar/BOX"); | |
| 1219 | setBounds(ID + 2, 0, 0, 0, hover); | |
| 1220 | addText(ID + 3, "Level " + (lvl + 1) + ": " + name, 0xFF981F, true, | |
| 1221 | true, 52, 1); | |
| 1222 | setBounds(ID + 3, 90, 4, 1, hover); | |
| 1223 | addText(ID + 4, descr, 0xAF6A1A, true, true, 52, 0); | |
| 1224 | setBounds(ID + 4, 90, 19, 2, hover); | |
| 1225 | setBounds(30016, 14, 35, 3, hover); | |
| 1226 | setBounds(rune1, 74, 35, 4, hover); | |
| 1227 | setBounds(rune2, 130, 35, 5, hover); | |
| 1228 | addRuneText(ID + 5, ra1 + 1, r1, TDA); | |
| 1229 | setBounds(ID + 5, 26, 66, 6, hover); | |
| 1230 | addRuneText(ID + 6, ra2 + 1, r2, TDA); | |
| 1231 | setBounds(ID + 6, 87, 66, 7, hover); | |
| 1232 | addRuneText(ID + 7, ra3 + 1, r3, TDA); | |
| 1233 | setBounds(ID + 7, 142, 66, 8, hover); | |
| 1234 | } | |
| 1235 | public static void addLunar3RunesBigBox(int ID, int r1, int r2, int r3, | |
| 1236 | int ra1, int ra2, int ra3, int rune1, int rune2, int lvl, | |
| 1237 | String name, String descr, RSFont[] TDA, int sid, int suo, int type) {
| |
| 1238 | RSInterface rsInterface = addTabInterface(ID); | |
| 1239 | rsInterface.id = ID; | |
| 1240 | rsInterface.parentID = 1151; | |
| 1241 | rsInterface.interfaceType = 5; | |
| 1242 | rsInterface.atActionType = type; | |
| 1243 | rsInterface.contentType = 0; | |
| 1244 | rsInterface.hoverType = ID + 1; | |
| 1245 | rsInterface.spellUsableOn = suo; | |
| 1246 | rsInterface.selectedActionName = "Cast on"; | |
| 1247 | rsInterface.width = 20; | |
| 1248 | rsInterface.height = 20; | |
| 1249 | rsInterface.tooltip = "Cast @gre@" + name; | |
| 1250 | rsInterface.spellName = name; | |
| 1251 | rsInterface.valueCompareType = new int[4]; | |
| 1252 | rsInterface.requiredValues = new int[4]; | |
| 1253 | rsInterface.valueCompareType[0] = 3; | |
| 1254 | rsInterface.requiredValues[0] = ra1; | |
| 1255 | rsInterface.valueCompareType[1] = 3; | |
| 1256 | rsInterface.requiredValues[1] = ra2; | |
| 1257 | rsInterface.valueCompareType[2] = 3; | |
| 1258 | rsInterface.requiredValues[2] = ra3; | |
| 1259 | rsInterface.valueCompareType[3] = 3; | |
| 1260 | rsInterface.requiredValues[3] = lvl; | |
| 1261 | rsInterface.valueIndexArray = new int[4][]; | |
| 1262 | rsInterface.valueIndexArray[0] = new int[4]; | |
| 1263 | rsInterface.valueIndexArray[0][0] = 4; | |
| 1264 | rsInterface.valueIndexArray[0][1] = 3214; | |
| 1265 | rsInterface.valueIndexArray[0][2] = r1; | |
| 1266 | rsInterface.valueIndexArray[0][3] = 0; | |
| 1267 | rsInterface.valueIndexArray[1] = new int[4]; | |
| 1268 | rsInterface.valueIndexArray[1][0] = 4; | |
| 1269 | rsInterface.valueIndexArray[1][1] = 3214; | |
| 1270 | rsInterface.valueIndexArray[1][2] = r2; | |
| 1271 | rsInterface.valueIndexArray[1][3] = 0; | |
| 1272 | rsInterface.valueIndexArray[2] = new int[4]; | |
| 1273 | rsInterface.valueIndexArray[2][0] = 4; | |
| 1274 | rsInterface.valueIndexArray[2][1] = 3214; | |
| 1275 | rsInterface.valueIndexArray[2][2] = r3; | |
| 1276 | rsInterface.valueIndexArray[2][3] = 0; | |
| 1277 | rsInterface.valueIndexArray[3] = new int[3]; | |
| 1278 | rsInterface.valueIndexArray[3][0] = 1; | |
| 1279 | rsInterface.valueIndexArray[3][1] = 6; | |
| 1280 | rsInterface.valueIndexArray[3][2] = 0; | |
| 1281 | rsInterface.enabledSprite = imageLoader(sid, "Interfaces/Lunar/LUNARON"); | |
| 1282 | rsInterface.disabledSprite = imageLoader(sid, "Interfaces/Lunar/LUNAROFF"); | |
| 1283 | RSInterface hover = addTabInterface(ID + 1); | |
| 1284 | hover.hoverType = -1; | |
| 1285 | hover.interfaceShown = true; | |
| 1286 | setChildren(9, hover); | |
| 1287 | addLunarSprite(ID + 2, 1, "Interfaces/Lunar/BOX"); | |
| 1288 | setBounds(ID + 2, 0, 0, 0, hover); | |
| 1289 | addText(ID + 3, "Level " + (lvl + 1) + ": " + name, 0xFF981F, true, | |
| 1290 | true, 52, 1); | |
| 1291 | setBounds(ID + 3, 90, 4, 1, hover); | |
| 1292 | addText(ID + 4, descr, 0xAF6A1A, true, true, 52, 0); | |
| 1293 | setBounds(ID + 4, 90, 21, 2, hover); | |
| 1294 | setBounds(30016, 14, 48, 3, hover); | |
| 1295 | setBounds(rune1, 74, 48, 4, hover); | |
| 1296 | setBounds(rune2, 130, 48, 5, hover); | |
| 1297 | addRuneText(ID + 5, ra1 + 1, r1, TDA); | |
| 1298 | setBounds(ID + 5, 26, 79, 6, hover); | |
| 1299 | addRuneText(ID + 6, ra2 + 1, r2, TDA); | |
| 1300 | setBounds(ID + 6, 87, 79, 7, hover); | |
| 1301 | addRuneText(ID + 7, ra3 + 1, r3, TDA); | |
| 1302 | setBounds(ID + 7, 142, 79, 8, hover); | |
| 1303 | } | |
| 1304 | public static void addLunar3RunesLargeBox(int ID, int r1, int r2, int r3, | |
| 1305 | int ra1, int ra2, int ra3, int rune1, int rune2, int lvl, | |
| 1306 | String name, String descr, RSFont[] TDA, int sid, int suo, int type) {
| |
| 1307 | RSInterface rsInterface = addTabInterface(ID); | |
| 1308 | rsInterface.id = ID; | |
| 1309 | rsInterface.parentID = 1151; | |
| 1310 | rsInterface.interfaceType = 5; | |
| 1311 | rsInterface.atActionType = type; | |
| 1312 | rsInterface.contentType = 0; | |
| 1313 | rsInterface.hoverType = ID + 1; | |
| 1314 | rsInterface.spellUsableOn = suo; | |
| 1315 | rsInterface.selectedActionName = "Cast on"; | |
| 1316 | rsInterface.width = 20; | |
| 1317 | rsInterface.height = 20; | |
| 1318 | rsInterface.tooltip = "Cast @gre@" + name; | |
| 1319 | rsInterface.spellName = name; | |
| 1320 | rsInterface.valueCompareType = new int[4]; | |
| 1321 | rsInterface.requiredValues = new int[4]; | |
| 1322 | rsInterface.valueCompareType[0] = 3; | |
| 1323 | rsInterface.requiredValues[0] = ra1; | |
| 1324 | rsInterface.valueCompareType[1] = 3; | |
| 1325 | rsInterface.requiredValues[1] = ra2; | |
| 1326 | rsInterface.valueCompareType[2] = 3; | |
| 1327 | rsInterface.requiredValues[2] = ra3; | |
| 1328 | rsInterface.valueCompareType[3] = 3; | |
| 1329 | rsInterface.requiredValues[3] = lvl; | |
| 1330 | rsInterface.valueIndexArray = new int[4][]; | |
| 1331 | rsInterface.valueIndexArray[0] = new int[4]; | |
| 1332 | rsInterface.valueIndexArray[0][0] = 4; | |
| 1333 | rsInterface.valueIndexArray[0][1] = 3214; | |
| 1334 | rsInterface.valueIndexArray[0][2] = r1; | |
| 1335 | rsInterface.valueIndexArray[0][3] = 0; | |
| 1336 | rsInterface.valueIndexArray[1] = new int[4]; | |
| 1337 | rsInterface.valueIndexArray[1][0] = 4; | |
| 1338 | rsInterface.valueIndexArray[1][1] = 3214; | |
| 1339 | rsInterface.valueIndexArray[1][2] = r2; | |
| 1340 | rsInterface.valueIndexArray[1][3] = 0; | |
| 1341 | rsInterface.valueIndexArray[2] = new int[4]; | |
| 1342 | rsInterface.valueIndexArray[2][0] = 4; | |
| 1343 | rsInterface.valueIndexArray[2][1] = 3214; | |
| 1344 | rsInterface.valueIndexArray[2][2] = r3; | |
| 1345 | rsInterface.valueIndexArray[2][3] = 0; | |
| 1346 | rsInterface.valueIndexArray[3] = new int[3]; | |
| 1347 | rsInterface.valueIndexArray[3][0] = 1; | |
| 1348 | rsInterface.valueIndexArray[3][1] = 6; | |
| 1349 | rsInterface.valueIndexArray[3][2] = 0; | |
| 1350 | rsInterface.enabledSprite = imageLoader(sid, "Interfaces/Lunar/LUNARON"); | |
| 1351 | rsInterface.disabledSprite = imageLoader(sid, "Interfaces/Lunar/LUNAROFF"); | |
| 1352 | RSInterface hover = addTabInterface(ID + 1); | |
| 1353 | hover.interfaceShown = true; | |
| 1354 | hover.hoverType = -1; | |
| 1355 | setChildren(9, hover); | |
| 1356 | addLunarSprite(ID + 2, 2, "Interfaces/Lunar/BOX"); | |
| 1357 | setBounds(ID + 2, 0, 0, 0, hover); | |
| 1358 | addText(ID + 3, "Level " + (lvl + 1) + ": " + name, 0xFF981F, true, | |
| 1359 | true, 52, 1); | |
| 1360 | setBounds(ID + 3, 90, 4, 1, hover); | |
| 1361 | addText(ID + 4, descr, 0xAF6A1A, true, true, 52, 0); | |
| 1362 | setBounds(ID + 4, 90, 34, 2, hover); | |
| 1363 | setBounds(30016, 14, 61, 3, hover); | |
| 1364 | setBounds(rune1, 74, 61, 4, hover); | |
| 1365 | setBounds(rune2, 130, 61, 5, hover); | |
| 1366 | addRuneText(ID + 5, ra1 + 1, r1, TDA); | |
| 1367 | setBounds(ID + 5, 26, 92, 6, hover); | |
| 1368 | addRuneText(ID + 6, ra2 + 1, r2, TDA); | |
| 1369 | setBounds(ID + 6, 87, 92, 7, hover); | |
| 1370 | addRuneText(ID + 7, ra3 + 1, r3, TDA); | |
| 1371 | setBounds(ID + 7, 142, 92, 8, hover); | |
| 1372 | } | |
| 1373 | public static void homeTeleport() {
| |
| 1374 | RSInterface RSInterface = addTabInterface(30000); | |
| 1375 | RSInterface.tooltip = "Cast @gre@Lunar Home Teleport"; | |
| 1376 | RSInterface.id = 30000; | |
| 1377 | RSInterface.parentID = 30000; | |
| 1378 | RSInterface.interfaceType = 5; | |
| 1379 | RSInterface.atActionType = 5; | |
| 1380 | RSInterface.contentType = 0; | |
| 1381 | RSInterface.opacity = 0; | |
| 1382 | RSInterface.hoverType = 30001; | |
| 1383 | RSInterface.disabledSprite = imageLoader(1, "Interfaces/Lunar/SPRITE"); | |
| 1384 | RSInterface.width = 20; | |
| 1385 | RSInterface.height = 20; | |
| 1386 | RSInterface hover = addTabInterface(30001); | |
| 1387 | hover.hoverType = -1; | |
| 1388 | hover.interfaceShown = true; | |
| 1389 | setChildren(1, hover); | |
| 1390 | addLunarSprite(30002, 0, "Interfaces/Lunar/SPRITE"); | |
| 1391 | setBounds(30002, 0, 0, 0, hover); | |
| 1392 | } | |
| 1393 | ||
| 1394 | public static void GodWars(RSFont[] TDA) {
| |
| 1395 | RSInterface rsinterface = addTab(16210); | |
| 1396 | addText(16211, "NPC killcount", TDA, 0, 0xff9040); | |
| 1397 | addText(16212, "Armadyl kills", TDA, 0, 0xff9040); | |
| 1398 | addText(16213, "Bandos kills", TDA, 0, 0xff9040); | |
| 1399 | addText(16214, "Saradomin kills", TDA, 0, 0xff9040); | |
| 1400 | addText(16215, "Zamorak kills", TDA, 0, 0xff9040); | |
| 1401 | addText(16216, "0", TDA, 0, 0x66FFFF);//armadyl | |
| 1402 | addText(16217, "0", TDA, 0, 0x66FFFF);//bandos | |
| 1403 | addText(16218, "0", TDA, 0, 0x66FFFF);//saradomin | |
| 1404 | addText(16219, "0", TDA, 0, 0x66FFFF);//zamorak | |
| 1405 | rsinterface.scrollMax = 0; | |
| 1406 | rsinterface.children = new int[9]; | |
| 1407 | rsinterface.childX = new int[9]; | |
| 1408 | rsinterface.childY = new int[9]; | |
| 1409 | rsinterface.children[0] = 16211; | |
| 1410 | rsinterface.childX[0] = -52+375+30; rsinterface.childY[0] = 7; | |
| 1411 | rsinterface.children[1] = 16212; | |
| 1412 | rsinterface.childX[1] = -52+375+30; rsinterface.childY[1] = 30; | |
| 1413 | rsinterface.children[2] = 16213; | |
| 1414 | rsinterface.childX[2] = -52+375+30; rsinterface.childY[2] = 44; | |
| 1415 | rsinterface.children[3] = 16214; | |
| 1416 | rsinterface.childX[3] = -52+375+30; rsinterface.childY[3] = 58; | |
| 1417 | rsinterface.children[4] = 16215; | |
| 1418 | rsinterface.childX[4] = -52+375+30; rsinterface.childY[4] = 73; | |
| 1419 | ||
| 1420 | rsinterface.children[5] = 16216; | |
| 1421 | rsinterface.childX[5] = -52+460+60; rsinterface.childY[5] = 31; | |
| 1422 | rsinterface.children[6] = 16217; | |
| 1423 | rsinterface.childX[6] = -52+460+60; rsinterface.childY[6] = 45; | |
| 1424 | rsinterface.children[7] = 16218; | |
| 1425 | rsinterface.childX[7] = -52+460+60; rsinterface.childY[7] = 59; | |
| 1426 | rsinterface.children[8] = 16219; | |
| 1427 | rsinterface.childX[8] = -52+460+60; rsinterface.childY[8] = 74; | |
| 1428 | } | |
| 1429 | public static void magicTab(RSFont[] tda) {
| |
| 1430 | RSInterface tab = addTabInterface(1151); | |
| 1431 | RSInterface homeHover = addTabInterface(1196); | |
| 1432 | RSInterface spellButtons = interfaceCache[12424]; | |
| 1433 | spellButtons.scrollMax = 0; spellButtons.height = 260; spellButtons.width = 190; | |
| 1434 | int[] spellButton = {
| |
| 1435 | 1196, 1199, 1206, 1215, 1224, 1231, 1240, 1249, 1258, 1267, 1274, 1283, 1573, | |
| 1436 | 1290, 1299, 1308, 1315, 1324, 1333, 1340, 1349, 1358, 1367, 1374, 1381, 1388, | |
| 1437 | 1397, 1404, 1583, 12038, 1414, 1421, 1430, 1437, 1446, 1453, 1460, 1469, 15878, | |
| 1438 | 1602, 1613, 1624, 7456, 1478, 1485, 1494, 1503, 1512, 1521, 1530, 1544, 1553, | |
| 1439 | 1563, 1593, 1635, 12426, 12436, 12446, 12456, 6004, 18471 | |
| 1440 | }; | |
| 1441 | tab.totalChildren(63); | |
| 1442 | tab.child(0, 12424, 13, 24); | |
| 1443 | for(int i1 = 0; i1 < spellButton.length; i1++) {
| |
| 1444 | int yPos = i1 > 34 ? 8 : 183; | |
| 1445 | tab.child(1, 1195, 13, 24); | |
| 1446 | tab.child(i1 + 2, spellButton[i1], 5, yPos); | |
| 1447 | AddInterfaceButton(1195, 1, "Interfaces/Magic/Home", "Cast @gre@Home Teleport"); | |
| 1448 | RSInterface homeButton = interfaceCache[1195]; | |
| 1449 | homeButton.hoverType = 1196; | |
| 1450 | } | |
| 1451 | for(int i2 = 0; i2 < spellButton.length; i2++) {
| |
| 1452 | if(i2 < 60) | |
| 1453 | spellButtons.childX[i2] = spellButtons.childX[i2] + 24; | |
| 1454 | if(i2 == 6 || i2 == 12 || i2 == 19 || i2 == 35 || i2 == 41 || i2 == 44 || i2 == 49 || i2 == 51) | |
| 1455 | spellButtons.childX[i2] = 0; | |
| 1456 | spellButtons.childY[6] = 24; spellButtons.childY[12] = 48; | |
| 1457 | spellButtons.childY[19] = 72; spellButtons.childY[49] = 96; | |
| 1458 | spellButtons.childY[44] = 120; spellButtons.childY[51] = 144; | |
| 1459 | spellButtons.childY[35] = 170; spellButtons.childY[41] = 192; | |
| 1460 | } | |
| 1461 | homeHover.interfaceShown = true; | |
| 1462 | addText(1197, "Level 0: Home Teleport", tda, 1, 0xFE981F, true, true); | |
| 1463 | RSInterface homeLevel = interfaceCache[1197]; homeLevel.width = 174; homeLevel.height = 68; | |
| 1464 | addText(1198, "Requires no runes - recharge time", 0xAF6A1A, true, true, 52, 0); | |
| 1465 | addText(18998, "30mins. Warning: This spell takes a", 0xAF6A1A, true, true, 52, 0); | |
| 1466 | addText(18999, "long time to cast and will be", 0xAF6A1A, true, true, 52, 0); | |
| 1467 | addText(19000, "interupted by combat.", 0xAF6A1A, true, true, 52, 0); | |
| 1468 | homeHover.totalChildren(5); | |
| 1469 | homeHover.child(0, 1197, 3, 4); | |
| 1470 | homeHover.child(1, 1198, 91, 23); | |
| 1471 | homeHover.child(2, 18998, 90, 34); | |
| 1472 | homeHover.child(3, 18999, 91, 45); | |
| 1473 | homeHover.child(4, 19000, 91, 56); | |
| 1474 | } | |
| 1475 | public static void ancientMagicTab(RSFont[] tda) {
| |
| 1476 | RSInterface tab = addInterface(12855); | |
| 1477 | AddInterfaceButton(12856, 1, "Interfaces/Magic/Home", "Cast @gre@Home Teleport"); | |
| 1478 | RSInterface homeButton = interfaceCache[12856]; | |
| 1479 | homeButton.hoverType = 1196; | |
| 1480 | int[] itfChildren = {
| |
| 1481 | 12856, 12939, 12987, 13035, 12901, 12861, 13045, 12963, 13011, 13053, 12919, 12881, 13061, | |
| 1482 | 12951, 12999, 13069, 12911, 12871, 13079, 12975, 13023, 13087, 12929, 12891, 13095, 1196, | |
| 1483 | 12940, 12988, 13036, 12902, 12862, 13046, 12964, 13012, 13054, 12920, 12882, 13062, 12952, | |
| 1484 | 13000, 13070, 12912, 12872, 13080, 12976, 13024, 13088, 12930, 12892, 13096 | |
| 1485 | }; | |
| 1486 | tab.totalChildren(itfChildren.length); | |
| 1487 | for(int i1 = 0, xPos = 18, yPos = 8; i1 < itfChildren.length; i1++, xPos += 45) {
| |
| 1488 | if(xPos > 175) {
| |
| 1489 | xPos = 18; yPos += 28; | |
| 1490 | } | |
| 1491 | if(i1 < 25) | |
| 1492 | tab.child(i1, itfChildren[i1], xPos, yPos); | |
| 1493 | if(i1 > 24) {
| |
| 1494 | yPos = i1 < 41 ? 181 : 1; | |
| 1495 | tab.child(i1, itfChildren[i1], 4, yPos); | |
| 1496 | } | |
| 1497 | } | |
| 1498 | } | |
| 1499 | public static void prayerMenu(RSFont arsfont[]) | |
| 1500 | {
| |
| 1501 | RSInterface rsinterface = addInterface(5608); | |
| 1502 | int i = 0; | |
| 1503 | int j = 0; | |
| 1504 | byte byte0 = 10; | |
| 1505 | byte byte1 = 50; | |
| 1506 | byte byte2 = 10; | |
| 1507 | byte byte3 = 86; | |
| 1508 | byte byte4 = 10; | |
| 1509 | byte byte5 = 122; | |
| 1510 | byte byte6 = 10; | |
| 1511 | char c = '\237'; | |
| 1512 | byte byte7 = 10; | |
| 1513 | byte byte8 = 86; | |
| 1514 | int k = 1; | |
| 1515 | byte byte9 = 52; | |
| 1516 | addText(687, "", 0xff981f, false, true, -1, arsfont, 1); | |
| 1517 | addSprite(25105, 0, "Interfaces/PrayerTab/PRAYERICON"); | |
| 1518 | addPrayerWithTooltip(25000, 0, 83, 0, j, 25052, "Activate @lre@Thick Skin"); | |
| 1519 | j++; | |
| 1520 | addPrayerWithTooltip(25002, 0, 84, 3, j, 25054, "Activate @lre@Burst of Strength"); | |
| 1521 | j++; | |
| 1522 | addPrayerWithTooltip(25004, 0, 85, 6, j, 25056, "Activate @lre@Clarity of Thought"); | |
| 1523 | j++; | |
| 1524 | addPrayerWithTooltip(25006, 0, 601, 7, j, 25058, "Activate @lre@Sharp Eye"); | |
| 1525 | j++; | |
| 1526 | addPrayerWithTooltip(25008, 0, 602, 8, j, 25060, "Activate @lre@Mystic Will"); | |
| 1527 | j++; | |
| 1528 | addPrayerWithTooltip(25010, 0, 86, 9, j, 25062, "Activate @lre@Rock Skin"); | |
| 1529 | j++; | |
| 1530 | addPrayerWithTooltip(25012, 0, 87, 12, j, 25064, "Activate @lre@Superhuman Strength"); | |
| 1531 | j++; | |
| 1532 | addPrayerWithTooltip(25014, 0, 88, 15, j, 25066, "Activate @lre@Improved Reflexes"); | |
| 1533 | j++; | |
| 1534 | addPrayerWithTooltip(25016, 0, 89, 18, j, 25068, "Activate @lre@Rapid Restore"); | |
| 1535 | j++; | |
| 1536 | addPrayerWithTooltip(25018, 0, 90, 21, j, 25070, "Activate @lre@Rapid Heal"); | |
| 1537 | j++; | |
| 1538 | addPrayerWithTooltip(25020, 0, 91, 24, j, 25072, "Activate @lre@Protect Item"); | |
| 1539 | j++; | |
| 1540 | addPrayerWithTooltip(25022, 0, 603, 25, j, 25074, "Activate @lre@Hawk Eye"); | |
| 1541 | j++; | |
| 1542 | addPrayerWithTooltip(25024, 0, 604, 26, j, 25076, "Activate @lre@Mystic Lore"); | |
| 1543 | j++; | |
| 1544 | addPrayerWithTooltip(25026, 0, 92, 27, j, 25078, "Activate @lre@Steel Skin"); | |
| 1545 | j++; | |
| 1546 | addPrayerWithTooltip(25028, 0, 93, 30, j, 25080, "Activate @lre@Ultimate Strength"); | |
| 1547 | j++; | |
| 1548 | addPrayerWithTooltip(25030, 0, 94, 33, j, 25082, "Activate @lre@Incredible Reflexes"); | |
| 1549 | j++; | |
| 1550 | addPrayerWithTooltip(25032, 0, 95, 36, j, 25084, "Activate @lre@Protect from Magic"); | |
| 1551 | j++; | |
| 1552 | addPrayerWithTooltip(25034, 0, 96, 39, j, 25086, "Activate @lre@Protect from Missles"); | |
| 1553 | j++; | |
| 1554 | addPrayerWithTooltip(25036, 0, 97, 42, j, 25088, "Activate @lre@Protect from Melee"); | |
| 1555 | j++; | |
| 1556 | addPrayerWithTooltip(25038, 0, 605, 43, j, 25090, "Activate @lre@Eagle Eye"); | |
| 1557 | j++; | |
| 1558 | addPrayerWithTooltip(25040, 0, 606, 44, j, 25092, "Activate @lre@Mystic Might"); | |
| 1559 | j++; | |
| 1560 | addPrayerWithTooltip(25042, 0, 98, 45, j, 25094, "Activate @lre@Retribution"); | |
| 1561 | j++; | |
| 1562 | addPrayerWithTooltip(25044, 0, 99, 48, j, 25096, "Activate @lre@Redemption"); | |
| 1563 | j++; | |
| 1564 | addPrayerWithTooltip(25046, 0, 100, 51, j, 25098, "Activate @lre@Smite"); | |
| 1565 | j++; | |
| 1566 | addPrayerWithTooltip(25048, 0, 607, 59, j, 25100, "Activate @lre@Chivalry"); | |
| 1567 | j++; | |
| 1568 | addPrayerWithTooltip(25050, 0, 608, 69, j, 25102, "Activate @lre@Piety"); | |
| 1569 | j++; | |
| 1570 | drawTooltip(25052, "Level 01\nThick Skin\nIncreases your Defence by 5%"); | |
| 1571 | drawTooltip(25054, "Level 04\nBurst of Strength\nIncreases your Strength by 5%"); | |
| 1572 | drawTooltip(25056, "Level 07\nClarity of Thought\nIncreases your Attack by 5%"); | |
| 1573 | drawTooltip(25058, "Level 08\nSharp Eye\nIncreases your Ranged by 5%"); | |
| 1574 | drawTooltip(25060, "Level 09\nMystic Will\nIncreases your Magic by 5%"); | |
| 1575 | drawTooltip(25062, "Level 10\nRock Skin\nIncreases your Defence by 10%"); | |
| 1576 | drawTooltip(25064, "Level 13\nSuperhuman Strength\nIncreases your Strength by 10%"); | |
| 1577 | drawTooltip(25066, "Level 16\nImproved Reflexes\nIncreases your Attack by 10%"); | |
| 1578 | drawTooltip(25068, "Level 19\nRapid Restore\n2x restore rate for all stats\nexcept Hitpoints, Summon" + | |
| 1579 | "ing\nand Prayer" | |
| 1580 | ); | |
| 1581 | drawTooltip(25070, "Level 22\nRapid Heal\n2x restore rate for the\nHitpoints stat"); | |
| 1582 | drawTooltip(25072, "Level 25\nProtect Item\nKeep 1 extra item if you die"); | |
| 1583 | drawTooltip(25074, "Level 26\nHawk Eye\nIncreases your Ranged by 10%"); | |
| 1584 | drawTooltip(25076, "Level 27\nMystic Lore\nIncreases your Magic by 10%"); | |
| 1585 | drawTooltip(25078, "Level 28\nSteel Skin\nIncreases your Defence by 15%"); | |
| 1586 | drawTooltip(25080, "Level 31\nUltimate Strength\nIncreases your Strength by 15%"); | |
| 1587 | drawTooltip(25082, "Level 34\nIncredible Reflexes\nIncreases your Attack by 15%"); | |
| 1588 | drawTooltip(25084, "Level 37\nProtect from Magic\nProtection from magical attacks"); | |
| 1589 | drawTooltip(25086, "Level 40\nProtect from Missles\nProtection from ranged attacks"); | |
| 1590 | drawTooltip(25088, "Level 43\nProtect from Melee\nProtection from melee attacks"); | |
| 1591 | drawTooltip(25090, "Level 44\nEagle Eye\nIncreases your Ranged by 15%"); | |
| 1592 | drawTooltip(25092, "Level 45\nMystic Might\nIncreases your Magic by 15%"); | |
| 1593 | drawTooltip(25094, "Level 46\nRetribution\nInflicts damage to nearby\ntargets if you die"); | |
| 1594 | drawTooltip(25096, "Level 49\nRedemption\nHeals you when damaged\nand Hitpoints falls\nbelow 10%"); | |
| 1595 | drawTooltip(25098, "Level 52\nSmite\n1/4 of damage dealt is\nalso removed from\nopponent's Prayer"); | |
| 1596 | drawTooltip(25100, "Level 60\nChivalry\nIncreases your Defence by 20%,\nStrength by 18%, and Attack " + | |
| 1597 | "by\n15%" | |
| 1598 | ); | |
| 1599 | drawTooltip(25102, "Level 70\nPiety\nIncreases your Defence by 25%,\nStrength by 23%, and Attack by\n" + | |
| 1600 | "20%" | |
| 1601 | ); | |
| 1602 | setChildren(80, rsinterface); | |
| 1603 | setBounds(687, 85, 241, i, rsinterface); | |
| 1604 | i++; | |
| 1605 | setBounds(25105, 65, 241, i, rsinterface); | |
| 1606 | i++; | |
| 1607 | setBounds(25000, 2, 5, i, rsinterface); | |
| 1608 | i++; | |
| 1609 | setBounds(25001, 5, 8, i, rsinterface); | |
| 1610 | i++; | |
| 1611 | setBounds(25002, 40, 5, i, rsinterface); | |
| 1612 | i++; | |
| 1613 | setBounds(25003, 44, 8, i, rsinterface); | |
| 1614 | i++; | |
| 1615 | setBounds(25004, 76, 5, i, rsinterface); | |
| 1616 | i++; | |
| 1617 | setBounds(25005, 79, 11, i, rsinterface); | |
| 1618 | i++; | |
| 1619 | setBounds(25006, 113, 5, i, rsinterface); | |
| 1620 | i++; | |
| 1621 | setBounds(25007, 116, 10, i, rsinterface); | |
| 1622 | i++; | |
| 1623 | setBounds(25008, 150, 5, i, rsinterface); | |
| 1624 | i++; | |
| 1625 | setBounds(25009, 153, 9, i, rsinterface); | |
| 1626 | i++; | |
| 1627 | setBounds(25010, 2, 45, i, rsinterface); | |
| 1628 | i++; | |
| 1629 | setBounds(25011, 5, 48, i, rsinterface); | |
| 1630 | i++; | |
| 1631 | setBounds(25012, 39, 45, i, rsinterface); | |
| 1632 | i++; | |
| 1633 | setBounds(25013, 44, 47, i, rsinterface); | |
| 1634 | i++; | |
| 1635 | setBounds(25014, 76, 45, i, rsinterface); | |
| 1636 | i++; | |
| 1637 | setBounds(25015, 79, 49, i, rsinterface); | |
| 1638 | i++; | |
| 1639 | setBounds(25016, 113, 45, i, rsinterface); | |
| 1640 | i++; | |
| 1641 | setBounds(25017, 116, 50, i, rsinterface); | |
| 1642 | i++; | |
| 1643 | setBounds(25018, 151, 45, i, rsinterface); | |
| 1644 | i++; | |
| 1645 | setBounds(25019, 154, 50, i, rsinterface); | |
| 1646 | i++; | |
| 1647 | setBounds(25020, 2, 82, i, rsinterface); | |
| 1648 | i++; | |
| 1649 | setBounds(25021, 4, 84, i, rsinterface); | |
| 1650 | i++; | |
| 1651 | setBounds(25022, 40, 82, i, rsinterface); | |
| 1652 | i++; | |
| 1653 | setBounds(25023, 44, 87, i, rsinterface); | |
| 1654 | i++; | |
| 1655 | setBounds(25024, 77, 82, i, rsinterface); | |
| 1656 | i++; | |
| 1657 | setBounds(25025, 81, 85, i, rsinterface); | |
| 1658 | i++; | |
| 1659 | setBounds(25026, 114, 83, i, rsinterface); | |
| 1660 | i++; | |
| 1661 | setBounds(25027, 117, 85, i, rsinterface); | |
| 1662 | i++; | |
| 1663 | setBounds(25028, 153, 83, i, rsinterface); | |
| 1664 | i++; | |
| 1665 | setBounds(25029, 156, 87, i, rsinterface); | |
| 1666 | i++; | |
| 1667 | setBounds(25030, 2, 120, i, rsinterface); | |
| 1668 | i++; | |
| 1669 | setBounds(25031, 5, 125, i, rsinterface); | |
| 1670 | i++; | |
| 1671 | setBounds(25032, 40, 120, i, rsinterface); | |
| 1672 | i++; | |
| 1673 | setBounds(25033, 43, 124, i, rsinterface); | |
| 1674 | i++; | |
| 1675 | setBounds(25034, 78, 120, i, rsinterface); | |
| 1676 | i++; | |
| 1677 | setBounds(25035, 83, 124, i, rsinterface); | |
| 1678 | i++; | |
| 1679 | setBounds(25036, 114, 120, i, rsinterface); | |
| 1680 | i++; | |
| 1681 | setBounds(25037, 115, 121, i, rsinterface); | |
| 1682 | i++; | |
| 1683 | setBounds(25038, 151, 120, i, rsinterface); | |
| 1684 | i++; | |
| 1685 | setBounds(25039, 154, 124, i, rsinterface); | |
| 1686 | i++; | |
| 1687 | setBounds(25040, 2, 158, i, rsinterface); | |
| 1688 | i++; | |
| 1689 | setBounds(25041, 5, 160, i, rsinterface); | |
| 1690 | i++; | |
| 1691 | setBounds(25042, 39, 158, i, rsinterface); | |
| 1692 | i++; | |
| 1693 | setBounds(25043, 41, 158, i, rsinterface); | |
| 1694 | i++; | |
| 1695 | setBounds(25044, 76, 158, i, rsinterface); | |
| 1696 | i++; | |
| 1697 | setBounds(25045, 79, 163, i, rsinterface); | |
| 1698 | i++; | |
| 1699 | setBounds(25046, 114, 158, i, rsinterface); | |
| 1700 | i++; | |
| 1701 | setBounds(25047, 116, 158, i, rsinterface); | |
| 1702 | i++; | |
| 1703 | setBounds(25048, 153, 158, i, rsinterface); | |
| 1704 | i++; | |
| 1705 | setBounds(25049, 161, 160, i, rsinterface); | |
| 1706 | i++; | |
| 1707 | setBounds(25050, 2, 196, i, rsinterface); | |
| 1708 | i++; | |
| 1709 | setBounds(25051, 4, 207, i, rsinterface); | |
| 1710 | setBoundry(++i, 25052, byte0 - 2, byte1, rsinterface); | |
| 1711 | setBoundry(++i, 25054, byte0 - 5, byte1, rsinterface); | |
| 1712 | setBoundry(++i, 25056, byte0, byte1, rsinterface); | |
| 1713 | setBoundry(++i, 25058, byte0, byte1, rsinterface); | |
| 1714 | setBoundry(++i, 25060, byte0, byte1, rsinterface); | |
| 1715 | setBoundry(++i, 25062, byte2 - 9, byte3, rsinterface); | |
| 1716 | setBoundry(++i, 25064, byte2 - 11, byte3, rsinterface); | |
| 1717 | setBoundry(++i, 25066, byte2, byte3, rsinterface); | |
| 1718 | setBoundry(++i, 25068, byte2, byte3, rsinterface); | |
| 1719 | setBoundry(++i, 25070, byte2 + 25, byte3, rsinterface); | |
| 1720 | setBoundry(++i, 25072, byte4, byte5, rsinterface); | |
| 1721 | setBoundry(++i, 25074, byte4 - 2, byte5, rsinterface); | |
| 1722 | setBoundry(++i, 25076, byte4, byte5, rsinterface); | |
| 1723 | setBoundry(++i, 25078, byte4 - 7, byte5, rsinterface); | |
| 1724 | setBoundry(++i, 25080, byte4 - 10, byte5, rsinterface); | |
| 1725 | setBoundry(++i, 25082, byte6, c, rsinterface); | |
| 1726 | setBoundry(++i, 25084, byte6 - 8, c, rsinterface); | |
| 1727 | setBoundry(++i, 25086, byte6 - 7, c, rsinterface); | |
| 1728 | setBoundry(++i, 25088, byte6 - 2, c, rsinterface); | |
| 1729 | setBoundry(++i, 25090, byte6 - 2, c, rsinterface); | |
| 1730 | setBoundry(++i, 25092, byte7, byte8, rsinterface); | |
| 1731 | setBoundry(++i, 25094, byte7, byte8 - 20, rsinterface); | |
| 1732 | setBoundry(++i, 25096, byte7, byte8 - 25, rsinterface); | |
| 1733 | setBoundry(++i, 25098, byte7 + 15, byte8 - 25, rsinterface); | |
| 1734 | setBoundry(++i, 25100, byte7 - 12, byte8 - 20, rsinterface); | |
| 1735 | setBoundry(++i, 25102, k - 2, byte9, rsinterface); | |
| 1736 | i++; | |
| 1737 | } | |
| 1738 | ||
| 1739 | public static void extraOptions(RSFont[] TDA) {
| |
| 1740 | RSInterface Interface = addTabInterface(24500); | |
| 1741 | int index = 0; | |
| 1742 | addSprite(27520, 0, "Interfaces/Options/LINE"); | |
| 1743 | addText(27501, "Toggle Ingame", 0xFF981F, false, true, -1, TDA, 3); | |
| 1744 | addText(27527, "Settings:", 0xFF981F, false, true, -1, TDA, 3); | |
| 1745 | addText(27502, "Hitpoint Bar:", 0xFF981F, true, true, -1, TDA, 1); | |
| 1746 | addText(27503, "Game Menu:", 0xFF981F, true, true, -1, TDA, 1); | |
| 1747 | addText(27504, "Names:", 0xFF981F, true, true, -1, TDA, 1); | |
| 1748 | addText(27535, "Gameframe:", 0xFF981F, true, true, -1, TDA, 1); | |
| 1749 | addText(27600, "Hitmarks:", 0xFF981F, true, true, -1, TDA, 1); | |
| 1750 | addText(27601, "Damage x10:", 0xFF981F, true, true, -1, TDA, 1); | |
| 1751 | addText(27505, "Back", 0xFF981F, true, true, -1, TDA, 1); | |
| 1752 | addText(27524, "", 0x66ff00, true, true, -1, TDA, 1); | |
| 1753 | addText(27525, "", 0x66ff00, true, true, -1, TDA, 1); | |
| 1754 | addText(27526, "", 0x66ff00, true, true, -1, TDA, 1); | |
| 1755 | addText(27528, "@gre@On", 0xff0000, true, true, -1, TDA, 1); | |
| 1756 | addText(27529, "@gre@On", 0xff0000, true, true, -1, TDA, 1); | |
| 1757 | addText(27530, "Off", 0xff0000, true, true, -1, TDA, 1); | |
| 1758 | addText(27531, "562", 0xffffff, true, true, -1, TDA, 1); | |
| 1759 | addText(27536, "", 0xffffff, true, true, -1, TDA, 1); | |
| 1760 | addText(27537, "", 0xffffff, true, true, -1, TDA, 1); | |
| 1761 | addText(27538, "", 0xffffff, true, true, -1, TDA, 1); | |
| 1762 | addText(27602, "", 0x66ff00, true, true, -1, TDA, 1); | |
| 1763 | addText(27603, "@gre@On", 0xff0000, true, true, -1, TDA, 1); | |
| 1764 | addText(27604, "", 0x66ff00, true, true, -1, TDA, 1); | |
| 1765 | addText(27605, "Off", 0xff0000, true, true, -1, TDA, 1); | |
| 1766 | AddInterfaceButton(27508, 0, 27511, "Interfaces/Options/BUTTON", 108, 20, "Toggle", 1); | |
| 1767 | AddInterfaceButton(27509, 0, 27513, "Interfaces/Options/BUTTON", 108, 20, "Toggle", 1); | |
| 1768 | AddInterfaceButton(27510, 0, 27515, "Interfaces/Options/BUTTON", 108, 20, "Toggle", 1); | |
| 1769 | AddInterfaceButton(27521, 0, 27522, "Interfaces/Options/BUTTON", 108, 20, "Toggle", 1); | |
| 1770 | AddInterfaceButton(27532, 0, 27533, "Interfaces/Options/BUTTON", 108, 20, "Toggle", 1); | |
| 1771 | AddInterfaceButton(27606, 0, 27608, "Interfaces/Options/BUTTON", 108, 20, "Toggle", 1); | |
| 1772 | AddInterfaceButton(27607, 3, 27610, "Interfaces/Options/BUTTON", 62, 20, "Toggle", 1); | |
| 1773 | drawTooltip(27511, "Toggle ON/OFF the new\nhitpoint bar"); | |
| 1774 | drawTooltip(27513, "Toggle ON/OFF the new\ngame menu"); | |
| 1775 | drawTooltip(27515, "Toggle ON/OFF names\nabove head"); | |
| 1776 | drawTooltip(27522, "Toggle ON/OFF the\nnewhitmarks"); | |
| 1777 | drawTooltip(27533, "Toggle the current\ngameframe"); | |
| 1778 | drawTooltip(27608, "Toggle ON/OFF the\nx10 multiplier"); | |
| 1779 | drawTooltip(27610, "Return back to the\nregular option tab"); | |
| 1780 | setChildren(28+10, Interface); | |
| 1781 | setBounds(27520, 0, 50, index, Interface);index++; | |
| 1782 | setBounds(27501, 45, 5, index, Interface);index++; | |
| 1783 | setBounds(27527, 70, 25, index, Interface);index++; | |
| 1784 | setBounds(27508, 45, 60, index, Interface);index++; | |
| 1785 | setBounds(27509, 45, 90, index, Interface);index++; | |
| 1786 | setBounds(27510, 45, 120, index, Interface);index++; | |
| 1787 | setBounds(27532, 45, 150, index, Interface);index++; | |
| 1788 | setBounds(27521, 45, 180, index, Interface);index++; | |
| 1789 | setBounds(27606, 45, 210, index, Interface);index++; | |
| 1790 | setBounds(27607, 70, 240, index, Interface);index++; | |
| 1791 | setBounds(27502, 84, 63, index, Interface);index++; | |
| 1792 | setBounds(27503, 83, 93, index, Interface);index++; | |
| 1793 | setBounds(27504, 70, 123, index, Interface);index++; | |
| 1794 | setBounds(27535, 83, 153, index, Interface);index++; | |
| 1795 | setBounds(27600, 75, 183, index, Interface);index++; | |
| 1796 | setBounds(27601, 84, 213, index, Interface);index++; | |
| 1797 | setBounds(27505, 101, 243, index, Interface);index++; | |
| 1798 | setBounds(27524, 135, 62, index, Interface);index++; | |
| 1799 | setBounds(27525, 135, 92, index, Interface);index++; | |
| 1800 | setBounds(27526, 135, 123, index, Interface);index++; | |
| 1801 | setBounds(27528, 135, 62, index, Interface);index++; | |
| 1802 | setBounds(27529, 135, 92, index, Interface);index++; | |
| 1803 | setBounds(27530, 135, 123, index, Interface);index++; | |
| 1804 | setBounds(27531, 135, 153, index, Interface);index++; | |
| 1805 | setBounds(27536, 135, 153, index, Interface);index++; | |
| 1806 | setBounds(27537, 135, 153, index, Interface);index++; | |
| 1807 | setBounds(27538, 135, 153, index, Interface);index++; | |
| 1808 | setBounds(27602, 135, 183, index, Interface);index++; | |
| 1809 | setBounds(27603, 135, 183, index, Interface);index++; | |
| 1810 | setBounds(27604, 135, 213, index, Interface);index++; | |
| 1811 | setBounds(27605, 135, 213, index, Interface);index++; | |
| 1812 | setBounds(27511, 40, 20, index, Interface);index++; | |
| 1813 | setBounds(27513, 35, 50, index, Interface);index++; | |
| 1814 | setBounds(27515, 35, 80, index, Interface);index++; | |
| 1815 | setBounds(27522, 43, 140, index, Interface);index++; | |
| 1816 | setBounds(27533, 43, 95, index, Interface);index++; | |
| 1817 | setBounds(27608, 43, 170, index, Interface);index++; | |
| 1818 | setBounds(27610, 43, 200, index, Interface);index++; | |
| 1819 | } | |
| 1820 | ||
| 1821 | public static void Curses(RSFont[] TDA) {
| |
| 1822 | RSInterface Interface = addTabInterface(22500); | |
| 1823 | int index = 0; | |
| 1824 | addText(687, "99/99", 0xFF981F, false, false, -1, TDA, 1); | |
| 1825 | addSprite(22502, 0, "Interfaces/CurseTab/ICON"); | |
| 1826 | addPrayer(22503, 0, 610, 49, 7, "Protect Item", 22582);//1 | |
| 1827 | addPrayer(22505, 0, 611, 49, 4, "Sap Warrior", 22544);//2 | |
| 1828 | addPrayer(22507, 0, 612, 51, 5, "Sap Ranger", 22546);//3 | |
| 1829 | addPrayer(22509, 0, 613, 53, 3, "Sap Mage", 22548);//4 | |
| 1830 | addPrayer(22511, 0, 614, 55, 2, "Sap Spirit", 22550);//5 | |
| 1831 | addPrayer(22513, 0, 615, 58, 18, "Berserker", 22552);//6 | |
| 1832 | addPrayer(22515, 0, 616, 61, 15, "Deflect Summoning", 22554);///7 | |
| 1833 | addPrayer(22517, 0, 617, 64, 17, "Deflect Magic", 22556);///8 | |
| 1834 | addPrayer(22519, 0, 618, 67, 16, "Deflect Missiles", 22558);///9 | |
| 1835 | addPrayer(22521, 0, 619, 70, 6, "Deflect Melee", 22560);///10 | |
| 1836 | addPrayer(22523, 0, 620, 73, 9, "Leech Attack", 22562);//11 | |
| 1837 | addPrayer(22525, 0, 621, 75, 10, "Leech Ranged", 22564);//12 | |
| 1838 | addPrayer(22527, 0, 622, 77, 11, "Leech Magic", 22566);//13 | |
| 1839 | addPrayer(22529, 0, 623, 79, 12, "Leech Defence", 22568);//14 | |
| 1840 | addPrayer(22531, 0, 624, 81, 13, "Leech Strength", 22570);//15 | |
| 1841 | addPrayer(22533, 0, 625, 83, 14, "Leech Energy", 22572);//16 | |
| 1842 | addPrayer(22535, 0, 626, 85, 19, "Leech Special Attack", 22574);//17 | |
| 1843 | addPrayer(22537, 0, 627, 88, 1, "Wrath", 22576);///18 | |
| 1844 | addPrayer(22539, 0, 628, 91, 8, "Soul Split", 22578);///19 | |
| 1845 | addPrayer(22541, 0, 629, 94, 20, "Turmoil", 22580);//20 | |
| 1846 | drawTooltip(22582, "Level 50\nProtect Item\nKeep 1 extra item if you die"); | |
| 1847 | drawTooltip(22544, "Level 50\nSap Warrior\nDrains 10% of enemy Attack,\nStrength and Defence,\nincreasing to 20% over time"); | |
| 1848 | drawTooltip(22546, "Level 52\nSap Ranger\nDrains 10% of enemy Ranged\nand Defence, increasing to 20%\nover time"); | |
| 1849 | drawTooltip(22548, "Level 54\nSap Mage\nDrains 10% of enemy Magic\nand Defence, increasing to 20%\nover time"); | |
| 1850 | drawTooltip(22550, "Level 56\nSap Spirit\nDrains enenmy special attack\nenergy"); | |
| 1851 | drawTooltip(22552, "Level 59\nBerserker\nBoosted stats last 15% longer"); | |
| 1852 | 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"); | |
| 1853 | drawTooltip(22556, "Level 65\nDeflect Magic\nProtects against magical attacks\nand can deflect some of the\ndamage back to the attacker"); | |
| 1854 | drawTooltip(22558, "Level 68\nDeflect Missiles\nProtects against ranged attacks\nand can deflect some of the\ndamage back to the attacker"); | |
| 1855 | drawTooltip(22560, "Level 71\nDeflect Melee\nProtects against melee attacks\nand can deflect some of the\ndamage back to the attacker"); | |
| 1856 | 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"); | |
| 1857 | 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"); | |
| 1858 | 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"); | |
| 1859 | 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"); | |
| 1860 | 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"); | |
| 1861 | drawTooltip(22572, "Level 84\nLeech Energy\nDrains enemy run energy, while\nincreasing your own"); | |
| 1862 | drawTooltip(22574, "Level 86\nLeech Special Attack\nDrains enemy special attack\nenergy, while increasing your\nown"); | |
| 1863 | drawTooltip(22576, "Level 89\nWrath\nInflicts damage to nearby\ntargets if you die"); | |
| 1864 | drawTooltip(22578, "Level 92\nSoul Split\n1/4 of damage dealt is also removed\nfrom opponent's Prayer and\nadded to your Hitpoints"); | |
| 1865 | 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"); | |
| 1866 | setChildren(62, Interface); | |
| 1867 | ||
| 1868 | setBounds(687, 85, 241, index, Interface);index++; | |
| 1869 | setBounds(22502, 65, 241, index, Interface);index++; | |
| 1870 | setBounds(22503, 2, 5, index, Interface);index++; | |
| 1871 | setBounds(22504, 8, 8, index, Interface);index++; | |
| 1872 | setBounds(22505, 40, 5, index, Interface);index++; | |
| 1873 | setBounds(22506, 47, 12, index, Interface);index++; | |
| 1874 | setBounds(22507, 76, 5, index, Interface);index++; | |
| 1875 | setBounds(22508, 82, 11, index, Interface);index++; | |
| 1876 | setBounds(22509, 113, 5, index, Interface);index++; | |
| 1877 | setBounds(22510, 116, 8, index, Interface);index++; | |
| 1878 | setBounds(22511, 150, 5, index, Interface);index++; | |
| 1879 | setBounds(22512, 155, 10, index, Interface);index++; | |
| 1880 | setBounds(22513, 2, 45, index, Interface);index++; | |
| 1881 | setBounds(22514, 9, 48, index, Interface);index++; | |
| 1882 | setBounds(22515, 39, 45, index, Interface);index++; | |
| 1883 | setBounds(22516, 42, 47, index, Interface);index++; | |
| 1884 | setBounds(22517, 76, 45, index, Interface);index++; | |
| 1885 | setBounds(22518, 79, 48, index, Interface);index++; | |
| 1886 | setBounds(22519, 113, 45, index, Interface);index++; | |
| 1887 | setBounds(22520, 116, 48, index, Interface);index++; | |
| 1888 | setBounds(22521, 151, 45, index, Interface);index++; | |
| 1889 | setBounds(22522, 154, 48, index, Interface);index++; | |
| 1890 | setBounds(22523, 2, 82, index, Interface);index++; | |
| 1891 | setBounds(22524, 6, 86, index, Interface);index++; | |
| 1892 | setBounds(22525, 40, 82, index, Interface);index++; | |
| 1893 | setBounds(22526, 42, 86, index, Interface);index++; | |
| 1894 | setBounds(22527, 77, 82, index, Interface);index++; | |
| 1895 | setBounds(22528, 79, 86, index, Interface);index++; | |
| 1896 | setBounds(22529, 114, 83, index, Interface);index++; | |
| 1897 | setBounds(22530, 119, 87, index, Interface);index++; | |
| 1898 | setBounds(22531, 153, 83, index, Interface);index++; | |
| 1899 | setBounds(22532, 156, 86, index, Interface);index++; | |
| 1900 | setBounds(22533, 2, 120, index, Interface);index++; | |
| 1901 | setBounds(22534, 7, 125, index, Interface);index++; | |
| 1902 | setBounds(22535, 40, 120, index, Interface);index++; | |
| 1903 | setBounds(22536, 45, 124, index, Interface);index++; | |
| 1904 | setBounds(22537, 78, 120, index, Interface);index++; | |
| 1905 | setBounds(22538, 86, 124, index, Interface);index++; | |
| 1906 | setBounds(22539, 114, 120, index, Interface);index++; | |
| 1907 | setBounds(22540, 120, 125, index, Interface);index++; | |
| 1908 | setBounds(22541, 151, 120, index, Interface);index++; | |
| 1909 | setBounds(22542, 153, 127, index, Interface);index++; | |
| 1910 | setBounds(22582, 10, 40, index, Interface);index++; | |
| 1911 | setBounds(22544, 20, 40, index, Interface);index++; | |
| 1912 | setBounds(22546, 20, 40, index, Interface);index++; | |
| 1913 | setBounds(22548, 20, 40, index, Interface);index++; | |
| 1914 | setBounds(22550, 20, 40, index, Interface);index++; | |
| 1915 | setBounds(22552, 10, 80, index, Interface);index++; | |
| 1916 | setBounds(22554, 10, 80, index, Interface);index++; | |
| 1917 | setBounds(22556, 10, 80, index, Interface);index++; | |
| 1918 | setBounds(22558, 10, 80, index, Interface);index++; | |
| 1919 | setBounds(22560, 10, 80, index, Interface);index++; | |
| 1920 | setBounds(22562, 10, 120, index, Interface);index++; | |
| 1921 | setBounds(22564, 10, 120, index, Interface);index++; | |
| 1922 | setBounds(22566, 10, 120, index, Interface);index++; | |
| 1923 | setBounds(22568, 5, 120, index, Interface);index++; | |
| 1924 | setBounds(22570, 5, 120, index, Interface);index++; | |
| 1925 | setBounds(22572, 10, 160, index, Interface);index++; | |
| 1926 | setBounds(22574, 10, 160, index, Interface);index++; | |
| 1927 | setBounds(22576, 10, 160, index, Interface);index++; | |
| 1928 | setBounds(22578, 10, 160, index, Interface);index++; | |
| 1929 | setBounds(22580, 10, 160, index, Interface);index++; | |
| 1930 | } | |
| 1931 | ||
| 1932 | ||
| 1933 | public static void Logout(RSFont[] wid) {
| |
| 1934 | RSInterface rsinterface = interfaceCache[2449]; | |
| 1935 | rsinterface.childY[0] = 68; | |
| 1936 | rsinterface.childY[1] = 86; | |
| 1937 | rsinterface.childX[2] = 12; | |
| 1938 | rsinterface.childY[2] = 104; | |
| 1939 | rsinterface.childX[8] = 31; | |
| 1940 | rsinterface.childY[8] = 164; | |
| 1941 | rsinterface = interfaceCache[2450]; | |
| 1942 | rsinterface.disabledColor = 0xff981f; | |
| 1943 | rsinterface = interfaceCache[2451]; | |
| 1944 | rsinterface.disabledColor = 0xff981f; | |
| 1945 | rsinterface = interfaceCache[2452]; | |
| 1946 | rsinterface.disabledColor = 0xff981f; | |
| 1947 | } | |
| 1948 | ||
| 1949 | public void specialBar(int id) {//7599
| |
| 1950 | /*addActionButton(ID, SpriteOFF, SpriteON, Width, Height, "SpriteText");*/ | |
| 1951 | addActionButton(id-12, 7587, -1, 150, 26, "Use @gre@Special Attack", 20003); | |
| 1952 | /*removeSomething(ID);*/ | |
| 1953 | for (int i = id-11; i < id; i++) | |
| 1954 | removeSomething(i); | |
| 1955 | RSInterface rsi = interfaceCache[id-12]; | |
| 1956 | rsi.width = 150; | |
| 1957 | rsi.height = 26; | |
| 1958 | rsi = interfaceCache[id]; | |
| 1959 | rsi.width = 150; | |
| 1960 | rsi.height = 26; | |
| 1961 | rsi.child(0, id-12, 0, 0); | |
| 1962 | rsi.child(12, id+1, 3, 7); | |
| 1963 | rsi.child(23, id+12, 16, 8); | |
| 1964 | for (int i = 13; i < 23; i++) {
| |
| 1965 | rsi.childY[i] -= 1; | |
| 1966 | } | |
| 1967 | rsi = interfaceCache[id+1]; | |
| 1968 | rsi.interfaceType = 5; | |
| 1969 | rsi.disabledSprite = CustomSpriteLoader(7600, ""); | |
| 1970 | for (int i = id+2; i < id+12; i++) {
| |
| 1971 | rsi = interfaceCache[i]; | |
| 1972 | rsi.interfaceType = 5; | |
| 1973 | } | |
| 1974 | disabledSprite(id+2, 7601);disabledSprite(id+3, 7602); | |
| 1975 | disabledSprite(id+4, 7603);disabledSprite(id+5, 7604); | |
| 1976 | disabledSprite(id+6, 7605);disabledSprite(id+7, 7606); | |
| 1977 | disabledSprite(id+8, 7607);disabledSprite(id+9, 7608); | |
| 1978 | disabledSprite(id+10, 7609);disabledSprite(id+11, 7610); | |
| 1979 | } | |
| 1980 | ||
| 1981 | public static void Sidebar0(RSFont[] tda) | |
| 1982 | {
| |
| 1983 | RSInterface rsi = addInterface(19300); | |
| 1984 | addToggleButton(150, 150, 172, 150, 44, "Auto Retaliate", 20001); | |
| 1985 | addTooltip(20001, "When active your player\n will automatically\n fight back if attacked."); | |
| 1986 | addText(3983, "Combat level: ", tda, 0, 0xFF981F); | |
| 1987 | rsi.totalChildren(3, 3, 3); | |
| 1988 | rsi.child(0, 3983, 52, 25); | |
| 1989 | rsi.child(1, 150, 21, 153); | |
| 1990 | rsi.child(2, 20001, 23+4, 203); | |
| 1991 | /* | |
| 1992 | addFourSelect(id, id2, id3, "text1", "text2", "text3", "text4", | |
| 1993 | str1x, str1y, str2x, str2y, str3x, str3y, str4x, str4y, | |
| 1994 | img1x, img1y, img2x, img2y, img3x, img3y, img4x, img4y, | |
| 1995 | tda); | |
| 1996 | */ | |
| 1997 | addFourSelect(1698, 1701, 7499, "Chop", "Hack", "Smash", "Block", | |
| 1998 | 42, 75, 127, 75, 39, 128, 125, 128, | |
| 1999 | 122, 103, 40, 50, 122, 50, 40, 103, | |
| 2000 | tda, 4706, 4707, 4708, 4709); | |
| 2001 | addFourSelect(2276, 2279, 7574, "Stab", "Lunge", "Slash", "Block", | |
| 2002 | 43, 75, 124, 75, 41, 128, 125, 128, | |
| 2003 | 122, 103, 40, 50, 122, 50, 40, 103, | |
| 2004 | tda, 4706, 4707, 4708, 4709); | |
| 2005 | addFourSelect(2423, 2426, 7599, "Chop", "Slash", "Lunge", "Block", | |
| 2006 | 42, 75, 125, 75, 40, 128, 125, 128, | |
| 2007 | 122, 103, 40, 50, 122, 50, 40, 103, | |
| 2008 | tda, 20007, 20009, 20011, 20013); | |
| 2009 | addFourSelect(3796, 3799, 7624, "Pound", "Pummel", "Spike", "Block", | |
| 2010 | 39, 75, 121, 75, 41, 128, 125, 128, | |
| 2011 | 122, 103, 40, 50, 122, 50, 40, 103, | |
| 2012 | tda, 4706, 4707, 4708, 4709); | |
| 2013 | addFourSelect(4679, 4682, 7674, "Lunge", "Swipe", "Pound", "Block", | |
| 2014 | 40, 75, 124, 75, 39, 128, 125, 128, | |
| 2015 | 122, 103, 40, 50, 122, 50, 40, 103, | |
| 2016 | tda, 4706, 4707, 4708, 4709); | |
| 2017 | addFourSelect(4705, 4708, 7699, "Chop", "Slash", "Smash", "Block", | |
| 2018 | 42, 75, 125, 75, 39, 128, 125, 128, | |
| 2019 | 122, 103, 40, 50, 122, 50, 40, 103, | |
| 2020 | tda, 4706, 4707, 4708, 4709); | |
| 2021 | addFourSelect(5570, 5573, 7724, "Spike", "Impale", "Smash", "Block", | |
| 2022 | 41, 75, 123, 75, 39, 128, 125, 128, | |
| 2023 | 122, 103, 40, 50, 122, 50, 40, 103, | |
| 2024 | tda, 4706, 4707, 4708, 4709); | |
| 2025 | addFourSelect(7762, 7765, 7800, "Chop", "Slash", "Lunge", "Block", | |
| 2026 | 42, 75, 125, 75, 40, 128, 125, 128, | |
| 2027 | 122, 103, 40, 50, 122, 50, 40, 103, | |
| 2028 | tda, 4706, 4707, 4708, 4709); | |
| 2029 | /* | |
| 2030 | addFourSelectNoSpec(id, id2, "text1", "text2", "text3", "text4", | |
| 2031 | str1x, str1y, str2x, str2y, str3x, str3y, str4x, str4y, | |
| 2032 | img1x, img1y, img2x, img2y, img3x, img3y, img4x, img4y, | |
| 2033 | tda); | |
| 2034 | */ | |
| 2035 | addFourSelectNoSpec(776, 779, "Reap", "Chop", "Jab", "Block", 42, | |
| 2036 | 75, 126, 75, 46, 128, 125, 128, 122, | |
| 2037 | 103, 122, 50, 40, 103, 40, 50, | |
| 2038 | tda); | |
| 2039 | /* | |
| 2040 | addThreeSelect(id, id2, id3, "text1", "text2", "text3", | |
| 2041 | str1x, str1y, str2x, str2y, str3x, str3y, | |
| 2042 | img1x, img1y, img2x, img2y, img3x, img3y, | |
| 2043 | tda); | |
| 2044 | */ | |
| 2045 | addThreeSelect(425, 428, 7474, "Pound", "Pummel", "Block", | |
| 2046 | 39, 75, 121, 75, 42, 128, | |
| 2047 | 40, 103, 40, 50, 122, 50, | |
| 2048 | tda); | |
| 2049 | addThreeSelect(1749, 1752, 7524, "Accurate", "Rapid", "Longrange", | |
| 2050 | 33, 75, 125, 75, 29, 128, | |
| 2051 | 40, 103, 40, 50, 122, 50, | |
| 2052 | tda); | |
| 2053 | addThreeSelect(1764, 1767, 7549, "Accurate", "Rapid", "Longrange", | |
| 2054 | 33, 75, 125, 75, 29, 128, | |
| 2055 | 40, 103, 40, 50, 122, 50, | |
| 2056 | tda); | |
| 2057 | addThreeSelect(4446, 4449, 7649, "Accurate", "Rapid", "Longrange", | |
| 2058 | 33, 75, 125, 75, 29, 128, | |
| 2059 | 40, 103, 40, 50, 122, 50, | |
| 2060 | tda); | |
| 2061 | addThreeSelect(5855, 5857, 7749, "Punch", "Kick", "Block", | |
| 2062 | 40, 75, 129, 75, 42, 128, | |
| 2063 | 40, 50, 122, 50, 40, 103, | |
| 2064 | tda); | |
| 2065 | addThreeSelect(6103, 6132, 6117, "Bash", "Pound", "Block", | |
| 2066 | 43, 75, 124, 75, 42, 128, | |
| 2067 | 40, 103, 40, 50, 122, 50, | |
| 2068 | tda); | |
| 2069 | addThreeSelect(8460, 8463, 8493, "Jab", "Swipe", "Fend", | |
| 2070 | 46, 75, 124, 75, 43, 128, | |
| 2071 | 40, 103, 40, 50, 122, 50, | |
| 2072 | tda); | |
| 2073 | addThreeSelect(12290, 12293, 12323, "Flick", "Lash", "Deflect", | |
| 2074 | 44, 75, 127, 75, 36, 128, | |
| 2075 | 40, 50, 40, 103, 122, 50, | |
| 2076 | tda); | |
| 2077 | /* | |
| 2078 | addThreeSelectNoSpec(id, id2, "text1", "text2", "text3", | |
| 2079 | str1x, str1y, str2x, str2y, str3x, str3y, | |
| 2080 | img1x, img1y, img2x, img2y, img3x, img3y, | |
| 2081 | tda); | |
| 2082 | */ | |
| 2083 | addThreeSelectNoSpec(328, 331, "Bash", "Pound", "Focus", | |
| 2084 | 42, 66, 39, 101, 41, 136, | |
| 2085 | 40, 120, 40, 50, 40, 85, | |
| 2086 | tda); | |
| 2087 | } | |
| 2088 | ||
| 2089 | public static void addFourSelect | |
| 2090 | (int id, int id2, int id3, String text1, String text2, String text3, String text4, | |
| 2091 | int str1x, int str1y, int str2x, int str2y, int str3x, int str3y, int str4x, int str4y, | |
| 2092 | int img1x, int img1y, int img2x, int img2y, int img3x, int img3y, int img4x, int img4y, | |
| 2093 | RSFont[] tda, int hover, int hover2, int hover3, int hover4) //4button spec | |
| 2094 | {
| |
| 2095 | RSInterface rsi = addInterface(id); //2423 | |
| 2096 | /*addText(ID, "Text", tda, Size, Colour, Centered);*/ | |
| 2097 | addText(id2, "-2", tda, 3, 0xff981f, true); //2426 | |
| 2098 | addText(id2+11, text1, tda, 0, 0xff981f, false); | |
| 2099 | addText(id2+12, text2, tda, 0, 0xff981f, false); | |
| 2100 | addText(id2+13, text3, tda, 0, 0xff981f, false); | |
| 2101 | addText(id2+14, text4, tda, 0, 0xff981f, false); | |
| 2102 | ||
| 2103 | addTooltip(hover, "(Accurate)\n(Slash)\n(Attack XP)"); | |
| 2104 | addTooltip(hover2, "(Agressive)\n(Slash)\n(Strength XP)"); | |
| 2105 | addTooltip(hover3, "(Agressive)\n(Crush)\n(Strength XP)"); | |
| 2106 | addTooltip(hover4, "(Defensive)\n(Slash)\n(Defence XP)"); | |
| 2107 | /*specialBar(ID);*/ | |
| 2108 | rsi.specialBar(id3); //7599 | |
| 2109 | rsi.width = 190; | |
| 2110 | rsi.height = 261; | |
| 2111 | int last = 19; int frame = 0; | |
| 2112 | rsi.totalChildren(last, last, last); | |
| 2113 | rsi.child(frame, id2+3, 21, 46); frame++; //2429 | |
| 2114 | rsi.child(frame, id2+4, 104, 99); frame++; //2430 | |
| 2115 | rsi.child(frame, id2+5, 21, 99); frame++; //2431 | |
| 2116 | rsi.child(frame, id2+6, 105, 46); frame++; //2432 | |
| 2117 | rsi.child(frame, id2+7, img1x, img1y); frame++; //bottomright 2433 | |
| 2118 | rsi.child(frame, id2+8, img2x, img2y); frame++; //topleft 2434 | |
| 2119 | rsi.child(frame, id2+9, img3x, img3y); frame++; //bottomleft 2435 | |
| 2120 | rsi.child(frame, id2+10, img4x, img4y); frame++; //topright 2436 | |
| 2121 | rsi.child(frame, id2+11, str1x, str1y); frame++; //chop 2437 | |
| 2122 | rsi.child(frame, id2+12, str2x, str2y); frame++; //slash 2438 | |
| 2123 | rsi.child(frame, id2+13, str3x, str3y); frame++; //lunge 2439 | |
| 2124 | rsi.child(frame, id2+14, str4x, str4y); frame++; //block 2440 | |
| 2125 | rsi.child(frame, id2, 94, 4); frame++; //weapon 2426 | |
| 2126 | rsi.child(frame, id3, 21, 205); frame++; //special attack 7599 | |
| 2127 | ||
| 2128 | rsi.child(frame, hover, 21, 46); frame++; //Retaliate+cb lvl | |
| 2129 | rsi.child(frame, hover2, 105, 46); frame++; //Retaliate+cb lvl | |
| 2130 | rsi.child(frame, hover3, 21, 99); frame++; //Retaliate+cb lvl | |
| 2131 | rsi.child(frame, hover4, 105, 99); frame++; //Retaliate+cb lvl | |
| 2132 | ||
| 2133 | ||
| 2134 | rsi.child(frame, 19300, 0, 0); frame++; //Retaliate+cb lvl | |
| 2135 | ||
| 2136 | ||
| 2137 | for (int i = id2+3; i < id2+7; i++) { //2429 - 2433
| |
| 2138 | rsi = interfaceCache[i]; | |
| 2139 | rsi.disabledSprite = CustomSpriteLoader(19301, ""); | |
| 2140 | rsi.enabledSprite = CustomSpriteLoader(19301, "a"); | |
| 2141 | rsi.width = 68; rsi.height = 44; | |
| 2142 | } | |
| 2143 | } | |
| 2144 | ||
| 2145 | public static void addFourSelectNoSpec | |
| 2146 | (int id, int id2, String text1, String text2, String text3, String text4, | |
| 2147 | int str1x, int str1y, int str2x, int str2y, int str3x, int str3y, int str4x, int str4y, | |
| 2148 | int img1x, int img1y, int img2x, int img2y, int img3x, int img3y, int img4x, int img4y, | |
| 2149 | RSFont[] tda) //4button nospec | |
| 2150 | {
| |
| 2151 | RSInterface rsi = addInterface(id); //2423 | |
| 2152 | /*addText(ID, "Text", tda, Size, Colour, Centered);*/ | |
| 2153 | addText(id2, "-2", tda, 3, 0xff981f, true); //2426 | |
| 2154 | addText(id2+11, text1, tda, 0, 0xff981f, false); | |
| 2155 | addText(id2+12, text2, tda, 0, 0xff981f, false); | |
| 2156 | addText(id2+13, text3, tda, 0, 0xff981f, false); | |
| 2157 | addText(id2+14, text4, tda, 0, 0xff981f, false); | |
| 2158 | rsi.width = 190; | |
| 2159 | rsi.height = 261; | |
| 2160 | int last = 14; int frame = 0; | |
| 2161 | rsi.totalChildren(last, last, last); | |
| 2162 | rsi.child(frame, id2+3, 21, 46); frame++; //2429 | |
| 2163 | rsi.child(frame, id2+4, 104, 99); frame++; //2430 | |
| 2164 | rsi.child(frame, id2+5, 21, 99); frame++; //2431 | |
| 2165 | rsi.child(frame, id2+6, 105, 46); frame++; //2432 | |
| 2166 | rsi.child(frame, id2+7, img1x, img1y); frame++; //bottomright 2433 | |
| 2167 | rsi.child(frame, id2+8, img2x, img2y); frame++; //topleft 2434 | |
| 2168 | rsi.child(frame, id2+9, img3x, img3y); frame++; //bottomleft 2435 | |
| 2169 | rsi.child(frame, id2+10, img4x, img4y); frame++; //topright 2436 | |
| 2170 | rsi.child(frame, id2+11, str1x, str1y); frame++; //chop 2437 | |
| 2171 | rsi.child(frame, id2+12, str2x, str2y); frame++; //slash 2438 | |
| 2172 | rsi.child(frame, id2+13, str3x, str3y); frame++; //lunge 2439 | |
| 2173 | rsi.child(frame, id2+14, str4x, str4y); frame++; //block 2440 | |
| 2174 | rsi.child(frame, id2, 94, 4); frame++; //weapon 2426 | |
| 2175 | rsi.child(frame, 19300, 0, 0); frame++; //Retaliate+cb lvl | |
| 2176 | for (int i = id2+3; i < id2+7; i++) { //2429 - 2433
| |
| 2177 | rsi = interfaceCache[i]; | |
| 2178 | rsi.disabledSprite = CustomSpriteLoader(19301, ""); | |
| 2179 | rsi.enabledSprite = CustomSpriteLoader(19301, "a"); | |
| 2180 | rsi.width = 68; rsi.height = 44; | |
| 2181 | } | |
| 2182 | } | |
| 2183 | ||
| 2184 | public static void addThreeSelect | |
| 2185 | (int id, int id2, int id3, String text1, String text2, String text3, | |
| 2186 | int str1x, int str1y, int str2x, int str2y, int str3x, int str3y, | |
| 2187 | int img1x, int img1y, int img2x, int img2y, int img3x, int img3y, | |
| 2188 | RSFont[] tda) //3button spec | |
| 2189 | {
| |
| 2190 | RSInterface rsi = addInterface(id); //2423 | |
| 2191 | /*addText(ID, "Text", tda, Size, Colour, Centered);*/ | |
| 2192 | addText(id2, "-2", tda, 3, 0xff981f, true); //2426 | |
| 2193 | addText(id2+9, text1, tda, 0, 0xff981f, false); | |
| 2194 | addText(id2+10, text2, tda, 0, 0xff981f, false); | |
| 2195 | addText(id2+11, text3, tda, 0, 0xff981f, false); | |
| 2196 | /*specialBar(ID);*/ | |
| 2197 | rsi.specialBar(id3); //7599 | |
| 2198 | rsi.width = 190; | |
| 2199 | rsi.height = 261; | |
| 2200 | int last = 12; int frame = 0; | |
| 2201 | rsi.totalChildren(last, last, last); | |
| 2202 | rsi.child(frame, id2+3, 21, 99); frame++; | |
| 2203 | rsi.child(frame, id2+4, 105, 46); frame++; | |
| 2204 | rsi.child(frame, id2+5, 21, 46); frame++; | |
| 2205 | rsi.child(frame, id2+6, img1x, img1y); frame++; //topleft | |
| 2206 | rsi.child(frame, id2+7, img2x, img2y); frame++; //bottomleft | |
| 2207 | rsi.child(frame, id2+8, img3x, img3y); frame++; //topright | |
| 2208 | rsi.child(frame, id2+9, str1x, str1y); frame++; //chop | |
| 2209 | rsi.child(frame, id2+10, str2x, str2y); frame++; //slash | |
| 2210 | rsi.child(frame, id2+11, str3x, str3y); frame++; //lunge | |
| 2211 | rsi.child(frame, id2, 94, 4); frame++; //weapon | |
| 2212 | rsi.child(frame, id3, 21, 205); frame++; //special attack 7599 | |
| 2213 | rsi.child(frame, 19300, 0, 0); frame++; //Retaliate+cb lvl | |
| 2214 | for (int i = id2+3; i < id2+6; i++) {
| |
| 2215 | rsi = interfaceCache[i]; | |
| 2216 | rsi.disabledSprite = CustomSpriteLoader(19301, ""); | |
| 2217 | rsi.enabledSprite = CustomSpriteLoader(19301, "a"); | |
| 2218 | rsi.width = 68; rsi.height = 44; | |
| 2219 | } | |
| 2220 | } | |
| 2221 | ||
| 2222 | public static void addThreeSelectNoSpec | |
| 2223 | (int id, int id2, String text1, String text2, String text3, | |
| 2224 | int str1x, int str1y, int str2x, int str2y, int str3x, int str3y, | |
| 2225 | int img1x, int img1y, int img2x, int img2y, int img3x, int img3y, | |
| 2226 | RSFont[] tda) //3button nospec (magic intf) | |
| 2227 | {
| |
| 2228 | RSInterface rsi = addInterface(id); //2423 | |
| 2229 | /*addText(ID, "Text", tda, Size, Colour, Centered);*/ | |
| 2230 | addText(id2, "-2", tda, 3, 0xff981f, true); //2426 | |
| 2231 | addText(id2+9, text1, tda, 0, 0xff981f, false); | |
| 2232 | addText(id2+10, text2, tda, 0, 0xff981f, false); | |
| 2233 | addText(id2+11, text3, tda, 0, 0xff981f, false); | |
| 2234 | //addText(353, "Spell", tda, 0, 0xff981f, false); | |
| 2235 | removeSomething(353); | |
| 2236 | addText(354, "Spell", tda, 0, 0xff981f, false); | |
| 2237 | addCacheSprite(337, 19, 0, "combaticons"); | |
| 2238 | addCacheSprite(338, 13, 0, "combaticons2"); | |
| 2239 | addCacheSprite(339, 14, 0, "combaticons2"); | |
| 2240 | /*addToggleButton(id, sprite, config, width, height, tooltip);*/ | |
| 2241 | //addToggleButton(349, 349, 108, 68, 44, "Select"); | |
| 2242 | removeSomething(349); | |
| 2243 | addToggleButton(350, 350, 108, 68, 44, "Select"); | |
| 2244 | rsi.width = 190; | |
| 2245 | rsi.height = 261; | |
| 2246 | int last = 15; int frame = 0; | |
| 2247 | rsi.totalChildren(last, last, last); | |
| 2248 | rsi.child(frame, id2+3, 20, 115); frame++; | |
| 2249 | rsi.child(frame, id2+4, 20, 80); frame++; | |
| 2250 | rsi.child(frame, id2+5, 20, 45); frame++; | |
| 2251 | rsi.child(frame, id2+6, img1x, img1y); frame++; //topleft | |
| 2252 | rsi.child(frame, id2+7, img2x, img2y); frame++; //bottomleft | |
| 2253 | rsi.child(frame, id2+8, img3x, img3y); frame++; //topright | |
| 2254 | rsi.child(frame, id2+9, str1x, str1y); frame++; //bash | |
| 2255 | rsi.child(frame, id2+10, str2x, str2y); frame++; //pound | |
| 2256 | rsi.child(frame, id2+11, str3x, str3y); frame++; //focus | |
| 2257 | rsi.child(frame, 349, 105, 46); frame++; //spell1 | |
| 2258 | rsi.child(frame, 350, 104, 106); frame++; //spell2 | |
| 2259 | rsi.child(frame, 353, 125, 74); frame++; //spell | |
| 2260 | rsi.child(frame, 354, 125, 134); frame++; //spell | |
| 2261 | rsi.child(frame, 19300, 0, 0); frame++; //Retaliate+cb lvl | |
| 2262 | rsi.child(frame, id2, 94, 4); frame++; //weapon | |
| 2263 | } | |
| 2264 | ||
| 2265 | public static void emoteTab() {
| |
| 2266 | RSInterface tab = addTabInterface(147); | |
| 2267 | RSInterface scroll = addTabInterface(148); | |
| 2268 | tab.totalChildren(1); | |
| 2269 | tab.child(0, 148, 0, 3); | |
| 2270 | AddInterfaceButton(168, 0, "Interfaces/Emotes/EMOTE", "Yes", 15113, 1, 41,47); addTooltip(15113, "Yes"); | |
| 2271 | AddInterfaceButton(169, 1, "Interfaces/Emotes/EMOTE", "No", 15115, 1, 41,47); addTooltip(15115, "No"); | |
| 2272 | AddInterfaceButton(164, 2, "Interfaces/Emotes/EMOTE", "Bow", 15117, 1, 41,47); addTooltip(15117, "Bow"); | |
| 2273 | AddInterfaceButton(165, 3, "Interfaces/Emotes/EMOTE", "Angry", 15119, 1, 41,47); addTooltip(15119, "Angry"); | |
| 2274 | AddInterfaceButton(162, 4, "Interfaces/Emotes/EMOTE", "Think", 15121, 1, 41,47); addTooltip(15121, "Think"); | |
| 2275 | AddInterfaceButton(163, 5, "Interfaces/Emotes/EMOTE", "Wave", 15123, 1, 41,47); addTooltip(15123, "Wave"); | |
| 2276 | AddInterfaceButton(13370, 6, "Interfaces/Emotes/EMOTE", "Shrug", 15125, 1, 41,47); addTooltip(15125, "Shrug"); | |
| 2277 | AddInterfaceButton(171, 7, "Interfaces/Emotes/EMOTE", "Cheer", 15127, 1, 41,47); addTooltip(15127, "Cheer"); | |
| 2278 | AddInterfaceButton(167, 8, "Interfaces/Emotes/EMOTE", "Beckon", 15129, 1, 41,47); addTooltip(15129, "Beckon"); | |
| 2279 | AddInterfaceButton(170, 9, "Interfaces/Emotes/EMOTE", "Laugh", 15131, 1, 41,47); addTooltip(15131, "Laugh"); | |
| 2280 | AddInterfaceButton(13366, 10, "Interfaces/Emotes/EMOTE", "Jump for Joy", 15133, 1, 41,47); addTooltip(15133, "Jump for joy"); | |
| 2281 | AddInterfaceButton(13368, 11, "Interfaces/Emotes/EMOTE", "Yawn", 15135, 1, 41,47); addTooltip(15135, "Yawn"); | |
| 2282 | AddInterfaceButton(166, 12, "Interfaces/Emotes/EMOTE", "Dance", 15137, 1, 41,47); addTooltip(15137, "Dance"); | |
| 2283 | AddInterfaceButton(13363, 13, "Interfaces/Emotes/EMOTE", "Jig", 15139, 1, 41,47); addTooltip(15139, "Jig"); | |
| 2284 | AddInterfaceButton(13364, 14, "Interfaces/Emotes/EMOTE", "Spin", 15141, 1, 41,47); addTooltip(15141, "Spin"); | |
| 2285 | AddInterfaceButton(13365, 15, "Interfaces/Emotes/EMOTE", "Headbang", 15143, 1, 41,47); addTooltip(15143, "Headbang"); | |
| 2286 | AddInterfaceButton(161, 16, "Interfaces/Emotes/EMOTE", "Cry", 15145, 1, 41,47); addTooltip(15145, "Cry"); | |
| 2287 | AddInterfaceButton(11100, 17, "Interfaces/Emotes/EMOTE", "Blow kiss", 15147, 1, 41,47); addTooltip(15147, "Blow kiss"); | |
| 2288 | AddInterfaceButton(13362, 18, "Interfaces/Emotes/EMOTE", "Panic", 15149, 1, 41,47); addTooltip(15149, "Panic"); | |
| 2289 | AddInterfaceButton(13367, 19, "Interfaces/Emotes/EMOTE", "Raspberry", 15151, 1, 41,47); addTooltip(15151, "Raspberry"); | |
| 2290 | AddInterfaceButton(172, 20, "Interfaces/Emotes/EMOTE", "Clap", 15153, 1, 41,47); addTooltip(15153, "Clap"); | |
| 2291 | AddInterfaceButton(13369, 21, "Interfaces/Emotes/EMOTE", "Salute", 15155, 1, 41,47); addTooltip(15155, "Salute"); | |
| 2292 | AddInterfaceButton(13383, 22, "Interfaces/Emotes/EMOTE", "Goblin Bow", 15157, 1, 41,47); addTooltip(15157, "Goblin bow"); | |
| 2293 | AddInterfaceButton(13384, 23, "Interfaces/Emotes/EMOTE", "Goblin Salute", 15159, 1, 41,47);addTooltip(15159, "Goblin salute"); | |
| 2294 | AddInterfaceButton(667, 24, "Interfaces/Emotes/EMOTE", "Freeze", 15161, 1, 41,47); addTooltip(15161, "Freeze"); | |
| 2295 | AddInterfaceButton(6503, 25, "Interfaces/Emotes/EMOTE", "Trick", 15163, 1, 41,47); addTooltip(15163, "Trick"); | |
| 2296 | AddInterfaceButton(6506, 26, "Interfaces/Emotes/EMOTE", "Safety First", 15189, 1, 41,47); addTooltip(15189, "Safety First"); | |
| 2297 | AddInterfaceButton(666, 27, "Interfaces/Emotes/EMOTE", "Snowman Dance", 15167, 1, 41,47); addTooltip(15167, "Snowman Dance"); | |
| 2298 | AddInterfaceButton(18464, 33, "Interfaces/Emotes/EMOTE", "Explore", 18000, 1, 41,47); addTooltip(18000, "Explore"); | |
| 2299 | AddInterfaceButton(18465, 34, "Interfaces/Emotes/EMOTE", "Stomp", 17181, 1, 41,47); addTooltip(17181, "Stomp"); | |
| 2300 | AddInterfaceButton(15166, 35, "Interfaces/Emotes/EMOTE", "Flap", 15183, 1, 41,47); addTooltip(15183, "Flap"); | |
| 2301 | AddInterfaceButton(18686, 36, "Interfaces/Emotes/EMOTE", "Slap head", 15185, 1, 43,47); addTooltip(15185, "Slap head"); | |
| 2302 | AddInterfaceButton(18689, 28, "Interfaces/Emotes/EMOTE", "Zombie Walk", 15169, 1, 41,47); addTooltip(15169, "Zombie walk"); | |
| 2303 | AddInterfaceButton(18688, 29, "Interfaces/Emotes/EMOTE", "Zombie Dance", 15171, 1, 41,47); addTooltip(15171, "Zombie dance"); | |
| 2304 | AddInterfaceButton(18691, 30, "Interfaces/Emotes/EMOTE", "Bunny Hop", 15173, 1, 41,47); addTooltip(15173, "Bunny Hop"); | |
| 2305 | AddInterfaceButton(18692, 37, "Interfaces/Emotes/EMOTE", "Zombie Hand", 15175, 1, 41,47); addTooltip(15175, "Zombie hand"); | |
| 2306 | AddInterfaceButton(18687, 31, "Interfaces/Emotes/EMOTE", "Air Guitar", 15177, 1, 41,47); addTooltip(15177, "Air Guitar"); | |
| 2307 | AddInterfaceButton(154, 32, "Interfaces/Emotes/EMOTE", "SkillCape", 15187, 1, 41,47); addTooltip(15187, "Skillcape"); | |
| 2308 | scroll.totalChildren(76); | |
| 2309 | /** Emotes **/ | |
| 2310 | scroll.child(0, 168, 7+3, 6); scroll.child(1, 169, 51+3, 6); scroll.child(2, 164, 95+3, 13); scroll.child(3, 165, 134+3, 6);//Row 1 | |
| 2311 | scroll.child(4, 162, 6+3, 55); scroll.child(5, 163, 45+3, 55); scroll.child(6, 13370, 92+3, 55); scroll.child(7, 171, 134+3, 55);//Row 2 | |
| 2312 | scroll.child(8, 167, 4+3, 104); scroll.child(9, 170, 48+3, 104); scroll.child(10, 13366, 92+3, 103); scroll.child(11, 13368, 136+3, 104);//Row 3 | |
| 2313 | scroll.child(12, 166, 3+3, 153); scroll.child(13, 13363, 47+3, 153); scroll.child(14, 13364, 87+3, 153); scroll.child(15, 13365, 132+3, 153);//Row 4 | |
| 2314 | scroll.child(16, 161, 5+3, 203); scroll.child(17, 11100, 48+3, 202); scroll.child(18, 13362, 96+3, 203); scroll.child(19, 13367, 134+3, 202);//Row 5 | |
| 2315 | scroll.child(20, 172, 7+3, 250); scroll.child(21, 13369, 50+3, 250); scroll.child(22, 13383, 85+3, 255); scroll.child(23, 13384, 135+3, 249);//Row 6 | |
| 2316 | scroll.child(24, 667, 0+3, 300); scroll.child(25, 6503, 49+3, 299); scroll.child(26, 6506, 93+3, 299); scroll.child(27, 666, 138+3, 299);//Row 7 | |
| 2317 | scroll.child(28, 18464, 2+3, 349); scroll.child(29, 18465, 50+3, 350); scroll.child(30, 15166, 85+3, 352); scroll.child(31, 18686, 139+3, 350);//Row 8 | |
| 2318 | scroll.child(32, 18687, 9+3, 452); scroll.child(33, 18689, 7+3, 401); scroll.child(34, 18688, 48+3, 402); scroll.child(35, 18692, 85+3, 402);//Row 9 | |
| 2319 | scroll.child(36, 18691, 136+3, 406);scroll.child(37, 154, 46+3, 450);//Row 10 | |
| 2320 | /** ToolTips **/ | |
| 2321 | scroll.child(38, 15113, 0, 58); scroll.child(39, 15115, 44, 58); scroll.child(40, 15117, 88, 58); scroll.child(41, 15119, 132, 58);//Row 1 | |
| 2322 | scroll.child(42, 15121, 0, 107); scroll.child(43, 15123, 44, 107); scroll.child(44, 15125, 88, 107); scroll.child(45, 15127, 132, 107);//Row 2 | |
| 2323 | scroll.child(46, 15129, 0, 156); scroll.child(47, 15131, 44, 156); scroll.child(48, 15133, 88, 156); scroll.child(49, 15135, 132, 156);//Row 3 | |
| 2324 | scroll.child(50, 15137, 0, 205); scroll.child(51, 15139, 44, 205); scroll.child(52, 15141, 88, 205); scroll.child(53, 15143, 113, 205);//Row 4 | |
| 2325 | scroll.child(54, 15145, 2, 178); scroll.child(55, 15147, 44, 179); scroll.child(56, 15149, 88, 179); scroll.child(57, 15151, 107, 179);//Row 5 | |
| 2326 | scroll.child(58, 15153, 0, 227); scroll.child(59, 15155, 44, 227); scroll.child(60, 15157, 88, 227); scroll.child(61, 15159, 93, 227);//Row 6 | |
| 2327 | scroll.child(62, 15161, 2, 276); scroll.child(63, 15163, 44, 276); scroll.child(64, 15189, 88, 276); scroll.child(65, 15167, 112, 276);//Row 7 | |
| 2328 | scroll.child(66, 15169, 0, 374); scroll.child(67, 15171, 44, 374); scroll.child(68, 15175, 88, 374); scroll.child(69, 15173, 129, 374);//Row 8 | |
| 2329 | scroll.child(70, 18000, 0, 325); scroll.child(71, 17181, 44, 325); scroll.child(72, 15183, 88, 325); scroll.child(73, 15185, 112, 325);//Row 9 | |
| 2330 | scroll.child(74, 15177, 0, 423); scroll.child(75, 15187, 44, 423);//Row 10 | |
| 2331 | scroll.width = 173; | |
| 2332 | scroll.height = 255; | |
| 2333 | scroll.scrollMax = 500; | |
| 2334 | } | |
| 2335 | ||
| 2336 | public static void optionTab(RSFont[] TDA) {
| |
| 2337 | RSInterface Interface = addTabInterface(904); | |
| 2338 | setChildren(46,Interface); | |
| 2339 | addSprite(25801, 0,"Interfaces/OptionTab/OPTION"); | |
| 2340 | addSprite(25802, 1,"Interfaces/OptionTab/OPTION"); | |
| 2341 | addSprite(25803, 1,"Interfaces/OptionTab/OPTION"); | |
| 2342 | addSprite(25804, 1,"Interfaces/OptionTab/OPTION"); | |
| 2343 | setBounds(25801, 49, 17, 0, Interface); | |
| 2344 | setBounds(25802, 49, 54, 1, Interface); | |
| 2345 | setBounds(25803, 49, 90, 2, Interface); | |
| 2346 | setBounds(25804, 49, 127, 3, Interface); | |
| 2347 | AddInterfaceButton(25805, 5, -1, 2, 2, "Interfaces/OptionTab/OPTION", 32, 32, "Adjust Brightness", 166, 1); | |
| 2348 | setBounds(25805, 9, 8, 4, Interface); | |
| 2349 | AddInterfaceButton(25806, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 166, 1); | |
| 2350 | AddInterfaceButton(25807, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 166, 2); | |
| 2351 | AddInterfaceButton(25808, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 166, 3); | |
| 2352 | AddInterfaceButton(25809, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 166, 4); | |
| 2353 | setBounds(25806, 57, 16, 5, Interface); | |
| 2354 | setBounds(25807, 88, 16, 6, Interface); | |
| 2355 | setBounds(25808, 119, 16, 7, Interface); | |
| 2356 | setBounds(25809, 153, 16, 8, Interface); | |
| 2357 | AddInterfaceButton(25810, 5, -1, 3, 4, "Interfaces/OptionTab/OPTION", 32, 32, "Adjust Music Level", 168, 4); | |
| 2358 | setBounds(25810, 9, 45, 9, Interface); | |
| 2359 | AddInterfaceButton(25811, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 168, 4); | |
| 2360 | AddInterfaceButton(25812, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 168, 3); | |
| 2361 | AddInterfaceButton(25813, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 168, 2); | |
| 2362 | AddInterfaceButton(25814, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 168, 1); | |
| 2363 | AddInterfaceButton(25815, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 168, 0); | |
| 2364 | setBounds(25811, 54, 53, 10, Interface); | |
| 2365 | setBounds(25812, 78, 53, 11, Interface); | |
| 2366 | setBounds(25813, 105, 53, 12, Interface); | |
| 2367 | setBounds(25814, 131, 53, 13, Interface); | |
| 2368 | setBounds(25815, 156, 53, 14, Interface); | |
| 2369 | AddInterfaceButton(25816, 5, -1, 5, 6, "Interfaces/OptionTab/OPTION", 32, 32, "Adjust Sounds", 169, 4); | |
| 2370 | setBounds(25816, 9, 81, 15, Interface); | |
| 2371 | AddInterfaceButton(25817, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 169, 4); | |
| 2372 | AddInterfaceButton(25818, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 169, 3); | |
| 2373 | AddInterfaceButton(25819, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 169, 2); | |
| 2374 | AddInterfaceButton(25820, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 169, 1); | |
| 2375 | AddInterfaceButton(25821, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 169, 0); | |
| 2376 | setBounds(25817, 54, 89, 16, Interface); | |
| 2377 | setBounds(25818, 78, 89, 17, Interface); | |
| 2378 | setBounds(25819, 105, 89, 18, Interface); | |
| 2379 | setBounds(25820, 131, 89, 19, Interface); | |
| 2380 | setBounds(25821, 156, 89, 20, Interface); | |
| 2381 | AddInterfaceButton(25822, 5, -1, 7, 8, "Interfaces/OptionTab/OPTION", 32, 32, "Adjust Sound Effects", 400, 0); | |
| 2382 | setBounds(25822, 10, 119, 21, Interface); | |
| 2383 | AddInterfaceButton(25823, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 400, 0); | |
| 2384 | AddInterfaceButton(25824, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 400, 1); | |
| 2385 | AddInterfaceButton(25825, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 400, 2); | |
| 2386 | AddInterfaceButton(25826, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 400, 3); | |
| 2387 | AddInterfaceButton(25827, 5, -1, -1, 18, "Interfaces/OptionTab/OPTION", 16, 16, "Select", 400, 4); | |
| 2388 | setBounds(25823, 54, 126, 22, Interface); | |
| 2389 | setBounds(25824, 78, 126, 23, Interface); | |
| 2390 | setBounds(25825, 105, 126, 24, Interface); | |
| 2391 | setBounds(25826, 131, 126, 25, Interface); | |
| 2392 | setBounds(25827, 156, 126, 26, Interface); | |
| 2393 | AddInterfaceButton(25828, 4, 25829, 10, 9, "Interfaces/OptionTab/OPTION", 40, 40, "Toggle Mouse Buttons", 170, 1); | |
| 2394 | drawTooltip(25829, "Toggle Mouse Buttons"); | |
| 2395 | AddInterfaceButton(25831, 4, 25832, 10, 9, "Interfaces/OptionTab/OPTION", 40, 40, "Toggle Chat Effects", 171, 1); | |
| 2396 | drawTooltip(25832, "Toggle Chat Effects"); | |
| 2397 | AddInterfaceButton(25834, 4, 25835, 10, 9, "Interfaces/OptionTab/OPTION", 40, 40, "Toggle Split-Level Chat", 287, 1); | |
| 2398 | drawTooltip(25835, "Toggle Split-Level Chat"); | |
| 2399 | AddInterfaceButton(25837, 4, 25838, 10, 9, "Interfaces/OptionTab/OPTION", 40, 40, "Toggle Accept Aid", 427, 0); | |
| 2400 | drawTooltip(25838, "Toggle Accept Aid"); | |
| 2401 | AddInterfaceButton(152, 4, 25841, 10, 9, "Interfaces/OptionTab/OPTION", 40, 40, "Toggle Run Mode", 173, 0); | |
| 2402 | drawTooltip(25841, "Toggle Run-Mode"); | |
| 2403 | AddInterfaceButton(25843, 10, 25844, "Interfaces/OptionTab/OPTION", 40, 40, "Setting Tab", 1); | |
| 2404 | drawTooltip(25844, "View more options"); | |
| 2405 | setBounds(25828, 19, 152, 27, Interface); | |
| 2406 | setBounds(25831, 75, 152, 28, Interface); | |
| 2407 | setBounds(25834, 131, 152, 29, Interface); | |
| 2408 | setBounds(25837, 19, 206, 30, Interface); | |
| 2409 | setBounds(152, 75, 206, 31, Interface); | |
| 2410 | setBounds(25843, 131, 206, 32, Interface); | |
| 2411 | setBounds(25857, 78, 159, 33, Interface); | |
| 2412 | setBounds(25858, 136, 158, 34, Interface); | |
| 2413 | setBounds(25859, 23, 212, 35, Interface); | |
| 2414 | setBounds(25860, 86, 210, 36, Interface); | |
| 2415 | setBounds(25861, 136, 211, 37, Interface); | |
| 2416 | setBounds(25856, 23, 159, 38, Interface); | |
| 2417 | setBounds(25829, 19, 125, 40, Interface); | |
| 2418 | setBounds(25832, 78, 125, 41, Interface); | |
| 2419 | setBounds(25835, 71, 125, 42, Interface); | |
| 2420 | setBounds(25838, 19, 185, 43, Interface); | |
| 2421 | setBounds(25841, 78, 185, 44, Interface); | |
| 2422 | setBounds(25844, 85, 185, 39, Interface); | |
| 2423 | addSprite(25856, 11, "Interfaces/OptionTab/OPTION"); | |
| 2424 | addSprite(25857, 12, "Interfaces/OptionTab/OPTION"); | |
| 2425 | addSprite(25858, 13, "Interfaces/OptionTab/OPTION"); | |
| 2426 | addSprite(25859, 14, "Interfaces/OptionTab/OPTION"); | |
| 2427 | addSprite(25860, 15, "Interfaces/OptionTab/OPTION"); | |
| 2428 | addSprite(25861, 17, "Interfaces/OptionTab/OPTION"); | |
| 2429 | addText(149, "100%", 0xFF9800, true, true, 52, TDA, 1); | |
| 2430 | setBounds(149, 94, 230, 45, Interface); | |
| 2431 | } | |
| 2432 | ||
| 2433 | public static void questTab(RSFont[] TDA){
| |
| 2434 | RSInterface Interface = addInterface(638); | |
| 2435 | setChildren(4, Interface); | |
| 2436 | addText(29155, "Quests", 0xFF981F, false, true, 52, TDA, 2); | |
| 2437 | AddInterfaceButton(29156, 1, "Interfaces/QuestTab/QUEST", 18, 18, "archievement tab", 1); | |
| 2438 | addSprite(29157, 0, "Interfaces/QuestTab/QUEST"); | |
| 2439 | setBounds(29155, 10, 5, 0, Interface); | |
| 2440 | setBounds(29156, 165, 5, 1, Interface); | |
| 2441 | setBounds(29157, 3, 24, 2, Interface); | |
| 2442 | setBounds(29160, 5, 29, 3, Interface); | |
| 2443 | Interface = addInterface(29160); | |
| 2444 | Interface.height = 214; | |
| 2445 | Interface.width = 165; | |
| 2446 | Interface.scrollMax = 1700; | |
| 2447 | Interface.newScroller = false; | |
| 2448 | setChildren(105, Interface); | |
| 2449 | addText(29161, "Owner :", 0xFF981F, false, true, 52, TDA, 2); | |
| 2450 | addHoverText(29162, "Rex", "Owners", TDA, 0, 0xff0000, false, true, 150); | |
| 2451 | addText(29163, "Register on :", 0xFF981F, false, true, 52, TDA, 2); | |
| 2452 | addHoverText(29164, "http://Erased-pkz.comyr.com/", "Register", TDA, 0, 0xff0000, false, true, 150); | |
| 2453 | setBounds(29161, 4, 4, 0, Interface); | |
| 2454 | setBounds(29162, 8, 22, 1, Interface); | |
| 2455 | setBounds(29163, 4, 35, 2, Interface); | |
| 2456 | setBounds(29164, 8, 53, 3, Interface); | |
| 2457 | setBounds(663, 4, 67, 4, Interface); | |
| 2458 | int Ypos = 83; | |
| 2459 | int frameID = 5; | |
| 2460 | for(int iD = 29165; iD <= 29264;iD++){
| |
| 2461 | addHoverText(iD, "", "View Quest"/*"View Quest Journal, "+iD*/, TDA, 0, 0xff0000, false, true, 150); | |
| 2462 | setBounds(iD, 8, Ypos, frameID, Interface); | |
| 2463 | frameID++; | |
| 2464 | Ypos += 15; | |
| 2465 | Ypos++; | |
| 2466 | } | |
| 2467 | Interface = addInterface(29265); | |
| 2468 | try {
| |
| 2469 | setChildren(4, Interface); | |
| 2470 | addText(29266, " ", 0xFF981F, false, true, -1, TDA, 2); | |
| 2471 | AddInterfaceButton(29267, 2, "Interfaces/QuestTab/QUEST", 18, 18, "Swap to Quest Diary", 1); | |
| 2472 | addSprite(29269, 0, "Interfaces/QuestTab/QUEST"); | |
| 2473 | setBounds(29266, 10, 5, 0, Interface); | |
| 2474 | setBounds(29267, 165, 5, 1, Interface); | |
| 2475 | setBounds(29269, 3, 24, 2, Interface); | |
| 2476 | setBounds(29268, 5, 29, 3, Interface); | |
| 2477 | Interface = addInterface(29268); | |
| 2478 | Interface.height = 214; | |
| 2479 | Interface.width = 165; | |
| 2480 | Interface.scrollMax = 1700; | |
| 2481 | Interface.newScroller = false; | |
| 2482 | setChildren(20, Interface); | |
| 2483 | setBounds(29295, 8, 4, 0, Interface); | |
| 2484 | setBounds(29296, 8, 16, 1, Interface); | |
| 2485 | setBounds(29297, 8, 29, 2, Interface); | |
| 2486 | setBounds(29298, 8, 42, 3, Interface); | |
| 2487 | setBounds(29299, 8, 54, 4, Interface); | |
| 2488 | setBounds(29300, 8, 66, 5, Interface); | |
| 2489 | setBounds(29301, 8, 78, 6, Interface); | |
| 2490 | setBounds(29302, 8, 90, 7, Interface); | |
| 2491 | setBounds(29303, 8, 102, 8, Interface); | |
| 2492 | setBounds(29304, 8, 114, 9, Interface); | |
| 2493 | setBounds(29305, 8, 126, 10, Interface); | |
| 2494 | setBounds(29306, 8, 138, 11, Interface); | |
| 2495 | setBounds(29307, 8, 150, 12, Interface); | |
| 2496 | setBounds(29308, 8, 162, 13, Interface); | |
| 2497 | setBounds(29309, 8, 174, 14, Interface); | |
| 2498 | setBounds(29310, 8, 186, 15, Interface); | |
| 2499 | setBounds(29311, 8, 198, 16, Interface); | |
| 2500 | setBounds(29312, 8, 210, 17, Interface); | |
| 2501 | setBounds(29313, 8, 222, 18, Interface); | |
| 2502 | setBounds(29314, 8, 234, 19, Interface); | |
| 2503 | addHoverText(29295, "", "", TDA, 0, 0xFF981F, false, true, 150); | |
| 2504 | addHoverText(29296, "", " ", TDA, 0, 0xff0000, false, true, 150); | |
| 2505 | addHoverText(29297, "", " ", TDA, 0, 0xff0000, false, true, 150); | |
| 2506 | addHoverText(29298, "", " ", TDA, 0, 0xff0000, false, true, 150); | |
| 2507 | addHoverText(29299, "", " ", TDA, 0, 0xff0000, false, true, 150); | |
| 2508 | addHoverText(29300, "", "", TDA, 0, 0xff0000, false, true, 150); | |
| 2509 | addHoverText(29301, "", "", TDA, 0, 0xFF981F, false, true, 150); | |
| 2510 | addHoverText(29302, "", " ", TDA, 0, 0xff0000, false, true, 150); | |
| 2511 | addHoverText(29303, "", " ", TDA, 0, 0xff0000, false, true, 150); | |
| 2512 | addHoverText(29304, "", " ", TDA, 0, 0xff0000, false, true, 150); | |
| 2513 | addHoverText(29305, "", "", TDA, 0, 0xff0000, false, true, 150); | |
| 2514 | addHoverText(29306, "", "", TDA, 0, 0xFF981F, false, true, 150); | |
| 2515 | addHoverText(29307, "", " ", TDA, 0, 0xff0000, false, true, 150); | |
| 2516 | addHoverText(29308, "", " ", TDA, 0, 0xff0000, false, true, 150); | |
| 2517 | addHoverText(29309, "", " ", TDA, 0, 0xff0000, false, true, 150); | |
| 2518 | addHoverText(29310, "", " ", TDA, 0, 0xff0000, false, true, 150); | |
| 2519 | addHoverText(29311, "", " ", TDA, 0, 0xff0000, false, true, 150); | |
| 2520 | addHoverText(29312, " ", " ", TDA, 0, 0xff0000, false, true, 150); | |
| 2521 | addHoverText(29313, "", "", TDA, 0, 0xff0000, false, true, 150); | |
| 2522 | addHoverText(29314, "", "", TDA, 0, 0xff0000, false, true, 150); | |
| 2523 | } catch(Exception e){
| |
| 2524 | e.printStackTrace(); | |
| 2525 | } | |
| 2526 | } | |
| 2527 | public static void clanChatTab(RSFont[] tda) {
| |
| 2528 | RSInterface tab = addTabInterface(18128); | |
| 2529 | addHoverButton(18129, "Interfaces/Clan Chat/SPRITE", 6, 72, 32, "Join Chat", 550, 18130, 1); | |
| 2530 | addHoveredButton(18130, "Interfaces/Clan Chat/SPRITE", 7, 72, 32, 18131); | |
| 2531 | addHoverButton(18132, "Interfaces/Clan Chat/SPRITE", 6, 72, 32, "Leave Chat", -1, 18133, 5); | |
| 2532 | addHoveredButton(18133, "Interfaces/Clan Chat/SPRITE", 7, 72, 32, 18134); | |
| 2533 | AddInterfaceButtons(18250, 0, "Interfaces/Clan Chat/Lootshare", "Toggle LS/CS", 18251, 1); | |
| 2534 | drawTooltip(18251, "Toggle-LS/CS"); | |
| 2535 | addText(18135, "Join Chat", tda, 0, 0xff9b00, true, true); | |
| 2536 | addText(18136, "Leave Chat", tda, 0, 0xff9b00, true, true); | |
| 2537 | addSprite(18137, 37, "Interfaces/Clan Chat/SPRITE"); | |
| 2538 | addText(18138, "Clan Chat", tda, 1, 0xff9b00, true, true); | |
| 2539 | addText(18139, "Talking in: Not in chat", tda, 0, 0xff9b00, false, true); | |
| 2540 | addText(18140, "Owner: None", tda, 0, 0xff9b00, false, true); | |
| 2541 | tab.totalChildren(13); | |
| 2542 | tab.child(0, 18137, 3, 57); | |
| 2543 | tab.child(1, 18143, 7, 62); | |
| 2544 | tab.child(2, 18129, 15, 227); | |
| 2545 | tab.child(3, 18130, 15, 227); | |
| 2546 | tab.child(4, 18132, 103, 226); | |
| 2547 | tab.child(5, 18133, 103, 226); | |
| 2548 | tab.child(6, 18135, 51, 238); | |
| 2549 | tab.child(7, 18136, 139, 238); | |
| 2550 | tab.child(8, 18138, 95, 3); | |
| 2551 | tab.child(9, 18139, 10, 23); | |
| 2552 | tab.child(10, 18140, 25, 38); | |
| 2553 | tab.child(11, 18250, 148, 24); | |
| 2554 | tab.child(12, 18251, 74, 60); | |
| 2555 | /* Text area */ | |
| 2556 | RSInterface list = addTabInterface(18143); | |
| 2557 | list.totalChildren(100); | |
| 2558 | for(int i = 18144; i <= 18244; i++) {
| |
| 2559 | addText(i, "", tda, 0, 0xffffff, false, true); | |
| 2560 | } | |
| 2561 | for(int id = 18144, i = 0; id <= 18243 && i <= 99; id++, i++) {
| |
| 2562 | list.children[i] = id; list.childX[i] = 5; | |
| 2563 | for(int id2 = 18144, i2 = 1; id2 <= 18243 && i2<= 99; id2++, i2++) {
| |
| 2564 | list.childY[0] = 2; | |
| 2565 | list.childY[i2] = list.childY[i2 - 1] + 14; | |
| 2566 | } | |
| 2567 | } | |
| 2568 | list.height = 152; | |
| 2569 | list.width = 164; | |
| 2570 | list.scrollMax = 1405; | |
| 2571 | } | |
| 2572 | ||
| 2573 | public static void Pestpanel(RSFont[] tda) {
| |
| 2574 | RSInterface RSinterface = addTab(21005); | |
| 2575 | addText(21006, "Next Departure:", 0xCCCBCB, false, true, 52, tda, 1); | |
| 2576 | addText(21007, "Players Ready:", 0x5BD230, false, true, 52, tda, 1); | |
| 2577 | addText(21008, "(Need 5 to 25 players)", 0xDED36A, false, true, 52, tda, 1); | |
| 2578 | addText(21009, "Pest Points:", 0x99FFFF, false, true, 52, tda, 1); | |
| 2579 | int last = 4; | |
| 2580 | RSinterface.children = new int[last]; | |
| 2581 | RSinterface.childX = new int[last]; | |
| 2582 | RSinterface.childY = new int[last]; | |
| 2583 | setBounds(21006, 15, 12, 0,RSinterface); | |
| 2584 | setBounds(21007, 15, 30, 1,RSinterface); | |
| 2585 | setBounds(21008, 15, 48, 2,RSinterface); | |
| 2586 | setBounds(21009, 15, 66, 3,RSinterface); | |
| 2587 | } | |
| 2588 | ||
| 2589 | public static void Pestpanel2(RSFont[] tda) {
| |
| 2590 | RSInterface RSinterface = addInterface(21100); | |
| 2591 | addSprite(21101, 0, "Interfaces/Pest Control/PEST1"); | |
| 2592 | addSprite(21102, 1, "Interfaces/Pest Control/PEST1"); | |
| 2593 | addSprite(21103, 2, "Interfaces/Pest Control/PEST1"); | |
| 2594 | addSprite(21104, 3, "Interfaces/Pest Control/PEST1"); | |
| 2595 | addSprite(21105, 4, "Interfaces/Pest Control/PEST1"); | |
| 2596 | addSprite(21106, 5, "Interfaces/Pest Control/PEST1"); | |
| 2597 | addText(21107, "", 0xCC00CC, false, true, 52, tda, 1); | |
| 2598 | addText(21108, "", 0x0000FF, false, true, 52, tda, 1); | |
| 2599 | addText(21109, "", 0xFFFF44, false, true, 52, tda, 1); | |
| 2600 | addText(21110, "", 0xCC0000, false, true, 52, tda, 1); | |
| 2601 | addText(21111, "", 0x99FF33, false, true, 52, tda, 1);//w purp | |
| 2602 | addText(21112, "", 0x99FF33, false, true, 52, tda, 1);//e blue | |
| 2603 | addText(21113, "", 0x99FF33, false, true, 52, tda, 1);//se yel | |
| 2604 | addText(21114, "", 0x99FF33, false, true, 52, tda, 1);//sw red | |
| 2605 | addText(21115, "200", 0x99FF33, false, true, 52, tda, 1);//attacks | |
| 2606 | addText(21116, "", 0x99FF33, false, true, 52, tda, 1);//knights hp | |
| 2607 | addText(21117, "Time Remaining:", 0xFFFFFF, false, true, 52, tda, 0); | |
| 2608 | addText(21118, "", 0xFFFFFF, false, true, 52, tda, 0); | |
| 2609 | int last = 18; | |
| 2610 | RSinterface.children = new int[last]; | |
| 2611 | RSinterface.childX = new int[last]; | |
| 2612 | RSinterface.childY = new int[last]; | |
| 2613 | setBounds(21101, 361, 26, 0,RSinterface); | |
| 2614 | setBounds(21102, 396, 26, 1,RSinterface); | |
| 2615 | setBounds(21103, 436, 26, 2,RSinterface); | |
| 2616 | setBounds(21104, 474, 26, 3,RSinterface); | |
| 2617 | setBounds(21105, 3, 21, 4,RSinterface); | |
| 2618 | setBounds(21106, 3, 50, 5,RSinterface); | |
| 2619 | setBounds(21107, 371, 60, 6,RSinterface); | |
| 2620 | setBounds(21108, 409, 60, 7,RSinterface); | |
| 2621 | setBounds(21109, 443, 60, 8,RSinterface); | |
| 2622 | setBounds(21110, 479, 60, 9,RSinterface); | |
| 2623 | setBounds(21111, 362, 10, 10,RSinterface); | |
| 2624 | setBounds(21112, 398, 10, 11,RSinterface); | |
| 2625 | setBounds(21113, 436, 10, 12,RSinterface); | |
| 2626 | setBounds(21114, 475, 10, 13,RSinterface); | |
| 2627 | setBounds(21115, 32, 32, 14,RSinterface); | |
| 2628 | setBounds(21116, 32, 62, 15,RSinterface); | |
| 2629 | setBounds(21117, 8, 88, 16,RSinterface); | |
| 2630 | setBounds(21118, 87, 88, 17,RSinterface); | |
| 2631 | } | |
| 2632 | ||
| 2633 | int textLines = 162; | |
| 2634 | int[] musicText = {4287, 4288, 4289, 4290, 4291, 4292, 4293, 4294, 4295, 4296, 4297, 4298, 4299, 4300, 4301, 4302, 4303, 4304, 8971, 4306, 4307, 4308, 4309, 4310, 4311, 8972, 4313, 4314, 4315, 4316, 4317, 8973, 4319, 4320, 4321, 8974, 4323, 4324, 4325, 4326, 4327, 4328, 4329, 4330, 4331, 4332, 4333, 4334, 4335, 4336, 4337, 4338, 4339, 4340, 4341, 4342, 4343, 4344, 4345, 4346, 4347, 4348, 4349, 4350, 4351, 4352, 4353, 4354, 4355, 4356, 4357, 4358, 4359, 4360, 4361, 4362, 8975, 4364, 4365, 4366, 4367, 4368, 4369, 4370, 4371, 4372, 4373, 4374, 4375, 4376, 4377, 4378, 4379, 4380, 8976, 4382, 4383, 4384, 4385, 4386, 4837, 4388, 12840, 8977, 8978, 4392, 4393, 4394, 4395, 4396, 4397, 4398, 4399, 8979, 4401, 4402, 4403, 4404, 4405, 4406, 4407, 4408, 4409, 4410, 4411, 4412, 4413, 4414, 4415, 4418, 7382, 4420, 4421, 4422, 4423, 4424, 4425, 4426, 13713, 4427, 4428, 4429, 4430, 4431, 4432, 4433, 4434, 4435, 4436, 4437, 5449, 4441, 5988, 5989, 5990, 6185, 6297, 961, 6842, 6843, 1883, 1890};
| |
| 2635 | public static void musicTab(RSFont[] TDA) {
| |
| 2636 | RSInterface Interface = addInterface(29500); | |
| 2637 | addText(29501, "Playing:", 0xFF981F, false, true, 52,TDA, 1); | |
| 2638 | addText(29502, "Attack", 0x33ff00, false, true, 52,TDA, 1); | |
| 2639 | setChildren(3, Interface); | |
| 2640 | setBounds(29501, 8, 13, 0, Interface); | |
| 2641 | setBounds(29502, 8, 33, 1, Interface); | |
| 2642 | setBounds(962, 0, 0, 2, Interface); | |
| 2643 | Interface = interfaceCache[962]; | |
| 2644 | addText(963, "", 0xff9b00, false, true, 52,TDA, 1); | |
| 2645 | addText(8934, "", 0xFF981F, false, true, 52,TDA, 1); | |
| 2646 | addText(6272, "AUTO", 0xFF981F, false, true, 52,TDA, 1); | |
| 2647 | addText(6271, "MAN", 0xFF981F, false, true, 52,TDA, 1); | |
| 2648 | addText(9926, "LOOP", 0xFF981F, false, true, 52,TDA, 1); | |
| 2649 | addText(5450, "", 0x33ff00, false, true, 52,TDA, 1); | |
| 2650 | addText(4439, "", 0xFF981F, false, true, 52,TDA, 1); | |
| 2651 | addText(3206, "Click the tune to play", 0xFF981F, false, true, 52,TDA, 1); | |
| 2652 | } | |
| 2653 | ||
| 2654 | public static int boxIds[] = {
| |
| 2655 | 4041, 4077, 4113, 4047, 4083, 4119, 4053, 4089, 4125, 4059, 4095, | |
| 2656 | 4131, 4065, 4101, 4137, 4071, 4107, 4143, 4154, 12168, 13918 | |
| 2657 | }; | |
| 2658 | ||
| 2659 | /* OLD WITHOUT HUNTER AND SUMMONING | |
| 2660 | ||
| 2661 | public static void skillInterface(RSFont[] wid) {
| |
| 2662 | skillInterface(19746, 255); | |
| 2663 | skillInterface(19749, 53); | |
| 2664 | addText(13984, "Total", wid, 0, 0xFFEE33); | |
| 2665 | //addText(13984, "Total", wid, 0, 0xFFEE33, false, true); | |
| 2666 | addText(3985, "", wid, 0, 0xFFEE33); | |
| 2667 | addText(13983, "Level: 2277", wid, 0, 0xFFEE33, true, true); | |
| 2668 | for(int k = 0; k < boxIds.length; k++) {
| |
| 2669 | skillInterface(boxIds[k], 256); | |
| 2670 | } | |
| 2671 | RSInterface rsinterface = addTab(3917); | |
| 2672 | rsinterface.children = new int[57]; rsinterface.childX = new int[57]; rsinterface.childY = new int[57]; | |
| 2673 | rsinterface.children[0] = 3918; rsinterface.childX[0] = 0; rsinterface.childY[0] = 0; | |
| 2674 | rsinterface.children[1] = 3925; rsinterface.childX[1] = 0; rsinterface.childY[1] = 31; | |
| 2675 | rsinterface.children[2] = 3932; rsinterface.childX[2] = 0; rsinterface.childY[2] = 62; | |
| 2676 | rsinterface.children[3] = 3939; rsinterface.childX[3] = 0; rsinterface.childY[3] = 93; | |
| 2677 | rsinterface.children[4] = 3946; rsinterface.childX[4] = 0; rsinterface.childY[4] = 124; | |
| 2678 | rsinterface.children[5] = 3953; rsinterface.childX[5] = 0; rsinterface.childY[5] = 155; | |
| 2679 | rsinterface.children[6] = 4148; rsinterface.childX[6] = 0; rsinterface.childY[6] = 186; | |
| 2680 | rsinterface.children[7] = 19746; rsinterface.childX[7] = 70; rsinterface.childY[7] = 69; | |
| 2681 | //rsinterface.children[8] = 19748; rsinterface.childX[8] = 1; rsinterface.childY[8] = 219; | |
| 2682 | //rsinterface.children[9] = 19747; rsinterface.childX[9] = 64; rsinterface.childY[9] = 219; | |
| 2683 | rsinterface.children[8] = 14000; rsinterface.childX[8] = 10; rsinterface.childY[8] = 219; | |
| 2684 | rsinterface.children[9] = 19749; rsinterface.childX[9] = 33; rsinterface.childY[9] = 223; | |
| 2685 | rsinterface.children[10] = 13983; rsinterface.childX[10] = 95; rsinterface.childY[10] = 240; | |
| 2686 | rsinterface.children[11] = 3984; rsinterface.childX[11] = 300; rsinterface.childY[11] = 225; | |
| 2687 | rsinterface.children[12] = 3985; rsinterface.childX[12] = 130; rsinterface.childY[12] = 238; | |
| 2688 | //rsinterface.children[13] = 29800; rsinterface.childX[13] = 98; rsinterface.childY[13] = 220; | |
| 2689 | //rsinterface.children[14] = 29800; rsinterface.childX[14] = 107; rsinterface.childY[14] = 235; | |
| 2690 | //rsinterface.children[15] = 29801; rsinterface.childX[15] = 36; rsinterface.childY[15] = 220; | |
| 2691 | //rsinterface.children[16] = 29801; rsinterface.childX[16] = 45; rsinterface.childY[16] = 235; | |
| 2692 | rsinterface.children[13] = 4040; rsinterface.childX[13] = 5; rsinterface.childY[13] = 20; | |
| 2693 | rsinterface.children[14] = 8654; rsinterface.childX[14] = 0; rsinterface.childY[14] = 2; | |
| 2694 | rsinterface.children[15] = 8655; rsinterface.childX[15] = 64; rsinterface.childY[15] = 2; | |
| 2695 | rsinterface.children[16] = 4076; rsinterface.childX[16] = 20; rsinterface.childY[16] = 20; | |
| 2696 | rsinterface.children[17] = 8656; rsinterface.childX[17] = 128; rsinterface.childY[17] = 2; | |
| 2697 | rsinterface.children[18] = 4112; rsinterface.childX[18] = 20; rsinterface.childY[18] = 20; | |
| 2698 | rsinterface.children[19] = 8657; rsinterface.childX[19] = 0; rsinterface.childY[19] = 33; | |
| 2699 | rsinterface.children[20] = 4046; rsinterface.childX[20] = 20; rsinterface.childY[20] = 50; | |
| 2700 | rsinterface.children[21] = 8658; rsinterface.childX[21] = 64; rsinterface.childY[21] = 33; | |
| 2701 | rsinterface.children[22] = 4082; rsinterface.childX[22] = 20; rsinterface.childY[22] = 50; | |
| 2702 | rsinterface.children[23] = 8659; rsinterface.childX[23] = 128; rsinterface.childY[23] = 33; | |
| 2703 | rsinterface.children[24] = 4118; rsinterface.childX[24] = 20; rsinterface.childY[24] = 50; | |
| 2704 | rsinterface.children[25] = 8660; rsinterface.childX[25] = 0; rsinterface.childY[25] = 60+10; | |
| 2705 | rsinterface.children[26] = 4052; rsinterface.childX[26] = 20; rsinterface.childY[26] = 83; | |
| 2706 | rsinterface.children[27] = 8661; rsinterface.childX[27] = 65; rsinterface.childY[27] = 60+10; | |
| 2707 | rsinterface.children[28] = 4088; rsinterface.childX[28] = 20; rsinterface.childY[28] = 83; | |
| 2708 | rsinterface.children[29] = 8662; rsinterface.childX[29] = 130; rsinterface.childY[29] = 60+10; | |
| 2709 | rsinterface.children[30] = 4124; rsinterface.childX[30] = 20; rsinterface.childY[30] = 83; | |
| 2710 | rsinterface.children[31] = 8663; rsinterface.childX[31] = 0; rsinterface.childY[31] = 90+10; | |
| 2711 | rsinterface.children[32] = 4058; rsinterface.childX[32] = 20; rsinterface.childY[32] = 120; | |
| 2712 | rsinterface.children[33] = 8664; rsinterface.childX[33] = 65; rsinterface.childY[33] = 90+10; | |
| 2713 | rsinterface.children[34] = 4094; rsinterface.childX[34] = 20; rsinterface.childY[34] = 120; | |
| 2714 | rsinterface.children[35] = 8665; rsinterface.childX[35] = 130; rsinterface.childY[35] = 90+10; | |
| 2715 | rsinterface.children[36] = 4130; rsinterface.childX[36] = 20; rsinterface.childY[36] = 120; | |
| 2716 | rsinterface.children[37] = 8666; rsinterface.childX[37] = 0; rsinterface.childY[37] = 130; | |
| 2717 | rsinterface.children[38] = 4064; rsinterface.childX[38] = 20; rsinterface.childY[38] = 150; | |
| 2718 | rsinterface.children[39] = 8667; rsinterface.childX[39] = 65; rsinterface.childY[39] = 130; | |
| 2719 | rsinterface.children[40] = 4100; rsinterface.childX[40] = 20; rsinterface.childY[40] = 150; | |
| 2720 | rsinterface.children[41] = 8668; rsinterface.childX[41] = 130; rsinterface.childY[41] = 130; | |
| 2721 | rsinterface.children[42] = 4136; rsinterface.childX[42] = 20; rsinterface.childY[42] = 150; | |
| 2722 | rsinterface.children[43] = 8669; rsinterface.childX[43] = 0; rsinterface.childY[43] = 160; | |
| 2723 | rsinterface.children[44] = 4070; rsinterface.childX[44] = 20; rsinterface.childY[44] = 180; | |
| 2724 | rsinterface.children[45] = 8670; rsinterface.childX[45] = 65; rsinterface.childY[45] = 160; | |
| 2725 | rsinterface.children[46] = 4106; rsinterface.childX[46] = 20; rsinterface.childY[46] = 180; | |
| 2726 | rsinterface.children[47] = 8671; rsinterface.childX[47] = 130; rsinterface.childY[47] = 160; | |
| 2727 | rsinterface.children[48] = 4142; rsinterface.childX[48] = 20; rsinterface.childY[48] = 180; | |
| 2728 | rsinterface.children[49] = 8672; rsinterface.childX[49] = 0; rsinterface.childY[49] = 190; | |
| 2729 | rsinterface.children[50] = 4160; rsinterface.childX[50] = 20; rsinterface.childY[50] = 150; | |
| 2730 | rsinterface.children[51] = 4160; rsinterface.childX[51] = 20; rsinterface.childY[51] = 150; | |
| 2731 | rsinterface.children[52] = 12162; rsinterface.childX[52] = 65; rsinterface.childY[52] = 190; | |
| 2732 | rsinterface.children[53] = 2832; rsinterface.childX[53] = 20; rsinterface.childY[53] = 150; | |
| 2733 | rsinterface.children[54] = 13928; rsinterface.childX[54] = 130; rsinterface.childY[54] = 190; | |
| 2734 | rsinterface.children[55] = 13917; rsinterface.childX[55] = 20; rsinterface.childY[55] = 150; | |
| 2735 | rsinterface.children[56] = 13984; rsinterface.childX[56] = 82; rsinterface.childY[56] = 227; | |
| 2736 | } | |
| 2737 | ||
| 2738 | */ | |
| 2739 | ||
| 2740 | public static void skillInterface(RSFont[] wid) {
| |
| 2741 | //RSInterface Interface = addTab(3917); | |
| 2742 | int index = 0; | |
| 2743 | skillInterface(19746, 255); | |
| 2744 | //skillInterface(19747, 51); | |
| 2745 | //skillInterface(19748, 50); | |
| 2746 | skillInterface(19749, 52); | |
| 2747 | addText(29801, "1", wid, 0, 0xFFEE33); //Summoning | |
| 2748 | addText(29800, "1", wid, 0, 0xFFEE33); //Hunter | |
| 2749 | ||
| 2750 | AddInterfaceButton(19747, 51, 27700, "Interfaces/Skill/Skill", 62, 32, "View @or1@Hunter @whi@guide", 1); | |
| 2751 | AddInterfaceButton(19748, 50, 27701, "Interfaces/Skill/Skill", 62, 32, "View @or1@Summoning @whi@guide", 1); | |
| 2752 | /* | |
| 2753 | drawTooltip(27700, "Toggle the current\ngameframe"); | |
| 2754 | drawTooltip(27701, "Toggle the current\ngameframe"); | |
| 2755 | ||
| 2756 | setChildren(3, Interface); | |
| 2757 | setBounds(27700, 43, 140, index, Interface);index++; | |
| 2758 | setBounds(27701, 43, 140, index, Interface);index++; | |
| 2759 | */ | |
| 2760 | ||
| 2761 | addText(13984, "Total", wid, 0, 0xFFEE33); | |
| 2762 | //addText(13984, "Total", wid, 0, 0xFFEE33, false, true); | |
| 2763 | addText(3985, "", wid, 0, 0xFFEE33); | |
| 2764 | addText(13983, "Level: 2277", wid, 0, 0xFFEE33, true, true); | |
| 2765 | for(int k = 0; k < boxIds.length; k++) {
| |
| 2766 | skillInterface(boxIds[k], 256); | |
| 2767 | } | |
| 2768 | RSInterface rsinterface = addTab(3917); | |
| 2769 | rsinterface.children = new int[63]; rsinterface.childX = new int[63]; rsinterface.childY = new int[63]; | |
| 2770 | rsinterface.children[0] = 3918; rsinterface.childX[0] = 0; rsinterface.childY[0] = 0; | |
| 2771 | rsinterface.children[1] = 3925; rsinterface.childX[1] = 0; rsinterface.childY[1] = 31; | |
| 2772 | rsinterface.children[2] = 3932; rsinterface.childX[2] = 0; rsinterface.childY[2] = 62; | |
| 2773 | rsinterface.children[3] = 3939; rsinterface.childX[3] = 0; rsinterface.childY[3] = 93; | |
| 2774 | rsinterface.children[4] = 3946; rsinterface.childX[4] = 0; rsinterface.childY[4] = 124; | |
| 2775 | rsinterface.children[5] = 3953; rsinterface.childX[5] = 0; rsinterface.childY[5] = 155; | |
| 2776 | rsinterface.children[6] = 4148; rsinterface.childX[6] = 0; rsinterface.childY[6] = 186; | |
| 2777 | rsinterface.children[7] = 19746; rsinterface.childX[7] = 70; rsinterface.childY[7] = 69; | |
| 2778 | rsinterface.children[8] = 19748; rsinterface.childX[8] = 1; rsinterface.childY[8] = 219; | |
| 2779 | rsinterface.children[9] = 19747; rsinterface.childX[9] = 64; rsinterface.childY[9] = 219; | |
| 2780 | rsinterface.children[10] = 14000; rsinterface.childX[10] = 10; rsinterface.childY[10] = 219; | |
| 2781 | rsinterface.children[11] = 19749; rsinterface.childX[11] = 128; rsinterface.childY[11] = 220; | |
| 2782 | rsinterface.children[12] = 13983; rsinterface.childX[12] = 158; rsinterface.childY[12] = 238; | |
| 2783 | rsinterface.children[13] = 3984; rsinterface.childX[13] = 300; rsinterface.childY[13] = 225; | |
| 2784 | rsinterface.children[14] = 3985; rsinterface.childX[14] = 130; rsinterface.childY[14] = 238; | |
| 2785 | rsinterface.children[15] = 29800; rsinterface.childX[15] = 98; rsinterface.childY[15] = 220; | |
| 2786 | rsinterface.children[16] = 29800; rsinterface.childX[16] = 107; rsinterface.childY[16] = 235; | |
| 2787 | rsinterface.children[17] = 29801; rsinterface.childX[17] = 36; rsinterface.childY[17] = 220; | |
| 2788 | rsinterface.children[18] = 29801; rsinterface.childX[18] = 45; rsinterface.childY[18] = 235; | |
| 2789 | rsinterface.children[19] = 4040; rsinterface.childX[19] = 5; rsinterface.childY[19] = 20; | |
| 2790 | rsinterface.children[20] = 8654; rsinterface.childX[20] = 0; rsinterface.childY[20] = 2; | |
| 2791 | rsinterface.children[21] = 8655; rsinterface.childX[21] = 64; rsinterface.childY[21] = 2; | |
| 2792 | rsinterface.children[22] = 4076; rsinterface.childX[22] = 20; rsinterface.childY[22] = 20; | |
| 2793 | rsinterface.children[23] = 8656; rsinterface.childX[23] = 128; rsinterface.childY[23] = 2; | |
| 2794 | rsinterface.children[24] = 4112; rsinterface.childX[24] = 20; rsinterface.childY[24] = 20; | |
| 2795 | rsinterface.children[25] = 8657; rsinterface.childX[25] = 0; rsinterface.childY[25] = 33; | |
| 2796 | rsinterface.children[26] = 4046; rsinterface.childX[26] = 20; rsinterface.childY[26] = 50; | |
| 2797 | rsinterface.children[27] = 8658; rsinterface.childX[27] = 64; rsinterface.childY[27] = 33; | |
| 2798 | rsinterface.children[28] = 4082; rsinterface.childX[28] = 20; rsinterface.childY[28] = 50; | |
| 2799 | rsinterface.children[29] = 8659; rsinterface.childX[29] = 128; rsinterface.childY[29] = 33; | |
| 2800 | rsinterface.children[30] = 4118; rsinterface.childX[30] = 20; rsinterface.childY[30] = 50; | |
| 2801 | rsinterface.children[31] = 8660; rsinterface.childX[31] = 0; rsinterface.childY[31] = 60+10; | |
| 2802 | rsinterface.children[32] = 4052; rsinterface.childX[32] = 20; rsinterface.childY[32] = 83; | |
| 2803 | rsinterface.children[33] = 8661; rsinterface.childX[33] = 65; rsinterface.childY[33] = 60+10; | |
| 2804 | rsinterface.children[34] = 4088; rsinterface.childX[34] = 20; rsinterface.childY[34] = 83; | |
| 2805 | rsinterface.children[35] = 8662; rsinterface.childX[35] = 130; rsinterface.childY[35] = 60+10; | |
| 2806 | rsinterface.children[36] = 4124; rsinterface.childX[36] = 20; rsinterface.childY[36] = 83; | |
| 2807 | rsinterface.children[37] = 8663; rsinterface.childX[37] = 0; rsinterface.childY[37] = 90+10; | |
| 2808 | rsinterface.children[38] = 4058; rsinterface.childX[38] = 20; rsinterface.childY[38] = 120; | |
| 2809 | rsinterface.children[39] = 8664; rsinterface.childX[39] = 65; rsinterface.childY[39] = 90+10; | |
| 2810 | rsinterface.children[40] = 4094; rsinterface.childX[40] = 20; rsinterface.childY[40] = 120; | |
| 2811 | rsinterface.children[41] = 8665; rsinterface.childX[41] = 130; rsinterface.childY[41] = 90+10; | |
| 2812 | rsinterface.children[42] = 4130; rsinterface.childX[42] = 20; rsinterface.childY[42] = 120; | |
| 2813 | rsinterface.children[43] = 8666; rsinterface.childX[43] = 0; rsinterface.childY[43] = 130; | |
| 2814 | rsinterface.children[44] = 4064; rsinterface.childX[44] = 20; rsinterface.childY[44] = 150; | |
| 2815 | rsinterface.children[45] = 8667; rsinterface.childX[45] = 65; rsinterface.childY[45] = 130; | |
| 2816 | rsinterface.children[46] = 4100; rsinterface.childX[46] = 20; rsinterface.childY[46] = 150; | |
| 2817 | rsinterface.children[47] = 8668; rsinterface.childX[47] = 130; rsinterface.childY[47] = 130; | |
| 2818 | rsinterface.children[48] = 4136; rsinterface.childX[48] = 20; rsinterface.childY[48] = 150; | |
| 2819 | rsinterface.children[49] = 8669; rsinterface.childX[49] = 0; rsinterface.childY[49] = 160; | |
| 2820 | rsinterface.children[50] = 4070; rsinterface.childX[50] = 20; rsinterface.childY[50] = 180; | |
| 2821 | rsinterface.children[51] = 8670; rsinterface.childX[51] = 65; rsinterface.childY[51] = 160; | |
| 2822 | rsinterface.children[52] = 4106; rsinterface.childX[52] = 20; rsinterface.childY[52] = 180; | |
| 2823 | rsinterface.children[53] = 8671; rsinterface.childX[53] = 130; rsinterface.childY[53] = 160; | |
| 2824 | rsinterface.children[54] = 4142; rsinterface.childX[54] = 20; rsinterface.childY[54] = 180; | |
| 2825 | rsinterface.children[55] = 8672; rsinterface.childX[55] = 0; rsinterface.childY[55] = 190; | |
| 2826 | rsinterface.children[56] = 4160; rsinterface.childX[56] = 20; rsinterface.childY[56] = 150; | |
| 2827 | rsinterface.children[57] = 4160; rsinterface.childX[57] = 20; rsinterface.childY[57] = 150; | |
| 2828 | rsinterface.children[58] = 12162; rsinterface.childX[58] = 65; rsinterface.childY[58] = 190; | |
| 2829 | rsinterface.children[59] = 2832; rsinterface.childX[59] = 20; rsinterface.childY[59] = 150; | |
| 2830 | rsinterface.children[60] = 13928; rsinterface.childX[60] = 130; rsinterface.childY[60] = 190; | |
| 2831 | rsinterface.children[61] = 13917; rsinterface.childX[61] = 20; rsinterface.childY[61] = 150; | |
| 2832 | rsinterface.children[62] = 13984; rsinterface.childX[62] = 145; rsinterface.childY[62] = 225; | |
| 2833 | } | |
| 2834 | ||
| 2835 | public static void extraEquipment(RSFont[] TDA) {
| |
| 2836 | RSInterface rsi = addInterface(27620); | |
| 2837 | AddInterfaceButton(27621, 3, "Interfaces/Equipment/BOX", "Killcount", 27640, 1, 40, 39); | |
| 2838 | addTooltip(27640, "Full Killcount"); | |
| 2839 | AddInterfaceButton(27622, 4, "Interfaces/Equipment/BOX", "Change your spellbook", 27642, 1, 40, 39); | |
| 2840 | addTooltip(27642, "Switch spellbook"); | |
| 2841 | AddInterfaceButton(27623, 5, "Interfaces/Equipment/BOX", "Donator Zone", 27644, 1, 40, 39); | |
| 2842 | addTooltip(27644, "Teleport to Donator-Zone!"); | |
| 2843 | addText(27624, "Information:", 0xFF981F, false, true, 52, TDA, 2); | |
| 2844 | addSprite(27634, 0, "Interfaces/Options/LINE"); | |
| 2845 | addText(27625, "Full Killcount:", 0xFF981F, false, true, 52, TDA, 2); | |
| 2846 | addText(27647, "Get 25 Killcount", 0xFF981F, false, true, 52, TDA, 0); | |
| 2847 | addText(27626, "INSTANT in Godwars", 0xFF981F, false, true, 52, TDA, 0); | |
| 2848 | addText(27627, "To enter a chamber.", 0xFF981F, false, true, 52, TDA, 0); | |
| 2849 | addText(27628, "Spellbook change:", 0xFF981F, false, true, 52, TDA, 2); | |
| 2850 | addText(27629, "Change your Spellbook", 0xFF981F, false, true, 52, TDA, 0); | |
| 2851 | addText(27630, "anywhere ingame", 0xFF981F, false, true, 52, TDA, 0); | |
| 2852 | addText(27631, "but in the wilderness.", 0xFF981F, false, true, 52, TDA, 0); | |
| 2853 | addText(27632, "Donator Zone:", 0xFF981F, false, true, 52, TDA, 2); | |
| 2854 | addText(27633, "Has lots of good benefits.", 0xFF981F, false, true, 52, TDA, 0); | |
| 2855 | addText(27636, "Go Back", 0xFF981F, false, true, 52, TDA, 0); | |
| 2856 | AddInterfaceButton(27635, 7, "Interfaces/Equipment/BOX", "Back", -1, 1, 71, 23); | |
| 2857 | addTooltip(27648, "Go back"); | |
| 2858 | int last = 21; | |
| 2859 | int frame = 0; | |
| 2860 | setChildren(last, rsi); | |
| 2861 | /** Buttons + text */ | |
| 2862 | setBounds(27621, 5, 5, frame, rsi);frame++; | |
| 2863 | setBounds(27622, 75, 5, frame, rsi);frame++; | |
| 2864 | setBounds(27623, 145, 5, frame, rsi);frame++; | |
| 2865 | setBounds(27635, 55, 235, frame, rsi);frame++; | |
| 2866 | setBounds(27636, 70, 240, frame, rsi);frame++; | |
| 2867 | setBounds(27634, 0, 62, frame, rsi);frame++; | |
| 2868 | setBounds(27624, 55, 46, frame, rsi);frame++; | |
| 2869 | setBounds(27625, 15, 65, frame, rsi);frame++; | |
| 2870 | setBounds(27647, 20, 80, frame, rsi);frame++; | |
| 2871 | setBounds(27626, 20, 95, frame, rsi); frame++; | |
| 2872 | setBounds(27627, 20, 110, frame, rsi); frame++; | |
| 2873 | setBounds(27628, 15, 125, frame, rsi); frame++; | |
| 2874 | setBounds(27629, 20, 140, frame, rsi); frame++; | |
| 2875 | setBounds(27630, 20, 155, frame, rsi); frame++; | |
| 2876 | setBounds(27631, 20, 170, frame, rsi); frame++; | |
| 2877 | setBounds(27632, 15, 185, frame, rsi); frame++; | |
| 2878 | setBounds(27633, 20, 200, frame, rsi); frame++; | |
| 2879 | /** Tooltips */ | |
| 2880 | setBounds(27640, 10, 50, frame, rsi); frame++; | |
| 2881 | setBounds(27642, 30, 50, frame, rsi); frame++; | |
| 2882 | setBounds(27644, 35, 50, frame, rsi); frame++; | |
| 2883 | setBounds(27648, 40, 240, frame, rsi); frame++; | |
| 2884 | } | |
| 2885 | public static void EquipmentTab(RSFont[] wid) {
| |
| 2886 | RSInterface Interface = interfaceCache[1644]; | |
| 2887 | addSprite(15101, 0, "Interfaces/Equipment/bl");//cheap hax | |
| 2888 | addSprite(15102, 1, "Interfaces/Equipment/bl");//cheap hax | |
| 2889 | addSprite(15109, 2, "Interfaces/Equipment/bl");//cheap hax | |
| 2890 | removeSomething(15103); removeSomething(15104); | |
| 2891 | Interface.children[23] = 15101; Interface.childX[23] = 40; Interface.childY[23] = 205; | |
| 2892 | Interface.children[24] = 15102; Interface.childX[24] = 110; Interface.childY[24] = 205; | |
| 2893 | Interface.children[25] = 15109; Interface.childX[25] = 39; Interface.childY[25] = 240; | |
| 2894 | Interface.children[26] = 27650; Interface.childX[26] = 0; Interface.childY[26] = 0; | |
| 2895 | Interface = addInterface(27650); | |
| 2896 | AddInterfaceButton(27651, 6, "Interfaces/Equipment/BOX", "More options", 27659, 1, 26, 33); | |
| 2897 | addTooltip(27659, "Show donator options"); | |
| 2898 | AddInterfaceButton(27653, 1, "Interfaces/Equipment/BOX", "Show Equipment Stats", 27655, 1, 40, 39); | |
| 2899 | addTooltip(27655, "Show Equipment Stats"); | |
| 2900 | AddInterfaceButton(27654, 2, "Interfaces/Equipment/BOX", "Xp Lock", 27657, 1, 40, 39); | |
| 2901 | addTooltip(27657, "Locks your experiance."); | |
| 2902 | setChildren(6, Interface); | |
| 2903 | setBounds(27651, 84, 215, 0, Interface); | |
| 2904 | setBounds(27653, 29, 205, 1, Interface); | |
| 2905 | setBounds(27654, 124, 205, 2, Interface); | |
| 2906 | setBounds(27659, 39, 240, 3, Interface); | |
| 2907 | setBounds(27655, 39, 240, 4, Interface); | |
| 2908 | setBounds(27657, 39, 240, 5, Interface); | |
| 2909 | } | |
| 2910 | ||
| 2911 | public static void equipmentScreen(RSFont[] TDA) {
| |
| 2912 | RSInterface Interface = addInterface(19148); | |
| 2913 | addSprite(19149, 0, "Interfaces/Equipment/CHAR"); | |
| 2914 | addHover(19150, 3, 0, 19151, 3, "Interfaces/Equipment/CHAR", 21, 21, "Close"); | |
| 2915 | addHovered(19151, 2, "Interfaces/Equipment/CHAR", 21, 21, 19152); | |
| 2916 | addText(19154, "Equip Your Character...", 0xFF981F, false, true, 52, TDA, 2); | |
| 2917 | addText(1673, "Attack bonus", 0xFF981F, false, true, 52, TDA, 2); | |
| 2918 | addText(1674, "Defense bonus", 0xFF981F, false, true, 52, TDA, 2); | |
| 2919 | addText(1685, "Other bonuses", 0xFF981F, false, true, 52, TDA, 2); | |
| 2920 | addText(1675, "Stab:", 0xFF981F, false, true, 52, TDA, 1); | |
| 2921 | addText(1676, "Slash:", 0xFF981F, false, true, 52, TDA, 1); | |
| 2922 | addText(1677, "Crush:", 0xFF981F, false, true, 52, TDA, 1); | |
| 2923 | addText(1678, "Magic:", 0xFF981F, false, true, 52, TDA, 1); | |
| 2924 | addText(1679, "Ranged:", 0xFF981F, false, true, 52, TDA, 1); | |
| 2925 | addText(1680, "Stab:", 0xFF981F, false, true, 52, TDA, 1); | |
| 2926 | addText(1681, "Slash:", 0xFF981F, false, true, 52, TDA, 1); | |
| 2927 | addText(1682, "Crush:", 0xFF981F, false, true, 52, TDA, 1); | |
| 2928 | addText(1683, "Magic:", 0xFF981F, false, true, 52, TDA, 1); | |
| 2929 | addText(1684, "Ranged:", 0xFF981F, false, true, 52, TDA, 1); | |
| 2930 | addText(1686, "Strength:", 0xFF981F, false, true, 52, TDA, 1); | |
| 2931 | addText(1687, "Prayer:", 0xFF981F, false, true, 52, TDA, 1); | |
| 2932 | addText(19155, "0%", 0xFF981F, false, true, 52, TDA, 1); | |
| 2933 | addChar(19153); | |
| 2934 | int last = 45; | |
| 2935 | int frame = 0; | |
| 2936 | setChildren(last, Interface); | |
| 2937 | setBounds(19149, 12, 20, frame, Interface);frame++; | |
| 2938 | setBounds(19150, 472, 27, frame, Interface);frame++; | |
| 2939 | setBounds(19151, 472, 27, frame, Interface);frame++; | |
| 2940 | setBounds(19153, 193, 190, frame, Interface);frame++; | |
| 2941 | setBounds(19154, 23, 29, frame, Interface);frame++; | |
| 2942 | setBounds(1673, 365, 71, frame, Interface); frame++; | |
| 2943 | setBounds(1674, 365, 163, frame, Interface); frame++; | |
| 2944 | setBounds(1675, 372, 85, frame, Interface); frame++; | |
| 2945 | setBounds(1676, 372, 99, frame, Interface); frame++; | |
| 2946 | setBounds(1677, 372, 113, frame, Interface); frame++; | |
| 2947 | setBounds(1678, 372, 127, frame, Interface); frame++; | |
| 2948 | setBounds(1679, 372, 141, frame, Interface); frame++; | |
| 2949 | setBounds(1680, 372, 177, frame, Interface); frame++; | |
| 2950 | setBounds(1681, 372, 191, frame, Interface); frame++; | |
| 2951 | setBounds(1682, 372, 205, frame, Interface); frame++; | |
| 2952 | setBounds(1683, 372, 219, frame, Interface); frame++; | |
| 2953 | setBounds(1684, 372, 233, frame, Interface); frame++; | |
| 2954 | setBounds(1685, 365, 253, frame, Interface); frame++; | |
| 2955 | setBounds(1686, 372, 267, frame, Interface); frame++; | |
| 2956 | setBounds(1687, 372, 281, frame, Interface); frame++; | |
| 2957 | setBounds(19155, 94, 286, frame, Interface); frame++; | |
| 2958 | setBounds(1645, 83, 106, frame, Interface); frame++; | |
| 2959 | setBounds(1646, 83, 135, frame, Interface); frame++; | |
| 2960 | setBounds(1647, 83, 172, frame, Interface); frame++; | |
| 2961 | setBounds(1648, 83, 213, frame, Interface); frame++; | |
| 2962 | setBounds(1649, 27, 185, frame, Interface); frame++; | |
| 2963 | setBounds(1650, 27, 221, frame, Interface); frame++; | |
| 2964 | setBounds(1651, 139, 185, frame, Interface); frame++; | |
| 2965 | setBounds(1652, 139, 221, frame, Interface); frame++; | |
| 2966 | setBounds(1653, 53, 148, frame, Interface); frame++; | |
| 2967 | setBounds(1654, 112, 148, frame, Interface); frame++; | |
| 2968 | setBounds(1655, 63, 109, frame, Interface); frame++; | |
| 2969 | setBounds(1656, 117, 108, frame, Interface); frame++; | |
| 2970 | setBounds(1657, 83, 71, frame, Interface); frame++; | |
| 2971 | setBounds(1658, 42, 110, frame, Interface); frame++; | |
| 2972 | setBounds(1659, 83, 110, frame, Interface); frame++; | |
| 2973 | setBounds(1660, 124, 110, frame, Interface); frame++; | |
| 2974 | setBounds(1661, 27, 149, frame, Interface); frame++; | |
| 2975 | setBounds(1662, 83, 149, frame, Interface); frame++; | |
| 2976 | setBounds(1663, 139, 149, frame, Interface); frame++; | |
| 2977 | setBounds(1664, 83, 189, frame, Interface); frame++; | |
| 2978 | setBounds(1665, 83, 229, frame, Interface); frame++; | |
| 2979 | setBounds(1666, 27, 229, frame, Interface); frame++; | |
| 2980 | setBounds(1667, 139, 229, frame, Interface); frame++; | |
| 2981 | setBounds(1688, 29, 111, frame, Interface); frame++; | |
| 2982 | } | |
| 2983 | ||
| 2984 | public static void itemsOnDeath(RSFont[] wid) {
| |
| 2985 | RSInterface rsinterface = addInterface(17100); | |
| 2986 | addSprite(17101, 2, 2); | |
| 2987 | addHover(17102, 3, 0, 10601, 1, "Interfaces/Equipment/SPRITE", 17, 17, "Close Window"); | |
| 2988 | addHovered(10601, 3, "Interfaces/Equipment/SPRITE", 17, 17, 10602); | |
| 2989 | addText(17103, "Items Kept On Death", wid, 2, 0xff981f); | |
| 2990 | addText(17104, "Items you will keep on death (if not skulled):", wid, 1, 0xff981f); | |
| 2991 | addText(17105, "Items you will lose on death (if not skulled):", wid, 1, 0xff981f); | |
| 2992 | addText(17106, "Information", wid, 1, 0xff981f); | |
| 2993 | addText(17107, "Max items kept on death:", wid, 1, 0xffcc33); | |
| 2994 | addText(17108, "~ 3 ~", wid, 1, 0xffcc33); | |
| 2995 | rsinterface.scrollMax = 0; | |
| 2996 | rsinterface.interfaceShown = false; | |
| 2997 | rsinterface.children = new int[12]; rsinterface.childX = new int[12]; rsinterface.childY = new int[12]; | |
| 2998 | ||
| 2999 | rsinterface.children[0] = 17101; rsinterface.childX[0] = 7; rsinterface.childY[0] = 8; | |
| 3000 | rsinterface.children[1] = 17102; rsinterface.childX[1] = 480; rsinterface.childY[1] = 17; | |
| 3001 | rsinterface.children[2] = 17103; rsinterface.childX[2] = 185; rsinterface.childY[2] = 18; | |
| 3002 | rsinterface.children[3] = 17104; rsinterface.childX[3] = 22; rsinterface.childY[3] = 50; | |
| 3003 | rsinterface.children[4] = 17105; rsinterface.childX[4] = 22; rsinterface.childY[4] = 110; | |
| 3004 | rsinterface.children[5] = 17106; rsinterface.childX[5] = 347; rsinterface.childY[5] = 47; | |
| 3005 | rsinterface.children[6] = 17107; rsinterface.childX[6] = 349; rsinterface.childY[6] = 270; | |
| 3006 | rsinterface.children[7] = 17108; rsinterface.childX[7] = 398; rsinterface.childY[7] = 298; | |
| 3007 | rsinterface.children[8] = 17115; rsinterface.childX[8] = 348; rsinterface.childY[8] = 64; | |
| 3008 | rsinterface.children[9] = 10494; rsinterface.childX[9] = 26; rsinterface.childY[9] = 74; | |
| 3009 | rsinterface.children[10] = 10600; rsinterface.childX[10] = 26; rsinterface.childY[10] = 133; | |
| 3010 | rsinterface.children[11] = 10601; rsinterface.childX[11] = 480; rsinterface.childY[11] = 17; | |
| 3011 | } | |
| 3012 | ||
| 3013 | public static void itemsOnDeathDATA(RSFont[] wid) {
| |
| 3014 | RSInterface rsinterface = addInterface(17115); | |
| 3015 | addText(17109, "", wid, 0, 0xff981f); addText(17110, "The normal amount of", wid, 0, 0xff981f); addText(17111, "items kept is three.", wid, 0, 0xff981f); | |
| 3016 | addText(17112, "", wid, 0, 0xff981f); addText(17113, "If you are skulled,", wid, 0, 0xff981f); addText(17114, "you will lose all your", wid, 0, 0xff981f); | |
| 3017 | addText(17117, "items, unless an item", wid, 0, 0xff981f); addText(17118, "protecting prayer is", wid, 0, 0xff981f); addText(17119, "used.", wid, 0, 0xff981f); | |
| 3018 | addText(17120, "", wid, 0, 0xff981f); addText(17121, "Item protecting prayers", wid, 0, 0xff981f); addText(17122, "will allow you to keep", wid, 0, 0xff981f); | |
| 3019 | addText(17123, "one extra item.", wid, 0, 0xff981f); addText(17124, "", wid, 0, 0xff981f); addText(17125, "The items kept are", wid, 0, 0xff981f); | |
| 3020 | addText(17126, "selected by the server", wid, 0, 0xff981f); addText(17127, "and include the most", wid, 0, 0xff981f); addText(17128, "expensive items you're", wid, 0, 0xff981f); | |
| 3021 | addText(17129, "carrying.", wid, 0, 0xff981f); addText(17130, "", wid, 0, 0xff981f); | |
| 3022 | rsinterface.parentID = 17115; | |
| 3023 | rsinterface.id = 17115; | |
| 3024 | rsinterface.interfaceType = 0; | |
| 3025 | rsinterface.atActionType = 0; | |
| 3026 | rsinterface.contentType = 0; | |
| 3027 | rsinterface.width = 130; | |
| 3028 | rsinterface.height = 197; | |
| 3029 | rsinterface.opacity = 0; | |
| 3030 | rsinterface.hoverType = -1; | |
| 3031 | rsinterface.scrollMax = 280; | |
| 3032 | rsinterface.children = new int[20]; rsinterface.childX = new int[20]; rsinterface.childY = new int[20]; | |
| 3033 | rsinterface.children[0] = 17109; rsinterface.childX[0] = 0; rsinterface.childY[0] = 0; | |
| 3034 | rsinterface.children[1] = 17110; rsinterface.childX[1] = 0; rsinterface.childY[1] = 12; | |
| 3035 | rsinterface.children[2] = 17111; rsinterface.childX[2] = 0; rsinterface.childY[2] = 24; | |
| 3036 | rsinterface.children[3] = 17112; rsinterface.childX[3] = 0; rsinterface.childY[3] = 36; | |
| 3037 | rsinterface.children[4] = 17113; rsinterface.childX[4] = 0; rsinterface.childY[4] = 48; | |
| 3038 | rsinterface.children[5] = 17114; rsinterface.childX[5] = 0; rsinterface.childY[5] = 60; | |
| 3039 | rsinterface.children[6] = 17117; rsinterface.childX[6] = 0; rsinterface.childY[6] = 72; | |
| 3040 | rsinterface.children[7] = 17118; rsinterface.childX[7] = 0; rsinterface.childY[7] = 84; | |
| 3041 | rsinterface.children[8] = 17119; rsinterface.childX[8] = 0; rsinterface.childY[8] = 96; | |
| 3042 | rsinterface.children[9] = 17120; rsinterface.childX[9] = 0; rsinterface.childY[9] = 108; | |
| 3043 | rsinterface.children[10] = 17121; rsinterface.childX[10] = 0; rsinterface.childY[10] = 120; | |
| 3044 | rsinterface.children[11] = 17122; rsinterface.childX[11] = 0; rsinterface.childY[11] = 132; | |
| 3045 | rsinterface.children[12] = 17123; rsinterface.childX[12] = 0; rsinterface.childY[12] = 144; | |
| 3046 | rsinterface.children[13] = 17124; rsinterface.childX[13] = 0; rsinterface.childY[13] = 156; | |
| 3047 | rsinterface.children[14] = 17125; rsinterface.childX[14] = 0; rsinterface.childY[14] = 168; | |
| 3048 | rsinterface.children[15] = 17126; rsinterface.childX[15] = 0; rsinterface.childY[15] = 180; | |
| 3049 | rsinterface.children[16] = 17127; rsinterface.childX[16] = 0; rsinterface.childY[16] = 192; | |
| 3050 | rsinterface.children[17] = 17128; rsinterface.childX[17] = 0; rsinterface.childY[17] = 204; | |
| 3051 | rsinterface.children[18] = 17129; rsinterface.childX[18] = 0; rsinterface.childY[18] = 216; | |
| 3052 | rsinterface.children[19] = 17130; rsinterface.childX[19] = 0; rsinterface.childY[19] = 228; | |
| 3053 | } | |
| 3054 | public static void PVPInterface(RSFont[] tda) {
| |
| 3055 | RSInterface RSinterface = addInterface(21200); | |
| 3056 | addSprite(21201, 0, "Other/NOTINWILD1"); | |
| 3057 | addText(21202, "126 - 138", tda, 1, 0xff9040, true, true); | |
| 3058 | int last = 2; | |
| 3059 | RSinterface.children = new int[last]; | |
| 3060 | RSinterface.childX = new int[last]; | |
| 3061 | RSinterface.childY = new int[last]; | |
| 3062 | setBounds(21201, 400, 285, 0,RSinterface); | |
| 3063 | setBounds(21202, 444, 318, 1,RSinterface); | |
| 3064 | } | |
| 3065 | ||
| 3066 | public static void PVPInterface2(RSFont[] tda) {
| |
| 3067 | RSInterface RSinterface = addInterface(21300); | |
| 3068 | addSprite(21301, 0, "Other/INWILD1"); | |
| 3069 | addText(21302, "126 - 138", tda, 1, 0xff9040, true, true); | |
| 3070 | int last = 2; | |
| 3071 | RSinterface.children = new int[last]; | |
| 3072 | RSinterface.childX = new int[last]; | |
| 3073 | RSinterface.childY = new int[last]; | |
| 3074 | setBounds(21301, 400, 285, 0,RSinterface); | |
| 3075 | setBounds(21302, 444, 318, 1,RSinterface); | |
| 3076 | } | |
| 3077 | public static void choosespell(RSFont[] TDA) {
| |
| 3078 | RSInterface Interface = addInterface(16000); | |
| 3079 | Interface.children = new int[6]; | |
| 3080 | Interface.childX = new int[6]; | |
| 3081 | Interface.childY = new int[6]; | |
| 3082 | //Main interface | |
| 3083 | Interface.children[0] = 16001; | |
| 3084 | Interface.childX[0] = 4; | |
| 3085 | Interface.childY[0] = 16; | |
| 3086 | //No main interface image. | |
| 3087 | //Control 1 of main interface (Image) | |
| 3088 | Interface.children[1] = 16002; | |
| 3089 | Interface.childX[1] = 69; | |
| 3090 | Interface.childY[1] = 71; | |
| 3091 | addSprite(16002, 0, "Interfaces/Choosespell/Sprite"); | |
| 3092 | //Control 2 of main interface (Button) | |
| 3093 | Interface.children[2] = 16003; | |
| 3094 | Interface.childX[2] = 218; | |
| 3095 | Interface.childY[2] = 137; | |
| 3096 | AddInterfaceButton(16003, 1, "Interfaces/Choosespell/MAGIC", "Ancient Spells"); | |
| 3097 | //Control 3 of main interface (Button) | |
| 3098 | Interface.children[3] = 16004; | |
| 3099 | Interface.childX[3] = 107; | |
| 3100 | Interface.childY[3] = 137; | |
| 3101 | AddInterfaceButton(16004, 0, "Interfaces/Choosespell/MAGIC", "Normal Spells"); | |
| 3102 | //Control 4 of main interface (Button) | |
| 3103 | Interface.children[4] = 16005; | |
| 3104 | Interface.childX[4] = 339; | |
| 3105 | Interface.childY[4] = 137; | |
| 3106 | AddInterfaceButton(16005, 2, "Interfaces/Choosespell/MAGIC", "Lunar Spells"); | |
| 3107 | //Control 5 of main interface (Label) | |
| 3108 | Interface.children[5] = 16006; | |
| 3109 | Interface.childX[5] = 147; | |
| 3110 | Interface.childY[5] = 78; | |
| 3111 | addText(16006, "Select the magic you would like to cast. ", TDA, 1, 0xFFA500); | |
| 3112 | } | |
| 3113 | ||
| 3114 | public static void Rules(RSFont[] tda) | |
| 3115 | {
| |
| 3116 | RSInterface tab = addTabInterface(17250); | |
| 3117 | addSprite(17251, 0, "Interfaces/Rules/WELCOME"); | |
| 3118 | addHoverButton(17252, "Interfaces/Rules/SPRITE", 6, 78, 39, "Accept", -1, 17253, 1); | |
| 3119 | addHoveredButton(17253, "Interfaces/Rules/SPRITE", 7, 78, 39, 17254); | |
| 3120 | addHoverButton(17255, "Interfaces/Rules/SPRITE", 6, 78, 39, "Decline", -1, 17256, 1); | |
| 3121 | addHoveredButton(17256, "Interfaces/Rules/SPRITE", 7, 78, 39, 17257); | |
| 3122 | addText(17800, "Accept", tda, 0, 0x33ff00, false, true); | |
| 3123 | addText(17801, "Decline", tda, 0, 0xff0000, false, true); | |
| 3124 | addText(17802, "Rules of Your server:", tda, 2, 0xff981f, false, true); | |
| 3125 | addText(17803, "Failure to agree with the rules will get you banned", tda, 0, 0xff981f, false, true); | |
| 3126 | addText(17804, "", tda, 2, 0xff981f, false, true); | |
| 3127 | addText(17805, "", tda, 0, 0xff981f, false, true); | |
| 3128 | addText(17806, "", tda, 2, 0xff981f, false, true); | |
| 3129 | addText(17807, "", tda, 0, 0xff981f, false, true); | |
| 3130 | addText(17808, "", tda, 2, 0xff981f, false, true); | |
| 3131 | addText(17809, "", tda, 0, 0xff981f, false, true); | |
| 3132 | addText(17810, "", tda, 2, 0xff981f, false, true); | |
| 3133 | addText(17811, "", tda, 0, 0xff981f, false, true); | |
| 3134 | tab.totalChildren(18); | |
| 3135 | tab.child(0, 17251, 0, 0); | |
| 3136 | tab.child(1, 17252, 140, 276); | |
| 3137 | tab.child(2, 17253, 140, 276); | |
| 3138 | tab.child(3, 17255, 280, 276); | |
| 3139 | tab.child(4, 17256, 280, 276); | |
| 3140 | tab.child(5, 17800, 159, 285); | |
| 3141 | tab.child(6, 17801, 297, 285); | |
| 3142 | tab.child(7, 17802, 22, 37); | |
| 3143 | tab.child(8, 17803, 210, 40); | |
| 3144 | tab.child(9, 17804, 26, 64); | |
| 3145 | tab.child(10, 17805, 26, 79); | |
| 3146 | tab.child(11, 17806, 26, 91); | |
| 3147 | tab.child(12, 17807, 26, 106); | |
| 3148 | tab.child(13, 17808, 26, 118); | |
| 3149 | tab.child(14, 17809, 26, 133); | |
| 3150 | tab.child(15, 17810, 26, 145); | |
| 3151 | tab.child(16, 17811, 26, 160); | |
| 3152 | tab.child(17, 14000, 0, 58); | |
| 3153 | tab = addTabInterface(14000); | |
| 3154 | tab.width = 476; | |
| 3155 | tab.height = 213; | |
| 3156 | tab.scrollMax = 405; | |
| 3157 | for(int i = 14001; i <= 14030; i++){
| |
| 3158 | addText(i, "", tda, 1, 0xffffff, false, true); | |
| 3159 | addText(14008, "Offensive Language:", tda, 2, 0xff981f, true, true); | |
| 3160 | addText(14009, "Offensive language including racism, sexism is not tolerated.", tda, 0, 0xff981f, true, true); | |
| 3161 | addText(14011, "Staff Impersonation:", tda, 2, 0xff981f, true, true); | |
| 3162 | addText(14012, "Pretending to act like a member of the staff is not allowed.", tda, 0, 0xff981f, true, true); | |
| 3163 | addText(14014, "Scamming", tda, 2, 0xff981f, true, true); | |
| 3164 | addText(14015, "Scamming player's items is not allowed.", tda, 0, 0xff981f, true, true); | |
| 3165 | addText(14017, "Bug Abuse:", tda, 2, 0xff981f, true, true); | |
| 3166 | addText(14018, "Abusing a glitch is not allowed, you must report it immediately", tda, 0, 0xff981f, true, true); | |
| 3167 | addText(14020, "Advertising/Spamming:", tda, 2, 0xff981f, true, true); | |
| 3168 | addText(14021, "Advertising servers and spamming will not be tolerated.", tda, 0, 0xff981f, true, true); | |
| 3169 | addText(14023, "Encouraging Rule Breaking:", tda, 2, 0xff981f, true, true); | |
| 3170 | addText(14024, "Encouraging others to break rules is strictly forbidden", tda, 0, 0xff981f, true, true); | |
| 3171 | addText(14026, "Pking:", tda, 2, 0xff981f, true, true); | |
| 3172 | addText(14027, "No Pkpoints farming, (Gbs fights are your own risk)", tda, 0, 0xff981f, true, true); | |
| 3173 | } | |
| 3174 | tab.totalChildren(30); | |
| 3175 | int Child = 0; | |
| 3176 | int Y = 5; | |
| 3177 | for(int i = 14001; i <= 14030; i++){
| |
| 3178 | tab.child(Child, i, 248, Y); | |
| 3179 | Child++; | |
| 3180 | Y += 13; | |
| 3181 | } | |
| 3182 | } | |
| 3183 | ||
| 3184 | public static void SummonTab(RSFont[] wid) {
| |
| 3185 | RSInterface Tab = addTabInterface(17011); | |
| 3186 | addSprite(17012, 6, "SummonTab/SUMMON"); | |
| 3187 | addButton(17013, 7, "/SummonTab/SUMMON", "Click"); | |
| 3188 | //addHover(17013, 7,"/SummonTab/SUMMON", "Click"); | |
| 3189 | addSprite(17014, 6, "SummonTab/SUMMON"); | |
| 3190 | addConfigButton(17015, 17032, 14, 8, "/SummonTab/SUMMON", 20, 30, "In-Active", 1, 5, 300); | |
| 3191 | addHoverButton(17018, "/SummonTab/SUMMON", 2, 38, 36, "Beast of burden Inventory", -1, 17028, 1); | |
| 3192 | addHoveredButton(17028, "/SummonTab/SUMMON", 12, 38, 36, 17029); | |
| 3193 | addHoverButton(17022, "/SummonTab/SUMMON", 1, 38, 36, "Special Attack", -1, 17030, 1);//addHoverButton(int i, String imageName, int j, int width, int height, String text, int | |
| 3194 | addHoveredButton(17030, "/SummonTab/SUMMON", 13, 38, 36, 17031); | |
| 3195 | addHoverButton(17023, "/SummonTab/SUMMON", 3, 38, 36, "Dismiss Familiar", -1, 17033, 1);//addHoverButton(int i, String imageName, int j, int width, int height, String text, int | |
| 3196 | addHoveredButton(17033, "/SummonTab/SUMMON", 15, 38, 36, 17034); | |
| 3197 | addSprite(17016, 5, "SummonTab/SUMMON"); | |
| 3198 | addText(17017, "", wid, 2, 0xDAA520, false, true); | |
| 3199 | addSprite(17019, 9, "SummonTab/SUMMON"); | |
| 3200 | addText(17021, "6.00", wid, 0, 0xFFA500, false, true); | |
| 3201 | addSprite(17020, 10, "SummonTab/SUMMON"); | |
| 3202 | addSprite(17024, 11, "SummonTab/SUMMON"); | |
| 3203 | addText(17025, "49/50", wid, 0, 0xFFA500, false, true); | |
| 3204 | addText(17026, "10", wid, 0, 0xFFA500, false, true); | |
| 3205 | addHead2(17027, 75, 55, 800); | |
| 3206 | Tab.totalChildren(19); | |
| 3207 | Tab.child(0, 17012, 10, 25); | |
| 3208 | Tab.child(1, 17013, 24, 7); | |
| 3209 | Tab.child(2, 17014, 10, 25); | |
| 3210 | Tab.child(3, 17015, 11, 25); | |
| 3211 | Tab.child(4, 17016, 15, 140); | |
| 3212 | Tab.child(5, 17017, 45, 143); | |
| 3213 | Tab.child(6, 17018, 20, 170); | |
| 3214 | Tab.child(7, 17019, 115, 167); | |
| 3215 | Tab.child(8, 17020, 143, 170); | |
| 3216 | Tab.child(9, 17021, 135, 197); | |
| 3217 | Tab.child(10, 17022, 20, 213); | |
| 3218 | Tab.child(11, 17023, 67, 193); | |
| 3219 | Tab.child(12, 17024, 135, 214); | |
| 3220 | Tab.child(13, 17025, 135, 240); | |
| 3221 | Tab.child(14, 17026, 21, 59); | |
| 3222 | Tab.child(15, 17027, 75, 55); | |
| 3223 | Tab.child(16, 17028, 20, 170); | |
| 3224 | Tab.child(17, 17030, 20, 213); | |
| 3225 | Tab.child(18, 17033, 67, 193); | |
| 3226 | } | |
| 3227 | public static void addButton(int id, int sid, String spriteName, String tooltip) {
| |
| 3228 | RSInterface tab = interfaceCache[id] = new RSInterface(); | |
| 3229 | tab.id = id; | |
| 3230 | tab.parentID = id; | |
| 3231 | tab.interfaceType = 5; | |
| 3232 | tab.atActionType = 1; | |
| 3233 | tab.contentType = 0; | |
| 3234 | tab.opacity = (byte)0; | |
| 3235 | tab.hoverType = 52; | |
| 3236 | tab.disabledSprite = imageLoader(sid, spriteName); | |
| 3237 | tab.enabledSprite = imageLoader(sid, spriteName); | |
| 3238 | tab.width = tab.disabledSprite.myWidth; | |
| 3239 | tab.height = tab.enabledSprite.myHeight; | |
| 3240 | tab.tooltip = tooltip; | |
| 3241 | } | |
| 3242 | public static void addButton(int i, int j, String name, int W, int H, String S, int AT) {
| |
| 3243 | RSInterface RSInterface = addInterface(i); | |
| 3244 | RSInterface.id = i; | |
| 3245 | RSInterface.parentID = i; | |
| 3246 | RSInterface.interfaceType = 5; | |
| 3247 | RSInterface.atActionType = AT; | |
| 3248 | RSInterface.contentType = 0; | |
| 3249 | RSInterface.opacity = 0; | |
| 3250 | RSInterface.hoverType = 52; | |
| 3251 | RSInterface.disabledSprite = imageLoader(j,name); | |
| 3252 | RSInterface.enabledSprite = imageLoader(j,name); | |
| 3253 | RSInterface.width = W; | |
| 3254 | RSInterface.height = H; | |
| 3255 | RSInterface.tooltip = S; | |
| 3256 | } | |
| 3257 | public static void addButton(int id, int sid, String spriteName, String tooltip, int w, int h) {
| |
| 3258 | RSInterface tab = interfaceCache[id] = new RSInterface(); | |
| 3259 | tab.id = id; | |
| 3260 | tab.parentID = id; | |
| 3261 | tab.interfaceType = 5; | |
| 3262 | tab.atActionType = 1; | |
| 3263 | tab.contentType = 0; | |
| 3264 | tab.opacity = (byte)0; | |
| 3265 | tab.hoverType = 52; | |
| 3266 | tab.disabledSprite = imageLoader(sid, spriteName); | |
| 3267 | tab.enabledSprite = imageLoader(sid, spriteName); | |
| 3268 | tab.width = w; | |
| 3269 | tab.height = h; | |
| 3270 | tab.tooltip = tooltip; | |
| 3271 | } | |
| 3272 | public static void addButton(int i, int j, int hoverId, String name, int W, int H, String S, int AT) {
| |
| 3273 | RSInterface RSInterface = addInterface(i); | |
| 3274 | RSInterface.id = i; | |
| 3275 | RSInterface.parentID = i; | |
| 3276 | RSInterface.interfaceType = 5; | |
| 3277 | RSInterface.atActionType = AT; | |
| 3278 | RSInterface.opacity = 0; | |
| 3279 | RSInterface.hoverType = hoverId; | |
| 3280 | RSInterface.disabledSprite = imageLoader(j,name); | |
| 3281 | RSInterface.enabledSprite = imageLoader(j,name); | |
| 3282 | RSInterface.width = W; | |
| 3283 | RSInterface.height = H; | |
| 3284 | RSInterface.tooltip = S; | |
| 3285 | } | |
| 3286 | public static void addButton(int id, int sid, String spriteName, String tooltip, int mOver, int atAction, int width, int height) {
| |
| 3287 | RSInterface tab = interfaceCache[id] = new RSInterface(); | |
| 3288 | tab.id = id; | |
| 3289 | tab.parentID = id; | |
| 3290 | tab.interfaceType = 5; | |
| 3291 | tab.atActionType = atAction; | |
| 3292 | tab.contentType = 0; | |
| 3293 | tab.opacity = 0; | |
| 3294 | tab.hoverType = mOver; | |
| 3295 | tab.disabledSprite = imageLoader(sid, spriteName); | |
| 3296 | tab.enabledSprite = imageLoader(sid, spriteName); | |
| 3297 | tab.width = width; | |
| 3298 | tab.height = height; | |
| 3299 | tab.tooltip = tooltip; | |
| 3300 | tab.inventoryhover = true; | |
| 3301 | } | |
| 3302 | private static void addButton(int ID, int type, int hoverID, int dS, int eS, String NAME, int W, int H, String text, int configFrame, int configId) {
| |
| 3303 | RSInterface rsinterface = addInterface(ID); | |
| 3304 | rsinterface.id = ID; | |
| 3305 | rsinterface.parentID = ID; | |
| 3306 | rsinterface.interfaceType = 5; | |
| 3307 | rsinterface.atActionType = type; | |
| 3308 | rsinterface.opacity = 0; | |
| 3309 | rsinterface.hoverType = hoverID; | |
| 3310 | rsinterface.disabledSprite = imageLoader(dS, NAME); | |
| 3311 | rsinterface.enabledSprite = imageLoader(eS, NAME); | |
| 3312 | rsinterface.width = W; | |
| 3313 | rsinterface.height = H; | |
| 3314 | rsinterface.valueCompareType = new int[1]; | |
| 3315 | rsinterface.requiredValues = new int[1]; | |
| 3316 | rsinterface.valueCompareType[0] = 1; | |
| 3317 | rsinterface.requiredValues[0] = configId; | |
| 3318 | rsinterface.valueIndexArray = new int[1][3]; | |
| 3319 | rsinterface.valueIndexArray[0][0] = 5; | |
| 3320 | rsinterface.valueIndexArray[0][1] = configFrame; | |
| 3321 | rsinterface.valueIndexArray[0][2] = 0; | |
| 3322 | rsinterface.tooltip = text; | |
| 3323 | } | |
| 3324 | public static void addButtons(int id, int sid, String spriteName, String tooltip, int mOver, int atAction) {
| |
| 3325 | RSInterface rsinterface = interfaceCache[id] = new RSInterface(); | |
| 3326 | rsinterface.id = id; | |
| 3327 | rsinterface.parentID = id; | |
| 3328 | rsinterface.interfaceType = 5; | |
| 3329 | rsinterface.atActionType = atAction; | |
| 3330 | rsinterface.contentType = 0; | |
| 3331 | rsinterface.opacity = (byte)0; | |
| 3332 | rsinterface.hoverType = mOver; | |
| 3333 | rsinterface.disabledSprite = imageLoader(sid, spriteName); | |
| 3334 | rsinterface.enabledSprite = imageLoader(sid, spriteName); | |
| 3335 | rsinterface.width = rsinterface.disabledSprite.myWidth; | |
| 3336 | rsinterface.height = rsinterface.enabledSprite.myHeight; | |
| 3337 | rsinterface.tooltip = tooltip; | |
| 3338 | rsinterface.inventoryhover = true; | |
| 3339 | } | |
| 3340 | private static void addHead2(int i, int j, int k, int l) | |
| 3341 | {
| |
| 3342 | RSInterface rsinterface = addTab(i); | |
| 3343 | rsinterface.interfaceType = 6; | |
| 3344 | rsinterface.modelZoom = l; | |
| 3345 | rsinterface.modelRotationY = 40; | |
| 3346 | rsinterface.modelRotationX = 1900; | |
| 3347 | rsinterface.height = k; | |
| 3348 | rsinterface.width = j; | |
| 3349 | } | |
| 3350 | public static void newTrade(RSFont[] TDA) {
| |
| 3351 | RSInterface Interface = addInterface(3323); | |
| 3352 | setChildren(19, Interface); | |
| 3353 | addSprite(3324, 6, "Interfaces/TradeTab/TRADE"); | |
| 3354 | addHover(3442, 3, 0, 3325, 1, "Interfaces/Bank/BANK", 17, 17, "Close Window"); | |
| 3355 | addHovered(3325, 2, "Interfaces/Bank/BANK", 17, 17, 3326); | |
| 3356 | addText(3417, "Trading With:", 0xFF981F, true, true, 52,TDA, 2); | |
| 3357 | addText(3418, "Trader's Offer", 0xFF981F, false, true, 52,TDA, 1); | |
| 3358 | addText(3419, "Your Offer", 0xFF981F, false, true, 52,TDA, 1); | |
| 3359 | addText(3421, "Accept", 0x00C000, true, true, 52,TDA, 1); | |
| 3360 | addText(3423, "Decline", 0xC00000, true, true, 52,TDA, 1); | |
| 3361 | ||
| 3362 | addText(3431, "Waiting For Other Player", 0xFFFFFF, true, true, 52,TDA, 1); | |
| 3363 | addText(23504, "Wealth transfer: 2147,000,000 coins' worth to Zezimablud12", 0xB9B855, true, true, -1,TDA, 0); | |
| 3364 | addText(23505, "1 has\\n 28 free\\n inventory slots.", 0xFF981F, true, true, -1,TDA, 0); | |
| 3365 | ||
| 3366 | addText(23506, "Wealth transfer: 2147,000,000 coins' worth to Zezimablud12", 0xB9B855, false, true, -1,TDA, 0); | |
| 3367 | addText(23507, "Wealth transfer: 2147,000,000 coins' worth to me", 0xB9B855, false, true, -1,TDA, 0); | |
| 3368 | ||
| 3369 | addHover(3420, 1, 0, 3327, 5, "Interfaces/TradeTab/TRADE", 65, 32, "Accept"); | |
| 3370 | addHovered(3327, 2, "Interfaces/TradeTab/TRADE", 65, 32, 3328); | |
| 3371 | addHover(3422, 3, 0, 3329, 5, "Interfaces//TradeTab/TRADE", 65, 32, "Decline"); | |
| 3372 | addHovered(3329, 2, "Interfaces/TradeTab/TRADE", 65, 32, 3330); | |
| 3373 | setBounds(3324, 0, 16, 0, Interface); | |
| 3374 | setBounds(3442, 485, 24, 1, Interface); | |
| 3375 | setBounds(3325, 485, 24, 2, Interface); | |
| 3376 | setBounds(3417, 258, 25, 3, Interface); | |
| 3377 | setBounds(3418, 355, 51, 4, Interface); | |
| 3378 | setBounds(3419, 68, 51, 5, Interface); | |
| 3379 | setBounds(3420, 223, 120, 6, Interface); | |
| 3380 | setBounds(3327, 223, 120, 7, Interface); | |
| 3381 | setBounds(3422, 223, 160, 8, Interface); | |
| 3382 | setBounds(3329, 223, 160, 9, Interface); | |
| 3383 | setBounds(3421, 256, 127, 10, Interface); | |
| 3384 | setBounds(3423, 256, 167, 11, Interface); | |
| 3385 | setBounds(3431, 256, 272, 12, Interface); | |
| 3386 | setBounds(3415, 12, 64, 13, Interface); | |
| 3387 | setBounds(3416, 321, 67, 14, Interface); | |
| 3388 | ||
| 3389 | setBounds(23505, 256, 67, 16, Interface); | |
| 3390 | ||
| 3391 | setBounds(23504, 255, 310, 15, Interface); | |
| 3392 | setBounds(23506, 20, 310, 17, Interface); | |
| 3393 | setBounds(23507, 380, 310, 18, Interface); | |
| 3394 | ||
| 3395 | Interface = addInterface(3443); | |
| 3396 | setChildren(15, Interface); | |
| 3397 | addSprite(3444, 3, "Interfaces/TradeTab/TRADE"); | |
| 3398 | AddInterfaceButton(3546, 2, "Interfaces/ShopTab/SHOP", 63, 24, "Accept", 1); | |
| 3399 | AddInterfaceButton(3548, 2, "Interfaces/ShopTab/SHOP", 63, 24, "Decline", 3); | |
| 3400 | addText(3547, "Accept", 0x00C000, true, true, 52,TDA, 1); | |
| 3401 | addText(3549, "Decline", 0xC00000, true, true, 52,TDA, 1); | |
| 3402 | addText(3450, "Trading With:", 0x00FFFF, true, true, 52,TDA, 2); | |
| 3403 | addText(3451, "Yourself", 0x00FFFF, true, true, 52,TDA, 2); | |
| 3404 | setBounds(3444, 12, 20, 0, Interface); | |
| 3405 | setBounds(3442, 470, 32, 1, Interface); | |
| 3406 | setBounds(3325, 470, 32, 2, Interface); | |
| 3407 | setBounds(3535, 130, 28, 3, Interface); | |
| 3408 | setBounds(3536, 105, 47, 4, Interface); | |
| 3409 | setBounds(3546, 189, 295, 5, Interface); | |
| 3410 | setBounds(3548, 258, 295, 6, Interface); | |
| 3411 | setBounds(3547, 220, 299, 7, Interface); | |
| 3412 | setBounds(3549, 288, 299, 8, Interface); | |
| 3413 | setBounds(3557, 71, 87, 9, Interface); | |
| 3414 | setBounds(3558, 315, 87, 10, Interface); | |
| 3415 | setBounds(3533, 64, 70, 11, Interface); | |
| 3416 | setBounds(3534, 297, 70, 12, Interface); | |
| 3417 | setBounds(3450, 95, 289, 13, Interface); | |
| 3418 | setBounds(3451, 95, 304, 14, Interface); | |
| 3419 | } | |
| 3420 | ||
| 3421 | public static void editShopMain(RSFont[] TDA) {
| |
| 3422 | RSInterface Interface = addInterface(3824); | |
| 3423 | setChildren(8, Interface); | |
| 3424 | addSprite(3825, 0, "Interfaces/ShopTab/SHOP"); | |
| 3425 | addHover(3902, 3, 0, 3826, 1, "Interfaces/Bank/BANK", 17, 17, "Close Window"); | |
| 3426 | addHovered(3826, 2, "Interfaces/Bank/BANK", 17, 17, 3827); | |
| 3427 | addText(19679, "Main Stock", 0xFF981F, false, true, 52,TDA, 1); | |
| 3428 | addText(19680, "Player Stock", 0xBF751D, false, true, 52,TDA, 1); | |
| 3429 | AddInterfaceButton(19681, 1, "Interfaces/ShopTab/SHOP", 95, 19, "Player Stock", 1); | |
| 3430 | setBounds(3825, 12, 12, 0, Interface); | |
| 3431 | setBounds(3902, 471, 22, 1, Interface); | |
| 3432 | setBounds(3826, 471, 22, 2, Interface); | |
| 3433 | setBounds(3900, 60, 85, 3, Interface); | |
| 3434 | setBounds(3901, 240, 21, 4, Interface); | |
| 3435 | setBounds(19679, 42, 54, 5, Interface); | |
| 3436 | setBounds(19680, 150, 54, 6, Interface); | |
| 3437 | setBounds(19681, 129, 50, 7, Interface); | |
| 3438 | Interface = interfaceCache[3900]; | |
| 3439 | Interface.invSpritePadX = 8; | |
| 3440 | Interface.width = 10; | |
| 3441 | Interface.height = 4; | |
| 3442 | Interface = addInterface(19682); | |
| 3443 | addSprite(19683, 1, "Interfaces/ShopTab/SHOP"); | |
| 3444 | addText(19684, "Main Stock", 0xBF751D, false, true, 52,TDA, 1); | |
| 3445 | addText(19685, "Store Info", 0xFF981F, false, true, 52,TDA, 1); | |
| 3446 | AddInterfaceButton(19686, 2, "Interfaces/ShopTab/SHOP", 95, 19, "Main Stock", 1); | |
| 3447 | setChildren(7, Interface); | |
| 3448 | setBounds(19683, 12, 12, 0, Interface); | |
| 3449 | setBounds(3901, 240, 21, 1, Interface); | |
| 3450 | setBounds(19684, 42, 54, 2, Interface); | |
| 3451 | setBounds(19685, 150, 54, 3, Interface); | |
| 3452 | setBounds(19686, 23, 50, 4, Interface); | |
| 3453 | setBounds(3902, 471, 22, 5, Interface); | |
| 3454 | setBounds(3826, 60, 85, 6, Interface); | |
| 3455 | } | |
| 3456 | ||
| 3457 | public static void friendsTab(RSFont[] tda) {
| |
| 3458 | RSInterface tab = addTabInterface(5065); | |
| 3459 | RSInterface list = interfaceCache[5066]; | |
| 3460 | addText(5067, "Friends List", tda, 1, 0xff9933, true, true); | |
| 3461 | addText(5070, "Add Friend", tda, 0, 0xff9933, false, true); | |
| 3462 | addText(5071, "Delete Friend", tda, 0, 0xff9933, false, true); | |
| 3463 | addSprite(16126, 4, "Interfaces/Friends/SPRITE"); | |
| 3464 | addSprite(16127, 8, "Interfaces/Friends/SPRITE"); | |
| 3465 | addHoverButton(5068, "Interfaces/Friends/SPRITE", 6, 72, 32, "Add Friend", 201, 5072, 1); | |
| 3466 | addHoveredButton(5072, "Interfaces/Friends/SPRITE", 7, 72, 32, 5073); | |
| 3467 | addHoverButton(5069, "Interfaces/Friends/SPRITE", 6, 72, 32, "Delete Friend", 202, 5074, 1); | |
| 3468 | addHoveredButton(5074, "Interfaces/Friends/SPRITE", 7, 72, 32, 5075); | |
| 3469 | tab.totalChildren(11); | |
| 3470 | tab.child(0, 5067, 95, 4); | |
| 3471 | tab.child(1, 16127, 0, 25); | |
| 3472 | tab.child(2, 16126, 0, 221); | |
| 3473 | tab.child(3, 5066, 0, 24); | |
| 3474 | tab.child(4, 16126, 0, 22); | |
| 3475 | tab.child(5, 5068, 15, 226); | |
| 3476 | tab.child(6, 5072, 15, 226); | |
| 3477 | tab.child(7, 5069, 103, 226); | |
| 3478 | tab.child(8, 5074, 103, 226); | |
| 3479 | tab.child(9, 5070, 25, 237); | |
| 3480 | tab.child(10, 5071, 106, 237); | |
| 3481 | list.height = 196; list.width = 174; | |
| 3482 | for(int id = 5092, i = 0; id <= 5191 && i <= 99; id++, i++) {
| |
| 3483 | list.children[i] = id; list.childX[i] = 3; list.childY[i] = list.childY[i] - 7; | |
| 3484 | } for(int id = 5192, i = 100; id <= 5291 && i <= 199; id++, i++) {
| |
| 3485 | list.children[i] = id; list.childX[i] = 131; list.childY[i] = list.childY[i] - 7; | |
| 3486 | } | |
| 3487 | } | |
| 3488 | public static void ignoreTab(RSFont[] tda) {
| |
| 3489 | RSInterface tab = addTabInterface(5715); | |
| 3490 | RSInterface list = interfaceCache[5716]; | |
| 3491 | addText(5717, "Ignore List", tda, 1, 0xff9933, true, true); | |
| 3492 | addText(5720, "Add Name", tda, 0, 0xff9933, false, true); | |
| 3493 | addText(5721, "Delete Name", tda, 0, 0xff9933, false, true); | |
| 3494 | addHoverButton(5718, "Interfaces/Friends/SPRITE", 6, 72, 32, "Add Name", 501, 5722, 1); | |
| 3495 | addHoveredButton(5722, "Interfaces/Friends/SPRITE", 7, 72, 32, 5723); | |
| 3496 | addHoverButton(5719, "Interfaces/Friends/SPRITE", 6, 72, 32, "Delete Name", 502, 5724, 1); | |
| 3497 | addHoveredButton(5724, "Interfaces/Friends/SPRITE", 7, 72, 32, 5725); | |
| 3498 | tab.totalChildren(11); | |
| 3499 | tab.child(0, 5717, 95, 4); | |
| 3500 | tab.child(1, 16127, 0, 25); | |
| 3501 | tab.child(2, 16126, 0, 221); | |
| 3502 | tab.child(3, 5716, 0, 24); | |
| 3503 | tab.child(4, 16126, 0, 22); | |
| 3504 | tab.child(5, 5718, 15, 226); | |
| 3505 | tab.child(6, 5722, 15, 226); | |
| 3506 | tab.child(7, 5719, 103, 226); | |
| 3507 | tab.child(8, 5724, 103, 226); | |
| 3508 | tab.child(9, 5720, 27, 237); | |
| 3509 | tab.child(10, 5721, 108, 237); | |
| 3510 | list.height = 196; | |
| 3511 | list.width = 174; | |
| 3512 | for(int id = 5742, i = 0; id <= 5841 && i <= 99; id++, i++) {
| |
| 3513 | list.children[i] = id; list.childX[i] = 3; list.childY[i] = list.childY[i] - 7; | |
| 3514 | } | |
| 3515 | } | |
| 3516 | ||
| 3517 | /* | |
| 3518 | public static void FriendList(RSFont[] TDA) {
| |
| 3519 | RSInterface Interface = addInterface(5065); | |
| 3520 | addSprite(5072, 6, "Interfaces/Clan Chat/LIST"); | |
| 3521 | addHover(5068, 1, 201, 5073, 8, "Interfaces/Clan Chat/LIST", 75, 32, "Add Friend"); | |
| 3522 | addHovered(5073, 2, "Interfaces/Clan Chat/LIST", 75, 32, 5074); | |
| 3523 | addHover(5069, 1, 202, 5075, 8, "Interfaces/Clan Chat/LIST", 75, 32, "Delete Friend"); | |
| 3524 | addHovered(5075, 2, "Interfaces/Clan Chat/LIST", 75, 32, 5076); | |
| 3525 | addText(5067, "Friend List", 0xff9933, false, true, 52,TDA, 2); | |
| 3526 | addText(5070, " Add Friend", 0xff9933, false, true, 52,TDA, 0); | |
| 3527 | addText(5071, " Del Friend", 0xff9933, false, true, 52,TDA, 0); | |
| 3528 | setChildren(7, Interface); | |
| 3529 | setBounds(5072, 4, 20, 0, Interface); | |
| 3530 | setBounds(5068, 15, 226, 1, Interface); | |
| 3531 | setBounds(5069, 105, 226, 2, Interface); | |
| 3532 | setBounds(5066, 4, 24, 3, Interface); | |
| 3533 | setBounds(5067, 55, 4, 4, Interface); | |
| 3534 | setBounds(5070, 21, 236, 5, Interface); | |
| 3535 | setBounds(5071, 112, 236, 6, Interface); | |
| 3536 | Interface = Interface.interfaceCache[5066]; | |
| 3537 | Interface.height = 194; | |
| 3538 | Interface.width = 167; | |
| 3539 | Interface.newScroller = false; | |
| 3540 | } | |
| 3541 | ||
| 3542 | ||
| 3543 | public static void IgnoreList(RSFont[] TDA) {
| |
| 3544 | RSInterface Interface = addInterface(5715); | |
| 3545 | addSprite(5726, 6, "Interfaces/Clan Chat/LIST"); | |
| 3546 | addHover(5718, 1, 501, 5722, 7, "Interfaces/Clan Chat/LIST", 75, 32, "Add Name"); | |
| 3547 | addHovered(5722, 2, "Interfaces/Clan Chat/LIST", 75, 32, 5723); | |
| 3548 | ||
| 3549 | addHover(5719, 1, 502, 5724, 7, "Interfaces/Clan Chat/LIST", 75, 32, "Delete Name"); | |
| 3550 | addHovered(5724, 2, "Interfaces/Clan Chat/LIST", 75, 32, 5725); | |
| 3551 | addText(5717, "Ignore List", 0xff9933, false, true, 52,TDA, 2); | |
| 3552 | addText(5720, "Add Name", 0xff9933, false, true, 52,TDA, 0); | |
| 3553 | addText(5721, "Del Name", 0xff9933, false, true, 52,TDA, 0); | |
| 3554 | setChildren(7, Interface); | |
| 3555 | setBounds(5726, 4, 20, 0, Interface); | |
| 3556 | setBounds(5718, 15, 226, 1, Interface); | |
| 3557 | setBounds(5719, 105, 226, 2, Interface); | |
| 3558 | setBounds(5716, 4, 24, 3, Interface); | |
| 3559 | setBounds(5717, 55, 4, 4, Interface); | |
| 3560 | setBounds(5720, 23, 236, 5, Interface); | |
| 3561 | setBounds(5721, 115, 236, 6, Interface); | |
| 3562 | Interface = Interface.interfaceCache[5716]; | |
| 3563 | Interface.height = 194; | |
| 3564 | Interface.width = 167; | |
| 3565 | Interface.newScroller = false; | |
| 3566 | } | |
| 3567 | */ | |
| 3568 | ||
| 3569 | public static void configureLunar(RSFont[] TDA) {
| |
| 3570 | homeTeleport(); | |
| 3571 | drawRune(30003, 1, "Fire"); | |
| 3572 | drawRune(30004, 2, "Water"); | |
| 3573 | drawRune(30005, 3, "Air"); | |
| 3574 | drawRune(30006, 4, "Earth"); | |
| 3575 | drawRune(30007, 5, "Mind"); | |
| 3576 | drawRune(30008, 6, "Body"); | |
| 3577 | drawRune(30009, 7, "Death"); | |
| 3578 | drawRune(30010, 8, "Nature"); | |
| 3579 | drawRune(30011, 9, "Chaos"); | |
| 3580 | drawRune(30012, 10, "Law"); | |
| 3581 | drawRune(30013, 11, "Cosmic"); | |
| 3582 | drawRune(30014, 12, "Blood"); | |
| 3583 | drawRune(30015, 13, "Soul"); | |
| 3584 | drawRune(30016, 14, "Astral"); | |
| 3585 | addLunar3RunesSmallBox(30017, 9075, 554, 555, 0, 4, 3, 30003, 30004, 64, | |
| 3586 | "Bake Pie", | |
| 3587 | "Bake pies without a stove", | |
| 3588 | TDA, 0, 16, 2); | |
| 3589 | addLunar2RunesSmallBox(30025, 9075, 557, 0, 7, 30006, 65, | |
| 3590 | "Cure Plant", | |
| 3591 | "Cure disease on farming patch", | |
| 3592 | TDA, 1, 4, 2); | |
| 3593 | addLunar3RunesBigBox(30032, 9075, 564, 558, 0, 0, 0, 30013, 30007, 65, | |
| 3594 | "Monster Examine", | |
| 3595 | "Detect the combat statistics of a\\nmonster", | |
| 3596 | TDA, 2, 2, 2); | |
| 3597 | addLunar3RunesSmallBox(30040, 9075, 564, 556, 0, 0, 1, 30013, 30005, 66, | |
| 3598 | "NPC Contact", | |
| 3599 | "Speak with varied NPCs", | |
| 3600 | TDA, 3, 0, 2); | |
| 3601 | addLunar3RunesSmallBox(30048, 9075, 563, 557, 0, 0, 9, 30012, 30006, 67, | |
| 3602 | "Cure Other", | |
| 3603 | "Cure poisoned players", | |
| 3604 | TDA, 4, 8, 2); | |
| 3605 | addLunar3RunesSmallBox(30056, 9075, 555, 554, 0, 2, 0, 30004, 30003, 67, | |
| 3606 | "Humidify", | |
| 3607 | "Fills certain vessels with water", | |
| 3608 | TDA, 5, 0, 5); | |
| 3609 | addLunar3RunesSmallBox(30064, 9075, 563, 557, 1, 0, 1, 30012, 30006, 68, | |
| 3610 | "Monster tele", | |
| 3611 | "A varius selection of monster teleports", | |
| 3612 | TDA, 6, 0, 5); | |
| 3613 | addLunar3RunesBigBox(30075, 9075, 563, 557, 1, 0, 3, 30012, 30006, 69, | |
| 3614 | "Minigame's Tele", | |
| 3615 | "A varius selection of minigame teleports", | |
| 3616 | TDA, 7, 0, 5); | |
| 3617 | addLunar3RunesSmallBox(30083, 9075, 563, 557, 1, 0, 5, 30012, 30006, 70, | |
| 3618 | "Boss's", | |
| 3619 | "Kill them all!", | |
| 3620 | TDA, 8, 0, 5); | |
| 3621 | addLunar3RunesSmallBox(30091, 9075, 564, 563, 1, 1, 0, 30013, 30012, 70, | |
| 3622 | "Cure Me", | |
| 3623 | "Cures Poison", | |
| 3624 | TDA, 9, 0, 5); | |
| 3625 | addLunar2RunesSmallBox(30099, 9075, 557, 1, 1, 30006, 70, | |
| 3626 | "Hunter Kit", | |
| 3627 | "Get a kit of hunting gear", | |
| 3628 | TDA, 10, 0, 5); | |
| 3629 | addLunar3RunesSmallBox(30106, 9075, 563, 555, 1, 0, 0, 30012, 30004, 71, | |
| 3630 | "P'king", | |
| 3631 | "Kill them all!", | |
| 3632 | TDA, 11, 0, 5); | |
| 3633 | addLunar3RunesBigBox(30114, 9075, 563, 555, 1, 0, 4, 30012, 30004, 72, | |
| 3634 | "Skilling", | |
| 3635 | "Place to skill", | |
| 3636 | TDA, 12, 0, 5); | |
| 3637 | addLunar3RunesSmallBox(30122, 9075, 564, 563, 1, 1, 1, 30013, 30012, 73, | |
| 3638 | "Cure Group", | |
| 3639 | "Cures Poison on players", | |
| 3640 | TDA, 13, 0, 5); | |
| 3641 | addLunar3RunesBigBox(30130, 9075, 564, 559, 1, 1, 4, 30013, 30008, 74, | |
| 3642 | "Stat Spy", | |
| 3643 | "Cast on another player to see their\\nskill levels", | |
| 3644 | TDA, 14, 8, 2); | |
| 3645 | addLunar3RunesBigBox(30138, 9075, 563, 554, 1, 1, 2, 30012, 30003, 74, | |
| 3646 | "Tele Group Waterbirth", | |
| 3647 | "Teleports a Group to Waterbirth", | |
| 3648 | TDA, 15, 0, 5); | |
| 3649 | addLunar3RunesBigBox(30146, 9075, 563, 554, 1, 1, 5, 30012, 30003, 75, | |
| 3650 | "Tele Group Barbarian", | |
| 3651 | "Teleports players to the Barbarian\\noutpost", | |
| 3652 | TDA, 16, 0, 5); | |
| 3653 | addLunar3RunesSmallBox(30154, 9075, 554, 556, 1, 5, 9, 30003, 30005, 76, | |
| 3654 | "Superglass Make", | |
| 3655 | "Make glass without a furnace", | |
| 3656 | TDA, 17, 16, 2); | |
| 3657 | addLunar3RunesSmallBox(30162, 9075, 563, 555, 1, 1, 3, 30012, 30004, 77, | |
| 3658 | "Khazard Teleport", | |
| 3659 | "Teleports you to Port khazard", | |
| 3660 | TDA, 18, 0, 5); | |
| 3661 | addLunar3RunesSmallBox(30170, 9075, 563, 555, 1, 1, 7, 30012, 30004, 78, | |
| 3662 | "Tele Group Khazard", | |
| 3663 | "Teleports players to Port khazard", | |
| 3664 | TDA, 19, 0, 5); | |
| 3665 | addLunar3RunesBigBox(30178, 9075, 564, 559, 1, 0, 4, 30013, 30008, 78, | |
| 3666 | "Dream", | |
| 3667 | "Take a rest and restore hitpoints 3\\n times faster", | |
| 3668 | TDA, 20, 0, 5); | |
| 3669 | addLunar3RunesSmallBox(30186, 9075, 557, 555, 1, 9, 4, 30006, 30004, 79, | |
| 3670 | "String Jewellery", | |
| 3671 | "String amulets without wool", | |
| 3672 | TDA, 21, 0, 5); | |
| 3673 | addLunar3RunesLargeBox(30194, 9075, 557, 555, 1, 9, 9, 30006, 30004, 80, | |
| 3674 | "Stat Restore Pot\\nShare", | |
| 3675 | "Share a potion with up to 4 nearby\\nplayers", | |
| 3676 | TDA, 22, 0, 5); | |
| 3677 | addLunar3RunesSmallBox(30202, 9075, 554, 555, 1, 6, 6, 30003, 30004, 81, | |
| 3678 | "Magic Imbue", | |
| 3679 | "Combine runes without a talisman", | |
| 3680 | TDA, 23, 0, 5); | |
| 3681 | addLunar3RunesBigBox(30210, 9075, 561, 557, 2, 1, 14, 30010, 30006, 82, | |
| 3682 | "Fertile Soil", | |
| 3683 | "Fertilise a farming patch with super\\ncompost", | |
| 3684 | TDA, 24, 4, 2); | |
| 3685 | addLunar3RunesBigBox(30218, 9075, 557, 555, 2, 11, 9, 30006, 30004, 83, | |
| 3686 | "Boost Potion Share", | |
| 3687 | "Shares a potion with up to 4 nearby\\nplayers", | |
| 3688 | TDA, 25, 0, 5); | |
| 3689 | addLunar3RunesSmallBox(30226, 9075, 563, 555, 2, 2, 9, 30012, 30004, 84, | |
| 3690 | "Fishing Guild Teleport", | |
| 3691 | "Teleports you to the fishing guild", | |
| 3692 | TDA, 26, 0, 5); | |
| 3693 | addLunar3RunesLargeBox(30234, 9075, 563, 555, 1, 2, 13, 30012, 30004, 85, | |
| 3694 | "Tele Group Fishing Guild", | |
| 3695 | "Teleports players to the Fishing\\nGuild", | |
| 3696 | TDA, 27, 0, 5); | |
| 3697 | addLunar3RunesSmallBox(30242, 9075, 557, 561, 2, 14, 0, 30006, 30010, 85, | |
| 3698 | "Plank Make", | |
| 3699 | "Turn Logs into planks", | |
| 3700 | TDA, 28, 16, 5); | |
| 3701 | addLunar3RunesSmallBox(30250, 9075, 563, 555, 2, 2, 9, 30012, 30004, 86, | |
| 3702 | "Catherby Teleport", | |
| 3703 | "Teleports you to Catherby", | |
| 3704 | TDA, 29, 0, 5); | |
| 3705 | addLunar3RunesSmallBox(30258, 9075, 563, 555, 2, 2, 14, 30012, 30004, 87, | |
| 3706 | "Tele Group Catherby", | |
| 3707 | "Teleports players to Catherby", | |
| 3708 | TDA, 30, 0, 5); | |
| 3709 | addLunar3RunesSmallBox(30266, 9075, 563, 555, 2, 2, 7, 30012, 30004, 88, | |
| 3710 | "Ice Plateau Teleport", | |
| 3711 | "Teleports you to Ice Plateau", | |
| 3712 | TDA, 31, 0, 5); | |
| 3713 | addLunar3RunesLargeBox(30274, 9075, 563, 555, 2, 2, 15, 30012, 30004, 89, | |
| 3714 | "Tele Group Ice Plateau", | |
| 3715 | "Teleports players to Ice Plateau", | |
| 3716 | TDA, 32, 0, 5); | |
| 3717 | addLunar3RunesBigBox(30282, 9075, 563, 561, 2, 1, 0, 30012, 30010, 90, | |
| 3718 | "Energy Transfer", | |
| 3719 | "Spend HP and SA energy to\\n give another SA and run energy", | |
| 3720 | TDA, 33, 8, 2); | |
| 3721 | addLunar3RunesBigBox(30290, 9075, 563, 565, 2, 2, 0, 30012, 30014, 91, | |
| 3722 | "Heal Other", | |
| 3723 | "Transfer up to 75% of hitpoints\\n to another player", | |
| 3724 | TDA, 34, 8, 2); | |
| 3725 | addLunar3RunesBigBox(30298, 9075, 560, 557, 2, 1, 9, 30009, 30006, 92, | |
| 3726 | "Vengeance Other", | |
| 3727 | "Allows another player to rebound\\ndamage to an opponent", | |
| 3728 | TDA, 35, 8, 2); | |
| 3729 | addLunar3RunesSmallBox(30306, 9075, 560, 557, 3, 1, 9, 30009, 30006, 93, | |
| 3730 | "Vengeance", | |
| 3731 | "Rebound damage to an opponent", | |
| 3732 | TDA, 36, 0, 5); | |
| 3733 | addLunar3RunesBigBox(30314, 9075, 565, 563, 3, 2, 5, 30014, 30012, 94, | |
| 3734 | "Heal Group", | |
| 3735 | "Transfer up to 75% of hitpoints\\n to a group", | |
| 3736 | TDA, 37, 0, 5); | |
| 3737 | addLunar3RunesBigBox(30322, 9075, 564, 563, 2, 1, 0, 30013, 30012, 95, | |
| 3738 | "Spellbook Swap", | |
| 3739 | "Change to another spellbook for 1\\nspell cast", | |
| 3740 | TDA, 38, 0, 5); | |
| 3741 | } | |
| 3742 | public static void constructLunar() {
| |
| 3743 | RSInterface Interface = addTabInterface(16640); | |
| 3744 | setChildren(80, Interface); | |
| 3745 | setBounds(30000, 11, 10, 0, Interface); | |
| 3746 | setBounds(30017, 40, 9, 1, Interface); | |
| 3747 | setBounds(30025, 71, 12, 2, Interface); | |
| 3748 | setBounds(30032, 103, 10, 3, Interface); | |
| 3749 | setBounds(30040, 135, 12, 4, Interface); | |
| 3750 | setBounds(30048, 165, 10, 5, Interface); | |
| 3751 | setBounds(30056, 8, 38, 6, Interface); | |
| 3752 | setBounds(30064, 39, 39, 7, Interface); | |
| 3753 | setBounds(30075, 71, 39, 8, Interface); | |
| 3754 | setBounds(30083, 103, 39, 9, Interface); | |
| 3755 | setBounds(30091, 135, 39, 10, Interface); | |
| 3756 | setBounds(30099, 165, 37, 11, Interface); | |
| 3757 | setBounds(30106, 12, 68, 12, Interface); | |
| 3758 | setBounds(30114, 42, 68, 13, Interface); | |
| 3759 | setBounds(30122, 71, 68, 14, Interface); | |
| 3760 | setBounds(30130, 103, 68, 15, Interface); | |
| 3761 | setBounds(30138, 135, 68, 16, Interface); | |
| 3762 | setBounds(30146, 165, 68, 17, Interface); | |
| 3763 | setBounds(30154, 14, 97, 18, Interface); | |
| 3764 | setBounds(30162, 42, 97, 19, Interface); | |
| 3765 | setBounds(30170, 71, 97, 20, Interface); | |
| 3766 | setBounds(30178, 101, 97, 21, Interface); | |
| 3767 | setBounds(30186, 135, 98, 22, Interface); | |
| 3768 | setBounds(30194, 168, 98, 23, Interface); | |
| 3769 | setBounds(30202, 11, 125, 24, Interface); | |
| 3770 | setBounds(30210, 42, 124, 25, Interface); | |
| 3771 | setBounds(30218, 74, 125, 26, Interface); | |
| 3772 | setBounds(30226, 103, 125, 27, Interface); | |
| 3773 | setBounds(30234, 135, 125, 28, Interface); | |
| 3774 | setBounds(30242, 164, 126, 29, Interface); | |
| 3775 | setBounds(30250, 10, 155, 30, Interface); | |
| 3776 | setBounds(30258, 42, 155, 31, Interface); | |
| 3777 | setBounds(30266, 71, 155, 32, Interface); | |
| 3778 | setBounds(30274, 103, 155, 33, Interface); | |
| 3779 | setBounds(30282, 136, 155, 34, Interface); | |
| 3780 | setBounds(30290, 165, 155, 35, Interface); | |
| 3781 | setBounds(30298, 13, 185, 36, Interface); | |
| 3782 | setBounds(30306, 42, 185, 37, Interface); | |
| 3783 | setBounds(30314, 71, 184, 38, Interface); | |
| 3784 | setBounds(30322, 104, 184, 39, Interface); | |
| 3785 | setBounds(30001, 6, 184, 40, Interface);// hover | |
| 3786 | setBounds(30018, 5, 176, 41, Interface);// hover | |
| 3787 | setBounds(30026, 5, 176, 42, Interface);// hover | |
| 3788 | setBounds(30033, 5, 163, 43, Interface);// hover | |
| 3789 | setBounds(30041, 5, 176, 44, Interface);// hover | |
| 3790 | setBounds(30049, 5, 176, 45, Interface);// hover | |
| 3791 | setBounds(30057, 5, 176, 46, Interface);// hover | |
| 3792 | setBounds(30065, 5, 176, 47, Interface);// hover | |
| 3793 | setBounds(30076, 5, 163, 48, Interface);// hover | |
| 3794 | setBounds(30084, 5, 176, 49, Interface);// hover | |
| 3795 | setBounds(30092, 5, 176, 50, Interface);// hover | |
| 3796 | setBounds(30100, 5, 176, 51, Interface);// hover | |
| 3797 | setBounds(30107, 5, 176, 52, Interface);// hover | |
| 3798 | setBounds(30115, 5, 163, 53, Interface);// hover | |
| 3799 | setBounds(30123, 5, 176, 54, Interface);// hover | |
| 3800 | setBounds(30131, 5, 163, 55, Interface);// hover | |
| 3801 | setBounds(30139, 5, 163, 56, Interface);// hover | |
| 3802 | setBounds(30147, 5, 163, 57, Interface);// hover | |
| 3803 | setBounds(30155, 5, 176, 58, Interface);// hover | |
| 3804 | setBounds(30163, 5, 176, 59, Interface);// hover | |
| 3805 | setBounds(30171, 5, 176, 60, Interface);// hover | |
| 3806 | setBounds(30179, 5, 163, 61, Interface);// hover | |
| 3807 | setBounds(30187, 5, 176, 62, Interface);// hover | |
| 3808 | setBounds(30195, 5, 149, 63, Interface);// hover | |
| 3809 | setBounds(30203, 5, 176, 64, Interface);// hover | |
| 3810 | setBounds(30211, 5, 163, 65, Interface);// hover | |
| 3811 | setBounds(30219, 5, 163, 66, Interface);// hover | |
| 3812 | setBounds(30227, 5, 176, 67, Interface);// hover | |
| 3813 | setBounds(30235, 5, 149, 68, Interface);// hover | |
| 3814 | setBounds(30243, 5, 176, 69, Interface);// hover | |
| 3815 | setBounds(30251, 5, 5, 70, Interface);// hover | |
| 3816 | setBounds(30259, 5, 5, 71, Interface);// hover | |
| 3817 | setBounds(30267, 5, 5, 72, Interface);// hover | |
| 3818 | setBounds(30275, 5, 5, 73, Interface);// hover | |
| 3819 | setBounds(30283, 5, 5, 74, Interface);// hover | |
| 3820 | setBounds(30291, 5, 5, 75, Interface);// hover | |
| 3821 | setBounds(30299, 5, 5, 76, Interface);// hover | |
| 3822 | setBounds(30307, 5, 5, 77, Interface);// hover | |
| 3823 | setBounds(30323, 5, 5, 78, Interface);// hover | |
| 3824 | setBounds(30315, 5, 5, 79, Interface);// hover | |
| 3825 | } | |
| 3826 | public static void configureBank(RSFont[] TDA) {
| |
| 3827 | RSInterface Tab = addTabInterface(23000); | |
| 3828 | addText(23003, "", TDA, 0, 0xFFB000); | |
| 3829 | addHover(23004, 3, 0, 23005, 3, "Interfaces/Equipment/CHAR", 21, 21, "Close"); | |
| 3830 | addHovered(23005, 2, "Interfaces/Equipment/CHAR", 21, 21, 23006); | |
| 3831 | addHover(23007, 4, 0, 23008, 5, "Interfaces/Bank/BANK", 35, 25, "Deposit carried items"); | |
| 3832 | addHovered(23008, 6, "Interfaces/Bank/BANK", 35, 25, 23009); | |
| 3833 | //addText(19999, "Combat Level: ", TDA, 0, 0xFF981F); | |
| 3834 | Tab.children = new int[7]; | |
| 3835 | Tab.childX = new int[7]; | |
| 3836 | Tab.childY = new int[7]; | |
| 3837 | Tab.children[0] = 5292; | |
| 3838 | Tab.childX[0] = 0; | |
| 3839 | Tab.childY[0] = 0; | |
| 3840 | Tab.children[1] = 23003; | |
| 3841 | Tab.childX[1] = 410; | |
| 3842 | Tab.childY[1] = 30; | |
| 3843 | Tab.children[2] = 23004; | |
| 3844 | Tab.childX[2] = 472; | |
| 3845 | Tab.childY[2] = 27; | |
| 3846 | Tab.children[3] = 23005; | |
| 3847 | Tab.childX[3] = 472; | |
| 3848 | Tab.childY[3] = 27; | |
| 3849 | Tab.children[4] = 23007; | |
| 3850 | Tab.childX[4] = 450; | |
| 3851 | Tab.childY[4] = 288; | |
| 3852 | Tab.children[5] = 23008; | |
| 3853 | Tab.childX[5] = 450; | |
| 3854 | Tab.childY[5] = 288; | |
| 3855 | ||
| 3856 | Tab.children[6] = 23008; | |
| 3857 | Tab.childX[6] = 3000; | |
| 3858 | Tab.childY[6] = 5000; | |
| 3859 | RSInterface rsi = interfaceCache[5292]; | |
| 3860 | addText(5384, "", TDA, 0, 0xFFB000);//cheap hax | |
| 3861 | rsi.childX[90] = 410; | |
| 3862 | rsi.childY[90] = 288; | |
| 3863 | } | |
| 3864 | ||
| 3865 | public static void Starter(TextDrawingArea[] TDA) {
| |
| 3866 | RSInterface tab = addScreenInterface(15020); | |
| 3867 | addSprite(15009, 0, "Interfaces/Starter/BOX"); | |
| 3868 | addHoverButton(15010, "Interfaces/Starter/ATTACK", 1, 99, 64, "Choose Attack", -1, 15011, 1); | |
| 3869 | addHoveredButton(15011, "Interfaces/Starter/ATTACKH", 0, 98, 64, 15051); | |
| 3870 | addHoverButton(15012, "Interfaces/Starter/MAGIC", 2, 99, 64, "Choose Magic", -1, 15013, 1); | |
| 3871 | addHoveredButton(15013, "Interfaces/Starter/MAGICH", 0, 98, 64, 15052); | |
| 3872 | addHoverButton(15014, "Interfaces/Starter/RANGE", 3, 99, 64, "Choose Range", -1, 15015, 1); | |
| 3873 | addHoveredButton(15015, "Interfaces/Starter/RANGEH", 0, 98, 64, 15053); | |
| 3874 | addText(15016, "Choose A Starter", tda, 3, 0xff00FFFB, false, true); | |
| 3875 | tab.totalChildren(8); | |
| 3876 | tab.child(0, 15009, 48, 65); | |
| 3877 | tab.child(1, 15010, 335, 110); | |
| 3878 | tab.child(2, 15011, 335, 110); | |
| 3879 | tab.child(3, 15012, 207, 110); | |
| 3880 | tab.child(4, 15013, 207, 110); | |
| 3881 | tab.child(5, 15014, 82, 110); | |
| 3882 | tab.child(6, 15015, 82, 110); | |
| 3883 | tab.child(7, 15016, 197, 70); | |
| 3884 | } | |
| 3885 | ||
| 3886 | public static void configureCharDesign(RSFont[] TDA) {
| |
| 3887 | RSInterface rsInterface = interfaceCache[3559] = new RSInterface(); | |
| 3888 | rsInterface.id = 3559; | |
| 3889 | rsInterface.parentID = 3559; | |
| 3890 | rsInterface.interfaceType = 0; | |
| 3891 | rsInterface.atActionType = 0; | |
| 3892 | rsInterface.contentType = 0; | |
| 3893 | rsInterface.width = 512; | |
| 3894 | rsInterface.height = 334; | |
| 3895 | rsInterface.opacity = 0; | |
| 3896 | rsInterface.hoverType = -1; | |
| 3897 | rsInterface.scrollMax = 0; | |
| 3898 | rsInterface.aBoolean266 = false; | |
| 3899 | //addText(int id, String Text, tda, int FontSize, int color); | |
| 3900 | addText(3649, "Welcome to Erased-Pkz - Use the buttons below to design your player", TDA, 2, 0xFF9442); | |
| 3901 | addText(3658, "Torso", TDA, 1, 0xFF9442); | |
| 3902 | addText(3673, "Arms", TDA, 1, 0xFF9442); | |
| 3903 | addText(3674, "Legs", TDA, 1, 0xFF9442); | |
| 3904 | addText(3675, "Head", TDA, 1, 0xFF9442); | |
| 3905 | addText(3676, "Hands", TDA, 1, 0xFF9442); | |
| 3906 | addText(3677, "Feet", TDA, 1, 0xFF9442); | |
| 3907 | addText(3678, "Jaw", TDA, 1, 0xFF9442); | |
| 3908 | addText(3690, "Hair", TDA, 1, 0xFF9442); | |
| 3909 | addText(3691, "Torso", TDA, 1, 0xFF9442); | |
| 3910 | addText(3692, "Legs", TDA, 1, 0xFF9442); | |
| 3911 | addText(3693, "Skin", TDA, 1, 0xFF9442); | |
| 3912 | addText(3694, "Feet", TDA, 1, 0xFF9442); | |
| 3913 | addText(3700, "Male", TDA, 1, 0xFF9442); | |
| 3914 | addText(3701, "Female", TDA, 1, 0xFF9442); | |
| 3915 | /*AddInterfaceButton(int id, int sid, String spriteName, String tooltip); */ | |
| 3916 | /*AddInterfaceButton(3659, 0, "Interfaces/CharDesign/Arrow", "Change head"); | |
| 3917 | AddInterfaceButton(3660, 0, "Interfaces/CharDesign/Arrow", "Change jaw"); | |
| 3918 | AddInterfaceButton(3661, 0, "Interfaces/CharDesign/Arrow", "Change torso"); | |
| 3919 | AddInterfaceButton(3662, 0, "Interfaces/CharDesign/Arrow", "Change arms"); | |
| 3920 | AddInterfaceButton(3663, 0, "Interfaces/CharDesign/Arrow", "Change hands"); | |
| 3921 | AddInterfaceButton(3664, 0, "Interfaces/CharDesign/Arrow", "Change legs"); | |
| 3922 | AddInterfaceButton(3665, 0, "Interfaces/CharDesign/Arrow", "Change feet"); | |
| 3923 | AddInterfaceButton(3666, 1, "Interfaces/CharDesign/Arrow", "Change head"); | |
| 3924 | AddInterfaceButton(3667, 1, "Interfaces/CharDesign/Arrow", "Change jaw"); | |
| 3925 | AddInterfaceButton(3668, 1, "Interfaces/CharDesign/Arrow", "Change torso"); | |
| 3926 | AddInterfaceButton(3669, 1, "Interfaces/CharDesign/Arrow", "Change arms"); | |
| 3927 | AddInterfaceButton(3670, 1, "Interfaces/CharDesign/Arrow", "Change hands"); | |
| 3928 | AddInterfaceButton(3671, 1, "Interfaces/CharDesign/Arrow", "Change legs"); | |
| 3929 | AddInterfaceButton(3672, 1, "Interfaces/CharDesign/Arrow", "Change feet"); | |
| 3930 | AddInterfaceButton(3657, 0, "Interfaces/CharDesign/Arrow", "Recolour hair"); | |
| 3931 | AddInterfaceButton(3681, 0, "Interfaces/CharDesign/Arrow", "Recolour torso"); | |
| 3932 | AddInterfaceButton(3680, 0, "Interfaces/CharDesign/Arrow", "Recolour legs"); | |
| 3933 | AddInterfaceButton(3682, 0, "Interfaces/CharDesign/Arrow", "Recolour feet"); | |
| 3934 | AddInterfaceButton(3683, 0, "Interfaces/CharDesign/Arrow", "Recolour skin"); | |
| 3935 | AddInterfaceButton(3679, 1, "Interfaces/CharDesign/Arrow", "Recolour hair"); | |
| 3936 | AddInterfaceButton(3685, 1, "Interfaces/CharDesign/Arrow", "Recolour torso"); | |
| 3937 | AddInterfaceButton(3687, 1, "Interfaces/CharDesign/Arrow", "Recolour legs"); | |
| 3938 | AddInterfaceButton(3688, 1, "Interfaces/CharDesign/Arrow", "Recolour feet"); | |
| 3939 | AddInterfaceButton(3689, 1, "Interfaces/CharDesign/Arrow", "Recolour skin");*/ | |
| 3940 | rsInterface.children = new int[142]; rsInterface.childX = new int[142]; rsInterface.childY = new int[142]; | |
| 3941 | rsInterface.children[0] = 3560; rsInterface.childX[0] = 12; rsInterface.childY[0] = 20; | |
| 3942 | rsInterface.children[1] = 3561; rsInterface.childX[1] = 12; rsInterface.childY[1] = 80; | |
| 3943 | rsInterface.children[2] = 3562; rsInterface.childX[2] = 12; rsInterface.childY[2] = 140; | |
| 3944 | rsInterface.children[3] = 3563; rsInterface.childX[3] = 12; rsInterface.childY[3] = 200; | |
| 3945 | rsInterface.children[4] = 3564; rsInterface.childX[4] = 12; rsInterface.childY[4] = 260; | |
| 3946 | rsInterface.children[5] = 3565; rsInterface.childX[5] = 100; rsInterface.childY[5] = 20; | |
| 3947 | rsInterface.children[6] = 3566; rsInterface.childX[6] = 100; rsInterface.childY[6] = 80; | |
| 3948 | rsInterface.children[7] = 3567; rsInterface.childX[7] = 100; rsInterface.childY[7] = 140; | |
| 3949 | rsInterface.children[8] = 3568; rsInterface.childX[8] = 100; rsInterface.childY[8] = 200; | |
| 3950 | rsInterface.children[9] = 3569; rsInterface.childX[9] = 188; rsInterface.childY[9] = 20; | |
| 3951 | rsInterface.children[10] = 3570; rsInterface.childX[10] = 100; rsInterface.childY[10] = 260; | |
| 3952 | rsInterface.children[11] = 3571; rsInterface.childX[11] = 188; rsInterface.childY[11] = 80; | |
| 3953 | rsInterface.children[12] = 3572; rsInterface.childX[12] = 188; rsInterface.childY[12] = 140; | |
| 3954 | rsInterface.children[13] = 3573; rsInterface.childX[13] = 188; rsInterface.childY[13] = 200; | |
| 3955 | rsInterface.children[14] = 3574; rsInterface.childX[14] = 188; rsInterface.childY[14] = 260; | |
| 3956 | rsInterface.children[15] = 3575; rsInterface.childX[15] = 276; rsInterface.childY[15] = 20; | |
| 3957 | rsInterface.children[16] = 3576; rsInterface.childX[16] = 364; rsInterface.childY[16] = 80; | |
| 3958 | rsInterface.children[17] = 3577; rsInterface.childX[17] = 276; rsInterface.childY[17] = 80; | |
| 3959 | rsInterface.children[18] = 3578; rsInterface.childX[18] = 276; rsInterface.childY[18] = 140; | |
| 3960 | rsInterface.children[19] = 3579; rsInterface.childX[19] = 276; rsInterface.childY[19] = 200; | |
| 3961 | rsInterface.children[20] = 3580; rsInterface.childX[20] = 276; rsInterface.childY[20] = 260; | |
| 3962 | rsInterface.children[21] = 3581; rsInterface.childX[21] = 364; rsInterface.childY[21] = 140; | |
| 3963 | rsInterface.children[22] = 3582; rsInterface.childX[22] = 364; rsInterface.childY[22] = 20; | |
| 3964 | rsInterface.children[23] = 3583; rsInterface.childX[23] = 364; rsInterface.childY[23] = 200; | |
| 3965 | rsInterface.children[24] = 3584; rsInterface.childX[24] = 364; rsInterface.childY[24] = 260; | |
| 3966 | rsInterface.children[25] = 3585; rsInterface.childX[25] = 412; rsInterface.childY[25] = 20; | |
| 3967 | rsInterface.children[26] = 3586; rsInterface.childX[26] = 412; rsInterface.childY[26] = 80; | |
| 3968 | rsInterface.children[27] = 3587; rsInterface.childX[27] = 412; rsInterface.childY[27] = 140; | |
| 3969 | rsInterface.children[28] = 3588; rsInterface.childX[28] = 412; rsInterface.childY[28] = 200; | |
| 3970 | rsInterface.children[29] = 3589; rsInterface.childX[29] = 412; rsInterface.childY[29] = 260; | |
| 3971 | rsInterface.children[30] = 3590; rsInterface.childX[30] = 12; rsInterface.childY[30] = 20; | |
| 3972 | rsInterface.children[31] = 3591; rsInterface.childX[31] = -3; rsInterface.childY[31] = 49; | |
| 3973 | rsInterface.children[32] = 3592; rsInterface.childX[32] = -3; rsInterface.childY[32] = 85; | |
| 3974 | rsInterface.children[33] = 3593; rsInterface.childX[33] = -3; rsInterface.childY[33] = 121; | |
| 3975 | rsInterface.children[34] = 3594; rsInterface.childX[34] = -3; rsInterface.childY[34] = 157; | |
| 3976 | rsInterface.children[35] = 3595; rsInterface.childX[35] = -3; rsInterface.childY[35] = 193; | |
| 3977 | rsInterface.children[36] = 3596; rsInterface.childX[36] = -3; rsInterface.childY[36] = 229; | |
| 3978 | rsInterface.children[37] = 3597; rsInterface.childX[37] = -3; rsInterface.childY[37] = 265; | |
| 3979 | rsInterface.children[38] = 3598; rsInterface.childX[38] = 479; rsInterface.childY[38] = 50; | |
| 3980 | rsInterface.children[39] = 3599; rsInterface.childX[39] = 479; rsInterface.childY[39] = 86; | |
| 3981 | rsInterface.children[40] = 3600; rsInterface.childX[40] = 479; rsInterface.childY[40] = 122; | |
| 3982 | rsInterface.children[41] = 3601; rsInterface.childX[41] = 479; rsInterface.childY[41] = 158; | |
| 3983 | rsInterface.children[42] = 3602; rsInterface.childX[42] = 479; rsInterface.childY[42] = 194; | |
| 3984 | rsInterface.children[43] = 3603; rsInterface.childX[43] = 479; rsInterface.childY[43] = 230; | |
| 3985 | rsInterface.children[44] = 3604; rsInterface.childX[44] = 479; rsInterface.childY[44] = 266; | |
| 3986 | rsInterface.children[45] = 3605; rsInterface.childX[45] = 73; rsInterface.childY[45] = 299; | |
| 3987 | rsInterface.children[46] = 3606; rsInterface.childX[46] = 109; rsInterface.childY[46] = 299; | |
| 3988 | rsInterface.children[47] = 3607; rsInterface.childX[47] = 145; rsInterface.childY[47] = 299; | |
| 3989 | rsInterface.children[48] = 3608; rsInterface.childX[48] = 181; rsInterface.childY[48] = 299; | |
| 3990 | rsInterface.children[49] = 3609; rsInterface.childX[49] = 217; rsInterface.childY[49] = 299; | |
| 3991 | rsInterface.children[50] = 3610; rsInterface.childX[50] = 253; rsInterface.childY[50] = 299; | |
| 3992 | rsInterface.children[51] = 3611; rsInterface.childX[51] = 289; rsInterface.childY[51] = 299; | |
| 3993 | rsInterface.children[52] = 3612; rsInterface.childX[52] = 325; rsInterface.childY[52] = 299; | |
| 3994 | rsInterface.children[53] = 3613; rsInterface.childX[53] = 361; rsInterface.childY[53] = 299; | |
| 3995 | rsInterface.children[54] = 3614; rsInterface.childX[54] = 397; rsInterface.childY[54] = 299; | |
| 3996 | rsInterface.children[55] = 3615; rsInterface.childX[55] = 433; rsInterface.childY[55] = 299; | |
| 3997 | rsInterface.children[56] = 3616; rsInterface.childX[56] = 72; rsInterface.childY[56] = 5; | |
| 3998 | rsInterface.children[57] = 3617; rsInterface.childX[57] = 108; rsInterface.childY[57] = 5; | |
| 3999 | rsInterface.children[58] = 3618; rsInterface.childX[58] = 144; rsInterface.childY[58] = 5; | |
| 4000 | rsInterface.children[59] = 3619; rsInterface.childX[59] = 180; rsInterface.childY[59] = 5; | |
| 4001 | rsInterface.children[60] = 3620; rsInterface.childX[60] = 216; rsInterface.childY[60] = 5; | |
| 4002 | rsInterface.children[61] = 3621; rsInterface.childX[61] = 252; rsInterface.childY[61] = 5; | |
| 4003 | rsInterface.children[62] = 3622; rsInterface.childX[62] = 288; rsInterface.childY[62] = 5; | |
| 4004 | rsInterface.children[63] = 3623; rsInterface.childX[63] = 324; rsInterface.childY[63] = 5; | |
| 4005 | rsInterface.children[64] = 3624; rsInterface.childX[64] = 360; rsInterface.childY[64] = 5; | |
| 4006 | rsInterface.children[65] = 3625; rsInterface.childX[65] = 396; rsInterface.childY[65] = 5; | |
| 4007 | rsInterface.children[66] = 3626; rsInterface.childX[66] = 432; rsInterface.childY[66] = 5; | |
| 4008 | rsInterface.children[67] = 3627; rsInterface.childX[67] = 252; rsInterface.childY[67] = 34; | |
| 4009 | rsInterface.children[68] = 3628; rsInterface.childX[68] = 37; rsInterface.childY[68] = 5; | |
| 4010 | rsInterface.children[69] = 3629; rsInterface.childX[69] = 37; rsInterface.childY[69] = 299; | |
| 4011 | rsInterface.children[70] = 3630; rsInterface.childX[70] = 12; rsInterface.childY[70] = 290; | |
| 4012 | rsInterface.children[71] = 3631; rsInterface.childX[71] = 475; rsInterface.childY[71] = 20; | |
| 4013 | rsInterface.children[72] = 3632; rsInterface.childX[72] = 439; rsInterface.childY[72] = 5; | |
| 4014 | rsInterface.children[73] = 3633; rsInterface.childX[73] = 475; rsInterface.childY[73] = 290; | |
| 4015 | rsInterface.children[74] = 3634; rsInterface.childX[74] = 439; rsInterface.childY[74] = 299; | |
| 4016 | rsInterface.children[75] = 3635; rsInterface.childX[75] = 288; rsInterface.childY[75] = 34; | |
| 4017 | rsInterface.children[76] = 3636; rsInterface.childX[76] = 324; rsInterface.childY[76] = 34; | |
| 4018 | rsInterface.children[77] = 3637; rsInterface.childX[77] = 360; rsInterface.childY[77] = 34; | |
| 4019 | rsInterface.children[78] = 3638; rsInterface.childX[78] = 396; rsInterface.childY[78] = 34; | |
| 4020 | rsInterface.children[79] = 3639; rsInterface.childX[79] = 432; rsInterface.childY[79] = 34; | |
| 4021 | rsInterface.children[80] = 3640; rsInterface.childX[80] = 459; rsInterface.childY[80] = 34; | |
| 4022 | rsInterface.children[81] = 3641; rsInterface.childX[81] = 216; rsInterface.childY[81] = 34; | |
| 4023 | rsInterface.children[82] = 3642; rsInterface.childX[82] = 180; rsInterface.childY[82] = 34; | |
| 4024 | rsInterface.children[83] = 3643; rsInterface.childX[83] = 144; rsInterface.childY[83] = 34; | |
| 4025 | rsInterface.children[84] = 3644; rsInterface.childX[84] = 108; rsInterface.childY[84] = 34; | |
| 4026 | rsInterface.children[85] = 3645; rsInterface.childX[85] = 72; rsInterface.childY[85] = 34; | |
| 4027 | rsInterface.children[86] = 3646; rsInterface.childX[86] = 36; rsInterface.childY[86] = 34; | |
| 4028 | rsInterface.children[87] = 3647; rsInterface.childX[87] = 17; rsInterface.childY[87] = 34; | |
| 4029 | rsInterface.children[88] = 3648; rsInterface.childX[88] = 36; rsInterface.childY[88] = 20; | |
| 4030 | rsInterface.children[89] = 3649; rsInterface.childX[89] = 28; rsInterface.childY[89] = 29; | |
| 4031 | rsInterface.children[90] = 3650; rsInterface.childX[90] = 190; rsInterface.childY[90] = 155; | |
| 4032 | rsInterface.children[91] = 3651; rsInterface.childX[91] = 223; rsInterface.childY[91] = 266; | |
| 4033 | rsInterface.children[92] = 3652; rsInterface.childX[92] = 237; rsInterface.childY[92] = 274; | |
| 4034 | rsInterface.children[93] = 3653; rsInterface.childX[93] = 217; rsInterface.childY[93] = 260; | |
| 4035 | rsInterface.children[94] = 3654; rsInterface.childX[94] = 270; rsInterface.childY[94] = 260; | |
| 4036 | rsInterface.children[95] = 3655; rsInterface.childX[95] = 217; rsInterface.childY[95] = 273; | |
| 4037 | rsInterface.children[96] = 3656; rsInterface.childX[96] = 270; rsInterface.childY[96] = 273; | |
| 4038 | rsInterface.children[97] = 3657; rsInterface.childX[97] = 326; rsInterface.childY[97] = 74; | |
| 4039 | rsInterface.children[98] = 3658; rsInterface.childX[98] = 90; rsInterface.childY[98] = 151; | |
| 4040 | rsInterface.children[99] = 3659; rsInterface.childX[99] = 27; rsInterface.childY[99] = 68; | |
| 4041 | rsInterface.children[100] = 3660; rsInterface.childX[100] = 27; rsInterface.childY[100] = 103; | |
| 4042 | rsInterface.children[101] = 3661; rsInterface.childX[101] = 27; rsInterface.childY[101] = 138; | |
| 4043 | rsInterface.children[102] = 3662; rsInterface.childX[102] = 27; rsInterface.childY[102] = 173; | |
| 4044 | rsInterface.children[103] = 3663; rsInterface.childX[103] = 27; rsInterface.childY[103] = 208; | |
| 4045 | rsInterface.children[104] = 3664; rsInterface.childX[104] = 27; rsInterface.childY[104] = 243; | |
| 4046 | rsInterface.children[105] = 3665; rsInterface.childX[105] = 27; rsInterface.childY[105] = 278; | |
| 4047 | rsInterface.children[106] = 3666; rsInterface.childX[106] = 140; rsInterface.childY[106] = 68; | |
| 4048 | rsInterface.children[107] = 3667; rsInterface.childX[107] = 140; rsInterface.childY[107] = 103; | |
| 4049 | rsInterface.children[108] = 3668; rsInterface.childX[108] = 140; rsInterface.childY[108] = 138; | |
| 4050 | rsInterface.children[109] = 3669; rsInterface.childX[109] = 140; rsInterface.childY[109] = 173; | |
| 4051 | rsInterface.children[110] = 3670; rsInterface.childX[110] = 140; rsInterface.childY[110] = 208; | |
| 4052 | rsInterface.children[111] = 3671; rsInterface.childX[111] = 140; rsInterface.childY[111] = 243; | |
| 4053 | rsInterface.children[112] = 3672; rsInterface.childX[112] = 140; rsInterface.childY[112] = 278; | |
| 4054 | rsInterface.children[113] = 3673; rsInterface.childX[113] = 90; rsInterface.childY[113] = 184; | |
| 4055 | rsInterface.children[114] = 3674; rsInterface.childX[114] = 91; rsInterface.childY[114] = 254; | |
| 4056 | rsInterface.children[115] = 3675; rsInterface.childX[115] = 91; rsInterface.childY[115] = 79; | |
| 4057 | rsInterface.children[116] = 3676; rsInterface.childX[116] = 88; rsInterface.childY[116] = 219; | |
| 4058 | rsInterface.children[117] = 3677; rsInterface.childX[117] = 91; rsInterface.childY[117] = 288; | |
| 4059 | rsInterface.children[118] = 3678; rsInterface.childX[118] = 94; rsInterface.childY[118] = 114; | |
| 4060 | rsInterface.children[119] = 3679; rsInterface.childX[119] = 440; rsInterface.childY[119] = 74; | |
| 4061 | rsInterface.children[120] = 3680; rsInterface.childX[120] = 326; rsInterface.childY[120] = 144; | |
| 4062 | rsInterface.children[121] = 3681; rsInterface.childX[121] = 326; rsInterface.childY[121] = 109; | |
| 4063 | rsInterface.children[122] = 3682; rsInterface.childX[122] = 326; rsInterface.childY[122] = 179; | |
| 4064 | rsInterface.children[123] = 3683; rsInterface.childX[123] = 326; rsInterface.childY[123] = 214; | |
| 4065 | rsInterface.children[124] = 3684; rsInterface.childX[124] = 87; rsInterface.childY[124] = 55; | |
| 4066 | rsInterface.children[125] = 3685; rsInterface.childX[125] = 440; rsInterface.childY[125] = 109; | |
| 4067 | rsInterface.children[126] = 3686; rsInterface.childX[126] = 391; rsInterface.childY[126] = 55; | |
| 4068 | rsInterface.children[127] = 3687; rsInterface.childX[127] = 440; rsInterface.childY[127] = 144; | |
| 4069 | rsInterface.children[128] = 3688; rsInterface.childX[128] = 440; rsInterface.childY[128] = 179; | |
| 4070 | rsInterface.children[129] = 3689; rsInterface.childX[129] = 440; rsInterface.childY[129] = 214; | |
| 4071 | rsInterface.children[130] = 3690; rsInterface.childX[130] = 394; rsInterface.childY[130] = 86; | |
| 4072 | rsInterface.children[131] = 3691; rsInterface.childX[131] = 390; rsInterface.childY[131] = 121; | |
| 4073 | rsInterface.children[132] = 3692; rsInterface.childX[132] = 392; rsInterface.childY[132] = 155; | |
| 4074 | rsInterface.children[133] = 3693; rsInterface.childX[133] = 393; rsInterface.childY[133] = 225; | |
| 4075 | rsInterface.children[134] = 3694; rsInterface.childX[134] = 393; rsInterface.childY[134] = 191; | |
| 4076 | rsInterface.children[135] = 3695; rsInterface.childX[135] = 235; rsInterface.childY[135] = 245; | |
| 4077 | rsInterface.children[136] = 3696; rsInterface.childX[136] = 236; rsInterface.childY[136] = 282; | |
| 4078 | rsInterface.children[137] = 3697; rsInterface.childX[137] = 390; rsInterface.childY[137] = 258; | |
| 4079 | rsInterface.children[138] = 3698; rsInterface.childX[138] = 325; rsInterface.childY[138] = 271; | |
| 4080 | rsInterface.children[139] = 3699; rsInterface.childX[139] = 417; rsInterface.childY[139] = 271; | |
| 4081 | rsInterface.children[140] = 3700; rsInterface.childX[140] = 348; rsInterface.childY[140] = 281; | |
| 4082 | rsInterface.children[141] = 3701; rsInterface.childX[141] = 435; rsInterface.childY[141] = 281; | |
| 4083 | } | |
| 4084 | ||
| 4085 | ||
| 4086 | ||
| 4087 | ||
| 4088 | ||
| 4089 | private Model method206(int i, int j) {
| |
| 4090 | Model model = (Model) modelNodes.insertFromCache((i << 16) + j); | |
| 4091 | if(model != null) | |
| 4092 | return model; | |
| 4093 | if(i == 1) | |
| 4094 | model = Model.method462(j); | |
| 4095 | if(i == 2) | |
| 4096 | model = EntityDef.forID(j).method160(); | |
| 4097 | if(i == 3) | |
| 4098 | model = client.myPlayer.method453(); | |
| 4099 | if(i == 4) | |
| 4100 | model = ItemDef.forID(j).method202(50); | |
| 4101 | if(i == 5) | |
| 4102 | model = null; | |
| 4103 | if(model != null) | |
| 4104 | modelNodes.removeFromCache(model, (i << 16) + j); | |
| 4105 | return model; | |
| 4106 | } | |
| 4107 | ||
| 4108 | static int f = 0; | |
| 4109 | static int f2 = 0; | |
| 4110 | ||
| 4111 | private static Sprite method207(int i, NamedArchive archive, String s) {
| |
| 4112 | long l = (TextClass.method585(s) << 8) + (long) i; | |
| 4113 | if (s.equals("combatboxes")) {
| |
| 4114 | if (++ f2 == 2) {
| |
| 4115 | f2 = 3; | |
| 4116 | return null; | |
| 4117 | } | |
| 4118 | } | |
| 4119 | if (s.contains("prayer")) {
| |
| 4120 | if (++ f > 93) | |
| 4121 | return null; | |
| 4122 | } | |
| 4123 | Sprite sprite = (Sprite) spriteNodes.insertFromCache(l); | |
| 4124 | if(sprite != null) | |
| 4125 | return sprite; | |
| 4126 | try {
| |
| 4127 | sprite = new Sprite(archive, s, i); | |
| 4128 | if (sprite == null) | |
| 4129 | return null; | |
| 4130 | spriteNodes.removeFromCache(sprite, l); | |
| 4131 | } catch(Exception _ex) {
| |
| 4132 | return null; | |
| 4133 | } | |
| 4134 | return sprite; | |
| 4135 | } | |
| 4136 | ||
| 4137 | public static void method208(boolean flag, Model model) {
| |
| 4138 | int i = 0;//was parameter | |
| 4139 | int j = 5;//was parameter | |
| 4140 | if(flag) | |
| 4141 | return; | |
| 4142 | modelNodes.unlinkAll(); | |
| 4143 | if(model != null && j != 4) | |
| 4144 | modelNodes.removeFromCache(model, (j << 16) + i); | |
| 4145 | } | |
| 4146 | ||
| 4147 | public Model method209(int j, int k, boolean flag) {
| |
| 4148 | Model model; | |
| 4149 | if(flag) | |
| 4150 | model = method206(enabledMediaType, enabledMediaID); | |
| 4151 | else | |
| 4152 | model = method206(disabledMediaType, disabledMediaID); | |
| 4153 | if(model == null) | |
| 4154 | return null; | |
| 4155 | if(k == -1 && j == -1 && model.anIntArray1640 == null) | |
| 4156 | return model; | |
| 4157 | Model model_1 = new Model(true, Class36.method532(k) & Class36.method532(j), false, model); | |
| 4158 | if(k != -1 || j != -1) | |
| 4159 | model_1.method469(); | |
| 4160 | if(k != -1) | |
| 4161 | model_1.method470(k); | |
| 4162 | if(j != -1) | |
| 4163 | model_1.method470(j); | |
| 4164 | model_1.method479(64, 768, -50, -10, -50, true); | |
| 4165 | return model_1; | |
| 4166 | } | |
| 4167 | ||
| 4168 | public RSInterface() {}
| |
| 4169 | ||
| 4170 | public static NamedArchive aClass44; | |
| 4171 | /* Custom added */ | |
| 4172 | public boolean drawsTransparent; | |
| 4173 | public String hoverText; | |
| 4174 | public String popupString; | |
| 4175 | public boolean newScroller; | |
| 4176 | public boolean inventoryhover; | |
| 4177 | public static RSFont[] fonts; | |
| 4178 | ||
| 4179 | /* Class */ | |
| 4180 | public Sprite disabledSprite; | |
| 4181 | public int animationDelay; | |
| 4182 | public Sprite sprites[]; | |
| 4183 | public static RSInterface interfaceCache[]; | |
| 4184 | public int requiredValues[]; | |
| 4185 | public int contentType; | |
| 4186 | public int spritesX[]; | |
| 4187 | public int disabledHoverColor; | |
| 4188 | public int atActionType; | |
| 4189 | public String spellName; | |
| 4190 | public int enabledColor; | |
| 4191 | public int width; | |
| 4192 | public String tooltip; | |
| 4193 | public String selectedActionName; | |
| 4194 | public boolean textCentered; | |
| 4195 | public int scrollPosition; | |
| 4196 | public String itemActions[]; | |
| 4197 | public int valueIndexArray[][]; | |
| 4198 | public boolean boxFilled; | |
| 4199 | public String enabledMessage; | |
| 4200 | public int hoverType; | |
| 4201 | public int invSpritePadX; | |
| 4202 | public int disabledColor; | |
| 4203 | public int disabledMediaType; | |
| 4204 | public int disabledMediaID; | |
| 4205 | public boolean deletesTargetSlot; | |
| 4206 | public int parentID; | |
| 4207 | public int spellUsableOn; | |
| 4208 | private static MRUNodes spriteNodes; | |
| 4209 | public int enabledHoverColor; | |
| 4210 | public int children[]; | |
| 4211 | public int childX[]; | |
| 4212 | public boolean usableItemInterface; | |
| 4213 | public RSFont rsFonts; | |
| 4214 | public int invSpritePadY; | |
| 4215 | public int valueCompareType[]; | |
| 4216 | public int animationLength; | |
| 4217 | public int spritesY[]; | |
| 4218 | public String disabledMessage; | |
| 4219 | public boolean isInventoryInterface; | |
| 4220 | public int id; | |
| 4221 | public int inventoryValue[]; | |
| 4222 | public int inventory[]; | |
| 4223 | public byte opacity; | |
| 4224 | private int enabledMediaType; | |
| 4225 | private int enabledMediaID; | |
| 4226 | public int disabledAnimation; | |
| 4227 | public int enabledAnimation; | |
| 4228 | public boolean allowSwapItems; | |
| 4229 | public Sprite enabledSprite; | |
| 4230 | public int scrollMax; | |
| 4231 | public int interfaceType; | |
| 4232 | boolean aBoolean266; | |
| 4233 | public int xOffset; | |
| 4234 | private static final MRUNodes modelNodes = new MRUNodes(30); | |
| 4235 | public int yOffset; | |
| 4236 | public boolean interfaceShown; | |
| 4237 | public int height; | |
| 4238 | public boolean textShadowed; | |
| 4239 | public int modelZoom; | |
| 4240 | public int modelRotationY; | |
| 4241 | public int modelRotationX; | |
| 4242 | public int childY[]; | |
| 4243 | } |