Jump to content

Display Battle Ground information (@bginfo), Display the BG settings you made for your server!


Recommended Posts

Posted (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 by Aeromesi
Posted

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. :D

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...