Ind 945 Posted May 2, 2013 (edited) Hercules Console Input UpdateHello~! What? Yet another super-mega-special update brought to you by Hercules Sometime ago we re-introduced "Console Input", and then I mentioned about changing the syntax (which was horrible), well thats what this is about. Changes Console Commands now make full use of the Hercules Renewal Phase One, there are global commands and there are per-server commands 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 Hercules Plugin Mananger Commit Edited February 7, 2017 by Ridley 4 quesoph, Napster, kyeme and 1 other reacted to this Quote Share this post Link to post Share on other sites