summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-01-24Channels refactoring: quit, leave, deleteHaru4-85/+90
Signed-off-by: Haru <haru@dotalux.com>
2015-01-24Channels refactoring: map_joinHaru1-13/+12
Signed-off-by: Haru <haru@dotalux.com>
2015-01-24Channels refactoring: reordered functions (no changes)Haru1-113/+116
Signed-off-by: Haru <haru@dotalux.com>
2015-01-24Channels refactoring: searchHaru4-44/+51
Signed-off-by: Haru <haru@dotalux.com>
2015-01-24Channels refactoring: joinHaru6-76/+107
Signed-off-by: Haru <haru@dotalux.com>
2015-01-24Minor channel system refactoringHaru6-107/+203
Signed-off-by: Haru <haru@dotalux.com>
2015-01-24Moved the Hercules Channel System to its own file/interfaceHaru21-810/+969
Signed-off-by: Haru <haru@dotalux.com>
2015-01-24Fixed 18 minor issuesHaru9-96/+169
Signed-off-by: Haru <haru@dotalux.com>
2015-01-24HPM Hooks UpdateHercules.ws3-0/+32
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2015-01-24Merge pull request #449 from HerculesWS/questdbHaruna6-2990/+13754
Converted the Quest DB to libconfig. Added support for quest-granted item drops
2015-01-24Reduced quest db memory usage by about 900kBHaru3-42/+56
Signed-off-by: Haru <haru@dotalux.com>
2015-01-24Added Official Drops Infodastgir1-0/+80
2015-01-24Added additional item drops support to the quest dbHaru4-8/+93
- Special thanks to Dastgir, Michieru Signed-off-by: Haru <haru@dotalux.com>
2015-01-24Converted quest_db.txt into quest_db.confdastgir2-2899/+13363
2015-01-24Added quest_db.txt to quest_db.conf Conversion Tooldastgir1-0/+86
2015-01-24Converted quest_db to libconfigHaru2-53/+88
- This allows for more fields to be easily added to the file (coming soon). - Special thanks to Dastgir. Signed-off-by: Haru <haru@dotalux.com>
2015-01-24HPM Hooks UpdateHercules.ws1-30/+28
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2015-01-23Cleaned up spirit charms implementation (optimized memory and CPU usage)Haru9-179/+170
Signed-off-by: Haru <haru@dotalux.com>
2015-01-23Deprecated command isday().Haru2-9/+13
- The command is deprecated and it will be removed in about a month. Please use isnight() in your custom scripts instead. Signed-off-by: Haru <haru@dotalux.com>
2015-01-23Merged petskillattack and petskillattack2.Haru4-82/+50
Existing custom scripts will need edits. In a nutshell: - Existing calls to `petskillattack` should be changed to specify an extra <number of attacks> argument (after <skill level>), set to 0. - Existing calls to `petskillattack2` should be changed to `petskillattack`, keeping the same arguments. Signed-off-by: Haru <haru@dotalux.com>
2015-01-22Follow up 0957abd4d19b82b8dc8d7db2743008fa3daff3fashennetsind1-1/+1
Special Thanks to kyeme Signed-off-by: shennetsind <ind@henn.et>
2015-01-22Removed name distinction between (sql) mob/item/mob_skill db and db_re variantsHaru9-8381/+8356
- Since there (currently and in future) is no difference between the table structure for renewal and pre-renewal databases, it makes no sense to have extra code that makes a distinction between their names. A server will always use either one or the other, never both at the same time. - If you have a mob_db_re, mob_skill_db_re and/or item_db_re table, please rename it to mob_db, mob_skill_db and/or item_db_re, respectively. - No upgrade script provided. I'd like to remind everyone that these tables are optional (and deprecated), and they are only offered for convenience for those who need them for web control panels and similar software. Signed-off-by: Haru <haru@dotalux.com>
2015-01-22HPMHookGen compatibility fix for doxygen 1.8.9.xHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-01-20Merge pull request #448 from HerculesWS/window_fixHaruna3-4/+6
Fixes Compile Error on Windows
2015-01-20Fixes Compile Error on WindowsDastgir3-4/+6
2015-01-20Minor fixes and tweaks suggested by cppcheckHaru48-1383/+1328
- Variable scopes reduced - Parenthesized ambiguous expressions - Removed or added NULL checks where (un)necessary - Corrected format strings - Fixed typos potentially leading to bugs Signed-off-by: Haru <haru@dotalux.com>
2015-01-19Merge pull request #443 from 4144/pcextHaruna5-10/+50
Extract exp table validation into separate function.
2015-01-19Update HPM hooks.Andrei Karas3-0/+31
2015-01-19Extract exp table validation into separate function.Andrei Karas2-10/+19
2015-01-18Merge pull request #446 from csnv/quickfixshennetsind1-2/+2
Fixes direction in AOE skills
2015-01-18Fixes direction in AOE skillscsnv1-2/+2
2015-01-18To help pinpoint and manage the issue report in 8402shennetsind1-0/+45
@cddebug command; broken entries will be normalized immediately, to forcefully reset the cooldown write "reset" i.e. @cddebug reset, to use on others the usual #cddebug "target" http://hercules.ws/board/tracker/issue-8402-serious-problem-with-skill-that-cant-be-cast-or-used/ Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Merge branch 'master' of github.com:HerculesWS/Herculesshennetsind20-443/+741
2015-01-18For bug report 8367shennetsind1-4/+22
While unable to reproduce, I implemented a countermeasure to the issue in question (settick failing, which'd cause blockskill[] not to be filled). Hopefully someone who can reproduce is able to shed some light on the conditions required, allowing for a proper fix to be made. http://hercules.ws/board/tracker/issue-8367-timer-settick-issue/ Signed-off-by: shennetsind <ind@henn.et>
2015-01-18HPM Hooks UpdateHercules.ws3-100/+6
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2015-01-18Command line arguments handling overhaulHaru17-343/+735
- login_server, char_server, map_server as well as the tools (mapcache) now have a common command line arguments handling mechanism. - All of them now accept `--help` (`-h`), `--version` (`-v`) and `--load-plugin`. - login_server now accepts `--login-config` and `--lan-config` instead of relying on positional arguments to override those files. The old syntax will no longer work, please update your custom startup scripts. - char_server now accepts `--char-config`, `--inter-config`, `--lan-config` instead of relying on positional arguments. The old syntax will no longer work, please update your custom startup scripts. - mapcache now accepts `--grf-list`, `--map-list`, `--map-cache`, `--rebuild` in place of, respectively, `-grf`, `-list`, `-cache`, `-rebuild`. - A new macro `CMDLINEARG()` is provided, to help defining new command line argument handlers (i.e. in plugins). the `addArg()` call is still required, but its syntax has changed. The `help` argument is now of type `const char *` rather than a function pointer, and it is supposed to contain the message to show in the `--help` screen. Pass `NULL` if no help message is desired. Signed-off-by: Haru <haru@dotalux.com>
2015-01-18For bugreport 8397 (incomplete solution)shennetsind1-1/+12
Certain skills bypass invincibility http://hercules.ws/board/tracker/issue-8397-5-secs-invulnerability-on-positivesupportive-aoe-buff/ Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Fixed Bug 8441shennetsind1-1/+2
Magnifier item no longer consumes sp http://hercules.ws/board/tracker/issue-8441-item-magnifier-is-consuming-sp/ Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Follow-up to 83077740c7c996d198617d45a1916cd31ff38e9aHaru1-0/+3
Fixed compile error in instance.c Signed-off-by: Haru <haru@dotalux.com>
2015-01-18Fixed Bug Report 8438shennetsind2-1/+12
Addresses instances crashing when running with the CELL_NOSTACK define enabled. Caused by the define not being readily available to all areas that played with mapcell (now with it being included from map.h this no longer is the case) http://hercules.ws/board/tracker/issue-8438-cell-nostack-and-instances-crash/ Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Follow up 348044f12d5f683c8945e0eac642f2795050fb4eshennetsind1-1/+1
Thanks to Haruna Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Implementing nullpo interface for plugin useshennetsind4-3/+24
As proposed in pull request #361 Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Connection History Redesignshennetsind1-81/+56
Drops ~250kb in memory usage from each server, speeds up lookup/insertion and the cleanup timer will iterate thru the list rather than that ~65k array loop Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Replacing rand leftovers with the mt19937arshennetsind7-14/+14
Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Merge branch 'master' of github.com:HerculesWS/Herculesshennetsind3-3/+4
2015-01-18Fixing 38 issuesshennetsind20-85/+111
Addressing out of bounds read/write, pointless null checks on already deferenced variables, dead code. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-01-17Merge pull request #444 from 4144/coverityshennetsind3-3/+4
some fixes for different issues
2015-01-18Fix out of bound issue in mapindex.c.Andrei Karas1-1/+1
Found by coverity scan.
2015-01-18Add some fixes to char server.Andrei Karas2-2/+3
Found by coverity scan.
2015-01-1727 Fixesshennetsind13-103/+108
Addressing out of bounds read/write, pointless null checks on already deferenced variables. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind <ind@henn.et>