Simple, change the sidebarinterface ID shown server sided.
|
|
Can someone convert this to the note tab instead of putting it in the settings tab. I REALLY would appreciate this!!
Code:public static void staffTab(TextDrawingArea[] TDA) { RSInterface tab = addTabInterface(24999); //int index = 0; addText(28024, "Staff List", 0xff9933, true, true, -1, TDA, 1); addSprite(16126, 0, "Interfaces/stafftab/SPRITE"); addSprite(16127, 1, "Interfaces/stafftab/SPRITE"); addHoverButton(28018, "Interfaces/stafftab/SPRITE", 2, 160, 32, "Request Staff Assistance", -1, 28019, 1); addHoveredButton(28019, "Interfaces/stafftab/SPRITE", 3, 160, 32, 28020); addText(28000, "User 1", 0xffffff, false, true, -1, TDA, 1); addText(28001, "Offline", 0xff0000, false, true, -1, TDA, 1); addText(28002, "User 2", 0xffffff, false, true, -1, TDA, 1); addText(28003, "Offline", 0xff0000, false, true, -1, TDA, 1); addText(28004, "User 3", 0xffffff, false, true, -1, TDA, 1); addText(28005, "Offline", 0xff0000, false, true, -1, TDA, 1); addText(28006, "User 4", 0xffffff, false, true, -1, TDA, 1); addText(28007, "Offline", 0xff0000, false, true, -1, TDA, 1); addText(28008, "User 5", 0xffffff, false, true, -1, TDA, 1); addText(28009, "Offline", 0xff0000, false, true, -1, TDA, 1); addText(28010, "User 6", 0xffffff, false, true, -1, TDA, 1); addText(28011, "Offline", 0xff0000, false, true, -1, TDA, 1); addText(28012, "User 7", 0xffffff, false, true, -1, TDA, 1); addText(28013, "Offline", 0xff0000, false, true, -1, TDA, 1); addText(28014, "User 8", 0xffffff, false, true, -1, TDA, 1); addText(28015, "Offline", 0xff0000, false, true, -1, TDA, 1); addText(28016, "User 9", 0xffffff, false, true, -1, TDA, 1); addText(28017, "Offline", 0xff0000, false, true, -1, TDA, 1); addText(28021, "Owners", 0xff9933, true, true, -1, TDA, 3); addText(28022, "Administrators", 0xff9933, true, true, -1, TDA, 3); addText(28023, "Moderators", 0xff9933, true, true, -1, TDA, 3); tab.totalChildren(32); tab.child(0, 28024, 95, 4); tab.child(1, 16127, 0, 25); tab.child(2, 16126, 0, 221); tab.child(3, 16126, 0, 22); tab.child(4, 16126, 0, 40); tab.child(5, 16126, 0, 73); tab.child(6, 16126, 0, 91); tab.child(7, 16126, 0, 124); tab.child(8, 16126, 0, 141); tab.child(9, 28000, 3, 42); tab.child(10, 28002, 3, 57); tab.child(11, 28004, 3, 93); tab.child(12, 28006, 3, 108); tab.child(13, 28008, 3, 144); tab.child(14, 28010, 3, 159); tab.child(15, 28012, 3, 174); tab.child(16, 28014, 3, 189); tab.child(17, 28016, 3, 204); tab.child(18, 28001, 146, 42); tab.child(19, 28003, 146, 57); tab.child(20, 28005, 146, 93); tab.child(21, 28007, 146, 108); tab.child(22, 28009, 146, 144); tab.child(23, 28011, 146, 159); tab.child(24, 28013, 146, 174); tab.child(25, 28015, 146, 189); tab.child(26, 28017, 146, 204); tab.child(27, 28018, 15, 226); tab.child(28, 28019, 15, 226); tab.child(29, 28021, 95, 24); tab.child(30, 28022, 95, 75); tab.child(31, 28023, 95, 125); }Code:String staffNames[] = { "Open", "Open", "Open", "Open", "Open", "Open", "Open", "Open", "Open" }; //Staff Spot 1 Online/Offline for(int i=0, i2=28000; i < staffNames.length; i++, i2+=2){ getPA().sendFrame126(staffNames[i], i2); getPA().sendFrame126( ((PlayerHandler.isPlayerOn(staffNames[i]))? "@[email protected]" : "@[email protected]") , i2 + 1); }This tutorial, [Only registered and activated users can see links. ] is what I usedCode://Request Staff Assistance case 109114: if (System.currentTimeMillis() - c.lastButton < 300000) { c.sendMessage("You can only call for assistance once every 5 minutes."); break; } else { c.lastButton = System.currentTimeMillis(); } if(c.playerRights >= 0) { c.sendMessage("You have requested staff assistance."); for (int i = 0; i < Config.MAX_PLAYERS; i++) { if (PlayerHandler.players[i] != null) { if(PlayerHandler.players[i].playerRights > 2) { Client c2 = (Client)PlayerHandler.players[i]; c2.sendMessage("<col=f63526>" + c.playerName + " is requesting staff assistance! Please assist him"); }}}} break;

Simple, change the sidebarinterface ID shown server sided.
You can just add the notes tab then in client.java server sided you can just change the setsidebar interface for that tab to the note tab, no need to convert that code to notes tab


its in client.java its shud say something along the lines of "interface id 11: 142589" change the long number

Couldn't find anything about interface id 11
Code:public static void notesTab(TextDrawingArea[] tda) { RSInterface tab = addTabInterface(17350); addSprite(17351, 0, "Interfaces/Notes/NOTE"); addHoverButton(17352, "Interfaces/Notes/NOTE", 1, 17, 17, "Add note", -1, 17353, 1); addHoveredButton(17353, "Interfaces/Notes/NOTE", 2, 17, 17, 17354); addHoverButton(17355, "Interfaces/Notes/NOTE", 3, 17, 17, "Delete all", -1, 17356, 1); addHoveredButton(17356, "Interfaces/Notes/NOTE", 4, 17, 17, 17357); addText(13800, "No notes", tda, 0, 0xffffff, false, true); addText(17820, "Notes", tda, 1, 0xFF981F, true, false); addText(17822, "Delete", tda, 1, 0xFF981F, true, false); addText(17823, "", tda, 0, 0xff981f, false, true); addText(17824, "", tda, 0, 0xff981f, false, true); tab.totalChildren(8); tab.child(0, 17351, 0, 27); tab.child(1, 17352, 8, 6); tab.child(2, 17353, 8, 6); tab.child(3, 17355, 165, 231); tab.child(4, 17356, 165, 231); tab.child(5, 13800, 68, 78); tab.child(6, 17820, 92, 8); tab.child(7, 17822, 94, 231); tab = addTabInterface(14000); tab.width = 474; tab.height = 213; tab.scrollMax = 305; for(int i = 14001; i <= 14030; i++){ addText(i, "", tda, 1, 0xffffff, false, true); } tab.totalChildren(30); int Child = 0; int Y = 5; for(int i = 14001; i <= 14030; i++){ tab.child(Child, i, 248, Y); Child++; Y += 13; } }

server sided, do setSideInterface(NOTE TAB ID, INTERFACE ID);
Client.java
thats all.
| « requesting unique source. | Need programmers for new framework » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |