Jump to content

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


Aeromesi

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   3
  • Joined:  01/18/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   3
  • Joined:  01/18/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  38
  • Reputation:   1
  • Joined:  12/08/11
  • Last Seen:  

any screen?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   3
  • Joined:  01/18/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   3
  • Joined:  01/18/12
  • Last Seen:  

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.

Link to comment
Share on other sites

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.

×
×
  • Create New...