Thread: converting rune v1 to rune v2 client code

Results 1 to 3 of 3
  1. #1 converting rune v1 to rune v2 client code 
    Registered Member
    Join Date
    Apr 2015
    Posts
    57
    Thanks given
    14
    Thanks received
    4
    Rep Power
    10
    Hey everyone, i've been trying so hard to convert this rune v1 client code to my rune v2 client.

    Rsinterface.java (in ruse v1, i think i have to play with custominterface.java in ruse v2. Not sure tho.
    public static void playerOwnedShopInterface(TextDrawingArea[] tda) {
    RSInterface tab = addInterface(32600);
    RSInterface tab2 = addInterface(32620);
    RSInterface tab3 = addInterface(32622);
    String dir = "ok/ok";
    addSprite(32601, 0, dir);
    addConfigButton(32602, 32603, 3, 4, dir, 164, 22, "Search", 1, 4, 968);
    addConfigButton(32604, 32605, 5, 6, dir, 164, 22, "Search for players", 1, 4, 969);
    addHoverButton(32606, dir, 1, 16, 16, "Close Window", 250, 32607, 3);
    addHoveredButton(32607, dir, 2, 16, 16, 32608);
    addText(32610, "Player Owned Shops", tda, 2, 0xff7000, true, true);
    addText(32611, "Search", tda, 1, 0xff7000, false, true);
    addText(32612, "Search a player", tda, 1, 0xff7000, false, true);
    int x = 10, y = 10;
    tab.totalChildren(8);
    tab.child(0, 32601, 0+x, 0+y);
    tab.child(1, 32602, 87+x, 273+y);
    //tab.child(2, 32604, 360+x, 273+y);
    tab.child(2, 32606, 463+x, 4+y);
    tab.child(3, 32607, 463+x, 4+y);
    tab.child(4, 32611, 90+x, 276+y);
    //tab.child(6, 32612, 363+x, 276+y);
    tab.child(5, 32620, 9+x, 22+y);
    tab.child(6, 32622, 350+x, 22+y);
    tab.child(7, 32610, 242+x, 5+y);
    tab2.width = 317;
    tab2.height = 246;
    tab2.scrollMax = 400;
    itemGroup(32621, 7, 8, 10, 10);
    tab2.totalChildren(1);
    tab2.child(0, 32621, 14, 14);
    for (int i = 0; i < 100; i++) {
    addClickableText(32623 + i, "Player online " + i, "Select", tda, 0, 0xeb981f, false, true, 632);
    }
    tab3.width = 110;
    tab3.height = 246;
    tab3.scrollMax = 10 + (100 * 14);
    tab3.totalChildren(100);
    for (int i = 0; i < 100; i++) {
    tab3.child(i, 32623 + i, 10, 10 + (i * 14));
    }
    }
    public static void itemGroup(int id, int w, int h, int x, int y) {
    RSInterface rsi = addInterface(id);
    rsi.width = w;
    rsi.height = h;
    rsi.inv = new int[w * h];
    rsi.invStackSizes = new int[w * h];
    rsi.usableItemInterface = false;
    rsi.isInventoryInterface = false;
    rsi.invSpritePadX = x;
    rsi.invSpritePadY = y;
    rsi.spritesX = new int[20];
    rsi.spritesY = new int[20];
    rsi.sprites = new Sprite[20];
    rsi.type = 2;
    }
    public static void addToItemGroup(int id, int w, int h, int x, int y, boolean actions, String action1, String action2, String action3) {
    RSInterface rsi = addInterface(id);
    rsi.width = w;
    rsi.height = h;
    rsi.inv = new int[w * h];
    rsi.invStackSizes = new int[w * h];
    rsi.usableItemInterface = false;
    rsi.isInventoryInterface = false;
    rsi.interfaceShown = false;
    rsi.invSpritePadX = x;
    rsi.invSpritePadY = y;
    rsi.spritesX = new int[20];
    rsi.spritesY = new int[20];
    rsi.sprites = new Sprite[20];
    rsi.actions = new String[5];
    if (actions) {
    rsi.actions[0] = action1;
    rsi.actions[1] = action2;
    rsi.actions[2] = action3;
    }
    rsi.type = 2;
    }

    static void playerOwnedShopInterface3(TextDrawingArea[] tda) {
    RSInterface rsi = addInterface(37000);
    addSprite(37001, 0, "Interfaces/ResourceBag/SPRITE");
    addSprite(37002, 1, "Interfaces/ResourceBag/SPRITE");
    for (int i = 0; i < 28; i++)
    addToItemGroup(37003 + i, 1, 1, 0, 0, true, new String[] { "Withdraw 1", "Withdraw 5", "Withdraw 10", "Withdraw all", "Withdraw all to bank" });
    setChildren(30, rsi);
    setBounds(37001, 147, 38, 0, rsi);
    setBounds(37002, 140, 31, 1, rsi);
    int x = 0;
    int y = 0;
    int counter = 0;
    for (int i = 0; i < 28; i++) {
    setBounds(37003 + i, 162 + x, 46 + y, 2 + i, rsi);
    x += 42;
    counter++;
    if (counter == 4) {
    x = 0;
    y += 34;
    counter = 0;
    }
    }
    RSInterface tab = addTabInterface(37053);
    addInventoryItemGroup2(37054, 7, 4);
    setChildren(1, tab);
    setBounds(37054, 0, 0, 0, tab);
    }

    public static void addToItemGroup(int id, int w, int h, int x, int y, boolean hasActions, String[] actions) {
    RSInterface rsi = addInterface(id);
    rsi.width = w;
    rsi.height = h;
    rsi.inv = new int[w * h];
    rsi.invStackSizes = new int[w * h];
    rsi.usableItemInterface = false;
    rsi.isInventoryInterface = false;
    rsi.interfaceShown = false;
    rsi.invSpritePadX = x;
    rsi.invSpritePadY = y;
    rsi.spritesX = new int[20];
    rsi.spritesY = new int[20];
    rsi.sprites = new Sprite[20];
    if (hasActions)
    rsi.actions = actions;
    rsi.type = 2;
    }

    public static void addClickText(final int interfaceID, final String line,
    final int color, final boolean center, final boolean shadow,
    final int hover, final TextDrawingArea[] typeFace,
    final int textType, final String tooltip) {
    final RSInterface text = addInterface(interfaceID);
    text.id = interfaceID;
    text.parentID = interfaceID;
    text.type = 4;
    text.atActionType = 4;
    text.contentType = 0;
    text.width = /* typeFace[textType].getTextWidth(line) */130;
    text.height = /* typeFace[textType].getTextHeight(line) */textType == 0 ? 14
    : 21;
    text.hoverType = hover;
    text.centerText = center;
    text.shadowed = shadow;
    text.textDrawingAreas = typeFace[textType];
    text.message = line;
    text.enabledColor = color;
    text.tooltip = tooltip;
    }
    public static void playerOwnedShopInterface2(TextDrawingArea[] tda) {
    RSInterface localRSInterface1 = addInterface(33600);
    RSInterface localRSInterface2 = addInterface(33620);
    addSpriteLoader(33601, 581);
    addHoveredImageWSpriteLoader(33606, 581, 164, 22, 33607);
    addHoverSpriteLoaderButton(33607, 737, 16, 16, "Close", -1, 32608, 1);
    addText(33610, "Your Player Owned Shop", tda, 2, 0xff7000, true, true);
    localRSInterface1.totalChildren(5);
    localRSInterface1.child(0, 33601, 10, 10);
    localRSInterface1.child(1, 33606, 473, 14);
    localRSInterface1.child(2, 33607, 473, 14);
    localRSInterface1.child(3, 33620, 19, 32);
    localRSInterface1.child(4, 33610, 252, 15);
    localRSInterface2.width = 455;
    localRSInterface2.height = 276;
    localRSInterface2.scrollMax = 400;
    itemGroup(33621, 10, 8, 10, 10);
    localRSInterface2.totalChildren(1);
    localRSInterface2.child(0, 33621, 20, 14);
    }


    //addText(33610, "Your Player Owned Shop", tda, 2, 0xff7000, true, true);
    private static void addButton(int ID, int type, int hoverID, int dS,
    int eS, String NAME, int W, int H, String text, int configFrame,
    int configId) {
    RSInterface rsinterface = addInterface(ID);
    rsinterface.id = ID;
    rsinterface.parentID = ID;
    rsinterface.type = 5;
    rsinterface.atActionType = type;
    rsinterface.opacity = 0;
    rsinterface.hoverType = hoverID;
    rsinterface.enabledSprite = imageLoader(dS, NAME);
    rsinterface.disabledSprite = imageLoader(eS, NAME);
    rsinterface.width = W;
    rsinterface.height = H;
    rsinterface.tooltip = text;
    rsinterface.valueCompareType = new int[1];
    rsinterface.requiredValues = new int[1];
    rsinterface.valueCompareType[0] = 1;
    rsinterface.requiredValues[0] = configId;
    rsinterface.valueIndexArray = new int[1][3];
    rsinterface.valueIndexArray[0][0] = 5;
    rsinterface.valueIndexArray[0][1] = configFrame;
    rsinterface.valueIndexArray[0][2] = 0;
    }
    And this is supposed to be in client.java
    if (child.id == 32621) {
    menuActionName[menuActionRow] = "Buy X @lre@" + itemDef.name + "";
    menuActionID[menuActionRow] = 431;
    menuActionCmd1[menuActionRow] = itemDef.id;
    menuActionCmd2[menuActionRow] = ptr;
    menuActionCmd3[menuActionRow] = child.id;
    menuActionRow++;
    menuActionName[menuActionRow] = "Buy 10 @lre@" + itemDef.name + "";
    menuActionID[menuActionRow] = 300;
    menuActionCmd1[menuActionRow] = itemDef.id;
    menuActionCmd2[menuActionRow] = ptr;
    menuActionCmd3[menuActionRow] = child.id;
    menuActionRow++;
    menuActionName[menuActionRow] = "Buy 5 @lre@" + itemDef.name + "";
    menuActionID[menuActionRow] = 291;
    menuActionCmd1[menuActionRow] = itemDef.id;
    menuActionCmd2[menuActionRow] = ptr;
    menuActionCmd3[menuActionRow] = child.id;
    menuActionRow++;
    menuActionName[menuActionRow] = "Buy 1 @lre@" + itemDef.name + "";
    menuActionID[menuActionRow] = 867;
    menuActionCmd1[menuActionRow] = itemDef.id;
    menuActionCmd2[menuActionRow] = ptr;
    menuActionCmd3[menuActionRow] = child.id;
    menuActionRow++;
    menuActionName[menuActionRow] = "Value @lre@" + itemDef.name + "";
    menuActionID[menuActionRow] = 632;
    menuActionCmd1[menuActionRow] = itemDef.id;
    menuActionCmd2[menuActionRow] = ptr;
    menuActionCmd3[menuActionRow] = child.id;
    menuActionRow++;
    }

    if (child.id == 33621) {
    menuActionName[menuActionRow] = "Set price @lre@" + itemDef.name + "";
    menuActionID[menuActionRow] = 78;
    menuActionCmd1[menuActionRow] = itemDef.id;
    menuActionCmd2[menuActionRow] = ptr;
    menuActionCmd3[menuActionRow] = child.id;
    menuActionRow++;
    menuActionName[menuActionRow] = "Withdraw X @lre@" + itemDef.name + "";
    menuActionID[menuActionRow] = 431;
    menuActionCmd1[menuActionRow] = itemDef.id;
    menuActionCmd2[menuActionRow] = ptr;
    menuActionCmd3[menuActionRow] = child.id;
    menuActionRow++;
    menuActionName[menuActionRow] = "Withdraw 10 @lre@" + itemDef.name + "";
    menuActionID[menuActionRow] = 300;
    menuActionCmd1[menuActionRow] = itemDef.id;
    menuActionCmd2[menuActionRow] = ptr;
    menuActionCmd3[menuActionRow] = child.id;
    menuActionRow++;
    menuActionName[menuActionRow] = "Withdraw 5 @lre@" + itemDef.name + "";
    menuActionID[menuActionRow] = 291;
    menuActionCmd1[menuActionRow] = itemDef.id;
    menuActionCmd2[menuActionRow] = ptr;
    menuActionCmd3[menuActionRow] = child.id;
    menuActionRow++;
    menuActionName[menuActionRow] = "Withdraw 1 @lre@" + itemDef.name + "";
    menuActionID[menuActionRow] = 867;
    menuActionCmd1[menuActionRow] = itemDef.id;
    menuActionCmd2[menuActionRow] = ptr;
    menuActionCmd3[menuActionRow] = child.id;
    menuActionRow++;
    menuActionName[menuActionRow] = "Value @lre@" + itemDef.name + "";
    menuActionID[menuActionRow] = 632;
    menuActionCmd1[menuActionRow] = itemDef.id;
    menuActionCmd2[menuActionRow] = ptr;
    menuActionCmd3[menuActionRow] = child.id;
    menuActionRow++;
    }

    if (child.id == 41710) {
    menuActionName[menuActionRow] = "Withdraw all @lre@" + itemDef.name + "";
    menuActionID[menuActionRow] = 431;
    menuActionCmd1[menuActionRow] = itemDef.id;
    menuActionCmd2[menuActionRow] = ptr;
    menuActionCmd3[menuActionRow] = child.id;
    menuActionRow++;
    menuActionName[menuActionRow] = "Withdraw X @lre@" + itemDef.name + "";
    menuActionID[menuActionRow] = 300;
    menuActionCmd1[menuActionRow] = itemDef.id;
    menuActionCmd2[menuActionRow] = ptr;
    menuActionCmd3[menuActionRow] = child.id;
    menuActionRow++;
    menuActionName[menuActionRow] = "Withdraw 10 @lre@" + itemDef.name + "";
    menuActionID[menuActionRow] = 867;
    menuActionCmd1[menuActionRow] = itemDef.id;
    menuActionCmd2[menuActionRow] = ptr;
    menuActionCmd3[menuActionRow] = child.id;
    menuActionRow++;
    menuActionName[menuActionRow] = "Withdraw 1 @lre@" + itemDef.name + "";
    menuActionID[menuActionRow] = 632;
    menuActionCmd1[menuActionRow] = itemDef.id;
    menuActionCmd2[menuActionRow] = ptr;
    menuActionCmd3[menuActionRow] = child.id;
    menuActionRow++;
    }
    }
    I am using Necrotic client.

    Thanks for everyone who can help me.
    Reply With Quote  
     

  2. #2  
    Extreme Donator


    Join Date
    Aug 2016
    Posts
    597
    Thanks given
    109
    Thanks received
    96
    Rep Power
    254
    Yeah you're gonna have to do a bit of converting. Ruse v2 doesn't support loading images from folders in the cache (as far as i'm aware) so you'll need to use the methods that allow you to choose direct sprite icons. Also you'll have to make a few new methods in RSInterface. Long store short i'm just gonna give you the whole thing and you can change the sprites id's and pack them into your sprites as well.

    CustomInterfaces.java

    Code:
    public static void playerOwnedShopInterface(TextDrawingArea[] tda) {
    		RSInterface tab = addInterface(32600);
    		RSInterface tab2 = addInterface(32620);
    		RSInterface tab3 = addInterface(32622);
    		addSpriteLoader(32601, 1231);
    		addConfigButton(32602, 32604, 1234, 1235, 164, 22, "Search", 1, 4, 968);
    		// addConfigButton(32604, 32605, 5, 6, dir, 164, 22, "Search for players", 1, 4,
    		// 969);
    		addHoverButton(32606, 1232, 1232, 16, 16, "Close Window", 250, 32607, 3);
    		addHoveredButton(32607, 1233, 1233, 16, 16, 32608);
    
    		addText(32610, "Player Owned Shops", tda, 2, 0xff7000, true, true);
    		addText(32611, "Search", tda, 1, 0xff7000, false, true);
    		// addText(32612, "Search a player", tda, 1, 0xff7000, false, true);
    		addHoverButtonWSpriteLoader(54098, 1285, 72, 32, "My Shop", 0, 54099, 1);
    		addHoveredImageWSpriteLoader(54099, 1286, 72, 32, 54100);
    		addText(54101, "My Shop", tda, 1, 0xff7000, false, true);
    		int x = 10, y = 10;
    		tab.totalChildren(11);
    		tab.child(0, 32601, 6, 0 + y);
    		tab.child(1, 32602, 87 + x, 273 + y);
    		// tab.child(2, 32604, 360+x, 273+y);
    		tab.child(2, 32606, 463 + x, 4 + y);
    		tab.child(3, 32607, 463 + x, 4 + y);
    		tab.child(4, 32611, 90 + x, 276 + y);
    		// tab.child(6, 32612, 363+x, 276+y);
    		tab.child(5, 32620, 9 + x, 22 + y);
    		tab.child(6, 32622, 350 + x, 22 + y);
    		tab.child(7, 32610, 242 + x, 5 + y);
    		tab.child(8, 54098, 382, 272 + y);
    		tab.child(9, 54099, 382, 272 + y);
    		tab.child(10, 54101, 394, 275 + y);
    		tab2.width = 317;
    		tab2.height = 246;
    		tab2.scrollMax = 400;
    		itemGroup(32621, 7, 8, 10, 10);
    		tab2.totalChildren(1);
    		tab2.child(0, 32621, 14, 14);
    		for (int i = 0; i < 100; i++) {
    			addClickableText(32623 + i, "" + i, "Select", fonts, 0, 0xeb981f, false, false, 632);
    		}
    		tab3.width = 110;
    		tab3.height = 246;
    		tab3.scrollMax = 10 + (100 * 14);
    		tab3.totalChildren(100);
    		for (int i = 0; i < 100; i++) {
    			tab3.child(i, 32623 + i, 10, 10 + (i * 14));
    		}
    	}
    
    	public static void playerOwnedShopInterface2(TextDrawingArea[] tda) {
    		RSInterface tab = addInterface(33600);
    		RSInterface tab2 = addInterface(33620);
    		addSpriteLoader(33601, 1238);
    		addHoverButtonWSpriteLoader(33606, 1232, 16, 16, "Confirm selection", 250, 32607, 3);
    		addHoveredImageWSpriteLoader(33607, 1233, 16, 16, 32608);
    		addText(33610, "Your Player Owned Shop", tda, 2, 0xff7000, true, true);
    		int x = 10, y = 10;
    		tab.totalChildren(5);
    		tab.child(0, 33601, 0 + x, 0 + y);
    		tab.child(1, 33606, 463 + x, 4 + y);
    		tab.child(2, 33607, 463 + x, 4 + y);
    		tab.child(3, 33620, 9 + x, 22 + y);
    		tab.child(4, 33610, 242 + x, 5 + y);
    		tab2.width = 455;
    		tab2.height = 276;
    		tab2.scrollMax = 400;
    		itemGroup(33621, 10, 8, 10, 10);
    		tab2.totalChildren(1);
    		tab2.child(0, 33621, 20, 14);
    	}
    
    	public static void itemGroup(int id, int w, int h, int x, int y) {
    		RSInterface rsi = addInterface(id);
    		rsi.width = w;
    		rsi.height = h;
    		rsi.inv = new int[w * h];
    		rsi.invStackSizes = new int[w * h];
    		rsi.usableItemInterface = true;
    		rsi.isInventoryInterface = false;
    		rsi.invSpritePadX = x;
    		rsi.invSpritePadY = y;
    		rsi.spritesX = new int[20];
    		rsi.spritesY = new int[20];
    		rsi.sprites = new Sprite[20];
    		rsi.type = 2;
    	}
    
    	static void playerOwnedShopInterface3(TextDrawingArea[] tda) {
    		RSInterface rsi = addInterface(37000);
    		addSpriteLoader(37001, 1285);
    		addSpriteLoader(37002, 1286);
    		for (int i = 0; i < 28; i++)
    			addToItemGroup(37003 + i, 1, 1, 0, 0, true,
    					new String[] { "Withdraw 1", "Withdraw 5", "Withdraw 10", "Withdraw all", "Withdraw all to bank" });
    		setChildren(30, rsi);
    		setBounds(37001, 147, 38, 0, rsi);
    		setBounds(37002, 140, 31, 1, rsi);
    		int x = 0;
    		int y = 0;
    		int counter = 0;
    		for (int i = 0; i < 28; i++) {
    			setBounds(37003 + i, 162 + x, 46 + y, 2 + i, rsi);
    			x += 42;
    			counter++;
    			if (counter == 4) {
    				x = 0;
    				y += 34;
    				counter = 0;
    			}
    		}
    		RSInterface tab = addTabInterface(37053);
    		addInventoryItemGroup2(37054, 7, 4);
    		setChildren(1, tab);
    		setBounds(37054, 0, 0, 0, tab);
    	}
    
    	public static void addToItemGroup(int id, int w, int h, int x, int y, boolean hasActions, String[] actions) {
    		RSInterface rsi = addInterface(id);
    		rsi.width = w;
    		rsi.height = h;
    		rsi.inv = new int[w * h];
    		rsi.invStackSizes = new int[w * h];
    		rsi.usableItemInterface = false;
    		rsi.isInventoryInterface = false;
    		rsi.interfaceShown = false;
    		rsi.invSpritePadX = x;
    		rsi.invSpritePadY = y;
    		rsi.spritesX = new int[20];
    		rsi.spritesY = new int[20];
    		rsi.sprites = new Sprite[20];
    		if (hasActions)
    			rsi.actions = actions;
    		rsi.type = 2;
    	}
    
    	public static void opacityInterface() {
    		RSInterface rsi = addTabInterface(35555);
    		setChildren(1, rsi);
    		addRectangle(35556, 128, 0x000000, true, 30, 34);
    		setBounds(35556, 0, 0, 0, rsi);
    	}
    
    	public static void addInventoryItemGroup(int id, int h, int w) {
    		RSInterface Tab = interfaceCache[id] = new RSInterface();
    		Tab.inv = new int[w * h];
    		Tab.invStackSizes = new int[w * h];
    		for (int i1 = 0; i1 < w * h; i1++) {
    			Tab.invStackSizes[i1] = 0; // inv item stack size
    			Tab.inv[i1] = 0; // inv item ids
    		}
    		Tab.spritesY = new int[30];
    		Tab.spritesX = new int[30];
    		int[] rowX = { 0, 22, 44, 66, 88, 110, 0, 22, 44, 66, 88, 110, 0, 22, 44, 66, 88, 110, 0, 22, 44, 66, 88, 110,
    				0, 22, 44, 66, 88, 110 };
    		int[] rowY = { 0, 0, 0, 0, 0, 0, 22, 22, 22, 22, 22, 22, 44, 44, 44, 44, 44, 44, 66, 66, 66, 66, 66, 66, 88, 88,
    				88, 88, 88, 88 };
    		for (int i2 = 0; i2 < 30; i2++) {
    			Tab.spritesY[i2] = rowY[i2];
    			Tab.spritesX[i2] = rowX[i2];
    		}
    		Tab.actions = new String[] { "Withdraw 1", "Withdraw 5", "Withdraw 10", "Withdraw All", null };
    		Tab.width = w;
    		Tab.hoverType = -1;
    		Tab.parentID = id;
    		Tab.id = id;
    		Tab.scrollMax = 0;
    		Tab.type = 2;
    		Tab.height = h;
    	}
    
    	public static void addInventoryItemGroup2(int id, int h, int w) {
    		RSInterface Tab = interfaceCache[id] = new RSInterface();
    		Tab.inv = new int[w * h];
    		Tab.invStackSizes = new int[w * h];
    		for (int i1 = 0; i1 < w * h; i1++) {
    			Tab.invStackSizes[i1] = 0; // inv item stack size
    			Tab.inv[i1] = 0; // inv item ids
    		}
    		Tab.spritesY = new int[28];
    		Tab.spritesX = new int[28];
    		for (int i2 = 0; i2 < 28; i2++) {
    			Tab.spritesY[i2] = 8;
    			Tab.spritesX[i2] = 16;
    		}
    		Tab.invSpritePadX = 7;
    		Tab.invSpritePadY = 4;
    		Tab.actions = new String[] { "Store 1", "Store 5", "Store 10", "Store All", null };
    		Tab.width = w;
    		Tab.hoverType = -1;
    		Tab.parentID = id;
    		Tab.id = id;
    		Tab.scrollMax = 0;
    		Tab.type = 2;
    		Tab.height = h;
    	}
    Client.java

    Code:
    if (children.id == 32621) {
    												menuActionName[menuActionRow] = "Buy X @lre@" + definition.name + "";
    												menuActionID[menuActionRow] = 431;
    												menuActionCmd1[menuActionRow] = definition.id;
    												menuActionCmd2[menuActionRow] = k2;
    												menuActionCmd3[menuActionRow] = children.id;
    												menuActionRow++;
    												menuActionName[menuActionRow] = "Buy 10 @lre@" + definition.name + "";
    												menuActionID[menuActionRow] = 300;
    												menuActionCmd1[menuActionRow] = definition.id;
    												menuActionCmd2[menuActionRow] = k2;
    												menuActionCmd3[menuActionRow] = children.id;
    												menuActionRow++;
    												menuActionName[menuActionRow] = "Buy 5 @lre@" + definition.name + "";
    												menuActionID[menuActionRow] = 291;
    												menuActionCmd1[menuActionRow] = definition.id;
    												menuActionCmd2[menuActionRow] = k2;
    												menuActionCmd3[menuActionRow] = children.id;
    												menuActionRow++;
    												menuActionName[menuActionRow] = "Buy 1 @lre@" + definition.name + "";
    												menuActionID[menuActionRow] = 867;
    												menuActionCmd1[menuActionRow] = definition.id;
    												menuActionCmd2[menuActionRow] = k2;
    												menuActionCmd3[menuActionRow] = children.id;
    												menuActionRow++;
    												menuActionName[menuActionRow] = "Value @lre@" + definition.name + "";
    												menuActionID[menuActionRow] = 632;
    												menuActionCmd1[menuActionRow] = definition.id;
    												menuActionCmd2[menuActionRow] = k2;
    												menuActionCmd3[menuActionRow] = children.id;
    												menuActionRow++;
    											}
                                                                                            if (children.id == 33621) {
    												menuActionName[menuActionRow] = "Set price @lre@" + definition.name
    														+ "";
    												menuActionID[menuActionRow] = 78;
    												menuActionCmd1[menuActionRow] = definition.id;
    												menuActionCmd2[menuActionRow] = k2;
    												menuActionCmd3[menuActionRow] = children.id;
    												menuActionRow++;
    												menuActionName[menuActionRow] = "Withdraw X @lre@" + definition.name
    														+ "";
    												menuActionID[menuActionRow] = 431;
    												menuActionCmd1[menuActionRow] = definition.id;
    												menuActionCmd2[menuActionRow] = k2;
    												menuActionCmd3[menuActionRow] = children.id;
    												menuActionRow++;
    												menuActionName[menuActionRow] = "Withdraw 10 @lre@" + definition.name
    														+ "";
    												menuActionID[menuActionRow] = 300;
    												menuActionCmd1[menuActionRow] = definition.id;
    												menuActionCmd2[menuActionRow] = k2;
    												menuActionCmd3[menuActionRow] = children.id;
    												menuActionRow++;
    												menuActionName[menuActionRow] = "Withdraw 5 @lre@" + definition.name
    														+ "";
    												menuActionID[menuActionRow] = 291;
    												menuActionCmd1[menuActionRow] = definition.id;
    												menuActionCmd2[menuActionRow] = k2;
    												menuActionCmd3[menuActionRow] = children.id;
    												menuActionRow++;
    												menuActionName[menuActionRow] = "Withdraw 1 @lre@" + definition.name
    														+ "";
    												menuActionID[menuActionRow] = 867;
    												menuActionCmd1[menuActionRow] = definition.id;
    												menuActionCmd2[menuActionRow] = k2;
    												menuActionCmd3[menuActionRow] = children.id;
    												menuActionRow++;
    												menuActionName[menuActionRow] = "Value @lre@" + definition.name + "";
    												menuActionID[menuActionRow] = 632;
    												menuActionCmd1[menuActionRow] = definition.id;
    												menuActionCmd2[menuActionRow] = k2;
    												menuActionCmd3[menuActionRow] = children.id;
    												menuActionRow++;
    											}
    That should be all the client shit, but I might have missed some stuff to put in RSInterface. No idea
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2015
    Posts
    57
    Thanks given
    14
    Thanks received
    4
    Rep Power
    10
    Awesome, i fixed it myself but cheers for your help.
    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. Ruse client V1 to V2
    By Ivo in forum Buying
    Replies: 2
    Last Post: 05-23-2016, 06:34 PM
  2. Rune Strand V2 client
    By Guru_ in forum Requests
    Replies: 0
    Last Post: 09-14-2014, 08:53 PM
  3. Replies: 6
    Last Post: 05-21-2014, 09:51 PM
  4. Replies: 1
    Last Post: 01-08-2013, 09:53 AM
  5. My Easter gift to Rune-Server, Easter Userbars!
    By 007 Snoop in forum Showcase
    Replies: 18
    Last Post: 04-11-2007, 11:52 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
  •