Thread: [ELVARG] ItemsKeptOnDeath

Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1 [ELVARG] ItemsKeptOnDeath 
    Registered Member Kairon's Avatar
    Join Date
    Feb 2017
    Posts
    202
    Thanks given
    54
    Thanks received
    45
    Rep Power
    33
    Hey,

    I am using Elvarg 3.1 Client https://www.rune-server.ee/runescape...oved-core.html

    For some reason ItemsKeptOnDeath isnt working correctly on that client, i mean its not sending items on interface, i did test out it with older version client of elvarg and it worked fine
    Just curious maybe someone know whats the problem with it and can point me in right direction.

    Thanks, Kairon


    https://gyazo.com/a56c0cb3f69c8fd3ee770643dd9554bf

    EDIT: FIXED.
    Reply With Quote  
     

  2. #2  
    Extreme Donator


    Join Date
    Oct 2010
    Posts
    2,853
    Thanks given
    1,213
    Thanks received
    1,622
    Rep Power
    5000
    Compare the interfaces in the Widget class
    [Today 01:29 AM] RSTrials: Nice 0.97 Win/Loss Ratio luke. That's pretty bad.
    [Today 01:30 AM] Luke132: Ok u fucking moron i forgot i could influence misc.random
    Reply With Quote  
     

  3. #3  
    Registered Member Kairon's Avatar
    Join Date
    Feb 2017
    Posts
    202
    Thanks given
    54
    Thanks received
    45
    Rep Power
    33
    I actually already did, they look completely same for me.
    3.1 Client
    Code:
    public static void itemsKeptOnDeath(GameFont[] tda) {
    
    		removeSomething(16999); //close button in text
    		Widget rsinterface = interfaceCache[10494];
    		rsinterface.spritePaddingX = 6;
    		rsinterface.spritePaddingY = 5;
    		rsinterface = interfaceCache[10600];
    		rsinterface.spritePaddingX = 6;
    		rsinterface.spritePaddingY = 5;
    
    
    		rsinterface = addInterface(17100);
    		addSpriteLoader(17101, 139);
    		/*Widget scroll = addTabInterface(17149);
    		scroll.width = 300; scroll.height = 183; scroll.scrollMax = 220;*/
    		addText(17103, "Items Kept on Death", tda, 2, 0xff981f, false, false);
    		addText(17104, "Items you will keep on death:", tda, 1, 0xff981f, false, false);
    		addText(17105, "Items you will lose on death:", tda, 1, 0xff981f, false, false);
    		addText(17106, "Info", tda, 1, 0xff981f, false, false);
    		addText(17107, "3", tda, 2, 0xffff00, false, false);
    		String[] options = {null};
    
    		/*
    		 * Items on interface
    		 */
    
    		//Top Row
    		for(int top = 17108; top <= 17111; top++) {
    			addItemOnInterface(top, 17100, options);
    		}
    		//1st row
    		for(int top = 17112; top <= 17119; top++) {
    			addItemOnInterface(top, 17100, options);
    		}
    		//2nd row
    		for(int top = 17120; top <= 17127; top++) {
    			addItemOnInterface(top, 17100, options);
    		}
    		//3rd row
    		for(int top = 17128; top <= 17135; top++) {
    			addItemOnInterface(top, 17100, options);
    		}
    		//4th row
    		for (int top = 17136; top <= 17142; top++) {
    			addItemOnInterface(top, 17100, options);
    		}
    		//5th row
    		for (int top = 17143; top <= 17148; top++) {
    			addItemOnInterface(top, 17100, options);
    		}
    
    		//6th row (4 items)
    		for(int top = 17149; top <= 17152; top++) {
    			addItemOnInterface(top, 17100, options);
    		}
    
    		setChildren(56, rsinterface);
    		//addTabInterface(5);
    		setBounds(17101, 7,8, 0, rsinterface);
    		setBounds(16999, 478, 14, 1, rsinterface);
    		setBounds(17103, 185, 18, 2, rsinterface);
    		setBounds(17104, 22, 50, 3, rsinterface);
    		setBounds(17105, 22, 110, 4, rsinterface);
    		setBounds(17106, 347, 50, 5, rsinterface);
    
    		setBounds(17107, 412, 287, 6, rsinterface);
    		setBounds(17149, 23, 132, 7, rsinterface);
    		//setBounds(17018, 480, 18, 8, rsinterface);
    		//setBounds(17019, 480, 18, 9, rsinterface);
    		
    		setBounds(38117, 480, 18, 8, rsinterface);
    		setBounds(38118, 480, 18, 9, rsinterface);
    		
    		//setBounds(5, 480, 18, 10, rsinterface);
    
    		//Positions for  item on interface (items kept on death
    		int	child_index = 10;
    		int topPos = 26;
    		for(int top = 17108; top <= 17111; top++) {
    			setBounds(top, topPos, 72, child_index, rsinterface);
    			topPos += 44;
    			child_index++;
    		}
    		//setBounds(17000, 478, 14, child_index++, rsinterface);
    		itemsOnDeathDATA(tda);
    		setBounds(17315, 348, 64, child_index++, rsinterface);
    
    		topPos = 26;
    
    		//1st row
    		for(int top = 17112; top <= 17118; top++) {
    			setBounds(top, topPos, 133, child_index, rsinterface);
    			topPos += 44;
    			child_index++;
    		}
    		//2nd row
    		topPos = 26;
    		for(int top = 17119; top <= 17125; top++) {
    			setBounds(top, topPos, 168, child_index, rsinterface);
    			topPos += 44;
    			child_index++;
    		}
    		//3rd row
    		topPos = 26;
    		for(int top = 17126; top <= 17132; top++) {
    			setBounds(top, topPos, 203, child_index, rsinterface);
    			topPos += 44;
    			child_index++;
    		}
    		//4th row
    		topPos = 26;
    		for (int top = 17133; top <= 17139; top++) {
    			setBounds(top, topPos, 238, child_index, rsinterface);
    			topPos += 44;
    			child_index++;
    		}
    		//5th row
    		topPos = 26;
    		for (int top = 17140; top <= 17145; top++) {
    			setBounds(top, topPos, 273, child_index, rsinterface);
    			topPos += 44;
    			child_index++;
    		}
    
    		//6th row (4 items)
    		topPos = 26;
    		for(int top = 17146; top <= 17152; top++) {
    			setBounds(top, topPos, 311, child_index, rsinterface);
    			topPos += 44;
    			child_index++;
    		}
    	}
    
    	public static void itemsOnDeathDATA(GameFont[] tda) {
    		Widget RSinterface = addInterface(17315);
    		addText(17309, "", 0xff981f, false, false, 0, tda, 0);
    		addText(17310, "The normal amount of", 0xff981f, false, false, 0, tda, 0);
    		addText(17311, "items kept is three.", 0xff981f, false, false, 0, tda, 0);
    		addText(17312, "", 0xff981f, false, false, 0, tda, 0);
    		addText(17313, "If you are skulled,", 0xff981f, false, false, 0, tda, 0);
    		addText(17314, "you will lose all your", 0xff981f, false, false, 0, tda, 0);
    		addText(17317, "items, unless an item", 0xff981f, false, false, 0, tda, 0);
    		addText(17318, "protecting prayer is", 0xff981f, false, false, 0, tda, 0);
    		addText(17319, "used.", 0xff981f, false, false, 0, tda, 0);
    		addText(17320, "", 0xff981f, false, false, 0, tda, 0);
    		addText(17321, "Item protecting prayers", 0xff981f, false, false, 0, tda, 0);
    		addText(17322, "will allow you to keep", 0xff981f, false, false, 0, tda, 0);
    		addText(17323, "one extra item.", 0xff981f, false, false, 0, tda, 0);
    		addText(17324, "", 0xff981f, false, false, 0, tda, 0);
    		addText(17325, "The items kept are", 0xff981f, false, false, 0, tda, 0);
    		addText(17326, "selected by the server", 0xff981f, false, false, 0, tda, 0);
    		addText(17327, "and include the most", 0xff981f, false, false, 0, tda, 0);
    		addText(17328, "expensive items you're", 0xff981f, false, false, 0, tda, 0);
    		addText(17329, "carrying.", 0xff981f, false, false, 0, tda, 0);
    		addText(17330, "", 0xff981f, false, false, 0, tda, 0);
    		RSinterface.parent = 17315;
    		RSinterface.id = 17315;
    		RSinterface.type = 0;
    		RSinterface.atActionType = 0;
    		RSinterface.contentType = 0;
    		RSinterface.width = 130;
    		RSinterface.height = 197;
    		RSinterface.opacity = 0;
    		RSinterface.hoverType = -1;
    		RSinterface.scrollMax = 280;
    		RSinterface.children = new int[20];
    		RSinterface.childX = new int[20];
    		RSinterface.childY = new int[20];
    		RSinterface.children[0] = 17309;
    		RSinterface.childX[0] = 0;
    		RSinterface.childY[0] = 0;
    		RSinterface.children[1] = 17310;
    		RSinterface.childX[1] = 0;
    		RSinterface.childY[1] = 12;
    		RSinterface.children[2] = 17311;
    		RSinterface.childX[2] = 0;
    		RSinterface.childY[2] = 24;
    		RSinterface.children[3] = 17312;
    		RSinterface.childX[3] = 0;
    		RSinterface.childY[3] = 36;
    		RSinterface.children[4] = 17313;
    		RSinterface.childX[4] = 0;
    		RSinterface.childY[4] = 48;
    		RSinterface.children[5] = 17314;
    		RSinterface.childX[5] = 0;
    		RSinterface.childY[5] = 60;
    		RSinterface.children[6] = 17317;
    		RSinterface.childX[6] = 0;
    		RSinterface.childY[6] = 72;
    		RSinterface.children[7] = 17318;
    		RSinterface.childX[7] = 0;
    		RSinterface.childY[7] = 84;
    		RSinterface.children[8] = 17319;
    		RSinterface.childX[8] = 0;
    		RSinterface.childY[8] = 96;
    		RSinterface.children[9] = 17320;
    		RSinterface.childX[9] = 0;
    		RSinterface.childY[9] = 108;
    		RSinterface.children[10] = 17321;
    		RSinterface.childX[10] = 0;
    		RSinterface.childY[10] = 120;
    		RSinterface.children[11] = 17322;
    		RSinterface.childX[11] = 0;
    		RSinterface.childY[11] = 132;
    		RSinterface.children[12] = 17323;
    		RSinterface.childX[12] = 0;
    		RSinterface.childY[12] = 144;
    		RSinterface.children[13] = 17324;
    		RSinterface.childX[13] = 0;
    		RSinterface.childY[13] = 156;
    		RSinterface.children[14] = 17325;
    		RSinterface.childX[14] = 0;
    		RSinterface.childY[14] = 168;
    		RSinterface.children[15] = 17326;
    		RSinterface.childX[15] = 0;
    		RSinterface.childY[15] = 180;
    		RSinterface.children[16] = 17327;
    		RSinterface.childX[16] = 0;
    		RSinterface.childY[16] = 192;
    		RSinterface.children[17] = 17328;
    		RSinterface.childX[17] = 0;
    		RSinterface.childY[17] = 204;
    		RSinterface.children[18] = 17329;
    		RSinterface.childX[18] = 0;
    		RSinterface.childY[18] = 216;
    		RSinterface.children[19] = 17330;
    		RSinterface.childX[19] = 0;
    		RSinterface.childY[19] = 228;
    	}
    Older version of client:
    Code:
    public static void itemsKeptOnDeath(GameFont[] tda) {
    
    		removeSomething(16999); //close button in text
    		Widget rsinterface = interfaceCache[10494];
    		rsinterface.spritePaddingX = 6;
    		rsinterface.spritePaddingY = 5;
    		rsinterface = interfaceCache[10600];
    		rsinterface.spritePaddingX = 6;
    		rsinterface.spritePaddingY = 5;
    
    
    		rsinterface = addInterface(17100);
    		addSpriteLoader(17101, 139);
    		/*Widget scroll = addTabInterface(17149);
    		scroll.width = 300; scroll.height = 183; scroll.scrollMax = 220;*/
    		addText(17103, "Items Kept on Death", tda, 2, 0xff981f, false, false);
    		addText(17104, "Items you will keep on death:", tda, 1, 0xff981f, false, false);
    		addText(17105, "Items you will lose on death:", tda, 1, 0xff981f, false, false);
    		addText(17106, "Info", tda, 1, 0xff981f, false, false);
    		addText(17107, "3", tda, 2, 0xffff00, false, false);
    		String[] options = {null};
    
    		/*
    		 * Items on interface
    		 */
    
    		//Top Row
    		for(int top = 17108; top <= 17111; top++) {
    			addItemOnInterface(top, 17100, options);
    		}
    		//1st row
    		for(int top = 17112; top <= 17119; top++) {
    			addItemOnInterface(top, 17100, options);
    		}
    		//2nd row
    		for(int top = 17120; top <= 17127; top++) {
    			addItemOnInterface(top, 17100, options);
    		}
    		//3rd row
    		for(int top = 17128; top <= 17135; top++) {
    			addItemOnInterface(top, 17100, options);
    		}
    		//4th row
    		for (int top = 17136; top <= 17142; top++) {
    			addItemOnInterface(top, 17100, options);
    		}
    		//5th row
    		for (int top = 17143; top <= 17148; top++) {
    			addItemOnInterface(top, 17100, options);
    		}
    
    		//6th row (4 items)
    		for(int top = 17149; top <= 17152; top++) {
    			addItemOnInterface(top, 17100, options);
    		}
    
    		setChildren(56, rsinterface);
    		//addTabInterface(5);
    		setBounds(17101, 7,8, 0, rsinterface);
    		setBounds(16999, 478, 14, 1, rsinterface);
    		setBounds(17103, 185, 18, 2, rsinterface);
    		setBounds(17104, 22, 50, 3, rsinterface);
    		setBounds(17105, 22, 110, 4, rsinterface);
    		setBounds(17106, 347, 50, 5, rsinterface);
    
    		setBounds(17107, 412, 287, 6, rsinterface);
    		setBounds(17149, 23, 132, 7, rsinterface);
    		//setBounds(17018, 480, 18, 8, rsinterface);
    		//setBounds(17019, 480, 18, 9, rsinterface);
    		
    		setBounds(38117, 480, 18, 8, rsinterface);
    		setBounds(38118, 480, 18, 9, rsinterface);
    		
    		//setBounds(5, 480, 18, 10, rsinterface);
    
    		//Positions for  item on interface (items kept on death
    		int	child_index = 10;
    		int topPos = 26;
    		for(int top = 17108; top <= 17111; top++) {
    			setBounds(top, topPos, 72, child_index, rsinterface);
    			topPos += 44;
    			child_index++;
    		}
    		//setBounds(17000, 478, 14, child_index++, rsinterface);
    		itemsOnDeathDATA(tda);
    		setBounds(17315, 348, 64, child_index++, rsinterface);
    
    		topPos = 26;
    
    		//1st row
    		for(int top = 17112; top <= 17118; top++) {
    			setBounds(top, topPos, 133, child_index, rsinterface);
    			topPos += 44;
    			child_index++;
    		}
    		//2nd row
    		topPos = 26;
    		for(int top = 17119; top <= 17125; top++) {
    			setBounds(top, topPos, 168, child_index, rsinterface);
    			topPos += 44;
    			child_index++;
    		}
    		//3rd row
    		topPos = 26;
    		for(int top = 17126; top <= 17132; top++) {
    			setBounds(top, topPos, 203, child_index, rsinterface);
    			topPos += 44;
    			child_index++;
    		}
    		//4th row
    		topPos = 26;
    		for (int top = 17133; top <= 17139; top++) {
    			setBounds(top, topPos, 238, child_index, rsinterface);
    			topPos += 44;
    			child_index++;
    		}
    		//5th row
    		topPos = 26;
    		for (int top = 17140; top <= 17145; top++) {
    			setBounds(top, topPos, 273, child_index, rsinterface);
    			topPos += 44;
    			child_index++;
    		}
    
    		//6th row (4 items)
    		topPos = 26;
    		for(int top = 17146; top <= 17152; top++) {
    			setBounds(top, topPos, 311, child_index, rsinterface);
    			topPos += 44;
    			child_index++;
    		}
    	}
    
    	public static void itemsOnDeathDATA(GameFont[] tda) {
    		Widget RSinterface = addInterface(17315);
    		addText(17309, "", 0xff981f, false, false, 0, tda, 0);
    		addText(17310, "The normal amount of", 0xff981f, false, false, 0, tda, 0);
    		addText(17311, "items kept is three.", 0xff981f, false, false, 0, tda, 0);
    		addText(17312, "", 0xff981f, false, false, 0, tda, 0);
    		addText(17313, "If you are skulled,", 0xff981f, false, false, 0, tda, 0);
    		addText(17314, "you will lose all your", 0xff981f, false, false, 0, tda, 0);
    		addText(17317, "items, unless an item", 0xff981f, false, false, 0, tda, 0);
    		addText(17318, "protecting prayer is", 0xff981f, false, false, 0, tda, 0);
    		addText(17319, "used.", 0xff981f, false, false, 0, tda, 0);
    		addText(17320, "", 0xff981f, false, false, 0, tda, 0);
    		addText(17321, "Item protecting prayers", 0xff981f, false, false, 0, tda, 0);
    		addText(17322, "will allow you to keep", 0xff981f, false, false, 0, tda, 0);
    		addText(17323, "one extra item.", 0xff981f, false, false, 0, tda, 0);
    		addText(17324, "", 0xff981f, false, false, 0, tda, 0);
    		addText(17325, "The items kept are", 0xff981f, false, false, 0, tda, 0);
    		addText(17326, "selected by the server", 0xff981f, false, false, 0, tda, 0);
    		addText(17327, "and include the most", 0xff981f, false, false, 0, tda, 0);
    		addText(17328, "expensive items you're", 0xff981f, false, false, 0, tda, 0);
    		addText(17329, "carrying.", 0xff981f, false, false, 0, tda, 0);
    		addText(17330, "", 0xff981f, false, false, 0, tda, 0);
    		RSinterface.parent = 17315;
    		RSinterface.id = 17315;
    		RSinterface.type = 0;
    		RSinterface.atActionType = 0;
    		RSinterface.contentType = 0;
    		RSinterface.width = 130;
    		RSinterface.height = 197;
    		RSinterface.opacity = 0;
    		RSinterface.hoverType = -1;
    		RSinterface.scrollMax = 280;
    		RSinterface.children = new int[20];
    		RSinterface.childX = new int[20];
    		RSinterface.childY = new int[20];
    		RSinterface.children[0] = 17309;
    		RSinterface.childX[0] = 0;
    		RSinterface.childY[0] = 0;
    		RSinterface.children[1] = 17310;
    		RSinterface.childX[1] = 0;
    		RSinterface.childY[1] = 12;
    		RSinterface.children[2] = 17311;
    		RSinterface.childX[2] = 0;
    		RSinterface.childY[2] = 24;
    		RSinterface.children[3] = 17312;
    		RSinterface.childX[3] = 0;
    		RSinterface.childY[3] = 36;
    		RSinterface.children[4] = 17313;
    		RSinterface.childX[4] = 0;
    		RSinterface.childY[4] = 48;
    		RSinterface.children[5] = 17314;
    		RSinterface.childX[5] = 0;
    		RSinterface.childY[5] = 60;
    		RSinterface.children[6] = 17317;
    		RSinterface.childX[6] = 0;
    		RSinterface.childY[6] = 72;
    		RSinterface.children[7] = 17318;
    		RSinterface.childX[7] = 0;
    		RSinterface.childY[7] = 84;
    		RSinterface.children[8] = 17319;
    		RSinterface.childX[8] = 0;
    		RSinterface.childY[8] = 96;
    		RSinterface.children[9] = 17320;
    		RSinterface.childX[9] = 0;
    		RSinterface.childY[9] = 108;
    		RSinterface.children[10] = 17321;
    		RSinterface.childX[10] = 0;
    		RSinterface.childY[10] = 120;
    		RSinterface.children[11] = 17322;
    		RSinterface.childX[11] = 0;
    		RSinterface.childY[11] = 132;
    		RSinterface.children[12] = 17323;
    		RSinterface.childX[12] = 0;
    		RSinterface.childY[12] = 144;
    		RSinterface.children[13] = 17324;
    		RSinterface.childX[13] = 0;
    		RSinterface.childY[13] = 156;
    		RSinterface.children[14] = 17325;
    		RSinterface.childX[14] = 0;
    		RSinterface.childY[14] = 168;
    		RSinterface.children[15] = 17326;
    		RSinterface.childX[15] = 0;
    		RSinterface.childY[15] = 180;
    		RSinterface.children[16] = 17327;
    		RSinterface.childX[16] = 0;
    		RSinterface.childY[16] = 192;
    		RSinterface.children[17] = 17328;
    		RSinterface.childX[17] = 0;
    		RSinterface.childY[17] = 204;
    		RSinterface.children[18] = 17329;
    		RSinterface.childX[18] = 0;
    		RSinterface.childY[18] = 216;
    		RSinterface.children[19] = 17330;
    		RSinterface.childX[19] = 0;
    		RSinterface.childY[19] = 228;
    	}
    Reply With Quote  
     

  4. #4  
    Registered Member Kairon's Avatar
    Join Date
    Feb 2017
    Posts
    202
    Thanks given
    54
    Thanks received
    45
    Rep Power
    33
    Bump! still haven't figured it out.
    Reply With Quote  
     

  5. #5  
    Registered Member
    rebecca's Avatar
    Join Date
    Aug 2017
    Posts
    1,071
    Thanks given
    862
    Thanks received
    915
    Rep Power
    5000
    prob sending the packet wrong
    Reply With Quote  
     

  6. #6  
    Registered Member Kairon's Avatar
    Join Date
    Feb 2017
    Posts
    202
    Thanks given
    54
    Thanks received
    45
    Rep Power
    33
    Quote Originally Posted by Expand View Post
    prob sending the packet wrong
    That's what ive been looking for, but still cant find/see anything.

    Bump for this doe maybe someone knows.
    Reply With Quote  
     

  7. #7  
    Registered Member Stevenhax's Avatar
    Join Date
    Jul 2014
    Posts
    387
    Thanks given
    55
    Thanks received
    64
    Rep Power
    42
    See if packet 53 sends/receives the data correctly.
    Reply With Quote  
     

  8. #8  
    Registered Member Kairon's Avatar
    Join Date
    Feb 2017
    Posts
    202
    Thanks given
    54
    Thanks received
    45
    Rep Power
    33
    Quote Originally Posted by Stevenhax View Post
    See if packet 53 sends/receives the data correctly.
    Everything seems working fine.
    Reply With Quote  
     

  9. #9  
    Registered Member
    rebecca's Avatar
    Join Date
    Aug 2017
    Posts
    1,071
    Thanks given
    862
    Thanks received
    915
    Rep Power
    5000
    i think i had the same problem when i switched elvargs, i think 53 and 246 works, i can't remember the id not at my pc
    actually nvm that's for type 6
    Reply With Quote  
     

  10. #10  
    Extreme Donator


    Join Date
    Oct 2010
    Posts
    2,853
    Thanks given
    1,213
    Thanks received
    1,622
    Rep Power
    5000
    should rework the interface to use container and not a bunch of separate items. Then use packet 53
    [Today 01:29 AM] RSTrials: Nice 0.97 Win/Loss Ratio luke. That's pretty bad.
    [Today 01:30 AM] Luke132: Ok u fucking moron i forgot i could influence misc.random
    Reply With Quote  
     

Page 1 of 3 123 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. elvarg.com domain for sale
    By Elvarg in forum Selling
    Replies: 19
    Last Post: 05-21-2013, 11:09 PM
  2. Elvarg - This is your story.
    By Streamy in forum Projects
    Replies: 8
    Last Post: 03-09-2013, 06:58 AM
  3. Elvarg RSPS
    By Slixr in forum Advertise
    Replies: 6
    Last Post: 01-20-2013, 07:08 AM
  4. Replies: 0
    Last Post: 07-14-2010, 06:35 PM
  5. Elvarg Gate
    By lemby pk in forum Help
    Replies: 1
    Last Post: 05-29-2009, 10:55 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
  •