Aeromesi Posted April 16, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 23 Reputation: 3 Joined: 01/18/12 Last Seen: June 19, 2022 Share Posted April 16, 2012 (edited) Basically the topic says it all. Atcommand @bginfo displays the flee penalty, long, short, weapon, and magic rates all in one command. Version 1.0 How to install: In ..src/map/atcommand.c Add anywhere: /*========================================== * @bginfo by Aeromesi / Michael * -> Displays the Battle grounds info you setup on your server to your players. /=============================================*/ int atcommand_bginfo(const int fd, struct map_session_data* sd, const char* command, const char* message) { char buf[255]; nullpo_retr(0, sd); sprintf(buf, "BG Settings: Flee Penalty rate %.1fx Short Attack Damage rate %.1fx / Long Attack Damage rate %.1fx / Weapon Attack Damage rate %.1fx / Magic Attack Damage rate %.1fx", battle_config.bg_flee_penalty/100., battle_config.bg_short_damage_rate/100., battle_config.bg_long_damage_rate/100., battle_config.bg_weapon_damage_rate/100., battle_config.bg_magic_damage_rate/100.); clif_displaymessage(fd, buf); return 0; } Now look for: /*========================================== * atcommand_info[] structure definition *------------------------------------------*/ AtCommandInfo atcommand_info[] = { { "rura", 40,40, atcommand_mapmove }, Add underneath or on top: { "bginfo", 1,1, atcommand_bginfo }, and in your conf folder, in ../conf/atcommand_athena.conf Add this in anywhere: bginfo: 0,0 Modify the levels used for the command for anyone you choose. I hope you enjoy a fun yet simple command =P Regards, Aeromesi I'm not quite sure if this works with rAthena but I originally made this for eAthena, I heard there's a Pre-renewal and renewal option added in rAthena when you run your server, and this source mod gives the statistics of the configurations in the conf folder like battle_config.bg_flee_penalty, if it doesn't work I will be sure to download a copy of rAthena and debug it for you all. ^^ Edited April 16, 2012 by Aeromesi Quote Link to comment Share on other sites More sharing options...
Aeromesi Posted April 16, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 23 Reputation: 3 Joined: 01/18/12 Last Seen: June 19, 2022 Author Share Posted April 16, 2012 File Name: Display Battle Ground information (@bginfo), Display the BG settings you made for your server! File Submitter: Aeromesi File Submitted: 16 Apr 2012 File Category: Source Modifications Atcommand @bginfo displays the flee penalty, long, short, weapon, and magic rates all in one command. Click here to download this file Quote Link to comment Share on other sites More sharing options...
Whitecash Posted April 17, 2012 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 38 Reputation: 1 Joined: 12/08/11 Last Seen: November 12, 2013 Share Posted April 17, 2012 any screen? Quote Link to comment Share on other sites More sharing options...
Aeromesi Posted April 17, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 23 Reputation: 3 Joined: 01/18/12 Last Seen: June 19, 2022 Author Share Posted April 17, 2012 I just recently came back to RO/ the emulating community from about a year ago, after 3-4 years of work I realized I just can't give up RO, I will be able to get the screenies once I download kRO/Ragray again and run a test server. Quote Link to comment Share on other sites More sharing options...
Aeromesi Posted April 19, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 23 Reputation: 3 Joined: 01/18/12 Last Seen: June 19, 2022 Author Share Posted April 19, 2012 It seems that atcommand.c has indeed changed the way its written or something. I'll make a post with an update on this @command to work with rAthena. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.