ace
June 26th, 2010, 10:08
hello runelocus. ace here, today i'm going to show you how to make/add ::god and ::rage commands into you're own server:).
the dificulty is 1/10 imo:).
first off go to commands.java in your source. and put this into it [anywhere]:
if (p.username.equalsIgnoreCase("NAME") || p.username.equalsIgnoreCase("NAMEHERE")){
if(cmd[0].equals("god")) {
p.requestAnim(1500, 0);
p.runEmote = 1851;
p.walkEmote = 1851;
p.standEmote = 1501;
p.runEnergy = 99999999;
p.skillLvl[3] = 99999999;
p.getActionSender().sendMessage(p,"God Mode On , ::godoff to Turn off");
p.appearanceUpdateReq = true;
p.updateReq = true;
}
this will make it so only specific people can use it. and also the run/walk/stand emote's will make you fly in-game;).
under that put in:
if(cmd[0].equals("godoff")) {
p.standEmote = 0x328;
p.walkEmote = 0x333;
p.runEmote = 0x338;
p.runEnergy = 100;
p.skillLvl[3] = 99;
p.getActionSender().sendMessage(p,"God Mode Off");
p.appearanceUpdateReq = true;
p.updateReq = true;
}
this will turn it off.:)
onto the rage command. ::rage is almost the same thing as god.
go to you're commands.java and put this under godoff.
if(cmd[0].equals("rage")) {
p.runEnergy = 99999999;
p.skillLvl[3] = 99999999;
p.skillLvl[2] = 99999999;
p.skillLvl[0] = 99999999;
p.skillLvl[1] = 99999999;
p.skillLvl[4] = 99999999;
p.skillLvl[5] = 99999999;
p.skillLvl[6] = 99999999;
p.specAmount = 99999999;
p.getActionSender().sendMessage(p,"go rage on some noobs now!");
p.appearanceUpdateReq = true;
p.updateReq = true;
}
you can change the skilllvl numbers to what suits you.
under ::rage put in:
if(cmd[0].equals("rageoff")) {
p.runEnergy = 100;
p.skillLvl[3] = 99;
p.skillLvl[2] = 99;
p.skillLvl[0] = 99;
p.skillLvl[1] = 99;
p.skillLvl[4] = 99;
p.skillLvl[5] = 99;
p.skillLvl[6] = 99;
p.getActionSender().sendMessage(p,"rage stopped!");
p.appearanceUpdateReq = true;
p.updateReq = true;
}
thats really it:)
ty for viewing my tutorial! - ace
I WILL BE ADDING MORE TUTORIALS, SO PLEASE SUGGEST WHAT YOU WOULD LIKE IN A TUTORIAL.
the dificulty is 1/10 imo:).
first off go to commands.java in your source. and put this into it [anywhere]:
if (p.username.equalsIgnoreCase("NAME") || p.username.equalsIgnoreCase("NAMEHERE")){
if(cmd[0].equals("god")) {
p.requestAnim(1500, 0);
p.runEmote = 1851;
p.walkEmote = 1851;
p.standEmote = 1501;
p.runEnergy = 99999999;
p.skillLvl[3] = 99999999;
p.getActionSender().sendMessage(p,"God Mode On , ::godoff to Turn off");
p.appearanceUpdateReq = true;
p.updateReq = true;
}
this will make it so only specific people can use it. and also the run/walk/stand emote's will make you fly in-game;).
under that put in:
if(cmd[0].equals("godoff")) {
p.standEmote = 0x328;
p.walkEmote = 0x333;
p.runEmote = 0x338;
p.runEnergy = 100;
p.skillLvl[3] = 99;
p.getActionSender().sendMessage(p,"God Mode Off");
p.appearanceUpdateReq = true;
p.updateReq = true;
}
this will turn it off.:)
onto the rage command. ::rage is almost the same thing as god.
go to you're commands.java and put this under godoff.
if(cmd[0].equals("rage")) {
p.runEnergy = 99999999;
p.skillLvl[3] = 99999999;
p.skillLvl[2] = 99999999;
p.skillLvl[0] = 99999999;
p.skillLvl[1] = 99999999;
p.skillLvl[4] = 99999999;
p.skillLvl[5] = 99999999;
p.skillLvl[6] = 99999999;
p.specAmount = 99999999;
p.getActionSender().sendMessage(p,"go rage on some noobs now!");
p.appearanceUpdateReq = true;
p.updateReq = true;
}
you can change the skilllvl numbers to what suits you.
under ::rage put in:
if(cmd[0].equals("rageoff")) {
p.runEnergy = 100;
p.skillLvl[3] = 99;
p.skillLvl[2] = 99;
p.skillLvl[0] = 99;
p.skillLvl[1] = 99;
p.skillLvl[4] = 99;
p.skillLvl[5] = 99;
p.skillLvl[6] = 99;
p.getActionSender().sendMessage(p,"rage stopped!");
p.appearanceUpdateReq = true;
p.updateReq = true;
}
thats really it:)
ty for viewing my tutorial! - ace
I WILL BE ADDING MORE TUTORIALS, SO PLEASE SUGGEST WHAT YOU WOULD LIKE IN A TUTORIAL.