summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2016-02-17Replaced some now unnecessary includes with forward declarations in header filesHaru14-11/+19
Added some forgotten <stdio.h> and "common/conf.h" includes to .c files, that were previously masked by the above. Signed-off-by: Haru <haru@dotalux.com>
2016-02-17HPM Hooks UpdateHaru3-696/+696
2016-02-17Removed unnecessary typedefs from libconfigHaru27-306/+309
Signed-off-by: Haru <haru@dotalux.com>
2016-02-17HPM Hooks UpdateHaru9-39/+39
2016-02-17Renamed config->read_file to config->load_fileHaru17-54/+54
- The return value is now consistent with the libconfig standard (CONFIG_TRUE/CONFIG_FALSE). - Removed some redundant error messages. Signed-off-by: Haru <haru@dotalux.com>
2016-02-17HPM Hooks UpdateHaru9-0/+960
2016-02-17Added new set of functions to libconfig in order to handle other data typesHaru2-0/+261
- New data types supported: - uint16 - int16 - uint32 - bool - mutable string - Documented conf_read_file Ported to modern Hercules and cleaned up from Panikon's commits fa09661f1bdbe41060fa97f5e63810523feadcc0, cbb3e3b6ad987eeeaac0c75236feabfd2206cf07, cd79c70101638cff476c40d31e2b7cd031915284, 126f9b2dc1ab5af223ef37be6000346fe18a0a96, b9bf380edc30dab038abef41568081037a75ffb5. Signed-off-by: Haru <haru@dotalux.com>
2016-02-17HPM Hooks UpdateHaru9-186/+186
2016-02-17Updated libconfig to version 1.5Haru3-8/+8
- Based on https://github.com/hyperrealm/libconfig/releases/tag/v1.5 f9f23d7a95608936ea7d839731dbd56f1667b7ed - Improvements that come with this libconfig version: * Don't fclose() a null pointer. * check if file being opened is a directory * added config_set_options(), config_get_options(), setOptions(), getOptions(). * renamed config_setting_lookup_from() to config_setting_lookup() and documented it * floating point precision loss patch * scanner code cleanup * parser code cleanup * bugfix; capture root filename - Parser generated with Bison 2.7 - Scanner generated with flex 2.6 - This includes the windows-compatibility commit 909b06c07e30e456cc63f58d31b0e2f3aad4cc43 from upstream (although not part of version 1.5) Signed-off-by: Haru <haru@dotalux.com>
2016-02-15Replaced a call to sleep() with HSleep()Haru1-8/+1
Signed-off-by: Haru <haru@dotalux.com>
2016-02-15Fixed a missing include in utils.hHaru1-0/+3
Signed-off-by: Haru <haru@dotalux.com>
2016-02-09Small tweaks to mob_drop_adjustHaru1-7/+13
Related to #1152 Signed-off-by: Haru <haru@dotalux.com>
2016-02-07Fix blind defined macro WFIFO2PTRhemagx1-1/+1
Follow up b77735473db348a65b749a79549852713f142dc1
2016-02-06HPM Hooks UpdateHercules.ws1-5/+5
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-06Changed PCRE to properly use the system-provided pcre.hHaru2-5/+3
Signed-off-by: Haru <haru@dotalux.com>
2016-02-06Merge pull request #1142 from 4144/pluginsfixHaru1-1/+4
Fix memory corruption if plugin add command line parameter without he…
2016-02-06HPM Hooks UpdateHercules.ws9-0/+96
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-06Merge pull request #1131 from 4144/timersHaru4-5/+76
Add to system information also information about clock function.
2016-02-06Fix memory corruption if plugin add command line parameter without ↵Andrei Karas1-1/+4
help/description.
2016-02-05Merge pull request #1081 from Jedzkie/PR_MAGNIFICATDastgir1-0/+4
PR_MAGNIFICAT Skill Fix.
2016-02-05Merge pull request #1087 from csnv/songsDastgir1-17/+62
Revamped Aegis style songs behavior. Fixes #835
2016-02-05Clear timer function after auto remove timer ended.Andrei Karas1-0/+1
2016-02-05Add missing checks into timer.cAndrei Karas1-5/+58
2016-02-05Add to system information also information about clock function.Andrei Karas3-0/+17
I think issues with stuck skills delay/cooldown related to timers/clock. This change allow to see with what clock functions issue can be reproduced.
2016-02-04HPM Hooks UpdateHercules.ws3-34/+66
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-05Merge pull request #993 from HerculesWS/mobdb2sqlAndrei Karas10-461/+1024
Mob DB support for the db2sql plugin
2016-01-31Move P2PTR Macro to socket header and split the macro into two macros for ↵hemagx4-16/+24
WFIFO/RFIFO. Change packet database enums to defines in mmo.h
2016-01-29Merge pull request #1108 from 4144/pcreconfigureHaru13-56/+10
Enable pcre by default in configure and show error if pcre missing.
2016-01-29Merge pull request #1105 from dastgir/20-SendFixHaru1-7/+11
Fixes crash with @send
2016-01-29Merge pull request #1100 from theultramage/gpermHaru3-3/+4
more meaningful names for fields of enum guild_permission
2016-01-29Re-added support for the JName field in the mob dbHaru1-0/+8
Signed-off-by: Haru <haru@dotalux.com>
2016-01-29Added modb2sql converter to the db2sql pluginHaru1-2/+306
Signed-off-by: Haru <haru@dotalux.com>
2016-01-29Renamed some db2sql* plugin functions to itemdb2sql*Haru1-69/+141
Signed-off-by: Haru <haru@dotalux.com>
2016-01-29Changed DB2SQL plugin to not cross-convert databasesHaru1-2/+7
- To convert a renewal database, compile the server and plugin as renewal, and to convert a pre-renewal database, compile both as pre-renewal. - This is a necessary evil, for future compatibility. Signed-off-by: Haru <haru@dotalux.com>
2016-01-29Removed duplicate code from the db2sql pluginHaru1-36/+24
Signed-off-by: Haru <haru@dotalux.com>
2016-01-29Replaced several floating-point operations with integer operationsHaru5-100/+101
This fixes several rounding errors happening in various places (i.e. the base exp for HORONG being calculated as 819 instead of 820 when the server rates are set to 1x) Signed-off-by: Haru <haru@dotalux.com>
2016-01-29Added apply_percentrate and apply_percentrate64 functionsHaru2-0/+46
Signed-off-by: Haru <haru@dotalux.com>
2016-01-29Modified Mob DB loader to behave like the Item DB loaderHaru3-271/+410
- Separated load and validation logic. - The load/validation functions now return the loaded mob ID Signed-off-by: Haru <haru@dotalux.com>
2016-01-25HPM Hooks UpdateHercules.ws3-0/+31
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-01-25Added constdb2doc pluginHaru1-0/+197
This plugin generates doc/constants.md, based on the contents of: - db/constants.conf - Hardcoded constants in source (see script->hardcoded_constants()) - Skill DB - Mob DB - Item DB Signed-off-by: Haru <haru@dotalux.com>
2016-01-25Added source support for special comments in the constdbHaru2-7/+34
- To be used by the constdb2doc plugin Signed-off-by: Haru <haru@dotalux.com>
2016-01-25Fix packet id being sent encrypted to Hercules Plugin Manager.hemagx6-32/+33
Now packet id will be passed to Hercules Plugin Manager instead of let it figure it on itself
2016-01-21Remove unused PCRE_SUPPORT define.Andrei Karas7-46/+0
2016-01-21Enable pcre by default in configure and show error if pcre missing.Andrei Karas6-10/+10
2016-01-17Merge pull request #1077 from csnv/masterHaru1-1/+15
Fixes monsters not taking rude attack when OFFICIAL_WALKPATH is used.
2016-01-16Removed Hard Coded data for SC_ALL_RIDING.Jedzkie3-3/+6
2016-01-16HPM Hooks UpdateHercules.ws3-0/+63
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-01-16Merge pull request #1031 from dastgir/12-OneClickIdentifyHaru6-3/+42
Added OneClickIdentify packet
2016-01-16set_constant the LOOK_ constantsAnnieRuru1-0/+16
2016-01-16Add EQP_ = Equipment Position constantsAnnieRuru1-0/+23