colesp3
July 9th, 2010, 18:08
This is my Tutorial that pretty much every great coder knows. It's just here to help people who don't know.
how hard is it? 4/10
1.First open up your source and go into npc.CFG and find the npc you want to change the name or something to.(for example. i will be using npc 0 if needed)
so what you do is change the name the npc to what ever you want. im going to change hans to da_nub.
2.Now open up your client files and go into class5.java
and since im doing hans, i would find(most clients have Graardor) one with the id 1115 wich would look like this:
if(i == 3000) {
aClass30_Sub2_Sub2_60.anInt1406 = anIntArray72[630];
class5.method165(true, aClass30_Sub2_Sub2_60)
class5.aStringArray66 = new String[5];
class5.aStringArray66[1] = "Attack";
class5.anIntArray94 = new int[2];
int changedColors = 1;
class5.anIntArray76 = new int[changedColors];
class5.anIntArray70 = new int[changedColors];
class5.anIntArray76[0] = 61;
class5.anIntArray70[0] = 926;
class5.anIntArray94[0] = 5000;
class5.anIntArray94[1] = 5001;
class5.aString65 = "General Graardor";
class5.anInt61 = 624;
class5.aByteArray89 = "An huge war chief.".getBytes();
}
then below that you add:
if(i == 0) {
class5.aString65 = "Da_Nub";
class5.aByteArray89 = "wow what a nub".getBytes();
}
note: a brief explanation of the words and numbers: if == 0 : the 0 being the npc id.
Da_Nub being its name
Wow what a nub is what it will say when you examine it.
so it will look like this:
if(i == 3000) {
aClass30_Sub2_Sub2_60.anInt1406 = anIntArray72[630];
class5.method165(true, aClass30_Sub2_Sub2_60)
class5.aStringArray66 = new String[5];
class5.aStringArray66[1] = "Attack";
class5.anIntArray94 = new int[2];
int changedColors = 1;
class5.anIntArray76 = new int[changedColors];
class5.anIntArray70 = new int[changedColors];
class5.anIntArray76[0] = 61;
class5.anIntArray70[0] = 926;
class5.anIntArray94[0] = 5000;
class5.anIntArray94[1] = 5001;
class5.aString65 = "General Graardor";
class5.anInt61 = 624;
class5.aByteArray89 = "An huge war chief.".getBytes();
}
if(i == 0) {
class5.aString65 = "Da_Nub";
class5.aByteArray89 = "wow what a nub".getBytes();
}
now save& compile your client and source. reload them both and type ::npc 0
it should say: Da_Nub and when you examine it will will say: wow what a nub
credits:
10% to me for presenting it
80% to the guy who thought of this(dont know his name)
10% to the flamers who will flame at me and post anything i did wrong wich i will then edit to make it right.
how hard is it? 4/10
1.First open up your source and go into npc.CFG and find the npc you want to change the name or something to.(for example. i will be using npc 0 if needed)
so what you do is change the name the npc to what ever you want. im going to change hans to da_nub.
2.Now open up your client files and go into class5.java
and since im doing hans, i would find(most clients have Graardor) one with the id 1115 wich would look like this:
if(i == 3000) {
aClass30_Sub2_Sub2_60.anInt1406 = anIntArray72[630];
class5.method165(true, aClass30_Sub2_Sub2_60)
class5.aStringArray66 = new String[5];
class5.aStringArray66[1] = "Attack";
class5.anIntArray94 = new int[2];
int changedColors = 1;
class5.anIntArray76 = new int[changedColors];
class5.anIntArray70 = new int[changedColors];
class5.anIntArray76[0] = 61;
class5.anIntArray70[0] = 926;
class5.anIntArray94[0] = 5000;
class5.anIntArray94[1] = 5001;
class5.aString65 = "General Graardor";
class5.anInt61 = 624;
class5.aByteArray89 = "An huge war chief.".getBytes();
}
then below that you add:
if(i == 0) {
class5.aString65 = "Da_Nub";
class5.aByteArray89 = "wow what a nub".getBytes();
}
note: a brief explanation of the words and numbers: if == 0 : the 0 being the npc id.
Da_Nub being its name
Wow what a nub is what it will say when you examine it.
so it will look like this:
if(i == 3000) {
aClass30_Sub2_Sub2_60.anInt1406 = anIntArray72[630];
class5.method165(true, aClass30_Sub2_Sub2_60)
class5.aStringArray66 = new String[5];
class5.aStringArray66[1] = "Attack";
class5.anIntArray94 = new int[2];
int changedColors = 1;
class5.anIntArray76 = new int[changedColors];
class5.anIntArray70 = new int[changedColors];
class5.anIntArray76[0] = 61;
class5.anIntArray70[0] = 926;
class5.anIntArray94[0] = 5000;
class5.anIntArray94[1] = 5001;
class5.aString65 = "General Graardor";
class5.anInt61 = 624;
class5.aByteArray89 = "An huge war chief.".getBytes();
}
if(i == 0) {
class5.aString65 = "Da_Nub";
class5.aByteArray89 = "wow what a nub".getBytes();
}
now save& compile your client and source. reload them both and type ::npc 0
it should say: Da_Nub and when you examine it will will say: wow what a nub
credits:
10% to me for presenting it
80% to the guy who thought of this(dont know his name)
10% to the flamers who will flame at me and post anything i did wrong wich i will then edit to make it right.