Thread: OSRS Make all interface (missing some stuff)

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 OSRS Make all interface (missing some stuff) 
    what the dog doin

    mikan's Avatar
    Join Date
    Aug 2017
    Posts
    917
    Thanks given
    698
    Thanks received
    731
    Discord
    View profile
    Rep Power
    4898


    You just need to add the client scripts that handle the item containers and quantity, and ik the code is really bad, just started making interfaces again bc was bored.
    and i dont know if this is what it looks like ingame, i dont play osrs.
    if you wanna make it look better, get the item model instead of it being in an item container
    [Only registered and activated users can see links. ]

    Code:
    import com.runescape.cache.graphics.GameFont;
    import com.runescape.cache.graphics.Widget;
    
    public class makeAll extends Widget {
    	
    	public static int quanid = 35204;
    	public static int itemid = 35304;
    	public static int quanchild = 0;
    	public static int itemchild = 0;
    	public static int x;
    	public static int itemx;
    	public static int centerx = 70;
    	public static float amount;
    
    	public static void makeAll(GameFont[] tda) {
    		Widget inter = addTabInterface(35100);
    		Widget quantity = addTabInterface(35200);
    		Widget item = addTabInterface(35300);
    		inter.totalChildren(4);
    		quantity.totalChildren(0);
    		item.totalChildren(0);
    		addText(35101, "How many?", tda, 2, 0x403020, true, false);
    		addText(35102, "Choose a quantity, then click an image to begin.", tda, 0, 0x605048, true, false);
    		int child = 0;
    		inter.child(child++, 35101, 150, 0);
    		inter.child(child++, 35102, 150, 17);
    		inter.child(child++, 35200, 0, 0);
    		inter.child(child++, 35300, 0, 0);
    	}
    	
    	public static void addQuantity(GameFont[] tda, String text, Widget quan, boolean enabled) {
    		if(enabled) {
    			addButton(quanid, 35200, 35, 30, 494, 494, quanid + 1, "Select");
    		} else {
    			addSprite(quanid, 495);
    		}
    		addHoveredButton_sprite_loader(quanid + 1, 495, 35, 30, quanid + 2);
    		addText(quanid + 3, text, tda, 0, 0x403020, true, false);
    		quan.child(quanchild++, quanid, 285 + x, 0);
    		quan.child(quanchild++, quanid + 1, 285 + x, 0);
    		quan.child(quanchild++, quanid + 3, 302 + x, 9);
    		quanid += 4;
    		x += 40;
    	}
    	public static void addItem(Widget item) {
    		addModel(itemid + 3);
    		addButton(itemid, 35300, 100, 75, 492, 492, itemid + 1, "Select");
    		addHoveredButton_sprite_loader(itemid + 1, 493, 100, 75, itemid + 2);
    			item.child(itemchild++, itemid, centerx + itemx, 35);
    			item.child(itemchild++, itemid + 1, centerx +  itemx, 35);
    			item.child(itemchild++, itemid + 3, centerx + 55 + itemx, 72);
    		itemid += 4;
    		itemx += 120;
    		
    	}
    }
    Code:
    public static void addModel(int ID) {
    		Widget t = interfaceCache[ID] = new Widget();
    		t.id = ID;
    		t.parent = ID;
    		t.type = 6;
    		t.atActionType = 0;
    		t.contentType = 0;
    		t.width = 1;
    		t.height = 1;
    		t.opacity = 0;
    	}
    Last edited by mikan; 04-09-2018 at 10:06 AM.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Nov 2015
    Age
    21
    Posts
    1,999
    Thanks given
    333
    Thanks received
    1,049
    Rep Power
    5000
    mines better
    Reply With Quote  
     

  3. Thankful users:


  4. #3  
    what the dog doin

    mikan's Avatar
    Join Date
    Aug 2017
    Posts
    917
    Thanks given
    698
    Thanks received
    731
    Discord
    View profile
    Rep Power
    4898
    way better
    Reply With Quote  
     

  5. #4  
    Registered Member
    Remi's Avatar
    Join Date
    Jan 2015
    Posts
    616
    Thanks given
    558
    Thanks received
    203
    Discord
    View profile
    Rep Power
    513
    I bet you can get it looking more like OSRS, but nice snippet


    Where the fuck is my cigarettes, I need my cancer. [C][Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. Thankful user:


  7. #5  
    what the dog doin

    mikan's Avatar
    Join Date
    Aug 2017
    Posts
    917
    Thanks given
    698
    Thanks received
    731
    Discord
    View profile
    Rep Power
    4898
    updated and made it more like osrs with models instead of containers
    Reply With Quote  
     

  8. #6  
    Registered Member

    Join Date
    Sep 2016
    Posts
    161
    Thanks given
    76
    Thanks received
    70
    Discord
    View profile
    Rep Power
    404
    sprites are down only reason I came
    Reply With Quote  
     

  9. #7  
    Rune-Server Affiliate

    Join Date
    Apr 2014
    Posts
    1,742
    Thanks given
    64
    Thanks received
    686
    Discord
    View profile
    Rep Power
    1032
    Quote Originally Posted by knd6060 View Post
    sprites are down only reason I came
    Only sprites you'd need are the corner ones;
    [Only registered and activated users can see links. ]

    Rest you can draw yourself using the raster2d class.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  10. Thankful user:


  11. #8  
    Registered Member
    Join Date
    Dec 2019
    Posts
    23
    Thanks given
    5
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by Zion View Post
    Only sprites you'd need are the corner ones;
    [Only registered and activated users can see links. ]

    Rest you can draw yourself using the raster2d class.
    Are you able to share you positions and colors to save us time?

    Thanks
    Reply With Quote  
     

  12. #9  
    Registered Member

    Join Date
    Sep 2016
    Posts
    161
    Thanks given
    76
    Thanks received
    70
    Discord
    View profile
    Rep Power
    404
    Quote Originally Posted by Zion View Post
    Only sprites you'd need are the corner ones;
    [Only registered and activated users can see links. ]

    Rest you can draw yourself using the raster2d class.
    Thanks!
    Is this easier to do as an interface, hardcode it, or a bit of both? Cause I know I don't have support for scaling buttons and things like that with interfaces
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  13. #10  
    Rune-Server Affiliate

    Join Date
    Apr 2014
    Posts
    1,742
    Thanks given
    64
    Thanks received
    686
    Discord
    View profile
    Rep Power
    1032
    Quote Originally Posted by knd6060 View Post
    Thanks!
    Is this easier to do as an interface, hardcode it, or a bit of both? Cause I know I don't have support for scaling buttons and things like that with interfaces
    Oak and I are just drawing it as a new "chat type" in the "drawChatArea" method.

    You can easily make the buttons scalable, just assign different width's & height's to the 2d rectangles.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  14. Thankful user:


Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Buying new Make-All interfaces (client side)
    By HeyPewds in forum Buying
    Replies: 0
    Last Post: 03-20-2018, 04:27 AM
  2. OSRS Make-All
    By A Furry in forum Old School RS (2007)
    Replies: 12
    Last Post: 10-28-2017, 12:46 PM
  3. Loading some OSRS (Not all) data into my client
    By klaasvaakjes in forum Buying
    Replies: 3
    Last Post: 10-14-2016, 05:00 PM
  4. Skills Interface IDs to Make All Skills 120
    By Dark Venom in forum Help
    Replies: 2
    Last Post: 03-12-2014, 05:12 AM
  5. Replies: 66
    Last Post: 12-04-2010, 06:19 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •