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
ps.this comand works fine because i copyed it from my client.java file and pasted it so theres no spelling mistakes with the comand
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
ps.this comand works fine because i copyed it from my client.java file and pasted it so theres no spelling mistakes with the comand
Sun Nov 29, 2009 6:56 pm by marden
» DUN DUN DUN!
Sun Nov 22, 2009 10:33 am by awesome pker
» tradescape stay online? or go away
Tue Aug 25, 2009 1:50 pm by FiZiX the second
» fix read!!!
Mon Aug 10, 2009 7:25 am by FiZiX the second
» LIGHT FALCONS SERVER HERE
Fri Jul 10, 2009 7:05 am by light falcon
» New CO Owner
Fri Jun 26, 2009 9:11 am by awesome pker
» I'm getting bored...
Fri Jun 26, 2009 7:26 am by Fizix
» what to post here
Mon Jun 22, 2009 12:26 pm by Fizix
» 2 servers 1 port LOOK!!!
Mon Jun 22, 2009 12:13 pm by Fizix