- Joined
- Jul 16, 2008
- Messages
- 411
- Reaction score
- 0
There have been some people asking me lately. So here it is.
For example:
Congratz! You have made a command that will open a NPC!
Note: The text in red is the text you have to edit
Code:
} else if (splitted[0].equals("@[COLOR="Red"]COMMANDNAME[/COLOR]")) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(c, [COLOR="Red"]NPC ID[/COLOR]);
For example:
Code:
} else if (splitted[0].equals("@[COLOR="Red"]spinel[/COLOR]")) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(c, [COLOR="Red"]9000020[/COLOR]);
Congratz! You have made a command that will open a NPC!
Note: The text in red is the text you have to edit