Added 2014 Ragexe Client Packet Data

https://github.com/ThemonChan/2014-Ragexe-Client
Merge pull request #278 from MrKeiKun/themon/2014_packet_data

Added 2014 Ragexe Client Packet Data
Follow-up to 6af9ad3

- Fixes bugreport:8167, thanks to Frost
  http://hercules.ws/board/tracker/issue-8167-packetver-re-small-issue/

Signed-off-by: Haru <haru@dotalux.com>
Corrected an issue when calling hookStop() from a post-hook

- Now hookStop() will do absolutely nothing if called from a post-hook,
  instead of causing unexpected effects on the next pre-hook execution.

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

Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Removed global_reg_value leftovers.
Bug fixes and other changes

#Fixed issue where a corrupted map cache would lead to a crash
*Moved Big-endian compatibility functions to common/utils.h
#Fixed issue 8162
*http://hercules.ws/board/tracker/issue-8162-loadnpc-doesnt-trigger-oninit-of-duplicate-npcs/
*Added options to npc_parse_duplicate
#Fixed issue 8169
*http://hercules.ws/board/tracker/issue-8169-script-command-guildskill-skill-idlevel-not-working-as-intended/
*Changed *guildskill behavior, now it behaves exactly as depicted in the documentation
*Updated *guildskill documentation
#Added missing GBI types to mapif_parse_GuildBasicInfoChange now it's possible to change guild exp, lv, skill point and skill information
#GeoIP revamp
*GeoIP module was partially rewritten
*Added several data checks to prevent corruption and crashes
*Updated GeoIP database
*See https://github.com/maxmind/geoip-api-c/blob/master/libGeoIP/GeoIP.c for more information
#Added packetver checks regarding NST_MARKET
*Now *tradertype warns if user is trying to use this feature with older clients
Fixed Bug 8122
http://hercules.ws/board/tracker/issue-8122-sc-groomy-sc-weakness-and-sc-ignorance/
Fix success chance formula of SC_ENERVATION, SC_GROOMY, SC_IGNORANCE, SC_LAZINESS, SC_UNLUCKY and SC_WEAKNESS
Follow up to 9a425c1
Special thanks to @MishimaHaruna
#Fixed issue 8175
*http://hercules.ws/board/tracker/issue-8175-missing-delequip/
*Documentation wrote by @emistry
#Added return values for *delequip
Homonculus S Update
-Updated and fixed Eira skills to official behavior.
Fixed Bug#8168
-http://hercules.ws/board/tracker/issue-8168-crush-strike/?gopid=22703#entry22703

Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Updated to match AEGIS item_db

Special thanks to Dastgir
Fixed issue 8176
http://hercules.ws/board/tracker/issue-8176-lastet-commit-cant-compile-successfully-on-linux/
Sorry for taking so long, it seems that even if errno.h is not included in MSVC errno is still available, but that doesn't happen in unix compilers.
HPM Hooks Update

Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
ItemDB SQL Sync

Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Changed warning labels for itemdb_read_cached_packages, they were stating other function which could be misleading when debugging without a debugger.
Fixed issue: 8179
http://hercules.ws/board/tracker/issue-8179-warning-in-new-latest-rev/?gopid=22767#entry22767
Removed extra 'Map cache is corrupted' message

- The message was unconditionally displaying, regardless of errors.

Signed-off-by: Haru <haru@dotalux.com>
Improved the self-test script

- Moved tests into a function, so that they can be easily called by
  external scripts. Ensured that the tests are only executed once.

Signed-off-by: Haru <haru@dotalux.com>
Added support to return a different exit status to the OS.

- This can be easily used by plugins.
- See an example at
  http://github.com/HerculesWS/StaffPlugins/Haru/script_mapquit

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