Just curious on how to add a command to a version 62 server to allow players to talk to an npc from any where in the game? would really appreciate it.
Printable View
Just curious on how to add a command to a version 62 server to allow players to talk to an npc from any where in the game? would really appreciate it.
In your command file, you just need to call to your script manager.
You want to call method start, so you follow the arguments given (may differ upon sources):
PHP Code:public void start(MapleClient c, int npc, String filename, MapleCharacter chr) {
PHP Code:int NpcID = 22000;//Shanks example for @fmnpc
NPCScriptManager.getInstance().start(c, NpcID, null, null);
okay the code implements, but what specifies the command line? I tried to add one but it didn't work.