Shadows System Base

http://hercules.ws/board/topic/581-implement-the-shadows-system/

Special Thanks to Yommy for all the client data, Haru for making it possible to get it out and rosfus for the details on the feature.
Shadows Feature requires packetver 20120925 or newer.

----------
Also: Updated all packets related to the shadows system, improved memory/processing of inventory/cart/storage/viewequip packets

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>
Fixed instance empty timer

counter val could go off making the empty timer not to be run.

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

whenever a character's hp was modified (e.g. damage/heal), clif_hpmeter would look for nearby characters with the PC_PERM_VIEW_HPMETER permission (foreachinarea operation), and since most of the time there isn't such a char nearby it would needlessly consume processing power, now hpmeter is only triggered when there are actual  need (when a character with such capabilities is within the map). as little as this may look like, its a mega boost for damage-intensive areas e.g. woe, whereas a single AoE damaging 10 people would, without this, trigger foreachinarea 10 times one very hit.

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

The movement of invisible units is no longer sent to the game clients of foes, therefore cheat tools that'd display hidden units, without requiring maya p, will no longer function.
Special Thanks to hemagx, Haruna.

Signed-off-by: shennetsind <ind@henn.et>
query_sql script command modification

query_sql will now halt the script execution when a invalid query is used.

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

Since cooldowns are now persistent to logout, the meaning of the setting has changed (see description within changeset).
http://hercules.ws/board/tracker/issue-7784-guild-skill-relog-delay/

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

Item rentals now take place after status changes arrive, guaranteeing that items that expired cancel their effects properly.
Thanks to kyeme, malufett.
http://hercules.ws/board/tracker/issue-7418-setmount-boarding-hatler/

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>
Merge branch 'master' of https://github.com/HerculesWS/Hercules into ghbb

Conflicts:
	src/map/clif.c
	src/map/pc.h