Fix WoE:SE guild flag doesn't change emblem

Fix bug 8077
http://hercules.ws/board/tracker/issue-8077-woese-flag-emblems-gives-warning/
Fix addtimer will report error when hit MAX_EVENTTIMER

Fix bug 7965
http://hercules.ws/board/tracker/issue-7965-
Fixed Bug 8093

Special Thanks to Haruna for pinpointing the cause, developing test cases and contributing to the final solution :3
http://hercules.ws/board/tracker/issue-8093-memory-leak-after-stop-server-cant-fix/

Signed-off-by: shennetsind <ind@henn.et>
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Added --load-plugin commandline argument

Signed-off-by: Haru <haru@dotalux.com>
Added --load-script commandline argument

Signed-off-by: Haru <haru@dotalux.com>
HPM Hooks Update

Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Improved const pointer detection in the HPMHooking generator

- Fixes a HPMHooking compile error in d117462. Thanks to Potte.

Signed-off-by: Haru <haru@dotalux.com>
HPM Hooks Update

Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Follow-up to 0e58529 (for MSVC compatibility)

- Fixes bugreport:8097, thanks to Frost
  http://hercules.ws/board/tracker/issue-8097-compile-issue-using-msvc-2010-windows-7-64bit/

Signed-off-by: Haru <haru@dotalux.com>
Added regular expression matching script commands and operators

- The script command pcre_match and the operator ~= will return the
  number of regular expression matches in a given string (roughly
  equivalent to the php function preg_match or the perl operator =~)
- The operator ~! is the opposite of ~= (roughly equivalent to the perl
  operator !~)
- See script_commands and npc/custom/test.txt for more information.

Signed-off-by: Haru <haru@dotalux.com>
Created npc/dev/ folder for scripts with development or testing purposes.

- Moved npc/custom/test.txt to npc/dev/test.txt
- Special thanks to AnnieRuru for the idea.

Signed-off-by: Haru <haru@dotalux.com>
Merge branch 'master' of http://github.com/HerculesWS/Hercules
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/
Merge branch 'master' of http://github.com/HerculesWS/Hercules
Enabled LHZ