BG Queue Fixes & +++

Fixed issue where players would be able to join a ongoing game when queueing by meeting the criteria.
Fixed/Implemented the maximum_afk_seconds setting.
Fixed issue with the maxPlayers arena setting that'd cause the maximum to be less than specified.
Added a new battlegrounds.conf setting "allowedTypes" for arenas in order for further customisation.
Expect a few more soon.
Special Thanks to AnnieRuru

Signed-off-by: shennetsind <ind@henn.et>
Merge branch 'master' of https://github.com/HerculesWS/Hercules
HPM Hooks Update

Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Fix various documentation bugs

Fix certain type of bonus can actually trigger with weapon skills
http://hercules.ws/board/tracker/issue-7897-bug-or-bad-description/
Fix duplicate sample typo
http://hercules.ws/board/tracker/issue-4984-wrong-test-duplicate-npc-sample/
skill script command doesn't has type 4
http://hercules.ws/board/tracker/issue-7565-skill-script-command-invalid-flag/
Fixed issue 8059 http://hercules.ws/board/tracker/issue-8059-teakwon-100-chance-on-stances/
Fix hunting mission and clarify weight's unit

Fix hunting mission not able to take mission after a character has deleted
http://hercules.ws/board/tracker/issue-8104-hunting-missiontxt-delete-character/
Clarify Weight and MaxWeight unit as in 0.1
http://hercules.ws/board/tracker/issue-7836-weight-and-maxweight/
Fixed issue: 8047
http://hercules.ws/board/tracker/issue-8047-taekwon-stance-item/
Merge branch 'master' of http://github.com/HerculesWS/Hercules
HPM Hooks Update

Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Fixed issue 6415
http://hercules.ws/board/tracker/issue-6415-kaite-skills-reflect/
Merge branch 'master' of http://github.com/HerculesWS/Hercules
Update rAthena-main-upgrade.sql

Added in the differences from some months ago. Very special thanks to @dastgirpojee for the autotrade saving script!

None of us could test with actual data, so feel free to try it and point out any flaws you can see.
Fixed issue 7338 (added new char configuration char_aegis_delete)
http://hercules.ws/board/tracker/issue-7338-deleting-character/
As @jaBote requested in 26f2ada, renamed "rathena-logs-database-upgrade" to "rAthena-logs-upgrade.sql" and updated 'last revision'.
Added a 'FIXME' in db_obj_put
Fixed exploit in CR_ACIDDEMONSTRATION
Fixed issue 8087
http://hercules.ws/board/tracker/issue-8087-excrescent-blank-line-in-pcc/
Fixed Bug 8107

feintbomb issue which could cause endless hiding.
Special Thanks to kyeme.
http://hercules.ws/board/tracker/issue-8107-feint-bomb-super-bug/

Signed-off-by: shennetsind <ind@henn.et>
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Fixed Bug 8103

Issue with dragon mounted icon not showing up after relog.
http://hercules.ws/board/tracker/issue-8103-riding-dragon-mount-icon-missing/

Signed-off-by: shennetsind <ind@henn.et>
Follow up 4cc9d5f91cf6276e28cc02bb75fc4158d28d553b

Fixed the afk-kick timer, special thanks to AnnieRuru.

Signed-off-by: shennetsind <ind@henn.et>
Fixed Bug 8109

elemental's action could cause itself to be destroyed (e.g. due to target's reflect) and would thus cause sd->ed to be null, and would cause a crash when trying to access sd->ed->db, so moving the duration check to prior to elemental's action trigger.
Special Thanks to OmegaRed.
http://hercules.ws/board/tracker/issue-8109-mapserver-crash-skill-so-el-action

Signed-off-by: shennetsind <ind@henn.et>
Fixed a skill_castend_nodamage_id warning for SO_ELEMENTAL_SHIELD

skill_castend_nodamage_id: Unknown skill used:5008

Signed-off-by: shennetsind <ind@henn.et>