Added internal awareness of active script instances

Fixes the following issues:
- donpcevent could cause a crash when used to a event of the same npc
- input/other-dialog-interactions could cause a crash when sending data to a disabled-fakenpc-id'd.
Special Thanks to Haruna, ossi0110.

Signed-off-by: shennetsind <ind@henn.et>
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Fixed Bug 8081

disabling rental items with zones would cause such rental items to be deleted when the item_restricted_consumption_type setting was enabled, this has been fixed in this commit.
Special Thanks to Tepoo.
http://hercules.ws/board/tracker/issue-8081-map-zone-dbconf-item-dissabled-issues/

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

Player-looking NPCs will now display properly, thanks to evilpuncker.
http://hercules.ws/board/tracker/issue-8083-mob-avail-npc-sprite/

Signed-off-by: shennetsind <ind@henn.et>
Follow up 1007d606645c16d5246761976b7648809edb8b1d

A bonus. Fixed unitwalk's non-x/y possibility, NPCs can now be set to chase players around for as long as they keep walking, which opens a number of possibilities e.g. help npc y get thru z.

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

Guild bound item deletion is no longer relies on account id to lookup (would cause false positives)
, instead it relies on char id. special thanks to kyeme.
http://hercules.ws/board/tracker/issue-7936-guildparty-item-bounded/

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

gms relogging while char server is on char_server_type will no longer get rejected.
Special Thanks to Beret.
http://hercules.ws/board/tracker/issue-8078-maintenance-mode-enabled/

Signed-off-by: shennetsind <ind@henn.et>
Follow up f4b1ff7426b1c4cd5e8cac37f7e3983cc03c706e

Memory leak from bug report 8090 which was created in f4b1ff7426b1c4cd5e8cac37f7e3983cc03c706e when I somehow managed to assume all instances consuming memory would be active.
Special Thanks to LordOdin!
http://hercules.ws/board/tracker/issue-8090-memory-leak/

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

In the scenario where damage is reflected and kills the caste sc->data[SC__SHADOWFORM] would be null (caster no longer is under the condition) and thus the crash.
http://hercules.ws/board/tracker/issue-8089-map-crash/

Signed-off-by: shennetsind <ind@henn.et>
Fixed Bug#8086
-http://hercules.ws/board/tracker/issue-8086-overbrand-mega-bug/
Notice: old behavior of LG_OVERBRAND contains exploitable bug..this patch must pull to eliminate the bug

Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Fix Bug 8041
http://hercules.ws/board/tracker/issue-8041-sura-cresent-elbow/
Special Thanks to Ind

Fix Bug 6826
http://hercules.ws/board/tracker/issue-6826-crescent-elbow/?gopid=15188#entry15188

Fix Bug 8075
http://hercules.ws/board/tracker/issue-8075-lightning-walk/
Fixed Bug 8095

Mounting SC_ALL_RIDING (new mounts) now causes character to stop attacking.
Special Thanks to bgamez23
http://hercules.ws/board/tracker/issue-8095-ridding-mount2-can-attack/

Signed-off-by: shennetsind <ind@henn.et>
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Improved ERS memory handling

On shutdown the ERS will loop thru leftover managers and clear them according to each manager's settings, while also printing errors according to each manager's settings.
Will also help pinpoint the causes of http://hercules.ws/board/tracker/issue-8093-memory-leak-after-stop-server-cant-fix/ and similar issues.

Signed-off-by: shennetsind <ind@henn.et>
Follow up 4fe6f657e682b9c722b15346f31ec3fe0298b9d9

Yahoo I screwed up. re-adding the tick = -1 I removed in the aforementioned commit.
Super-mega thanks to EPuncker!

Signed-off-by: shennetsind <ind@henn.et>
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>