summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-07-29Permission cache overhaulPiotr Hałaczkiewicz20-350/+426
* Reworked group permission caching in session data (follow-up to cd45c30ab2dcc44bfbfac283d15bb09b3d4644bc) * Removed duplicated information from session data in favor of direct pointer to group settings. * Added getters for all group data required to process permissions and related stuff. * Added new functions to PC interface and updated calls everywhere. * Extracted function to set new group for a player (used at login, group config reload, manual adjustment of group). * Moved command permission config parsing to atcommand module. * Improved dummy map session handling. * Since it's required for all map sessions to have a valid group, dummy sessions are now created by a designated function. * Updated related code that uses dummy sessions (console `gm use` and script `atcommand`, `useatcmd`). * Various minor improvements and cleanups. * Eliminated some global variables related to loading atcommand permissions for group by passing them directly to function. * Moved definition of global array holding PC permission names from header file to source file. * Streamlined destuction of atcommands database to use DBApply helper function instead of DBIterator. * Replaced hardcoded position of console dummy session with defines from mapindex.h (thx Haruna for pointing it out). * Removed fixed length restriction on group names.
2013-07-29Fixed Bug #7597 / Follow up b7171479a47490ff80bf04849f763158d6d96facshennetsind10-660/+655
http://hercules.ws/board/tracker/issue-7597-server-crash/ Signed-off-by: shennetsind <ind@henn.et>
2013-07-29Follow up 1caae981b4f000b67bdd0b118fb76797c2bfa06cshennetsind2-5502/+5520
Applying the missed 'upper' flag updates. http://hercules.ws/board/topic/1778-ultimate-item-db-update/ Signed-off-by: shennetsind <ind@henn.et>
2013-07-29Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind28-2698/+2996
2013-07-29Follow up 1caae981b4f000b67bdd0b118fb76797c2bfa06cshennetsind4-1194/+1220
Prioritising kRO-item-data above others whenever possible, Special Thanks to Yommy for the data and Haru for help on validating the output. http://hercules.ws/board/topic/1778-ultimate-item-db-update/ Signed-off-by: shennetsind <ind@henn.et>
2013-07-29Merge pull request #77 from Earisu/masterEarisu28-2698/+2996
Added new HPM interface
2013-07-29Merge branch 'master' of https://github.com/HerculesWS/HerculesSusu9-10002/+10121
2013-07-29Added mercenary interfaceSusu12-2977/+3034
2013-07-29Added intif interfaceSusu20-2503/+2612
2013-07-29Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind3-11/+16
2013-07-29Ultimate Item DB Updateshennetsind9-10002/+10121
http://hercules.ws/board/topic/1778-ultimate-item-db-update/ Signed-off-by: shennetsind <ind@henn.et>
2013-07-29Added elemental interfaceSusu12-1069/+1129
2013-07-29Added iDuel interface (duel.c)Susu6-219/+255
2013-07-29Added chat interfaceSusu6-481/+517
2013-07-28Fixed Bug#7576malufett2-9/+14
-Where AB_CANTO is not working properly with MADO equip target. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-07-28Fixed bug #7510j-tkay1-2/+2
- Enabled Dewata warps. http://hercules.ws/board/tracker/issue-7510-dewata-legend-quest-incomplete/ Signed-off-by: j-tkay <joseph.tk.ea@gmail.com>
2013-07-26Follow up 144a9d0843dfe47e0b58c8857762f58ae70543c8shennetsind4-13/+24
It will no longer block the equipping of items, instead it will delay (if applicable) the item's effect until it is no longer capable of affecting the skills under the timer. Special Thanks to kyeme for the information. Signed-off-by: shennetsind <ind@henn.et>
2013-07-26Fixed Bug #7564 Part 2shennetsind1-4/+4
Fixed mapid check doing upper instead of base in several locations. Special Thanks to bgamez23 http://hercules.ws/board/tracker/issue-7564-platinum-skill-is-not-remove-right-after-i-change-job/ Signed-off-by: shennetsind <ind@henn.et>
2013-07-26Fixed Bug #7588shennetsind1-1/+1
param mismatching compiler warning http://hercules.ws/board/tracker/issue-7588-srcmapscript/ Signed-off-by: shennetsind <ind@henn.et>
2013-07-26Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind13-884/+797
2013-07-25Fixed typo in `SC__STRIPACCESSARY`.Piotr Hałaczkiewicz1-2/+2
Fixed `SC__STRIPACCESSARY` checking for equip index instead of equip position. Fixes #72
2013-07-25Expanding script.c interfaceshennetsind15-527/+551
Hercules Renewal Phase One. Signed-off-by: shennetsind <ind@henn.et>
2013-07-24Fixed SA_DISPELL failing outside PvP against partyHaru1-1/+3
- Follow-up to a4802eae - Fixes bugreport #7572 http://hercules.ws/board/tracker/issue-7572-dispell-2 - SA_DISPELL would fail outside PvP if caster and target are in the same party AND in the same guild at the same time. - Special thanks for kyeme (bugreport), Xgear (review.) Signed-off-by: Haru <haru@dotalux.com>
2013-07-23Merge pull request #65 from piotrhalaczkiewicz/pathfindingHaruna5-251/+254
Pathfinding code cleanup.
2013-07-23Pathfinding code cleanup.Piotr Hałaczkiewicz5-251/+254
Now uses binary heap defined in `db.h`. Walk requests now use A* (hard) pathfinding only to match game client behavior. Added defines for movement cost. Added some documentation & comments.
2013-07-23Merge pull request #66 from piotrhalaczkiewicz/blocklistHaruna3-619/+520
Refactored map_foreach* functions.
2013-07-23Refactored map_foreach* functions.Piotr Hałaczkiewicz3-619/+520
Removed a lot of duplicated code. Added some documentation & comments.
2013-07-22Merge pull request #64 from piotrhalaczkiewicz/masterFlipp3-11/+18
Binary heap fix & improvement.
2013-07-22Binary heap fix & improvement.Piotr Hałaczkiewicz3-11/+18
Fixed a bug when removing last element of binary heap (its parent would be removed instead if it had the same value). Binary heap now allows custom swapper function/macro. Added `swap_ptr` macro to swap two pointers in place (`swap` is not suitable for pointers). This allows to store pointers in binary heap.
2013-07-22Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind1-2/+2
2013-07-22Fixed Bug #7564shennetsind1-1/+1
Trickdead will now go away upon job changing to a non-novice class, pre-existing non-novice characters with the trickdead skill granted will automatically be fixed on login (unless the skill was granted via flag 3) Special Thanks to bgamez23 http://hercules.ws/board/tracker/issue-7564-platinum-skill-is-not-remove-right-after-i-change-job/ Signed-off-by: shennetsind <ind@henn.et>
2013-07-22Fixed the homun_skill_tree parser.Haru1-2/+2
- Follow-up to efbd5d0 (related: issue #4337) - Now all the fields are read as intended. Signed-off-by: Haru <haru@dotalux.com>
2013-07-21Fixed Bug #7526shennetsind2-1/+2
Skill from items with instantaneous casting are no longer affected by magic power http://hercules.ws/board/tracker/issue-7526-item-skill-error/ Signed-off-by: shennetsind <ind@henn.et>
2013-07-21Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind11-16/+49
2013-07-21For Bug #7542shennetsind2-0/+8
Attempting to open boxes or packages while 90% overweight will fail and result in a error message. http://hercules.ws/board/tracker/issue-7542-bug-when-weight-90/ Signed-off-by: shennetsind <ind@henn.et>
2013-07-21Changed CC to a Makefile variableHaru11-16/+49
- This allows the user to override the compiler at each make invocation (i.e. to run scripts to generate .clang_complete for https://github.com/Rip-Rip/clang_complete ) - Updated .gitignore with a few platform-dependent entries Signed-off-by: Haru <haru@dotalux.com>
2013-07-21Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind3-36/+50
2013-07-21Fixed Bug #7520shennetsind2-17/+71
Added code to ensure 1st/2nd tabs are meeting the conditions; Special Thanks to Haruna, ToiletMaster http://hercules.ws/board/tracker/issue-7520-skill-point-error/ Also - Follow up 9bcb1423969870a6b60819e6f3846fe0235e28a9 extending it to cached item packages. Signed-off-by: shennetsind <ind@henn.et>
2013-07-21Fixed various unit* script commands to work with NPCs (issue #7548)Haru3-36/+50
http://hercules.ws/board/tracker/issue-7548-unitwalk-do-not-work/ Follow-up to 20bdc01. Thanks to Ind for his support and suggestions. Signed-off-by: Haru <haru@dotalux.com>
2013-07-21HCache & SQL Update Checker minor changeshennetsind2-2/+2
Files loaded by HCache now display a green C to distinguish whether it was loaded from cache or not Fixed a typo in the SQL Update Checker. Signed-off-by: shennetsind <ind@henn.et>
2013-07-21Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind8-6/+27
2013-07-21Fixed Bug #7547shennetsind2-4/+5
str_data[].val was uninitialised and thus using garbage memory on compilers that don't automatically initialize http://hercules.ws/board/tracker/issue-7547-notice-conflicting-itemscript-var/ Also updated guild aura sc_config options (special thanks to kyeme!) Signed-off-by: shennetsind <ind@henn.et>
2013-07-21Merge branch 'master' of https://github.com/HerculesWS/Herculesmalufett53-846/+1196
2013-07-21Fixed Bug#7558malufett2-1/+9
-Where 'bLongAtkDef' is not working properly with physical attack. Fixed Bug#7530 -Where Masquerades affect boss monsters. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-07-20Fixed Bug #7550Mysteries2-2/+2
http://hercules.ws/board/tracker/issue-7550-baby-mage-inheriting-priest- class-skills-re-mode-pre-re/ - My other commit isn't read to release yet, so I rather just push this through now. Thanks jTynne!
2013-07-19Update script_commands.txtjaBote1-0/+13
Added some neat info Yommy gave us :D
2013-07-18Merge pull request #60 from kisuka/mastershennetsind1-1/+1
Changed npcdb_checkid to use MAX_NPC_CLASS2_START and MAX_NPC_CLASS2_END.
2013-07-18Changed npcdb_checkid to use MAX_NPC_CLASS2_START and END.Kisuka1-1/+1
2013-07-19Added support for apostrophes (') in libconfig's setting namesHaru2-2/+2
Special thanks to Ind for pointing me in the right direction and testing the patch. Signed-off-by: Haru <haru@dotalux.com>
2013-07-18Fixed Bug #7525shennetsind6-6/+51
Item name constants conflicting with script var names will now result in a map server warning/notice and in the background map server will prioritise the script variable over the item name constant. http://hercules.ws/board/tracker/issue-7525-set-variable-is-not-recognized-causing-freezing/ --- Also followup 586c0f7983f81e97ca70c57712e25d4d51453d6b sc_config.txt update Signed-off-by: shennetsind <ind@henn.et>