Fixed Bug 7960

http://hercules.ws/board/tracker/issue-7960-scriptc-warnings/
Also applied a temporary adjustment due to ERS_OPT_CLEAN not being consistent (decent fix will follow up, haru and i are working on it) -- thanks to kyeme for pointing it out!

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

Fixed mapreg reload issue, sql_query not returning results, and caused deletearray to no longer display error messages when the array in question is not available.
Special Thanks to Haruna, ossi0110

Signed-off-by: shennetsind <ind@henn.et>
Adjusted indexing of vars with index 0

Special Thanks to Haruna. Also fixed a compiler warning, thanks to ossi0110

Signed-off-by: shennetsind <ind@henn.et>
Fixed ERS Cache sharing

Enforcing cache to match the option condition in order for it to be shared. Special Thanks to Haruna!

Signed-off-by: shennetsind <ind@henn.et>
HPM Hooks Update

Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Updated script_commands.txt

- Updated array size info from 127 to the new +4billion
- Improved trader type documentation, thanks to emistry for pointing out some deficiencies!

Signed-off-by: shennetsind <ind@henn.et>
Two Adjustments

From some notes I took while working on the megapatch:
- Dropped unused char_dat variable in chrif's auth_node
- Fixed DB/BB/PB Logging, which could create false logs due to where it was placed.

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

temporary pc regs (@) were being misflagged.
http://hercules.ws/board/tracker/issue-7967-scriptc-leaks/

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

Syntax error when compiling with GP_BOUND_ITEMS disabled.
http://hercules.ws/board/tracker/issue-7963-intifc-compile-error/

Signed-off-by: shennetsind <ind@henn.et>
Corrected a 32 bit warning

- Follow-up to 82b583b5ef4e729ad2c3c74b26adce16a145605a
- Committing on Ind's behalf

Signed-off-by: Haru <haru@dotalux.com>
Changed some void* to the correct data types where applicable

Signed-off-by: Haru <haru@dotalux.com>
Updated script engine self-test npc with array tests

Signed-off-by: Haru <haru@dotalux.com>
Follow up 95f13f3420822111f928ba6079fbc2061bd38c5f

Fixed handling of arrays with 1-member and on index[0].
Thanks to Haruna.

Signed-off-by: shennetsind <ind@henn.et>
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Follow up 20bdc01fa687b174a732be4483ddea4982d67ce9

Fixed scripting deficiency of being unable to tell whether a user is assigned to a specific instance or not ( 20bdc01fa687b174a732be4483ddea4982d67ce9 removed that ability ), because users can be assigned to more than a single instance on hercules, the previous instance_id(<va>) isn't viable, so I'm introducing has_instance2("<map_name>"), returns the instance id of that map for the user (as long as the user is assigned to a instead with that map), -1 upon failure -- valid instance ids are >= 0.

Signed-off-by: shennetsind <ind@henn.et>
Improved overwriting priority of variables/constants/parameters

- Fixes issue 7968, thanks to Moguri
  http://hercules.ws/board/tracker/issue-7968-trader-npc-not-working/
- Corrected sprite name for KO_KAGE to match latest kRO info (previouly
  KO_ZANZOU, conflicting with a Kagerou/Oboro skill identifier)
- Updated self-test script to include checks for constants and for setd
  and getd.
- Made possible thanks to Ind.

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

Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Fixed cosmicro sql for wipe
Merge branch 'master' of http://github.com/HerculesWS/Hercules