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.
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