Thread: OSRS Make all interface (missing some stuff)

Results 1 to 6 of 6
  1. #1 OSRS Make all interface (missing some stuff) 
    dumb
    mikan's Avatar
    Join Date
    Aug 2017
    Posts
    436
    Thanks given
    293
    Thanks received
    160
    Rep Power
    255


    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
    Tommeh's Avatar
    Join Date
    Nov 2015
    Age
    19
    Posts
    1,891
    Thanks given
    293
    Thanks received
    862
    Rep Power
    4817
    mines better
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. Thankful users:


  4. #3  
    dumb
    mikan's Avatar
    Join Date
    Aug 2017
    Posts
    436
    Thanks given
    293
    Thanks received
    160
    Rep Power
    255
    way better
    Reply With Quote  
     

  5. #4  
    Registered Member
    Remi's Avatar
    Join Date
    Jan 2015
    Posts
    485
    Thanks given
    448
    Thanks received
    122
    Rep Power
    265
    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  
    dumb
    mikan's Avatar
    Join Date
    Aug 2017
    Posts
    436
    Thanks given
    293
    Thanks received
    160
    Rep Power
    255
    updated and made it more like osrs with models instead of containers
    Reply With Quote  
     

  8. #6  
    Registered Member
    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    14
    Posts
    4,331
    Thanks given
    915
    Thanks received
    649
    Rep Power
    2893
    Class name should be MakeAll not makeAll. Good job otherwise
    Reply With Quote  
     

  9. Thankful user:



Thread Information
Users Browsing this Thread

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

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 Mage 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. 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
  •