dhaisuke 1 Posted March 13, 2017 - script Eva Check -1,{ OnInit: bindatcmd("@evacheck", strnpcinfo(3)+ "::OnCheck"); end; OnCheck: dispbottom "You currently have " +#CASHPOINTS+ " eva points"; end; } Hi Guys, how can i add this into groups.conf? so the players can view this @evacheck in their @commands Quote Share this post Link to post Share on other sites
0 Ridley 295 Posted March 14, 2017 There is a plugin to show custom commands in @commands, and a pull request to add it by default. 1 dhaisuke reacted to this Quote Share this post Link to post Share on other sites
0 Tokeiburu 229 Posted March 13, 2017 groups.conf only works with source-side defined commands. If you want to make a script atcommand, you'll need to add the gm level when you bind it, such as: bindatcmd("@evacheck", strnpcinfo(3)+ "::OnCheck"), 0, 99; Where 0 is the gm level required to use the command (@evacheck) and 99 is the gm level required to use the command as a char command (#evacheck). 1 dhaisuke reacted to this Quote Share this post Link to post Share on other sites
0 dhaisuke 1 Posted March 14, 2017 do you know how can i add this in atcommand.c? below is made by AnnieRuru src/map/atcommand.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)diff --git a/src/map/atcommand.c b/src/map/atcommand.cindex b5e8fa7..9da02ac 100644--- a/src/map/atcommand.c+++ b/src/map/atcommand.c@@ -9374,6 +9374,17 @@ static inline void atcmd_channel_help(int fd, const char *command, bool can_crea clif->message(fd,atcmd_output); return true; }++ACMD(world) {+ clif->message( fd, "Hello World !" );+ return true;+}++ACMD(sample) {+ clif->message( fd, "this is a sample." );+ return true;+}+ /** * Fills the reference of available commands in atcommand DBMap **/@@ -9384,6 +9395,8 @@ void atcommand_basecommands(void) { * Command reference list, place the base of your commands here **/ AtCommandInfo atcommand_base[] = {+ ACMD_DEF(world),+ ACMD_DEF(sample), ACMD_DEF2("warp", mapmove), ACMD_DEF(where), ACMD_DEF(jumpto), Quote Share this post Link to post Share on other sites
0 dhaisuke 1 Posted March 15, 2017 Thanks, would you mind what is the name of the plugin? oh i found it thank you so much i will try it out https://raw.githubusercontent.com/SamuelHercules/plugins/master/src/plugins/bindcmd.c Quote Share this post Link to post Share on other sites
Hi Guys, how can i add this into groups.conf? so the players can view this @evacheck in their @commands
Share this post
Link to post
Share on other sites