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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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