Jump to content

kyle tha kid

Member
  • Content count

    12
  • Joined

  • Last visited

About kyle tha kid

  • Rank
    Bronze Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. for sure. I started real like and moved off to college and have not had a lot of down time like I used to
  2. Hey Babbler!! Wow, nice to see you man. Its kyle from fj
  3. INTRODUCTION AND INFORMATION: We will be messing around with interfaces today, and editing them. This includes editing the text, the images, and having the interfaces overlay so you can run/walk/ect. while it is open. For us today, we will be using interface id: "394" as an example. Now, it will be hard explain each one of these individually, and trying to keep shit organized, and have it make since. My mind may jump around a lot, and is all jumbled. Haha. Anyways, shall we begin? :D Interface "394" Screenshot: INTERFACE CID's [CHILD IDS] Retrieving the Interface CID's: You will open your console, and type "inter ##" - to view the interface. Then you will type, inside your console, "inters ##" to open the interface with the CID's. For us today, we will be using interface id: 394 This will open the interface, showing the CID's: Explaining the Interface CID's: The "CID: 13" is the title, which says: "Select a piece of furniture to build." All the CID's are the Child ID's. You use these to rename or edit the text, ect. on the interface. Also, you see how it goes from "CID: 28", then the next CID is "CID: 32"? Well the ones in-between are images, and they are CID's as well. Their CID's go from top-left, and go down. Then repeat back at the top again, and back down.. in rows. So this tells us that the first image, the "X" on the top left, is CID: 29. The one below that is CID: 30, then the one below that is CID: 31. After all the images, you have the text below the images, which state "Level". These are CID: 32, 33, and 34. EDITING THE INTERFACE TEXT with CID's How to reword certain CID's: You can set a whole new method up, calling a certain interface to display whatever text on whichever CID you wish to, with something like this: [COLOR="#F0FFF0"] public void chairInterface() { player.getInterfaceManager().sendInterface(394); //THE INTERFACE IT OPENS player.getPackets().sendIComponentText(394, 13, "Select a type of chair to build"); //CID 13 (TITLE) player.getPackets().sendIComponentText(394, 14, "Crude Wooden Chair"); //CID 14 player.getPackets().sendIComponentText(394, 19, "Wooden Chair"); //CID 19 player.getPackets().sendIComponentText(394, 24, "Oak Chair"); //CID 24 player.getPackets().sendIComponentText(394, 32, "Level Required: 1"); //CID 32 (LEVEL) player.getPackets().sendIComponentText(394, 33, "Level Required: 8"); //CID 33 (LEVEL) player.getPackets().sendIComponentText(394, 34, "Level Required: 19"); //CID 34 (LEVEL) }[/COLOR] That is just an example. It will replace all the CID's with what is in the quotation marks. EDITING THE INTERFACE IMAGES with CID's Replacing the Old "X" Images with Item Id's: You may still continue to use the same format as above, except the packets method you call, will be different. As followed in the code right underneath: public void chairInterface() { player.getInterfaceManager().sendInterface(394); //THE INTERFACE IT OPENS player.getPackets().sendIComponentText(394, 13, "Select a type of chair to build"); //CID 13 (TITLE) player.getPackets().sendIComponentText(394, 14, "Crude Wooden Chair"); //CID 14 player.getPackets().sendIComponentText(394, 19, "Wooden Chair"); //CID 19 player.getPackets().sendIComponentText(394, 24, "Oak Chair"); //CID 24 [COLOR="#FF0000"] player.getPackets().sendItemOnIComponent(394, 29, 8309, 1); //CID 29 (REPLACES WITH ITEM "8309")[/COLOR] player.getPackets().sendIComponentText(394, 32, "Level Required: 1"); //CID 32 (LEVEL) player.getPackets().sendIComponentText(394, 33, "Level Required: 8"); //CID 33 (LEVEL) player.getPackets().sendIComponentText(394, 34, "Level Required: 19"); //CID 34 (LEVEL) } The new addition that we added to our code, replaces CID: 29 (THE FIRST "X" IMAGE), with a picture of an item. Hence the "ItemOnIComponent". So instead of the "X" image we had, it will now be replaced by "1" of item "8309", which is a wooden chair. You may add the same code and change the corresponding CID ids, as well as item ids for the other two "X" images. Replacing the Old "X" Images with Model Id's: Now this is different than the code that we just did above. Instead of calling for the item ids to be used for the previous "X" image, we will use models to replace them. Take a look at the code below: public void chairInterface() { player.getInterfaceManager().sendInterface(394); //THE INTERFACE IT OPENS player.getPackets().sendIComponentText(394, 13, "Select a type of chair to build"); //CID 13 (TITLE) player.getPackets().sendIComponentText(394, 14, "Crude Wooden Chair"); //CID 14 player.getPackets().sendIComponentText(394, 19, "Wooden Chair"); //CID 19 player.getPackets().sendIComponentText(394, 24, "Oak Chair"); //CID 24 [COLOR="#FF0000"] player.getPackets().sendIComponentModel(394, 29, 12443); //CID 29 (REPLACES WITH MODEL "12443")[/COLOR] player.getPackets().sendIComponentText(394, 32, "Level Required: 1"); //CID 32 (LEVEL) player.getPackets().sendIComponentText(394, 33, "Level Required: 8"); //CID 33 (LEVEL) player.getPackets().sendIComponentText(394, 34, "Level Required: 19"); //CID 34 (LEVEL) } So, instead of having CID: 29 be replaced by an item id, you may use a model id. I would also like to state that RuneLocus was nice enough to state the item id and model id, as well as much more when clicking on the item. CLICK HERE FOR "CRUDE WOODEN CHAIR" EXAMPLE! HAVING THE INTERFACE OVERLAY Okay, so we have completely edited the interfaces' text and pictures/images. Now you have a interface that opens, with your custom content and text. But what if you want something a little different? Like a interface, that stays open, and you could still walk around and play, ect.? This is called a Interface Overlay. To do something like this, find your code, and edit it to this: public void chairInterface() { [COLOR="#ff0000"] player.getInterfaceManager().sendOverlay(394, true); //THIS OVERLAYS INTERFACE ID: 394[/COLOR] player.getPackets().sendIComponentText(394, 13, "Select a type of chair to build"); //CID 13 (TITLE) player.getPackets().sendIComponentText(394, 14, "Crude Wooden Chair"); //CID 14 player.getPackets().sendIComponentText(394, 19, "Wooden Chair"); //CID 19 player.getPackets().sendIComponentText(394, 24, "Oak Chair"); //CID 24 player.getPackets().sendItemOnIComponent(394, 29, 8309, 1); //CID 29 player.getPackets().sendItemOnIComponent(394, 30, 8310, 1); //CID 30 player.getPackets().sendItemOnIComponent(394, 31, 8312, 1); //CID 31 player.getPackets().sendIComponentText(394, 32, "Level Required: 1"); //CID 32 (LEVEL) player.getPackets().sendIComponentText(394, 33, "Level Required: 8"); //CID 33 (LEVEL) player.getPackets().sendIComponentText(394, 34, "Level Required: 19"); //CID 34 (LEVEL) } This has the custom interface, "chairInterface", overlay. True = ON; False = OFF (I am assuming? xD)
  4. I will be 20 on October the 4th ^^
  5. Reddit all the way! Its the funniest
  6. Not too bad; I like it! :D Plus it has the handy-dandy 'CPU Usage' feature. Very nice man.
  7. Hello, I am Kyle. I joined RuneLocus to be apart of the community and hopefully learn some new things :D I have currently been working on a huge project I would like to call "Apocalypse", but more importantly I have also been super busy with college. Anyways, Thanks for having me!
×