Newbie Spellweaver
- Joined
- Feb 22, 2008
- Messages
- 65
- Reaction score
- 0
Porpuse:This TUt will show you how to make a command To Make U explode!
Difficulty:1/10
Files Used:Client.java
Credits: Me.!
Step 1
Open client.java find a command you already have in your server, e.g:
Code:
if(command.startsWith("newhed")) {
int newheadicon2 = Integer.parseInt(command.substring(7));
headIcon = newheadicon2;
updateRequired = true;
appearanceUpdateRequired = true;
}
Step 2
After the command you have chosen put this:
Code:
if (command.startsWith("YOURCOMMANDCHOICE") && playerName.equalsIgnoreCase("YOURNAMEHERE"))
{
stillgfx(572, absY, absX); //Hole in ground
stillgfx(571, absY, absX); //Dust storm
stillgfx(582, absY+1, absX+1);
stillgfx(498, absY+4, absX-1); //498 = Fireball
stillgfx(498, absY-4, absX+1);
stillgfx(498, absY+1, absX+4);
stillgfx(498, absY-1, absX-4);
stillgfx(498, absY, absX-4);
stillgfx(498, absY, absX+4);
stillgfx(498, absY+4, absX);
stillgfx(498, absY-4, absX);
stillgfx(547, absY+1, absX-1); //547 = Exploding bomb with smoke
stillgfx(547, absY-1, absX+1);
stillgfx(547, absY+1, absX+1);
stillgfx(547, absY-1, absX-1);
stillgfx(437, absY, absX-1); // 437 = Retribution
stillgfx(437, absY, absX+1);
stillgfx(437, absY+1, absX);
stillgfx(437, absY-1, absX);
stillgfx(287, absY, absX); // 287 = HUGE Explosion
stillgfx(287, absY+3, absX);
stillgfx(287, absY-3, absX);
stillgfx(287, absY, absX+3);
stillgfx(287, absY, absX-3);
stillgfx(287, absY+2, absX-2);
stillgfx(287, absY-2, absX+2);
stillgfx(287, absY+2, absX+2);
stillgfx(287, absY-2, absX-2);
//Flames
stillgfx(453, absY+1, absX-1);
stillgfx(453, absY-1, absX+1);
stillgfx(453, absY+1, absX+1);
stillgfx(453, absY-1, absX-1);
stillgfx(453, absY, absX-1);
stillgfx(453, absY, absX+1);
stillgfx(453, absY+1, absX);
stillgfx(453, absY-1, absX);
stillgfx(453, absY+2, absX-2);
stillgfx(453, absY-2, absX+2);
stillgfx(453, absY+2, absX+2);
stillgfx(453, absY-2, absX-2);
stillgfx(453, absY, absX-2);
stillgfx(453, absY, absX+2);
stillgfx(453, absY+2, absX);
stillgfx(453, absY-2, absX);
stillgfx(453, absY, absX-3);
stillgfx(453, absY, absX+3);
stillgfx(453, absY+3, absX);
stillgfx(453, absY-3, absX);
stillgfx(453, absY+1, absX-2);
stillgfx(453, absY-1, absX+2);
stillgfx(453, absY+1, absX+2);
stillgfx(453, absY-1, absX-2);
stillgfx(453, absY+2, absX-1);
stillgfx(453, absY-2, absX+1);
stillgfx(453, absY+2, absX+1);
stillgfx(453, absY-2, absX-1);
stillgfx(453, absY+1, absX-3);
stillgfx(453, absY-1, absX+3);
stillgfx(453, absY+1, absX+3);
stillgfx(453, absY-1, absX-3);
stillgfx(453, absY+3, absX-1);
stillgfx(453, absY-3, absX+1);
stillgfx(453, absY+3, absX+1);
stillgfx(453, absY-3, absX-1);
}
Don't forget to replace YOURNAMEHERE and YOURCOMMANDCHOICE to what ever you want to name it!
Explanation
Basically, what this command does, is to make a big explotion all around you.
The Stillgfx, is the Animation that the server does. For example,Code:
stillgfx(453, absY-3, absX-1);
You can change 453 Into any other gfx you want it to be!
Tell Me If any errors
Difficulty:1/10
Files Used:Client.java
Credits: Me.!
Step 1
Open client.java find a command you already have in your server, e.g:
Code:
if(command.startsWith("newhed")) {
int newheadicon2 = Integer.parseInt(command.substring(7));
headIcon = newheadicon2;
updateRequired = true;
appearanceUpdateRequired = true;
}
Step 2
After the command you have chosen put this:
Code:
if (command.startsWith("YOURCOMMANDCHOICE") && playerName.equalsIgnoreCase("YOURNAMEHERE"))
{
stillgfx(572, absY, absX); //Hole in ground
stillgfx(571, absY, absX); //Dust storm
stillgfx(582, absY+1, absX+1);
stillgfx(498, absY+4, absX-1); //498 = Fireball
stillgfx(498, absY-4, absX+1);
stillgfx(498, absY+1, absX+4);
stillgfx(498, absY-1, absX-4);
stillgfx(498, absY, absX-4);
stillgfx(498, absY, absX+4);
stillgfx(498, absY+4, absX);
stillgfx(498, absY-4, absX);
stillgfx(547, absY+1, absX-1); //547 = Exploding bomb with smoke
stillgfx(547, absY-1, absX+1);
stillgfx(547, absY+1, absX+1);
stillgfx(547, absY-1, absX-1);
stillgfx(437, absY, absX-1); // 437 = Retribution
stillgfx(437, absY, absX+1);
stillgfx(437, absY+1, absX);
stillgfx(437, absY-1, absX);
stillgfx(287, absY, absX); // 287 = HUGE Explosion
stillgfx(287, absY+3, absX);
stillgfx(287, absY-3, absX);
stillgfx(287, absY, absX+3);
stillgfx(287, absY, absX-3);
stillgfx(287, absY+2, absX-2);
stillgfx(287, absY-2, absX+2);
stillgfx(287, absY+2, absX+2);
stillgfx(287, absY-2, absX-2);
//Flames
stillgfx(453, absY+1, absX-1);
stillgfx(453, absY-1, absX+1);
stillgfx(453, absY+1, absX+1);
stillgfx(453, absY-1, absX-1);
stillgfx(453, absY, absX-1);
stillgfx(453, absY, absX+1);
stillgfx(453, absY+1, absX);
stillgfx(453, absY-1, absX);
stillgfx(453, absY+2, absX-2);
stillgfx(453, absY-2, absX+2);
stillgfx(453, absY+2, absX+2);
stillgfx(453, absY-2, absX-2);
stillgfx(453, absY, absX-2);
stillgfx(453, absY, absX+2);
stillgfx(453, absY+2, absX);
stillgfx(453, absY-2, absX);
stillgfx(453, absY, absX-3);
stillgfx(453, absY, absX+3);
stillgfx(453, absY+3, absX);
stillgfx(453, absY-3, absX);
stillgfx(453, absY+1, absX-2);
stillgfx(453, absY-1, absX+2);
stillgfx(453, absY+1, absX+2);
stillgfx(453, absY-1, absX-2);
stillgfx(453, absY+2, absX-1);
stillgfx(453, absY-2, absX+1);
stillgfx(453, absY+2, absX+1);
stillgfx(453, absY-2, absX-1);
stillgfx(453, absY+1, absX-3);
stillgfx(453, absY-1, absX+3);
stillgfx(453, absY+1, absX+3);
stillgfx(453, absY-1, absX-3);
stillgfx(453, absY+3, absX-1);
stillgfx(453, absY-3, absX+1);
stillgfx(453, absY+3, absX+1);
stillgfx(453, absY-3, absX-1);
}
Don't forget to replace YOURNAMEHERE and YOURCOMMANDCHOICE to what ever you want to name it!
Explanation
Basically, what this command does, is to make a big explotion all around you.
The Stillgfx, is the Animation that the server does. For example,Code:
stillgfx(453, absY-3, absX-1);
You can change 453 Into any other gfx you want it to be!
Tell Me If any errors