|
How to start a command : *Note* This is for people who are new to coding
- (change the player rights for differentif (cmd[0].equalsIgnoreCase("COMMAND NAME") && (player.getRights() == 7)) {
people to acess the command)
- Or for no rights -
to make people force talk in the whole server / source (doesn't work for npcs)if(cmd[0].equalsIgnoreCase("COMMAND NAME")) {
-
Make a command make someone do an Animationfor (Player p : World.getPlayers()) {
if (player != null) {
player.setNextForceTalk(new ForceTalk("THE TEXT YOU WANT!"));
-player.setNextAnimation(new Animation(858));
Make a command teleport you somewhere
-Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3555, 9947, 0));
To make a command only work for one person :
-if(cmd[0].equalsIgnoreCase("COMMAND NAME")) {
if(player.getUsername().equalsIgnoreCase("YOUR NAME"))
To make a message when you use a command :
-player.getPackets().sendGameMessage(
"<col=ff000><img=4>Welcome to Ganodermic Beasts!");
And if you want to make a command, to lower your health, you can do :
(change 998 for the damage done)player.applyHit(new Hit(player, 998, HitLook.REGULAR_DAMAGE));
How to make a command show an interface
-player.getInterfaceManager().sendInterface(Inter ID);
*Note* This is my first post, and i'll be making more helpful guides.
thanks for this even tho everybody knows it
you should of added interfaces
718 classic matrix has cases in commands.
Will help out the newbs i suppose :/
Half the things you showed wouldn't even work lol.
Would only work for the player executing the commandCode:vfor (Player p : World.getPlayers()) { if (player != null) { player.setNextForceTalk(new ForceTalk("THE TEXT YOU WANT!"));
useful for beginners
Uhm, I don't even think it'll help beginners? This is for people who NEVER - EVER, touched a RuneScape Private server in they're life! They would have to be a complete noob to not know this.
where's the set skill command?
The command won't be any different in 667, 718 or 723+ unless they aredone by cases. So this is 667 or 718 not 718 / 723 xD
667 - 718 are very similar.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |