RSI class (RSInterface.java - Client sided)
Server sideCode:public static void addAura(int i) { RSInterface rsinterface = interfaceCache[i] = new RSInterface(); rsinterface.actions = new String[5]; rsinterface.spritesX = new int[20]; rsinterface.invStackSizes = new int[30]; rsinterface.inv = new int[30]; rsinterface.spritesY = new int[20]; rsinterface.children = new int[0]; rsinterface.childX = new int[0]; rsinterface.childY = new int[0]; rsinterface.spritesY[0] = 0; rsinterface.invStackSizes[0] = 0; rsinterface.inv[0] = 0; rsinterface.spritesX[0] = 0; rsinterface.actions[0] = "Time left"; rsinterface.actions[1] = "Activate"; rsinterface.actions[2] = null; rsinterface.actions[3] = null; rsinterface.actions[4] = null; rsinterface.centerText = false; rsinterface.aBoolean227 = false; rsinterface.aBoolean235 = false; rsinterface.usableItemInterface = false; rsinterface.isInventoryInterface = false; rsinterface.aBoolean259 = true; rsinterface.interfaceShown = false; rsinterface.textShadow = false; rsinterface.width = 6; rsinterface.hoverType = -1; rsinterface.invSpritePadX = 24; rsinterface.parentID = 10794; rsinterface.invSpritePadY = 24; rsinterface.type = 2; rsinterface.height = 5; } For equipment interface addSprite(19146, 1, "Equipment/aura"); addAura(10794); addButton(29145, 2, "Equipment/aura", 36, 36, "Remove", 1); setBounds(29145, 37, 5, 26, Interface); setBounds(19146, 37, 5, 24, Interface); setBounds(10794, 39, 7, 25, Interface); For equipment screen interface addSprite(19146, 1, "Equipment/aura");//AURA addAura(10794);//AURA addButton(29145, 2, "Equipment/aura", 36, 36, "Remove", 1); tab.child(50, 19146, 357+2, 62-3);//AURA tab.child(51, 10794, 359+2, 64-3);//AURA tab.child(52, 29145, 357+2, 62-3);//AURA
P Class (player.java)
C class (client.java)Code:public int AuraEquiped = -1; public int AuraEffect = 0; public int AuraTime = 0;
search for process()
CI Class (clickItem.java) this adds aura to interfaces.Code:getPA().sendFrame34(AuraEquiped, 0, 10794, 1);
CB Class (clickingButtons.java) this removes aura from interfaces.Code:if(itemId == your aura itemid) { if(c.AuraEquiped > 1){ c.getItems().addItem(c.AuraEquiped, 1); } c.AuraEquiped = your aura itemid; c.getPA().sendFrame34(c.AuraEquiped, 0, 10794, 1); c.AuraEffect = 1; c.getItems().deleteItem(your aura itemid,c.getItems().getItemSlot(your aura itemid),1); }
Code:case 113217: if(c.getItems().freeSlots() < 1){ c.sendMessage("You need atleast 1 free inventory space."); return; } c.getItems().addItem(c.AuraEquiped, 1); c.AuraEquiped = -1; c.getPA().sendFrame34(c.AuraEquiped, 0, 10794, 1); break;





