Thread: Interface 34

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Interface 34 
    Registered Member
    Join Date
    Apr 2014
    Posts
    89
    Thanks given
    26
    Thanks received
    6
    Rep Power
    11
    I'm trying to remove these extra options on Interface 34 and I can't seem to figure it out.

    • I've tried using a Hex-editor and hard coding through the Client within IComponentDefinitions.
    • I have no problem editing other interfaces from the client, but this interface crashes me every time.
    • I'm out of ideas, so if anyone else knows a trick to this please let me know.


    Attached image


    REP + THANK
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    I don't know if access masks work this way but you could potentially send an access mask on that component with values that would only display the first option perhaps. Once again, I haven't tried it nor do I know if they work this way. Editing this one is difficult though as it's a container of sorts.
    Attached image
    Reply With Quote  
     

  4. #3  
    Registered Member
    Join Date
    Apr 2014
    Posts
    89
    Thanks given
    26
    Thanks received
    6
    Rep Power
    11
    Quote Originally Posted by Kris View Post
    I don't know if access masks work this way but you could potentially send an access mask on that component with values that would only display the first option perhaps. Once again, I haven't tried it nor do I know if they work this way. Editing this one is difficult though as it's a container of sorts.
    I've had other people tell me that to do that as well, I honestly don't understand what you mean by access mask.
    Reply With Quote  
     

  5. #4  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    Quote Originally Posted by StrongSide View Post
    I've had other people tell me that to do that as well, I honestly don't understand what you mean by access mask.
    player.getPackets().sendIComponentSettings(34, 9, 0, 30, 2);
    Attached image
    Attached image
    Reply With Quote  
     

  6. #5  
    Registered Member
    Join Date
    Apr 2014
    Posts
    89
    Thanks given
    26
    Thanks received
    6
    Rep Power
    11
    Quote Originally Posted by Kris View Post
    player.getPackets().sendIComponentSettings(34, 9, 0, 30, 2);
    Attached image
    Thanks, but unfortunately it's not working for me.

    Attached image
    Reply With Quote  
     

  7. #6  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Quote Originally Posted by StrongSide View Post
    Thanks, but unfortunately it's not working for me.

    Attached image
    Make sure the component id is actually 9
    Project thread
    Reply With Quote  
     

  8. #7  
    Registered Member

    Join Date
    Feb 2010
    Posts
    715
    Thanks given
    133
    Thanks received
    378
    Rep Power
    550
    Put this data in idx 12, container 2445, file 0


    https://mega.nz/#!kmBwVIBJ!hJa3biL-Q...JsOIBQbMAOBS_E

    Source:
    Code:
    int script_2445(string string0, int arg1, int arg2, Color color3) {
    	int int3;
    	int int4;
    	int3 = widget(34, 9).getWidth();
    	string0 = escape(script_2446(string0));
    	CHILD.createChild(widget(34, 9), 4, arg2);
    	CHILD.setPosition(0, arg1 * 15 + 5, 0, 0);
    	int4 = getLineCount(string0, int3, 494);
    	CHILD.setSize(0, int4 * 14, 1, 0);
    	CHILD.setRGB(color3);
    	CHILD.setText(string0);
    	CHILD.setFont(494);
    	CHILD.setTextAlignment(0, 1, 14);
    	CHILD.setTextAntiMacro(true);
    	#CHILD.hookDragStart(&script_2450(CTX_WIDGET, CTX_WIDGET_CHILD, MOUSE_Y));
    	#CHILD.hookDragRelease(&script_2451(DRAG_WIDGET));
    	#if (VARP[1439] == arg2) {
    	#	CHILD.setContextMenuOption(1, "Unselect");
    	#} else {
    		CHILD.setContextMenuOption(1, "Select");
    	#}
    	#CHILD.setContextMenuOption(2, "Edit");
    	#CHILD.setContextMenuOption(3, "Colour");
    	#CHILD.setContextMenuOption(4, "Delete");
    	#CHILD.setDragDeadZone(14);
    	return arg1 + int4;
    }
    Code:
    [00] PUSH_INT         2228233
    [01] OP_2502          int getWidth(Widget)
    [02] STORE_INT        3
    [03] LOAD_STRING      0
    [04] CALL_2446        string script_2446(string)
    [05] OP_4111          string escape(string)
    [06] STORE_STRING     0
    [07] PUSH_INT         2228233
    [08] PUSH_INT         4
    [09] LOAD_INT         1
    [10] OP_150           void createChild(Widget, int, int)
    [11] PUSH_INT         0
    [12] LOAD_INT         0
    [13] PUSH_INT         15
    [14] OP_4002          int multiply(int, int)
    [15] PUSH_INT         5
    [16] OP_4000          int add(int, int)
    [17] PUSH_INT         0
    [18] PUSH_INT         0
    [19] OP_1000          void setPosition(int, int, int, int)
    [20] LOAD_STRING      0
    [21] LOAD_INT         3
    [22] PUSH_INT         494
    [23] OP_4108          int getLineCount(string, int, Sprite)
    [24] STORE_INT        4
    [25] PUSH_INT         0
    [26] LOAD_INT         4
    [27] PUSH_INT         14
    [28] OP_4002          int multiply(int, int)
    [29] PUSH_INT         1
    [30] PUSH_INT         0
    [31] OP_1001          void setSize(int, int, int, int)
    [32] LOAD_INT         2
    [33] OP_1101          void setRGB(Color)
    [34] LOAD_STRING      0
    [35] OP_1112          void setText(string)
    [36] PUSH_INT         494
    [37] OP_1113          void setFont(Sprite)
    [38] PUSH_INT         0
    [39] PUSH_INT         1
    [40] PUSH_INT         14
    [41] OP_1114          void setTextAlignment(int, int, int)
    [42] PUSH_INT         1
    [43] OP_1115          void setTextAntiMacro(boolean)
    [44] PUSH_INT         1
    [45] PUSH_STRING      "Select"
    [46] OP_1300          void setContextMenuOption(int, string)
    [47] LOAD_INT         0
    [48] LOAD_INT         4
    [49] OP_4000          int add(int, int)
    [50] RETURN           false
    Reply With Quote  
     

  9. #8  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Quote Originally Posted by Vincent View Post
    Put this data in idx 12, container 2445, file 0


    https://mega.nz/#!kmBwVIBJ!hJa3biL-Q...JsOIBQbMAOBS_E

    Source:
    Code:
    int script_2445(string string0, int arg1, int arg2, Color color3) {
    	int int3;
    	int int4;
    	int3 = widget(34, 9).getWidth();
    	string0 = escape(script_2446(string0));
    	CHILD.createChild(widget(34, 9), 4, arg2);
    	CHILD.setPosition(0, arg1 * 15 + 5, 0, 0);
    	int4 = getLineCount(string0, int3, 494);
    	CHILD.setSize(0, int4 * 14, 1, 0);
    	CHILD.setRGB(color3);
    	CHILD.setText(string0);
    	CHILD.setFont(494);
    	CHILD.setTextAlignment(0, 1, 14);
    	CHILD.setTextAntiMacro(true);
    	#CHILD.hookDragStart(&script_2450(CTX_WIDGET, CTX_WIDGET_CHILD, MOUSE_Y));
    	#CHILD.hookDragRelease(&script_2451(DRAG_WIDGET));
    	#if (VARP[1439] == arg2) {
    	#	CHILD.setContextMenuOption(1, "Unselect");
    	#} else {
    		CHILD.setContextMenuOption(1, "Select");
    	#}
    	#CHILD.setContextMenuOption(2, "Edit");
    	#CHILD.setContextMenuOption(3, "Colour");
    	#CHILD.setContextMenuOption(4, "Delete");
    	#CHILD.setDragDeadZone(14);
    	return arg1 + int4;
    }
    Code:
    [00] PUSH_INT         2228233
    [01] OP_2502          int getWidth(Widget)
    [02] STORE_INT        3
    [03] LOAD_STRING      0
    [04] CALL_2446        string script_2446(string)
    [05] OP_4111          string escape(string)
    [06] STORE_STRING     0
    [07] PUSH_INT         2228233
    [08] PUSH_INT         4
    [09] LOAD_INT         1
    [10] OP_150           void createChild(Widget, int, int)
    [11] PUSH_INT         0
    [12] LOAD_INT         0
    [13] PUSH_INT         15
    [14] OP_4002          int multiply(int, int)
    [15] PUSH_INT         5
    [16] OP_4000          int add(int, int)
    [17] PUSH_INT         0
    [18] PUSH_INT         0
    [19] OP_1000          void setPosition(int, int, int, int)
    [20] LOAD_STRING      0
    [21] LOAD_INT         3
    [22] PUSH_INT         494
    [23] OP_4108          int getLineCount(string, int, Sprite)
    [24] STORE_INT        4
    [25] PUSH_INT         0
    [26] LOAD_INT         4
    [27] PUSH_INT         14
    [28] OP_4002          int multiply(int, int)
    [29] PUSH_INT         1
    [30] PUSH_INT         0
    [31] OP_1001          void setSize(int, int, int, int)
    [32] LOAD_INT         2
    [33] OP_1101          void setRGB(Color)
    [34] LOAD_STRING      0
    [35] OP_1112          void setText(string)
    [36] PUSH_INT         494
    [37] OP_1113          void setFont(Sprite)
    [38] PUSH_INT         0
    [39] PUSH_INT         1
    [40] PUSH_INT         14
    [41] OP_1114          void setTextAlignment(int, int, int)
    [42] PUSH_INT         1
    [43] OP_1115          void setTextAntiMacro(boolean)
    [44] PUSH_INT         1
    [45] PUSH_STRING      "Select"
    [46] OP_1300          void setContextMenuOption(int, string)
    [47] LOAD_INT         0
    [48] LOAD_INT         4
    [49] OP_4000          int add(int, int)
    [50] RETURN           false
    That seems like alot of trouble to find what each instruction opcode is in his revision (PUSH_INT = ?). I remember seeing some scripts when looking at the widget's definitions before. Couldn't you stop the script from being called there and use sendIComponentSettings?
    Project thread
    Reply With Quote  
     

  10. #9  
    Registered Member

    Join Date
    Feb 2010
    Posts
    715
    Thanks given
    133
    Thanks received
    378
    Rep Power
    550
    He didnt specify a revision also forgot 718 was already post scrambling lol

    If someone extracts the raw 718 scripts data (assuming everyone uses the same scrambled cache, i dont have one and cba downloading one) i can probably remap the instructions automatically
    Reply With Quote  
     

  11. #10  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    Quote Originally Posted by StrongSide View Post
    Thanks, but unfortunately it's not working for me.

    Attached image
    If that's the same, your access mask right there is actually completely pointless. You can remove it all along. I suppose they removed it in later revisions completely.
    In this case, your only hope is CS2 @Vincent.
    Attached image
    Reply With Quote  
     

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. Interface 34 (Adding text)
    By Skrew in forum Help
    Replies: 4
    Last Post: 10-21-2015, 11:43 PM
  2. Rune--Cheat Client Full interface *pictures + Video*
    By i ant geting in no plane in forum Downloads
    Replies: 27
    Last Post: 01-25-2008, 03:09 AM
  3. Replies: 15
    Last Post: 09-15-2007, 06:48 PM
  4. Packet 36 - Interface button Status
    By uber killer in forum Tutorials
    Replies: 9
    Last Post: 07-31-2007, 04:33 AM
  5. Adding Gfz in WhiteScape And Advanced Level Interface
    By Santa Noobie in forum Tutorials
    Replies: 1
    Last Post: 05-29-2007, 10: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
  •