Jump to content
  • 0
Sign in to follow this  
Alexandria

Adding customs commands in the @command list

Question

Hello there.

 

I have 2 customs commands. When I user types @commands. this commands dont show up in the list.

 

So I made a plugin but I am not sure if I made it in the right way.

#include "common/hercules.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include "../map/clif.h"#include "../common/HPMi.h"#include "../common/HPMDataCheck.h" // should always be the last file included! (if you don't make it last, it'll intentionally break compile time)HPExport struct hplugin_info pinfo = {	"customc",	// Plugin name	SERVER_TYPE_MAP,// Which server types this plugin works with?	"0.1",			// Plugin version	HPM_VERSION,	// HPM Version (don't change, macro is automatically updated)};ACMD(checklvl)	{	return true;}ACMD(security) {	return true;}HPExport void plugin_init (void) {		addAtcommand("checklvl",checklvl);		addAtcommand("security",security);}

And also do I have to edit my group.conf and add them?

 

Thank you.

 

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.