Replaced own bool typedef with <stdbool.h> where available

Fixes bugreport:7645
http://hercules.ws/board/tracker/issue-7645-rev-12302-compiler-error-and-warnings-on-gcc-49

Special thanks to Takkun for VS2012 testing and info

Signed-off-by: Haru <haru@dotalux.com>
Fix for Bug #7471

HELLO WORLD. DADDY IS BACK.
Fixed ancient pc_calc_skillpoint bug that'd count guild skills towards the player's total.
Special Thanks to malufett and the countless who provided us with debug information on this issue.
This commit implements a temporary command @skdebug, in case there are people still reproducing the issue please include the output of this command in your new report, it displays the information required for us to adjust any possible oddities.
http://hercules.ws/board/tracker/issue-7471-skill-points-not-evenly-distributed-anymore/

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

Fixed changing map zones/flag of a instance map crashing, also added IOT_ (Instance Owner Type) constants to db/const.txt
Special Thanks to purityz for all the help and test scenarios.
http://hercules.ws/board/tracker/issue-7646-bg-mapflag-instance-reloadscript-mapserver-crash/

Signed-off-by: shennetsind <ind@henn.et>
Fixed crash uncovered by the ab1fad052cd771e183f496f5db922fa03a13edea update

Special Thanks to Haruna

Signed-off-by: shennetsind <ind@henn.et>
Fixed a crash in case a clone uses SO_ELEMENTAL_SHIELD

Signed-off-by: Haru <haru@dotalux.com>
Fixed a mapserver crash when using instanced maps with custom names

- Fixes bugreport:7658 (thanks to purityz)
  http://hercules.ws/board/tracker/issue-7658-instance-mapserver-crashing/
- The crash was caused by a pointer becoming invalid when reallocating
  map[] (i.e. when adding maps), since 20bdc01f

Signed-off-by: Haru <haru@dotalux.com>
Pre-re SQL item db update

Thanks to Haruna,
Closes #88

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

128 being higher than the maximum available value for pre-re mode (in pre-re def is 'char/int-8', unlike renewal mode in which it is 'short/int-16')
http://hercules.ws/board/tracker/issue-7503-mob-parse-dbrow/

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

Given mounting support is present in pre-re I'm adding the item to squash the warning away, the problem by having item_delay being shared by pre-re and re will be sorted in a upcoming update.
http://hercules.ws/board/tracker/issue-7354-item-delaytxt/

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

Given the class is accessible under pre-re mode, its skills that rely on these catalysts are unable to function since the items they require do not exist.
Adding them.
http://hercules.ws/board/tracker/issue-7506-skill-items-missing-in-pre-re/

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

damage storage has been changed from int32 to int64 within areas where it could otherwise modified beyond the limit and get screwed up, this solves all related problems within any skills, not only asura.
http://hercules.ws/board/tracker/issue-7652-asura-strike-overdamage/

Signed-off-by: shennetsind <ind@henn.et>
Dropped unused login_log_filename setting

Closes #76

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

Special Thanks to Haruna for the fix, kyeme for the information
http://hercules.ws/board/tracker/issue-7308-guild-aura-on-ally/
Closes #78

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

SG Union skill being unavailable
http://hercules.ws/board/tracker/issue-7663-union-skill-bug/
Closes #86

Signed-off-by: shennetsind <ind@henn.et>
Fixed MSVC warnings on 7f9f6e1b84061a7d393debf37395c8b4a2667db1

Special Thanks to KeiKun for bringing them to me.

Signed-off-by: shennetsind <ind@henn.et>
Fixed Bug#7584
-Where HW_SOULDRAIN should work only in single target.

Fixed Bug#7670
-Where PA_GOSPEL is not working properly.

Fixed Bug#7668
-Bonus 'bLongAtkRate' is not working properly.

Fixed Bug#7512
-Bonus 'bCritAtkRate' is not working properly.

Fixed Bug#7515
-Fixed MO_EXTREMITYFIST animation.

-Fixed RE armor/weapon storage tab positioning.
-Fixed HW_MAGICPOWER cast time.
-Fixed '/item' '/monster' aegis command where it not working properly in some item names or monsters.
-Added NC_DISJOINT cast time hidden modifier.
-Updated RE ATK for post damage modifier.

Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Added an integer overflow check on literal values in the script parser

- When attempting to use a value greater than INT_MAX or smaller than
  INT_MIN (about +/- 2 billions), an error message will be shown and
  script execution will be aborted.
- Corrected some scripts that were attempting to use such values.
- Fixed some possible issues when using literal negative values in
  scripts.
Thanks to Ind for his help on this issue (figuring it out and fixing it)

Signed-off-by: Haru <haru@dotalux.com>
Added support for non-fatal error messages from the script parser

- Changed overflow errors to be non-fatal. The value will now be capped
  to INT_MAX or INT_MIN.
- Follow-up to 8351881

Signed-off-by: Haru <haru@dotalux.com>
Merged strtoll MSVC fix from Ind's ScriptEngineUpdateP1 branch

Credits to Ind for the fix, thanks to Takkun for reporting it

Signed-off-by: Haru <haru@dotalux.com>
Silenced a MSVC warning about int64->int32 conversion

Follow-up to 8351881. Thanks to Takkun for the report

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