Jump to content
Sign in to follow this  
Ind

Hercules Console Input Update

Recommended Posts

Hercules Console Input Update
Hello~! What?

Changes

The new commands

  • server
    • server malloc_usage displays total memory (in MB) being used by the server's memory manager
    • server ers_report displays the ERS (entry-reuse-system) report
    • server exit shuts down the server (equivalent to @mapexit)
    • server plugins lists all plugins being used by the server
  • help lists all available commands and their subcommands, this is a special command and you can use it after a command section to list its specific subcommands e.g. "server help"
  • Map-Server specific
    • gm
      • gm info changes the console's virtual character position (this data is used by @commands), e.g. "gm info 150 150 prontera"
      • gm use uses a command in the game server, e.g. "gm use @broadcast HERCULES IS AWESOME" or "gm use #heal player"

Hercules Plugin Mananger

  • This update also makes console commands "HPM-FRIENDLY", it is incredibly easy to add new console commands, example:
    // Copyright (c) Hercules Dev Team, licensed under GNU GPL.
    // See the LICENSE file
    // Sample Hercules Plugin
    CPCMD(sample) {
        ShowInfo("Hercules is awesome!n");
    }
    CPCMD(sample2) {
        ShowInfo("Hercules is incredible!n");
    }
    CPCMD(sample2) {
        ShowInfo("Hercules is efficient!n");
    }
    HPExport void plugin_init (void) {
        HPMi->addCPCommand("hercules:is:awesome",CPCMD_A(sample));
        HPMi->addCPCommand("hercules:is:incredible",CPCMD_A(sample2));
        HPMi->addCPCommand("hercules:is:efficient",CPCMD_A(sample3));
    }
    The above creates 3 commands "hercules is awesome","hercules is incredible" and "hercules is efficient", you can do pretty much anything you want with them, it also makes use of the "help" key, for example "hercules help" or "hercules is help" will output all its respective subcommands.

Links

Edited by Ridley

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   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.