Jump to content

Search the Community

Showing results for tags 'interface'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 198 results

  1. Hello All! I am looking to buy a source and client that has the current Old runescape staking interface. I will also be paying for changes to been done to the provided Source and Client. Please reply here with your contact information. Thanks !
  2. This tutorial will show you how to add the newer style bank interface to your server, this also includes fully working bank all and bank all worn items. (NOTE: This interface has the bank tabs taken off of it because I think it looks better personally) [B][U]What your adding:[/U][/B] [URL=http://s776.photobucket.com/user/tom14431996/media/pic_zps2fc55168.png.html][IMG]http://i776.photobucket.com/albums/yy41/tom14431996/pic_zps2fc55168.png[/IMG][/URL] To begin with we need to add the interface client sided. [B]Download these sprites and put them in your cache, in the sprites folder:[/B][url=http://www.mediafire.com/download/rg3fdp3m1349u1e/Bank.rar] Click here[/url] [B][U]In RSInterface.java[/U][/B] Add: [CODE]newBank();[/CODE] Under: [CODE]aClass44 = streamLoader;[/CODE] Then add this somewhere near your other interfaces: [CODE]private static void newBank() { RSInterface Interface = addTabInterface(5292); setChildren(19, Interface); addSprite(5293, 0, "Bank/BANK"); setBounds(5293, 13, 13, 0, Interface); addHoverButton(5384, "SPRITE", 1, 17, 17, "Close Window", 250, 5380, 3); addHoveredButton(5380, "SPRITE", 3, 17, 17, 5379); setBounds(5384, 476, 16, 3, Interface); setBounds(5380, 476, 16, 4, Interface); addHoverButton(5294, "Bank/BANK", 3, 114, 25, "Set A Bank PIN", 250, 5295, 4); addHoveredButton(5295, "Bank/BANK", 4, 114, 25, 5296); setBounds(5294, 110, 285, 5, Interface); setBounds(5295, 110, 285, 6, Interface); addBankHover(21000, 4, 21001, 5, 8, "Bank/BANK", 35, 25, 304, 1, "Swap Withdraw Mode", 21002, 7, 6, "Bank/BANK", 21003, "Switch to insert items \nmode", "Switch to swap items \nmode.", 12, 20); setBounds(21000, 25, 285, 7, Interface); setBounds(21001, 10, 225, 8, Interface); addBankHover(21004, 4, 21005, 13, 15, "Bank/BANK", 35, 25, 0, 1, "Search", 21006, 14, 16, "Bank/BANK", 21007, "Click here to search your \nbank", "Click here to search your \nbank", 12, 20); setBounds(21004, 65, 285, 9, Interface); setBounds(21005, 50, 225, 10, Interface); addBankHover(21008, 4, 21009, 9, 11, "Bank/BANK", 35, 25, 115, 1, "Swap Withdrawal Mode", 21010, 10, 12, "Bank/BANK", 21011, "Switch to note withdrawal \nmode", "Switch to item withdrawal \nmode", 12, 20); setBounds(21008, 240, 285, 11, Interface); setBounds(21009, 225, 225, 12, Interface); addBankHover1(21012, 5, 21013, 17, "Bank/BANK", 35, 25, "Deposit carried items", 21014, 18, "Bank/BANK", 21015, "Empty your backpack into\nyour bank", 0, 20); setBounds(21012, 375, 285, 13, Interface); setBounds(21013, 360, 225, 14, Interface); addBankHover1(21016, 5, 21017, 19, "Bank/BANK", 35, 25, "Deposit worn items", 21018, 20, "Bank/BANK", 21019, "Empty the items your are\nwearing into your bank", 0, 20); setBounds(21016, 415, 285, 15, Interface); setBounds(21017, 400, 225, 16, Interface); addBankHover1(21020, 5, 21021, 21, "Bank/BANK", 35, 25, "Deposit beast of burden inventory.", 21022, 22, "Bank/BANK", 21023, "Empty your BoB's inventory\ninto your bank", 0, 20); setBounds(21020, 455, 285, 17, Interface); setBounds(21021, 440, 225, 18, Interface); setBounds(5383, 170, 15, 1, Interface); setBounds(5385, -4, 34, 2, Interface); Interface = interfaceCache[5385]; Interface.height = 247; Interface.width = 480; Interface = interfaceCache[5382]; Interface.width = 10; Interface.invSpritePadX = 12; Interface.height = 35; } public static void addBankHover(int interfaceID, int actionType, int hoverid, int spriteId, int spriteId2, String NAME, int Width, int Height, int configFrame, int configId, String Tooltip, int hoverId2, int hoverSpriteId, int hoverSpriteId2, String hoverSpriteName, int hoverId3, String hoverDisabledText, String hoverEnabledText, int X, int Y) { RSInterface hover = addTabInterface(interfaceID); hover.id = interfaceID; hover.parentID = interfaceID; hover.type = 5; hover.atActionType = actionType; hover.contentType = 0; hover.opacity = 0; hover.hoverType = hoverid; hover.sprite1 = imageLoader(spriteId, NAME); hover.sprite2 = imageLoader(spriteId2, NAME); hover.width = Width; hover.tooltip = Tooltip; hover.height = Height; hover.valueCompareType = new int[1]; hover.requiredValues = new int[1]; hover.valueCompareType[0] = 1; hover.requiredValues[0] = configId; hover.valueIndexArray = new int[1][3]; hover.valueIndexArray[0][0] = 5; hover.valueIndexArray[0][1] = configFrame; hover.valueIndexArray[0][2] = 0; hover = addTabInterface(hoverid); hover.parentID = hoverid; hover.id = hoverid; hover.type = 0; hover.atActionType = 0; hover.width = 550; hover.height = 334; hover.interfaceShown = true; hover.hoverType = -1; addSprite(hoverId2, hoverSpriteId, hoverSpriteId2, hoverSpriteName, configId, configFrame); addHoverBox(hoverId3, interfaceID, hoverDisabledText, hoverEnabledText, configId, configFrame); setChildren(2, hover); setBounds(hoverId2, 15, 60, 0, hover); setBounds(hoverId3, X, Y, 1, hover); } public static void addBankHover1(int interfaceID, int actionType, int hoverid, int spriteId, String NAME, int Width, int Height, String Tooltip, int hoverId2, int hoverSpriteId, String hoverSpriteName, int hoverId3, String hoverDisabledText, int X, int Y) { RSInterface hover = addTabInterface(interfaceID); hover.id = interfaceID; hover.parentID = interfaceID; hover.type = 5; hover.atActionType = actionType; hover.contentType = 0; hover.opacity = 0; hover.hoverType = hoverid; hover.sprite1 = imageLoader(spriteId, NAME); hover.width = Width; hover.tooltip = Tooltip; hover.height = Height; hover = addTabInterface(hoverid); hover.parentID = hoverid; hover.id = hoverid; hover.type = 0; hover.atActionType = 0; hover.width = 550; hover.height = 334; hover.interfaceShown = true; hover.hoverType = -1; addSprite(hoverId2, hoverSpriteId, hoverSpriteId, hoverSpriteName, 0, 0); addHoverBox(hoverId3, interfaceID, hoverDisabledText, hoverDisabledText, 0, 0); setChildren(2, hover); setBounds(hoverId2, 15, 60, 0, hover); setBounds(hoverId3, X, Y, 1, hover); } public static void addHoverBox(int id, int ParentID, String text, String text2, int configId, int configFrame) { RSInterface rsi = addTabInterface(id); rsi.id = id; rsi.parentID = ParentID; rsi.type = 8; rsi.disabledText = text; rsi.message = text2; rsi.valueCompareType = new int[1]; rsi.requiredValues = new int[1]; rsi.valueCompareType[0] = 1; rsi.requiredValues[0] = configId; rsi.valueIndexArray = new int[1][3]; rsi.valueIndexArray[0][0] = 5; rsi.valueIndexArray[0][1] = configFrame; rsi.valueIndexArray[0][2] = 0; }[/CODE] Okay that's the client sided part done now for the server sided part to add bank all and bank all worn equipment. [B][U]In ClickingButtons.java:[/U][/B] Add: [CODE]case 82024: // Deposit equipment for (int i = 0; i < c.playerEquipment.length; i++) { int itemId = c.playerEquipment[i]; int itemAmount = c.playerEquipmentN[i]; c.getItems().removeItem(itemId, i); c.getItems().bankItem(itemId, c.getItems().getItemSlot(itemId), itemAmount); } break; case 82020: // Deposit Inventory for (int i = 0; i < c.playerItems.length; i++) { c.getItems().bankItem(c.playerItems[i], i, c.playerItemsN[i]); } break; [/CODE] I may also release proper bank searching if this thread is appreciated. Please thank the thread if you found it helpful :)
  3. Does anyone have the code for the settings when you click the house how it opens the interface? that interface for construction [IMG]http://img2.wikia.nocookie.net/__cb20121014100546/runescape/images/thumb/3/3a/Game_Options.png/133px-Game_Options.png[/IMG] that house button.
  4. Hey guys, yesterday I came across a dupe on my server while testing something (luckily no harm was caused to my server), the dupe involves three people. I will explain how the dupe works in the spoiler below, which is an explanation of how the dupe works which I found somewhere so I could fix it. This patch will also fix interface dupes and have other benefits which you will see, so please thank the thread if you find it useful :) [SPOILER=How the Dupe Works] Within a nutshell I'll explain the 'dupe' and hopefully by fixing it you will understand how it works. You need three people. We'll name them Z-X and C. 1. Z trades C and goes to his equipment tab and right clicks interface 19148 which brings up (show equipment tab). 2. C then accepts Z's trade and C puts his items up and Z clicks the equipment button he previously set up. This causes Z to leave the trade while C is still in it. C presses accept. 3. Z has left the trade and rubs any item that's in your inventory (glory, ring) and then trades X who does the equipment trick to him. Z accepts. 4. Rinse and repeat and Z will accept again through X's trade when in reality it's accepting C's trade and C keeps his items while Z collects the traded items. This dupe works on the basis of essentially tricking the trade boolean. [/SPOILER] [B]Fixing the interface dupes:[/B] [I]To fix this firstly we are going to go to PlayerAssistant.java and go to our ShowInterface method(s) and add the below code:[/I] [B][COLOR="#FF0000"]NOTE:[/COLOR][/B] Make sure that you add this to both/all your ShowInterface methods, as you will notice in the spoiler for how it should now look I have two ShowInterface methods with different parameters so make sure you add the below code to all of yours! [CODE] if(c.inTrade) { c.getTradeAndDuel().declineTrade(true); return; } [/CODE] [SPOILER=How it should now look:] [CODE] public void showInterface(int interfaceid) { if (c != null) { if(c.inTrade) { c.getTradeAndDuel().declineTrade(true); return; } if (c.getOutStream() != null && c != null) { c.getOutStream().createFrame(97); c.getOutStream().writeWord(interfaceid); c.flushOutStream(); } } }[/CODE] [CODE]public static void showInterface(Client client, int i) { if(client.inTrade) { client.getTradeAndDuel().declineTrade(true); return; } client.getOutStream().createFrame(97); client.getOutStream().writeWord(i); client.flushOutStream(); }[/CODE] [/SPOILER] This will check to see if the player is already in a trade when they try to open an interface and if they are it will simple decline the trade for both players. [B]An additional fix for prayer level requirement:[/B] Right that is the main part fixed for this snippet but there is in fact another way that you can still keep one of the players in trade and that is by clicking your prayer when you do not have the required level! Not a lot of people know about this I believe so make sure you add this too. What happens is instead of opening an interface you can click your prayer if you don't have the required level for it and it will open up with a dialogue saying "You need a prayer level of # to use this prayer" or something along those lines and this will cause the same as the interfaces did. To fix this go to your activatePrayer method, mine is in CombatPrayer but yours may be in CombatAssistant or some other class depending on your source. Then simple add the same code as before inside the method, so: [CODE] if(c.inTrade) { c.getTradeAndDuel().declineTrade(true); return; } [/CODE] Thanks for reading and I hope this helps a lot of you guys out, if so please take 2 seconds to thank the thread :) - Raw Envy
  5. Is there a link that anyone could provide so that I can download a interface maker?
  6. is there a better system i can make so when the attack skills goes up by 2(odd number sequence) then the bvalue & fvalue(configs) goes up by 1? [CODE] case 947://interface int fvalue = player.getSkills().getLevel(Skills.ATTACK) + 607; int bvalue = player.getSkills().getLevel(Skills.ATTACK) + 47; if (buttonId == 766) { if (player.getSkills().getLevel(Skills.ATTACK) == 1){ ActionSender.sendInterfaceConfig(player, 647, bvalue, true);//bvalue here is 48 ActionSender.sendInterfaceConfig(player, 647, fvalue, true);//favlue here is 608 } else if (player.getSkills().getLevel(Skills.ATTACK) == 3){ ActionSender.sendInterfaceConfig(player, 647, bvalue-1, true);//bvalue here is 49 ActionSender.sendInterfaceConfig(player, 647, fvalue-1, true);//609 } else if (player.getSkills().getLevel(Skills.ATTACK) == 5){ ActionSender.sendInterfaceConfig(player, 647, bvalue-2, true); ActionSender.sendInterfaceConfig(player, 647, fvalue-2, true); } else if (player.getSkills().getLevel(Skills.ATTACK) == 7){ ActionSender.sendInterfaceConfig(player, 647, bvalue-3, true); ActionSender.sendInterfaceConfig(player, 647, fvalue-3, true); } else if (player.getSkills().getLevel(Skills.ATTACK) == 9){ ActionSender.sendInterfaceConfig(player, 647, bvalue-4, true); ActionSender.sendInterfaceConfig(player, 647, fvalue-4, true); } else if (player.getSkills().getLevel(Skills.ATTACK) == 11){ ActionSender.sendInterfaceConfig(player, 647, bvalue-5, true); ActionSender.sendInterfaceConfig(player, 647, fvalue-5, true); } else if (player.getSkills().getLevel(Skills.ATTACK) == 13){ ActionSender.sendInterfaceConfig(player, 647, bvalue-6, true); ActionSender.sendInterfaceConfig(player, 647, fvalue-6, true); }[/CODE]
  7. [CENTER][COLOR="#FF0000"]IF YOU DID THIS BEFORE 9/28/2013 REDO IT FOR HOVERBUTTON SUPPORT![/COLOR][/CENTER] This was the first interface, I have ever made from scratch. It needs some work, I'm still trying to find out how to drawClickedButtons but I think it's pretty nice for my first one. What You're Adding: [CENTER][video=youtube;Od6DAUCcuEw]http://www.youtube.com/watch?v=Od6DAUCcuEw&feature=youtube_gdata_player[/video][/CENTER] Download these Sprites [COLOR="#FF0000"][REUPLOADED 8/18/14][/COLOR] [URL=https://www.dropbox.com/s/4axot7u9apad0pe/MoneyVault.zip]MoneyVault.zip - 141 KB[/URL] Okay now for the tutorial: First, In RSInterface.java add this Interface [CODE] public static void moneyTab(TextDrawingArea[] TDA) { RSInterface intmoneyTab = addTab(8000); intmoneyTab.children = new int[11]; intmoneyTab.childX = new int[11]; intmoneyTab.childY = new int[11]; intmoneyTab.children[0] = 8001; intmoneyTab.childX[0] = 0; intmoneyTab.childY[0] = 0; //Main sprite addSprite(8001, 0, "Interfaces/MoneyVault/sidebar"); intmoneyTab.children[1] = 8002; intmoneyTab.childX[1] = 87; intmoneyTab.childY[1] = 75; addText(8002, "1", TDA, 0, 16750623, true, true); intmoneyTab.children[2] = 8003; intmoneyTab.childX[2] = 130; intmoneyTab.childY[2] = 92; addHoverButton(8003, "Interfaces/MoneyVault/deposit", 0, 32, 32, "Deposit to Vault", 1803, 8004, 1); intmoneyTab.children[3] = 8004; intmoneyTab.childX[3] = 130; intmoneyTab.childY[3] = 92; addHoveredButton(8004, "Interfaces/MoneyVault/deposit", 1, 32, 32, 8005); intmoneyTab.children[4] = 8006; intmoneyTab.childX[4] = 17; intmoneyTab.childY[4] = 204; addHoverButton(8006, "Interfaces/MoneyVault/taxBag", 0, 32, 32, "Purchase a Tax Bag", -1, 8007, 1); //TODO: Change the tooltip text intmoneyTab.children[5] = 8007; intmoneyTab.childX[5] = 17; intmoneyTab.childY[5] = 204; addHoveredButton(8007, "Interfaces/MoneyVault/taxBag", 1, 32, 32, 8008); //TODO: Change the tooltip text intmoneyTab.children[6] = 8009; intmoneyTab.childX[6] = 130; intmoneyTab.childY[6] = 204; addHoverButton(8009, "Interfaces/MoneyVault/yellBubble", 0, 32, 32, "Purchase Yell Tickets", -1, 8010, 1); intmoneyTab.children[7] = 8010; intmoneyTab.childX[7] = 130; intmoneyTab.childY[7] = 204; addHoveredButton(8010, "Interfaces/MoneyVault/yellBubble", 1, 32, 32, 8011); intmoneyTab.children[8] = 8012; intmoneyTab.childX[8] = 20; intmoneyTab.childY[8] = 94; addHoverButton(8012, "Interfaces/MoneyVault/withDraw", 0, 32, 32, "Withdraw from Vault", 1804, 8013, 1); intmoneyTab.children[9] = 8013; intmoneyTab.childX[9] = 20; intmoneyTab.childY[9] = 94; addHoveredButton(8013, "Interfaces/MoneyVault/withDraw", 1, 32, 32, 8014); intmoneyTab.children[10] = 8016; intmoneyTab.childX[10] = 87; intmoneyTab.childY[10] = 135; addText(8016, "Balance", TDA, 0, 16750623, true, true); } [/CODE] Also in RSInterface, add under "aClass44 = archive;" [CODE] moneyTab(textDrawingAreas); [/CODE] Now open Client.java and Search for [CODE]if(friendsListAction == 2 && friendsCount > 0) {[/CODE] under that If statement add these [CODE] if(interfaceButtonAction == 502 && promptInput.length() > 0) { inputString = "::deposit "+promptInput; System.out.println(inputString); sendPacket(103); } if(interfaceButtonAction == 503 && promptInput.length() > 0) { inputString = "::withdraw "+promptInput; System.out.println(inputString); sendPacket(103); } [/CODE] Now still in Client.java search for [CODE]private boolean promptUserForInput([/CODE] in that with the rest of these add these: [CODE] if(j == 1803) { inputTaken = true; messagePromptRaised = true; amountOrNameInput = ""; inputDialogState = 0; interfaceButtonAction = 502; aString1121 = "Enter Amount to Deposit"; } if(j == 1804) { inputTaken = true; messagePromptRaised = true; amountOrNameInput = ""; inputDialogState = 0; interfaceButtonAction = 503; aString1121 = "Enter Amount to Withdraw"; } [/CODE] IF NEEDED: Declare this Int and Method [CODE] static int interfaceButtonAction = 0; void sendPacket(int packet) { if (packet == 103) { stream.createFrame(103); stream.writeWordBigEndian(inputString.length() - 1); stream.writeString(inputString.substring(2)); inputString = ""; promptInput = ""; interfaceButtonAction = 0; } } [/CODE] Thanks for viewing my post, I will be posting the Server - Sided part of this as soon as possible. Edit: [COLOR="#00FF00"]Server Sided:[/COLOR] [URL="http://www.runelocus.com/forums/showthread.php?101633-Money-Vault-Server-Sided&p=789467#post789467"]http://www.runelocus.com/forums/showthread.php?101633-Money-Vault-Server-Sided&p=789467#post789467[/URL] PLEASE MOVE TO CLIENT SECTION SORRY!
  8. I could do this myself, but it wouldn't be 100% so thats why I made this thread. $30 to you if you can write me the complete 100% notes interface for 718 matrix base. Post your skype below if your interested in helping. I'll pay after I get the code, or you don't get money at all. I can also pay in a starbucks gift card thats $20 first. Thanks!
  9. Small thing i made mess around with it to make it better? idk. [SPOILER=Click Me][Code]player.getInterfaceManager().sendInterface(1158); player.getPackets().sendIComponentText(1158, 74, "<img=7>Achievements<img=7>"); player.getPackets().sendIComponentText(1158, 8, "<col=CCFF00>#"); player.getPackets().sendIComponentText(1158, 9, "<col=CCFF00>Task"); player.getPackets().sendIComponentText(1158, 13, "<col=CCFF00>1"); player.getPackets().sendIComponentText(1158, 18, "<col=CCFF00>2"); player.getPackets().sendIComponentText(1158, 23, "<col=CCFF00>3"); player.getPackets().sendIComponentText(1158, 28, "<col=CCFF00>4"); player.getPackets().sendIComponentText(1158, 33, "<col=CCFF00>5"); player.getPackets().sendIComponentText(1158, 38, "<col=CCFF00>6"); player.getPackets().sendIComponentText(1158, 43, "<col=CCFF00>7"); player.getPackets().sendIComponentText(1158, 48, "<col=CCFF00>8"); player.getPackets().sendIComponentText(1158, 53, "<col=CCFF00>9"); player.getPackets().sendIComponentText(1158, 11, "<col=CCFF00>Status"); player.getPackets().sendIComponentText(1158, 10, "<col=CCFF00>Description"); player.getPackets().sendIComponentText(1158, 15, "Use any type of logs in a Bonfire"); player.getPackets().sendIComponentText(1158, 16, (!(player.BonfireAchiev < 5000) ? "<col=00CC00>Complete" : "<col=ff0000>"+player.BonfireAchiev+"/5000")); player.getPackets().sendIComponentText(1158, 21, (!(player.FishMe < 5000) ? "<col=00CC00>Complete" : "<col=ff0000>"+player.FishMe+"/5000")); player.getPackets().sendIComponentText(1158, 20, "Catch at least 5000 Water Creatures."); player.getPackets().sendIComponentText(1158, 26, (!(player.CookMe < 5000) ? "<col=00CC00>Complete" : "<col=ff0000>"+player.CookMe+"/5000")); player.getPackets().sendIComponentText(1158, 25, "Cook at least 5000 type of Foods."); player.getPackets().sendIComponentText(1158, 31, (!(player.SmithItem < 5000) ? "<col=00CC00>Complete" : "<col=ff0000>"+player.SmithItem+"/5000")); player.getPackets().sendIComponentText(1158, 30, "Smith 5000 Items to Achieve this."); player.getPackets().sendIComponentText(1158, 36, (!(player.ThievThings < 8000) ? "<col=00CC00>Complete" : "<col=ff0000>"+player.ThievThings+"/8000")); player.getPackets().sendIComponentText(1158, 35, "Pickpocket or Steal from stalls to Achieve this."); player.getPackets().sendIComponentText(1158, 19, "Fish Me Up"); player.getPackets().sendIComponentText(1158, 14, "Bon Le Fire"); player.getPackets().sendIComponentText(1158, 24, "Cook O' Jester"); player.getPackets().sendIComponentText(1158, 29, "Smithery O'Jo"); player.getPackets().sendIComponentText(1158, 34, "Plenty A' Steal"); player.getPackets().sendIComponentText(1158, 39, "O' My Dung"); player.getPackets().sendIComponentText(1158, 40, "Complete 500 Floors in Dungeoneering"); player.getPackets().sendIComponentText(1158, 41, (!(player.DungAchievement < 500) ? "<col=00CC00>Complete" : "<col=ff0000>"+player.DungAchievement+"/500")); player.getPackets().sendIComponentText(1158, 44, "Wood O' Plenty"); player.getPackets().sendIComponentText(1158, 45, "Chop Down 5000 Trees of any type."); player.getPackets().sendIComponentText(1158, 46, (!(player.WoodChop < 5000) ? "<col=00CC00>Complete" : "<col=ff0000>"+player.WoodChop+"/5000")); player.getPackets().sendIComponentText(1158, 49, "Catch Me Peasant"); player.getPackets().sendIComponentText(1158, 50, "Catch at least 5000 Hunter Animals."); player.getPackets().sendIComponentText(1158, 51, (!(player.HuntAchievement < 5000) ? "<col=00CC00>Complete" : "<col=ff0000>"+player.HuntAchievement+"/5000")); player.getPackets().sendIComponentText(1158, 54, "Mine That Ore"); player.getPackets().sendIComponentText(1158, 55, "Mine at least 7000 Ores/Rocks to Achieve this."); player.getPackets().sendIComponentText(1158, 56, (!(player.MineAchievement < 7000) ? "<col=00CC00>Complete" : "<col=ff0000>"+player.MineAchievement+"/7000"));[/Code][/SPOILER] [SPOILER=What Your Adding][IMG]http://i.imgur.com/8mlGrIF.png[/IMG][/SPOILER]
  10. i added a few commands and the commands compiled fine but i got 100 errors that say something, interface, or enum expected and points to the braces but i have the correct number of braces. Idk how to fix this. my whole commands.java file have the same error. Does anyone know how to fix this?
  11. Hello, i'm trying to make a code that when you click on a certain item, a quest interface pops up but it's not going so well because when I click on it, nothing happens....here are my codes so far, which I compiled with no errors: [CODE]PlayerAssistant public void infoScroll() { showInterface(8134); c.flushOutStream(); sendFrame126("@[email protected] blabla ", 8144); sendFrame126("1", 8148); sendFrame126("2", 8149); sendFrame126("3", 8150); sendFrame126("4", 8151); } ClickItem } if(itemId == 608) { c.getPA().infoScroll(); }[/CODE] Is there something else I need to add? or did I add something wrong?
  12. Hello, I was busy creating armour customisation for queen's guard and I am using interface 1283. However my interface looks like this: [url]http://prntscr.com/3tedl4[/url] while it should look like: [url]http://prntscr.com/3tef5u[/url] In my interface, the buttons are there BUT they dont have any color. As you can see. Is this a bug in the cache or do I have to send a config?
  13. Hello people, I have a basic understanding of what configurations are. I have concluded they are pretty much responsible for configuring things more complex than for example a String. Now, I am wondering how people find out these configs and how do they know what values to send/Parameters they take? Could someone be so kind enough to explain this to me?
  14. Hi, im not sure if this is the right spot for this, but im looking for the RS2 interface maker made by Lin of moparscape. I have googled this already, but found nothing that didnt have a broken link. If anyone has it, would you mind sharing? Thanks, Zelda
  15. [CODE]package com.cyn.player; /** * * @author Fuzen Seth * @since 30.6.2014 * @information Represents a interface manager. */ public class InterfaceManager { /** * Client instance. */ private Client c; /** * Regular send interface. * @param interfaceid */ public void sendInterface(int interfaceid) { if(c.getOutStream() != null && c != null) { c.getOutStream().createFrame(97); c.getOutStream().writeWord(interfaceid); c.flushOutStream(); } } /** * Sends a interface with background. * @param MainFrame * @param SubFrame */ public void sendBackgroundInterface(int MainFrame, int SubFrame) { if(c.getOutStream() != null && c != null) { c.getOutStream().createFrame(248); c.getOutStream().writeWordA(MainFrame); c.getOutStream().writeWord(SubFrame); c.flushOutStream(); } } public void sendFrame34(int id, int slot, int column, int amount) { if(c.getOutStream() != null && c != null) { c.outStream.createFrameVarSizeWord(34); c.outStream.writeWord(column); c.outStream.writeByte(4); c.outStream.writeDWord(slot); c.outStream.writeWord(id+1); c.outStream.writeByte(amount); c.outStream.endFrameVarSizeWord(); } } /** * Sets a overlay interface. (is walkable) * @param id */ public void setOverlayInterface(int id) { if(c.getOutStream() != null && c != null) { c.getOutStream().createFrame(208); c.getOutStream().writeWordBigEndian_dup(id); c.flushOutStream(); } } /** * Closes all windows. */ public void closeAllWindows() { if(c.getOutStream() != null && c != null) { c.getPA().resetVariables(); c.getOutStream().createFrame(219); c.flushOutStream(); } } /** * Sends a interface with one main frame, 3 sub frames. * @param MainFrame * @param SubFrame * @param SubFrame2 */ public void sendBackgroundInterface(int MainFrame, int SubFrame, int SubFrame2) { //synchronized(c) { if(c.getOutStream() != null && c != null) { c.getOutStream().createFrame(246); c.getOutStream().writeWordBigEndian(MainFrame); c.getOutStream().writeWord(SubFrame); c.getOutStream().writeWord(SubFrame2); c.flushOutStream(); } } /** * * @param MainFrame * @param SubFrame */ public void sendFrame171(int MainFrame, int SubFrame) { if(c.getOutStream() != null && c != null) { c.getOutStream().createFrame(171); c.getOutStream().writeByte(MainFrame); c.getOutStream().writeWord(SubFrame); c.flushOutStream(); } } /** * * @param MainFrame * @param SubFrame */ public void sendFrame200(int MainFrame, int SubFrame) { if(c.getOutStream() != null && c != null) { c.getOutStream().createFrame(200); c.getOutStream().writeWord(MainFrame); c.getOutStream().writeWord(SubFrame); c.flushOutStream(); } } /** * * @param i * @param o * @param id */ public void sendFrame70(int i, int o, int id) { if(c.getOutStream() != null && c != null) { c.getOutStream().createFrame(70); c.getOutStream().writeWord(i); c.getOutStream().writeWordBigEndian(o); c.getOutStream().writeWordBigEndian(id); c.flushOutStream(); } } /** * * @param MainFrame * @param SubFrame */ public void sendFrame75(int MainFrame, int SubFrame) { if(c.getOutStream() != null && c != null) { c.getOutStream().createFrame(75); c.getOutStream().writeWordBigEndianA(MainFrame); c.getOutStream().writeWordBigEndianA(SubFrame); c.flushOutStream(); } } /** * * @param Frame */ public void sendFrame164(int Frame) { if(c.getOutStream() != null && c != null) { c.getOutStream().createFrame(164); c.getOutStream().writeWordBigEndian_dup(Frame); c.flushOutStream(); } } /** * Sends friends and ignore list status. * @param i */ public void sendPlayerInteractInterfaces(int i) { if(c.getOutStream() != null && c != null) { c.getOutStream().createFrame(221); c.getOutStream().writeByte(i); c.flushOutStream(); } } /** * Sends the chatting options. * @param publicChat * @param privateChat * @param tradeBlock */ public void sendChatOptions(int publicChat, int privateChat, int tradeBlock) { //synchronized(c) { if(c.getOutStream() != null && c != null) { c.getOutStream().createFrame(206); c.getOutStream().writeByte(publicChat); c.getOutStream().writeByte(privateChat); c.getOutStream().writeByte(tradeBlock); c.flushOutStream(); } } /** * * @param id * @param state */ public void sendFrame87(int id, int state) { //synchronized(c) { if(c.getOutStream() != null && c != null) { c.getOutStream().createFrame(87); c.getOutStream().writeWordBigEndian_dup(id); c.getOutStream().writeDWord_v1(state); c.flushOutStream(); } } } [/CODE]
  16. Does anyone have? [img]http://puu.sh/9GGUL/7803c702b1.jpg[/img]
  17. Iv'e never really understood how you implement the position and location of an interface, anyone mind explaining ?
  18. what are the deposit and and withdraw interface ID's for a 498 server? it is not 5292 and 5063. Thanks
  19. ok so far ive made it when you use a gold bar with furnace it brings up interface 446 which is:[ATTACH=CONFIG]10164[/ATTACH]now it recognizes the mould and gem and bar(i know i messed up with necklace and ammy) but now im at a standstill and just overwhelmed and cant figure out how to make the make 1,make 5..ect.. and actually delete bar and gem and add ring to inv. i know its something in buttonhandler but im not sure how to connect my jewellerycrafting.java file to buttonhandler and get the items. heres what ive got.[QUOTE]package com.rs.game.player.actions; import com.rs.cache.loaders.ItemDefinitions; import com.rs.game.Animation; import com.rs.game.item.Item; import com.rs.game.player.Player; import com.rs.game.player.Skills; /** * @author Kova+ (Alex) * */ public class JewerlyCrafting extends Action { private static int[] GEMS = { 0, 1607, 1605, 1603, 1601, 1615, 6573 }; private static int[] RINGS = { 1635, 2550, 2552, 2568, 2570, 2572, 6583 }; private static int[] BRACELETS = { 11069, 11074, 11079, 11088, 11095, 11118, 11133 }; private static int[] NECKLACES = { 1654, 3853, 5521, 11194, 11090, 11105, 11128 }; private static int[] AMULETS = { 1673, 1675, 1677, 1679, 1681, 1683, 6579 }; private static int[] RING_COMPONENTS = { 81, 83, 85, 87, 89, 91, 93, 96 }; private static int[] NECKLACE_COMPONENTS = { 67, 69, 71, 73, 75, 77, 79 }; private static int[] AMULET_COMPONENTS = { 52, 54, 56, 58, 60, 62, 64 }; private static int[] BRACELET_COMPONENTS = { 32, 34, 36, 38, 40, 42, 44 }; private static int[] MOULDS = { 1592, 1595, 1597, 11065 }; private static int NO_RING = 1647, NO_NECKLACE = 1666, NO_AMULET = 1685, NO_BRACELET = 11067, GOLD_BAR = 2357; public static void sendInterface(Player player) { player.getInterfaceManager().sendInterface(446); if (player.getInventory().containsItem(MOULDS[0], 1)) { for (int i = 0; i < RING_COMPONENTS.length; i++) { player.getPackets().sendItemOnIComponent(446, RING_COMPONENTS[i], NO_RING, 1); player.getPackets().sendIComponentText(446, 98, ""); } for (int i = 0; i < GEMS.length; i++) { if (player.getInventory().containsItem(GOLD_BAR, 1) && player.getInventory().containsItem(GEMS[i], 1)) { player.getPackets().sendItemOnIComponent(446, RING_COMPONENTS[i], RINGS[i], 1); } } if (player.getInventory().containsItem(MOULDS[0], 1) && player.getInventory().containsItem(GOLD_BAR, 1)) { player.getPackets().sendItemOnIComponent(446, RING_COMPONENTS[0], RINGS[0], 1); } } if (player.getInventory().containsItem(MOULDS[1], 1)) { for (int i = 0; i < NECKLACE_COMPONENTS.length; i++) { player.getPackets().sendItemOnIComponent(446, NECKLACE_COMPONENTS[i], NO_NECKLACE, 1); player.getPackets().sendIComponentText(446, 22, ""); } for (int i = 0; i < GEMS.length; i++) { if (player.getInventory().containsItem(GOLD_BAR, 1) && player.getInventory().containsItem(GEMS[i], 1)) { player.getPackets().sendItemOnIComponent(446, NECKLACE_COMPONENTS[i], NECKLACES[i], 1); } } if (player.getInventory().containsItem(MOULDS[1], 1) && player.getInventory().containsItem(GOLD_BAR, 1)) { player.getPackets().sendItemOnIComponent(446, NECKLACE_COMPONENTS[0], NECKLACES[0], 1); } } if (player.getInventory().containsItem(MOULDS[2], 1)) { for (int i = 0; i < AMULET_COMPONENTS.length; i++) { player.getPackets().sendItemOnIComponent(446, AMULET_COMPONENTS[i], NO_AMULET, 1); player.getPackets().sendIComponentText(446, 66, ""); } for (int i = 0; i < GEMS.length; i++) { if (player.getInventory().containsItem(GOLD_BAR, 1) && player.getInventory().containsItem(GEMS[i], 1)) { player.getPackets().sendItemOnIComponent(446, AMULET_COMPONENTS[i], AMULETS[i], 1); } } if (player.getInventory().containsItem(MOULDS[2], 1) && player.getInventory().containsItem(GOLD_BAR, 1)) { player.getPackets().sendItemOnIComponent(446, AMULET_COMPONENTS[0], AMULETS[0], 1); } } if (player.getInventory().containsItem(MOULDS[3], 1)) { for (int i = 0; i < BRACELET_COMPONENTS.length; i++) { player.getPackets().sendItemOnIComponent(446, BRACELET_COMPONENTS[i], NO_BRACELET, 1); player.getPackets().sendIComponentText(446, 51, ""); } for (int i = 0; i < GEMS.length; i++) { if (player.getInventory().containsItem(GOLD_BAR, 1) && player.getInventory().containsItem(GEMS[i], 1)) { player.getPackets().sendItemOnIComponent(446, BRACELET_COMPONENTS[i], BRACELETS[i], 1); } } if (player.getInventory().containsItem(MOULDS[3], 1) && player.getInventory().containsItem(GOLD_BAR, 1)) { player.getPackets().sendItemOnIComponent(446, BRACELET_COMPONENTS[0], BRACELETS[0], 1); } } } public enum JewerlyData { GOLD_RING(5, 15, 1635), SAPPHIRE_RING(20, 40, 2550), EMERALD_RING(27, 55, 2552), RUBY_RING(34, 70, 2568), DIAMOND_RING(43, 85, 2570), DRAGONSTONE_RING(55, 100, 2572), ONYX_RING(67, 115, 6583), GOLD_NECKLACE(6, 20, 1654), SAPPHIRE_NECKLACE(22, 55, 3853), EMERALD_NECKLACE(29, 60, 5521), RUBY_NECKLACE(40, 75, 11194), DIAMOND_NECKLACE(56, 90, 11090), DRAGONSTONE_NECKLACE(72, 105, 11105), ONYX_NECKLACE(82, 120, 11128), GOLD_BRACELET(7, 25, 11069), SAPPHIRE_BRACELET( 23, 60, 11074), EMERALD_BRACELET(30, 65, 11079), RUBY_BRACELET(42, 80, 11088), DIAMOND_BRACELET(58, 95, 11095), DRAGONSTONE_BRACELET(74, 110, 11118), ONYX_BRACELET(84, 125, 11133), GOLD_AMULET(8, 30, 1673), SAPPHIRE_AMULET(24, 65, 1675), EMERALD_AMULET(31, 70, 1677), RUBY_AMULET(50, 85, 1679), DIAMOND_AMULET(70, 100, 1681), DRAGONSTONE_AMULET(80, 150, 1683), ONYX_AMULET(90, 165, 6579); private int level, outcome; private double xp; private JewerlyData(int levelNeeded, double xp, int outcome) { this.level = levelNeeded; this.xp = xp; this.outcome = outcome; } private int getLevel() { return level; } private int getOutcome() { return outcome; } private double getXp() { return xp; } } private int amount; private Item gold, gem; private JewerlyData data; public JewerlyCrafting(JewerlyData data, Item gold, Item gem, int amount) { this.data = data; this.gold = gold; this.gem = gem; this.amount = amount; } @Override public boolean start(Player player) { if (checkAll(player)) { setActionDelay(player, 1); return true; } return false; } public boolean checkAll(Player player) { if (player.getSkills().getLevel(Skills.CRAFTING) < data .getLevel()) { player.getDialogueManager().startDialogue( "SimpleMessage", "You need a crafting level of " + data.getLevel() + " to create that."); return false; } if (!player.getInventory().containsItem(gold.getId(), 1)) { player.getDialogueManager().startDialogue( "SimpleMessage", "You don't have any more " + ItemDefinitions .getItemDefinitions(gold.getId()) .getName().toLowerCase() + "s to use."); return false; } if (!player.getInventory().containsItem(gem.getId(), 1)) { if (gem.getId() == -1) { return true; } player.getDialogueManager().startDialogue( "SimpleMessage", "You don't have any more " + ItemDefinitions .getItemDefinitions(gem.getId()) .getName().toLowerCase() + "s to use."); return false; } return true; } @Override public boolean process(Player player) { return checkAll(player); } @Override public int processWithDelay(Player player) { if (gem.getId() == -1) { player.getInventory().deleteItem(gold.getId(), 1); player.getInventory().addItem(data.getOutcome(), 1); player.getSkills().addXp(Skills.CRAFTING, data.getXp()); player.getPackets().sendGameMessage( "You shape the gold bar with the mould to make " + ItemDefinitions.getItemDefinitions(data.getOutcome()) .getName().toLowerCase() + ".", true); } else { player.getInventory().deleteItem(gold.getId(), 1); player.getInventory().deleteItem(gem.getId(), 1); player.getInventory().addItem(data.getOutcome(), 1); player.getSkills().addXp(Skills.CRAFTING, data.getXp()); player.getPackets().sendGameMessage( "You bind the Gold bar and the " + ItemDefinitions.getItemDefinitions(gem.getId()) .getName().toLowerCase() + " together to make a " + ItemDefinitions.getItemDefinitions(data.getOutcome()) .getName().toLowerCase() + ".", true); } amount--; if (amount <= 0) return -1; player.setNextAnimation(new Animation(3243)); return 0; } @Override public void stop(final Player player) { setActionDelay(player, 3); } }[/QUOTE]and this is how i set it up in objecthandler[QUOTE] if (itemId == 2357 && object.getId() == 11010) { JewerlyCrafting.sendInterface(player);[/QUOTE]if someone could help me that would be just fantastic. thanks!
  20. emeil

    Interface list

    I'm looking for a list of Interface IDS for my personal use. I need them for [B][SIZE=4]718+ [/SIZE][/B]and i can't find them anywhere. I'd really appreciate it if someone could find me a list of interface ids for 718+
  21. Hey, this is my 4th interface I've created. It isn't the best and I know that no one would use it but I mean it does the job for me. Its clean and works. Rate/Hate/Give feedback on what I need to improve. I will also be adding more to the interface later this is just something I have been working on and its presentable so I thought why not. [SPOILER=Images] [IMG]http://i.imgur.com/mno5VMP.png[/IMG] [IMG]http://i.imgur.com/w5Qwg4q.png[/IMG] [IMG]http://i.imgur.com/shkMykZ.png[/IMG] [IMG]http://i.imgur.com/Ujhvwor.png[/IMG] [/SPOILER] Video: [url]http://tinypic.com/player.php?v=20h999h%3E&s=8#.UzdwuvldU5s[/url]
  22. [IMG]http://i46.tinypic.com/317a1au.jpg[/IMG] Does anyone know interface value for that ?
×