Sign in to follow this  
Followers 0
Aeromesi

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

4 posts in this topic

Topic says it all, display the battleground information on your server using @bginfo.

 

Add in ..src/map/atcommand.c in any line

 

/*==========================================* @bginfo by Aeromesi / Michael - Converted from eAthena to Hercules* -> Displays the Battlegrounds info you setup on your server to your players./=============================================*/ACMD(bginfo){	char buf[CHAT_SIZE_MAX];  	  memset(buf, '0', sizeof(buf));        snprintf(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->message(fd, buf);        return 0;}
Edited by Aeromesi

Share this post


Link to post
Share on other sites

I guess you can do that easily with bind thing xD

 

getbattleflag("bg_weapon_damage_rate");

I didn't know about that...

 

Like said I looked at my old posts from eA and converted it to hercules.

 

I mean anyone can still use it if they please. ^^;

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0