Thread: Renaming Skills (Stats Mouse Hover)

Results 1 to 4 of 4
  1. #1 Renaming Skills (Stats Mouse Hover) 
    Registered Member
    Stugger's Avatar
    Join Date
    Apr 2016
    Posts
    208
    Thanks given
    119
    Thanks received
    294
    Rep Power
    358
    Hello, so this is a small guide on renaming a skill (client-sided) IE mouse hover popup. I spent a decent amount of time looking for it, apparently the skill component popup text within the stats tab aren't set directly from within the interface but instead use a script with skillId as a parameter, this will probably replace the skill name in other interface related instances as well, I don't know, I only just found this. Anyway since I couldn't find any helpful resource related to this I figured I would share with you all. This is extremely easy to do and only requires a single if statement, as an example we'll rename "Ranged" to "Archery" as seen in the gif below.

    Attached image

    Note: This is not limited to renaming skills, I just personally find it most useful for this purpose. command 35 also handles other instances of pop text which can also be changed. Combined with command 37, pretty much any hover text can be changed.

    So as I said this is very simple, its just a matter of replacing the skillname within a string with the new desired name.

    1. open up ClientScriptsExecutor.java within your Client project.
    2. ctrl-f and search for "command == 37" without the quotation marks, depending on your source it should be around line 3300, the statement should look like this:
    Code:
    else if (command == 37) {
    	int i_295_ = integerPassValues[valueIndex];
    	anInt3841 -= i_295_;
    	String string = Class75.method765(i_295_, (byte) 119, anInt3841, aStringArray3855);
    	aStringArray3855[anInt3841++] = string;
    }
    we're going to be altering "string", this is where our skill name and player level is stored, when executed it comes out as "Ranged: 29/29" so we'll need to replace the "Ranged" portion of that.

    3. directly below "String string = Class75.method765(i_295_, (byte) 119, anInt3841, aStringArray3855);" make a new line and add this little snippet:
    Code:
    if(string.contains("Ranged")) {
    	string = string.replace("Ranged", "Archery");
    }
    all in all that entire code block should look like this:
    Code:
    else if (command == 37) {
    	int i_295_ = integerPassValues[valueIndex];
    	anInt3841 -= i_295_;
    	String string = Class75.method765(i_295_, (byte) 119, anInt3841, aStringArray3855);
    	if(string.contains("Ranged")) {
    		string = string.replace("Ranged", "Archery");
    	}
    	aStringArray3855[anInt3841++] = string;
    }
    and that's it! reload your client and Ranged should now be named Archery on hover.
    I'm sure there is a more "solid" way of doing this, but that's all I got so hope someone finds this useful, I know I will
    Reply With Quote  
     


  2. #2  
    Registered Member
    Join Date
    Nov 2012
    Posts
    599
    Thanks given
    14
    Thanks received
    54
    Rep Power
    26
    Thanks for this, wont have to edit clientscripts to rename anymore
    Reply With Quote  
     

  3. #3  
    *breaks walking*

    Cody_'s Avatar
    Join Date
    Dec 2010
    Posts
    732
    Thanks given
    219
    Thanks received
    203
    Rep Power
    286
    Quote Originally Posted by khayam View Post
    Thanks for this, wont have to edit clientscripts to rename anymore
    I can't tell if this is sarcasm or not.
    You definitely should be editing clientscripts to do this.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Stugger's Avatar
    Join Date
    Apr 2016
    Posts
    208
    Thanks given
    119
    Thanks received
    294
    Rep Power
    358
    Quote Originally Posted by Cody_ View Post
    I can't tell if this is sarcasm or not.
    You definitely should be editing clientscripts to do this.
    Absolutely, but its a great (or at least functional) alternative for those of us who do not know how to do so
    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. 474 Skill Interface with hovering.
    By Dexter Morgan in forum Snippets
    Replies: 55
    Last Post: 08-08-2010, 11:18 PM
  2. 474 Skill Interface with hovering.
    By Dexter Morgan in forum Tutorials
    Replies: 46
    Last Post: 06-15-2009, 05:35 AM
  3. New skill interface with hovering.
    By Dexter Morgan in forum Snippets
    Replies: 64
    Last Post: 05-03-2009, 10:58 AM
  4. New skill interface with hovering.
    By Dexter Morgan in forum Tutorials
    Replies: 64
    Last Post: 05-03-2009, 10:58 AM
  5. Renaming SKills?
    By Bulby Strife in forum RS2 Client
    Replies: 4
    Last Post: 03-21-2008, 06:44 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
  •