Thread: [Elvarg Base] Widget help

Results 1 to 4 of 4
  1. #1 [Elvarg Base] Widget help 
    Registered Member
    Join Date
    Jun 2018
    Posts
    34
    Thanks given
    3
    Thanks received
    0
    Rep Power
    11
    Hi, I'm trying to change the skills tab on elvarg

    Code:
    public static void skillTab(GameFont[] tda) {
    		Widget w = addTabInterface(24000);
    		w.totalChildren(47);
    		addButton(52001, 52000, 188, 26, 412, 412, 52002, "@[email protected] Hitpoints Level");
    		addHoveredButton_sprite_loader(52002, 413, 188, 26, 52003);
    		
    		addButton(52004, 52000, 188, 26, 414, 414, 52005, "@[email protected] Attack Level");
    		addHoveredButton_sprite_loader(52005, 415, 188, 26, 52006);
    		
    		addButton(52007, 52000, 188, 26, 416, 416, 52008, "@[email protected] Strength Level");
    		addHoveredButton_sprite_loader(52008, 417, 188, 26, 52009);
    		
    		addButton(52010, 52000, 188, 26, 418, 418, 52011, "@[email protected] Defence Level");
    		addHoveredButton_sprite_loader(52011, 419, 188, 26, 52012);
    		
    		addButton(52013, 52000, 188, 26, 420, 420, 52014, "@[email protected] Ranged Level");
    		addHoveredButton_sprite_loader(52014, 421, 188, 26, 52015);
    		
    		addButton(52016, 52000, 188, 26, 422, 422, 52017, "@[email protected] Magic Level");
    		addHoveredButton_sprite_loader(52017, 423, 188, 26, 52018);
    		
    		addButton(52019, 52000, 188, 26, 424, 424, 52020, "@[email protected] Prayer Level");
    		addHoveredButton_sprite_loader(52020, 425, 188, 26, 52021);
    		
    		addText(52022, "@[email protected]", tda, 2, 00000, false, true);
    		addText(52023, "@[email protected]", tda, 2, 00000, false, true);
    		addText(52052, "@[email protected]", tda, 2, 00000, false, true);
    		addText(52025, "@[email protected]", tda, 2, 00000, false, true);
    		addText(52026, "@[email protected]", tda, 2, 00000, false, true);
    		addText(52027, "@[email protected]", tda, 2, 00000, false, true);
    		addText(52028, "@[email protected]", tda, 2, 00000, false, true);
    		
    		addText(52029, "@[email protected]: 0", tda, 1, 00000, false, true);
    		addText(52030, "@[email protected]: ", tda, 1, 00000, false, true);
    		addText(52031, "@[email protected]: ", tda, 1, 00000, false, true);
    		addText(52032, "@[email protected]: ", tda, 1, 00000, false, true);
    		addText(52033, "@[email protected]/D Ratio: ", tda, 1, 00000, false, true);
    		addText(52034, "@[email protected]: ", tda, 1, 00000, false, true);
    		
    		addSprite(52040, 426);
    		addSprite(52041, 427);
    		addSprite(52042, 162);
    		addSprite(52043, 428);
    		addSprite(52044, 429);
    		addSprite(52045, 455);
    		
    		int child = 0;
    		w.child(child++, 52001, 0, 0);
    		w.child(child++, 52002, 0, 0);
    		
    		w.child(child++, 52004, 0, 27);
    		w.child(child++, 52005, 0, 27);
    		
    		w.child(child++, 52007, 0, 54);
    		w.child(child++, 52008, 0, 54);
    
    		w.child(child++, 52010, 0, 81);
    		w.child(child++, 52011, 0, 81);
    		
    		w.child(child++, 52013, 0, 108);
    		w.child(child++, 52014, 0, 108);
    		
    		w.child(child++, 52016, 0, 135);
    		w.child(child++, 52017, 0, 135);
    		
    		w.child(child++, 52019, 0, 162);
    		w.child(child++, 52020, 0, 162);
    		
    		//Change font color and font sizes
    		for(int i = 4004; i <= 4017; i++) {
    			interfaceCache[i].textDrawingAreas = tda[2];
    			interfaceCache[i].textColor = 0xFFFF00;
    		}
    		
    		//Hitpoints
    		w.child(child++, 4016, 134, 6);
    		w.child(child++, 4017, 135 + 32, 6);
    		
    		//Attack		
    		w.child(child++, 4004, 134, 33);
    		w.child(child++, 4005, 135 + 32, 33);
    		
    		//Strength		
    		w.child(child++, 4006, 134, 60);
    		w.child(child++, 4007, 135 + 32, 60);
    		
    		//Defence		
    		w.child(child++, 4008, 134, 87);
    		w.child(child++, 4009, 135 + 32, 87);
    		
    		//Ranged		
    		w.child(child++, 4010, 134, 114);
    		w.child(child++, 4011, 135 + 32, 114);
    		
    		//Magic		
    		w.child(child++, 4014, 134, 141);
    		w.child(child++, 4015, 135 + 32, 141);
    		
    		//Prayer		
    		w.child(child++, 4012, 134, 168);
    		w.child(child++, 4013, 135 + 32, 168);
    		
    		//Skill names
    		w.child(child++, 52022, 48, 6);
    		w.child(child++, 52023, 48, 33);
    		w.child(child++, 52052, 48, 60);
    		w.child(child++, 52025, 48, 87);
    		w.child(child++, 52026, 48, 114);
    		w.child(child++, 52027, 48, 141);
    		w.child(child++, 52028, 48, 168);
    		
    		
    		w.child(child++, 52030, 16, 193);
    		w.child(child++, 52029, 108, 193);
    		w.child(child++, 52031, 16, 211);
    		w.child(child++, 52032, 16, 229);
    		w.child(child++, 52033, 108, 211);
    		w.child(child++, 52034, 108, 229);
    		
    		w.child(child++, 52041, 0, 193);
    		w.child(child++, 52040, 90, 193);
    		w.child(child++, 52042, 0, 210);
    		w.child(child++, 52043, 0, 228);
    		w.child(child++, 52044, 90, 211);
    		w.child(child++, 52045, 90, 228);
    	}
    This is the original skills tab method that oak has implemented into the client but I want the original osrs one. The id for the original one is 3917 but I was wondering how you implement different interfaces into the client.
    Reply With Quote  
     

  2. #2  
    Registered Member Tylwr's Avatar
    Join Date
    Jul 2012
    Age
    21
    Posts
    475
    Thanks given
    105
    Thanks received
    41
    Discord
    Tyler#6774
    Rep Power
    15
    Oak didn't replace the skilltab, but he did make his own. If you want original, you change it server side.

    Here @ GameConstants.java:

    Code:
        //public static final int TAB_INTERFACES[] = {2423, 3917, 638, 3213, 1644, 5608, -1, 37128, 5065, 5715, 2449, 42500, 147, 32000};
        public static final int TAB_INTERFACES[] = {2423, 3917, 10220, 3213, 1644, 5608, -1, 37128, 5065, 5715, 2449, 42500, 147, 32000};
    bottom one is the osrs one, top one is Oak's

    Quote my post for me to see your reply.
    Discord: Tyler#6774

    Reply With Quote  
     

  3. #3  
    Registered Member
    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    14
    Posts
    4,357
    Thanks given
    1,001
    Thanks received
    694
    Rep Power
    2968
    Quote Originally Posted by Tylwr View Post
    Oak didn't replace the skilltab, but he did make his own. If you want original, you change it server side.

    Here @ GameConstants.java:

    Code:
        //public static final int TAB_INTERFACES[] = {2423, 3917, 638, 3213, 1644, 5608, -1, 37128, 5065, 5715, 2449, 42500, 147, 32000};
        public static final int TAB_INTERFACES[] = {2423, 3917, 10220, 3213, 1644, 5608, -1, 37128, 5065, 5715, 2449, 42500, 147, 32000};
    bottom one is the osrs one, top one is Oak's
    Wrong, 638 is quest tab.

    3917 is skill tab


    If you want the original 317 skill tab then uncomment the declaration in upack method. Otherwise, there's no osrs skill tab in elvarg
    [Only registered and activated users can see links. ]
    Quote Originally Posted by UberNation View Post
    Did you update the quantum network sockets to match the polarity of the wilderness counter levels in the Boolean that divides the wilderness level by zero?
    Reply With Quote  
     

  4. #4  
    Donator

    Join Date
    Sep 2016
    Posts
    132
    Thanks given
    115
    Thanks received
    49
    Rep Power
    62
    Also it's worth noting Elvarg client loads 474 interface data, so it probably does not look exactly like the OSRS one you are wanting.
    If a man does not have the sauce, then he is lost. But the same man can be lost in the sauce.
    Reply With Quote  
     


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. [Elvarg Base] Widget help
    By DivinityGang in forum Help
    Replies: 0
    Last Post: 07-24-2019, 12:22 AM
  2. Replies: 6
    Last Post: 07-26-2018, 11:28 PM
  3. Replies: 6
    Last Post: 07-02-2018, 11:11 AM
  4. Replies: 2
    Last Post: 04-10-2018, 04:56 PM
  5. Help definitions - Elvarg Base
    By _James in forum Help
    Replies: 5
    Last Post: 03-30-2017, 01:48 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
  •