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

Aeromesi

Custom Instance Maniac
Messages
821
Points
0
Age
33
Location
Custom Instances
Discord
Aeromesi#0293
Github
http://www.github.com/aeromesi
Emulator
Topic says it all, display the battleground information on your server using @bginfo.

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

Code:
/*==========================================* @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;}
 
Last edited by a moderator:
I guess you can do that easily with bind thing xD

getbattleflag("bg_weapon_damage_rate");

 
+1 for your work aeromesi More More
default_smile.png


 
Back
Top