Jump to content
Sign in to follow this  
Aeromesi

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

Recommended Posts

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");

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

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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.