add command to playercommand v117
hey , :D hope someone help me i tryed many things that can actually get it ..
but the reason its wont work because maybe those methods are old
here example to what i did tryed :
} else if (splitted[0].equals("@spindle")) {
NPCScriptManager npc = NPCScriptManager.getInstance();
npc.start(c, 9201043);
in-game it saying no command
so if u find a way to help i will appriciate it :thumbup1:
Re: add command to playercommand v117
What source are you using? If it's based on Lithium, add the NPC id to this array inside PlayerCommands:
PHP Code:
private static int[] npcs = { //Ish yur job to make sure these are in order and correct ;(
9270035,
9010018,
9000000,
9000030,
9010000,
9000085,
9000018,
9201094};
Then, you should add this:
PHP Code:
public static class spindle extends OpenNPCCommand {
public spindle() {
npc = 8;
}
}
Underneath all of the under npc methods.
Re: add command to playercommand v117
Quote:
Originally Posted by
Liv3
What source are you using? If it's based on Lithium, add the NPC id to this array inside PlayerCommands:
PHP Code:
private static int[] npcs = { //Ish yur job to make sure these are in order and correct ;(
9270035,
9010018,
9000000,
9000030,
9010000,
9000085,
9000018,
9201094};
Then, you should add this:
PHP Code:
public static class spindle extends OpenNPCCommand {
public spindle() {
npc = 8;
}
}
Underneath all of the under npc methods.
I would never found that
hey!! you just awsome :D thank u very much!
Re: add command to playercommand v117
Quote:
Originally Posted by
taltal1131
I would never found that
hey!! you just awsome :D thank u very much!
No problem. Glad I could be of service. If there is any more, don't be afraid to post another help thread. Everybody starts out somewhere. I hope you can learn from this as well.