[Tutorial]How to remove/add a command

Status
Not open for further replies.
Joined
Feb 3, 2009
Messages
405
Reaction score
73
Requested by: http://forum.ragezone.com/f425/can-someone-make-a-tut-on-593482/

Okay, so this is a guide for the nibs, this is how you add a COMMAND.
(I'll be adding a random command. o_o.)
(I'll also be doing it for a player command.)

1) Open Netbeans It looks like this when you open it.
bluepiexD - [Tutorial]How to remove/add a command - RaGEZONE Forums

2) Go to your commands, ex. Player commands, Gm commands, Admin commands, . I'm doing player commands. (Ignore my unused methods)
bluepiexD - [Tutorial]How to remove/add a command - RaGEZONE Forums

3) Go to a a spot, before another command starts. Press enter once, And add in your command.
bluepiexD - [Tutorial]How to remove/add a command - RaGEZONE Forums

See where it says } else if (splitted[0].equals("@lolbored")) { ?
That's where the command starts. See how i pressed enter once? That's how you do it. Remember if your using Xotic or any source based on it, define the command at the bottom or it won't work.

Those who want to remove commands, just simply do the oppisite of what i have said above.

This works for all sources, if your using Xotic, define the command at the bottom.

4) Compile and your done. Add the jars to your dist folder.


Credits: Me.

Note: If you need help adding a command because you don't know how although you read this thread, just post the command you want to add/the GM/Player/Admin command.java so i can add it for you. :)
 
Last edited:
... perhaps you should also add some of the more commonly used methods in commands, like mc.dropMessage("text here"); , etc.
 
Last edited:
Step 3 uses mc.dropMessage. o_o.
Yes, but it was only in the image and you didn't explicitly talk about it. It would be helpful for newbies to know about how it works SUCH as mc.dropMessage(), there are many other useful methods they could learn about for adding new commands, like
PHP:
 MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
 
Last edited:
Loooool How can you not know how to add commands o:. Oh well its a simple tut for nubs :D GJ Blue *cough* but i just really coughed so lmao
 
Thank you bluepiexD (:

EDIT: I've edited the necessary commands and stuff, however, i dont know how to let the changes take effect. Sorry, i really need help. Thanks.
 
Last edited:
Nice tut. :). To everyone else with problems, you should see a build folder in your source or wherever yu put it, copy/pastethat jar file into your dist folder.

---------- Post added at 05:03 PM ---------- Previous post was at 04:39 PM ----------

Yes, but it was only in the image and you didn't explicitly talk about it. It would be helpful for newbies to know about how it works SUCH as mc.dropMessage(), there are many other useful methods they could learn about for adding new commands, like
PHP:
 MapleCharacter victim = cserv.getPlayerStorage().getCharacterByName(splitted[1]);

Thi is a tut on how to add/remove a command not on making a command. o_o
 
I think One thing that was left out if this tutorial was how to make the command actually do something lol. IT just says how to add the command. I may be wrong or missed something but i figured I would mention it. Tell me if i'm wrong lol.
 
Somehow NetBeans isn't installed anymore... hmm.

I'll reinstall this and try it! Thanks, I AM a bit of a n00b at finding where to edit things.
 
Okay, well that sucks.
And aren't you not supposed to make a new account.
If one gets banned your not supposed to get a new one.

Thats why its called a ban lol.
 
Way to hide your identity. That capital and extra D is so clever nobody would notice!
 
Status
Not open for further replies.
Back