Kid BaKa 0 Posted March 23, 2015 (edited) GOod dayI want know how I can add new command to my serverFor example let us say I want make @localrecallAnd I want recall all player on my mapfrom where I can do it? Edited March 24, 2015 by Mhalicot Moved to General Server Support Quote Share this post Link to post Share on other sites
0 Garr 117 Posted March 24, 2015 First, you need to add the actual code inside src/map/atcommand.c, along with adding command to the list in the bottom of it. Plugin is a good (and even better imo) alternative to editing src files. Then you recompile (or compile and activate plugin), and edit conf/groups.conf to make the command accessible by players/GMs. That's pretty much it. 1 Kid BaKa reacted to this Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted March 24, 2015 you can also use bindatcmd like this - script asdfjkl -1,{OnInit: bindatcmd "localrecall", strnpcinfo(0)+"::Onwarp",60,99; end;Onwarp: getmapxy(.@m$,.@x,.@y,0); mapwarp .@m$,.@m$,.@x,.@y; end;} 1 Kid BaKa reacted to this Quote Share this post Link to post Share on other sites
0 Kid BaKa 0 Posted March 24, 2015 I find it so thanks Garr Angelmelody I understand I can make script to add some commands?! Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted March 25, 2015 Yep, you can add some atcommands via script if the scripting language is powerful enough (which in most cases is). But beware these command scripts won't appear anywhere on the @commands list of available commands. Quote Share this post Link to post Share on other sites
GOod day
Edited by MhalicotI want know how I can add new command to my server
For example let us say I want make @localrecall
And I want recall all player on my map
from where I can do it?
Moved to General Server Support
Share this post
Link to post
Share on other sites