Removed redundant data from guardian_data, saving up to 40 bytes per guardian (10240 bytes total)
HPM Hooks Update

Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Minor script core fixes
Removed useless calls in script.c
Removed nullpo calls in script.c, scripts shouldn't crash the server
Added checks in several functions in order to prevent possible crashes
*resetstatus, *resetskill, *skillpointcount, *changesex, *successremovecards, *failedremovecards, *getequipcardid, *skilleffect, *atcommand, *cardscnt, *equip, *useatcmd
Corrected *specialeffect2 behaviour, when no player was attached and another player name was supplied it would stop script execution instead of displaying the effect
Added documentation regarding hard coded constants.
Updated *strcharinfo documentation in order to follow 1a477c4a628decb330b8083bbd4625ffae26c709
Extracted method to obtain SYSTEM_INFO from functions in sysinfo.c
Added proper method to obtain page size in windows
Fixed status_calc_regen crash issue:http://hercules.ws/board/tracker/issue-1298-mapserver-crashed-item-check/

Follow up to 7cd967f812ab741c41c416fb9f7c2a921c36e947
Fixed possible crash in clif_getareachar_skillunit, related to issue 6561 (http://hercules.ws/board/tracker/issue-6561-unknown-map-server-crash/)
Follow up to 29de937a2d8b485498fa9ce573efebfb64e8d669
reversed portion of 7cd967f812ab741c41c416fb9f7c2a921c36e947 that would point to nothing.
Corrected issue with bce716fa908584f435dcf97904fb37ada6dd90b7 forgot to removed a couple of parenthesis, sorry guys
Fixed issue with mounts and jobchange, ranger and mechanic mounts weren't being checked and properly removed in pc_setoption
Abstracted running functions into two other methods (unit_run and unit_wugdash)
Added checks in skill_dance_switch so it'd be safe to call it whenever it's needed
Documented unit_run, unit_run_hit, skill_dance_switch and sc_conf_type
HPM Hooks Update

Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Fixed issue with [AT]mount, it wasn't displaying the expected messages, all errors would simply display "You can not mount a Peco Peco with your current job.", now it's displaying a different message for each possible error
Fixed issue with frenzy, the regen buff wasn't being removed when the player died/relogged, issue: 8251 http://hercules.ws/board/tracker/issue-8251-berserk-bug-sp-regenetati/
Fixed an issue in the 'Invalid client hash' console message

- MD5 value was incorrectly printed as int (displaying a meaningless
  number) while it's in fact a string.

Signed-off-by: Haru <haru@dotalux.com>
Corrected compile errors in case DB_ENABLE_STATS is defined

Signed-off-by: Haru <haru@dotalux.com>
Corrected some SC behaviour, special thanks to Rytech
- Extracted some methods to check SC blocks
- Fixed issue that when players couldn't attack they couldn't talk to NPCs with mob view id either

Follow up to ec51176326c6028630835538db67826281d34ffe, fixed minor typo
HPM Hooks Update

Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Re-added revision info to the memory leak log

- Information was missing because sysinfo->final() was freeing the data
  before iMalloc->final() could log it.

Signed-off-by: Haru <haru@dotalux.com>
Follow up to 3c24fb656f3b3370b7152d6f1d2cc9dbc6fbae5d
Moved 'count' declaration in order to fit MSVC c89-c99 standard
SQL Re-Organization.

Signed-off-by: KeiKun <the.keikun@gmail.com>