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
Merge branch 'master' of http://github.com/HerculesWS/Hercules
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>
Return EXIT_FAILURE if a script parse error occurred.

- This affects normal execution as well as ./script-checker runs.

Signed-off-by: Haru <haru@dotalux.com>
Updated Xcode build script to support the recent sysinfo addition

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

Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Removed some unused source files

- I don't believe there's a need to keep them if we're not using them.
  If and when we will ever need them again, this commit can be easily
  reverted.

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