Installation1) Place plugin files in plugin directory. (If you wish to re-compile the code, please do so the standard way.)2) Place all script files in the default directory provided in the repository (or your own).3) Place all database and config parts in their respective files.4) in conf/plugins.conf add "hBG".

Share this post

Link to post

Share on other sites

So I worked on an eAmod BG migration to Hercules as a plugin a long while ago and decided to release it in it's very beta state.

I thought someone might use it instead of it rotting in my folders. Source is included and this is a fully free release.

Installation

1) Place plugin files in plugin directory. (If you wish to re-compile the code, please do so the standard way.)

2) Place all script files in the default directory provided in the repository (or your own).

3) in conf/plugins.conf please add "hBG".

That's it unless I'm missing something that I can't remember.

The plugin has also not been updated in a long while, but then again, neither has Hercules plugin code.

What's not working

As I had tested a few months ago -

1) Sprites for red/blue/green skull drops are not added in the repo, including the item codes.

2) Monster sprite duplication from mob_avail is not included yet.

3) BG Ranking.

4) Some battle flags may not work (unsure).

Features

The script commands are custom and named differently (with a hBG_ prefix), the Queue system is separate and so both of these will not interfere with official BG systems making it possible to run both simultaneously. The same will be kept in mind for any future additions.

Battleground Modes

Capture the Flag

Eye of Storm

Triple Inferno

Team DeathMatch

Bossnia

Conquest

Stone Control

Domination

Rush

Free For All

@commands

@joinbg - join a bg queue.

@leavebg - leave a bg queue.

Script Commands

hBG_team_create

hBG_queue_create

hBG_queue_event

hBG_queue_join

hBG_queue_partyjoin

hBG_queue_leave

hBG_queue_data

hBG_queue2team

hBG_queue2team_single

hBG_queue2teams

hBG_queue_checkstart

hBG_balance_teams

hBG_waitingroom2bg

hBG_waitingroom2bg_single

hBG_team_setxy

hBG_team_reveal

hBG_team_conceal

hBG_team_setquest

hBG_viewpointmap

hBG_monster_reveal

hBG_monster_set_team

hBG_monster_immunity

hBG_leave

hBG_destroy

hBG_clean

hBG_get_data

hBG_getareausers

hBG_updatescore

hBG_team_updatescore

hBG_team_guildid

hBG_getitem

hBG_getkafrapoints

hBG_reward

hBG_flooritem2xy

What's good about it

1) Prevents conflicts when updating hercules.

2) Easy to install.

3) Can be easily modified for more functions/features in the future.

As for the scripts and battleground modes, most were working the last time I checked.

All in all, it's not in the best stage for use in a production server and it'd be nice to have more eyes on this project to debug.

Please feel free to open an issue on the repository and i'll get to it as soon as I can.

The maps are duplicates. mapcache.exe duplicates the maps when you use the contents in resnametable.txt.

I started testing the script now and found some errors. Are they:

* When the player joins the battlefield, if he is stopped / seated at the time of registration and the game starts, he is expelled from the battle. That is, the inactive time (AFK) is being counted off the BG map.

* When thrown out of the battlefield due to not moving (AFK), sometimes the kicked player gets stuck at his return point, and still remains in the guild, as if he were inside the BG map.