summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
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/Herculesshennetsind7-14/+35
2013-07-21For Bug #7542shennetsind1-0/+5
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 variableHaru7-14/+35
- 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/Herculesshennetsind3-2/+10
2013-07-21Fixed Bug #7547shennetsind1-0/+1
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/Herculesmalufett31-226/+427
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-18Changed npcdb_checkid to use MAX_NPC_CLASS2_START and END.Kisuka1-1/+1
2013-07-18Fixed Bug #7525shennetsind5-6/+45
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>
2013-07-18Fixed guild aura not going away on guild-break/expellshennetsind6-40/+52
Also modified sd->state.gmaster_flag from struct to a 'unsigned int : 1;' flag as sd->guild already stores the pointer and was thus a duplicate. Special Thanks to Haru, Xgear Signed-off-by: shennetsind <ind@henn.et>
2013-07-17Added missing initialization of some functions in the homunculus interfaceHaru14-65/+67
- Fixes issue #7536 (thanks to jTynne for the report) http://hercules.ws/board/tracker/issue-7536-map-crash-july-15th/ - Minor corrections to the other interfaces as well (reordered initialization to follow the definitions, removed duplicate entry in the skill interface initialization, commented out some unused entries) Signed-off-by: Haru <haru@dotalux.com>
2013-07-16Packets and packet keys update with the info provided by ShaktoHaru1-0/+104
- Added packets for 2013-06-12Ragexe, 2013-06-18Ragexe, 2013-06-26Ragexe, 2013-07-03Ragexe - Added packetKeys for 2013-06-26Ragexe, 2013-07-03Ragexe - Thanks to Shakto for always providing us with the data, OnNplay for the the update reminder. Signed-off-by: Haru <haru@dotalux.com>
2013-07-15Allow higher level GMs to bypass a player's /exall when whisperingHaru1-2/+2
- Follow-up to 3d0fba0 - Fixes the remaining part of bug #7463: http://hercules.ws/board/tracker/issue-7463-gm-cant-whsiper-wheb-player-do-exall Signed-off-by: Haru <haru@dotalux.com>
2013-07-14Removed the now unused optional 3rd parameter from removemapflagHaru1-5/+2
- The parameter was only used in combination with MF_RESTRICTED, now superseded by MF_ZONE - Follow-up b08910e8, 90f117f6 Signed-off-by: Haru <haru@dotalux.com>
2013-07-14Makefile error corrections and minor tweaksHaru6-13/+13
- Fixed some variable names incorrectly entered as literals in target names - This fixes a build failure when trying to build any specific sub-project directly from src/*/ - Removed an old svn-related command from the 'import' recipe - This fixes the build failures when trying to run 'make tools' right after 'make clean' - Removed duplicate entries in the 'clean' recipe for map and login servers Signed-off-by: Haru <haru@dotalux.com>
2013-07-13Merge pull request #58 from piotrhalaczkiewicz/masterHaruna1-14/+25
Fixed crash when unloading NPC (bug #7517)
2013-07-13Fixed crash when unloading NPC (bug #7517)Piotr Hałaczkiewicz1-14/+25
Follow-up to 6e0da189207134c8d57ecca48f397bc592dcc1ad Bug report: http://hercules.ws/board/tracker/issue-7517-yet-another-map-server-cr/ Duplicate events are now skipped instead of overwriting existing ones.
2013-07-11Fixed an issue with long hostnames/nicknames in the IRC BridgeHaru1-6/+3
This prevents nickname truncation and other possibly ill side-effects in case the source string for a message is in the form: aNickname!~ident@an.irc.user.with.a.very.long.hostname_________ Signed-off-by: Haru <haru@dotalux.com>
2013-07-11Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind9-90/+108
2013-07-11Fix to Bug #7434shennetsind5-14/+42
Fixing a ancient bug where placing a item from inventory to cart when cart is full would render such item un-clickable, same for when doing so from storage to cart. Special Thanks to Yommy for all the data, jTynne for bringing this up. http://hercules.ws/board/tracker/issue-7434-weightinability-to-click-item-issue/ Signed-off-by: shennetsind <ind@henn.et>
2013-07-11Merge pull request #56 from piotrhalaczkiewicz/mastershennetsind1-70/+81
Improved NPC event processing.
2013-07-11Fixed a little type (follow up to 94d75f8), also defaulted to 0 mute system.Matheus Macabu2-2/+2
2013-07-11Updated some aegis(item, monster, resetstate & resetskill) command to work ↵malufett1-11/+13
properly in Hercules.
2013-07-11Improved NPC event processing.Piotr Hałaczkiewicz1-70/+81
Executing unique events (NPC::Label) no longer loops through all events. Executing global event labels (::Label) also no longer loops through all events. Global event labels are now mapped to list of only relevant NPC events. Cleaned up code related to clearing npc path db.
2013-07-11Partial Fixed Bug#7462malufett1-2/+2
-Burning(Eff_Burning) is now supported with 'bonus2 bAddEff' script command.
2013-07-11Fixed Bug#7498malufett5-6/+11
-Where RE equip atk doesn't properly update status window and negative equip atk should now affect atk. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-07-10Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind1-0/+1816
2013-07-10Fix to skill_blockpc_endshennetsind1-1/+2
Duplicate indexes would not be cleared, causing array to gradually increase in size. Thanks to ToiletMaster for providing extra information. Signed-off-by: shennetsind <ind@henn.et>
2013-07-10- Updated dbghelp.dllMatias1-0/+1816
- Added dbghelpplug.c souce code made HPM compatible. Signed-off-by: Xgear <matiassw@gmail.com>
2013-07-09Fixed Bug #7497shennetsind2-5/+5
Special Thanks to shenhuyong, kyeme. http://hercules.ws/board/tracker/issue-7497-iditem-idq/ Signed-off-by: shennetsind <ind@henn.et>
2013-07-09Travis Report Fixesshennetsind6-72/+79
warn_unused_result shielding, dropped unused variables and fixed battle_calc_return_damage delay behavior (pointer was unchaged; resulting in the var afterwards always as 0) Special Thanks to Xgear. Signed-off-by: shennetsind <ind@henn.et>
2013-07-09Mob Parse & Mob Skill Use fixesshennetsind2-14/+33
Special Thanks to Masao for bringing this to us. mob parser will now throw out warnings when a field in the mob db has a value higher than the field supported (e.g. if you get a monster with 70k hp it will tell you its higher and cap it to the maximum supported, which is 65k), this failsafe also works for def/mdef, str/agi/vit/int_/dex/luk. Modified the formula that measures skill field data for skill levels higher than the maximum (e.g. mistress' high-level jupitel thunder), to match the previous version, also fixed a issue where depending on the level the blewcount could get higher than the systems' hardcoded 25-cell maximum. Signed-off-by: shennetsind <ind@henn.et>
2013-07-09Follow up 144a9d0843dfe47e0b58c8857762f58ae70543c8shennetsind1-1/+5
fixed counter going off if target died while timer was running. Signed-off-by: shennetsind <ind@henn.et>
2013-07-09Fixed missing map id boundary checkingshennetsind1-24/+62
Signed-off-by: shennetsind <ind@henn.et>
2013-07-09For Bug #7496shennetsind1-7/+7
Skill cooldown indexing fixed Signed-off-by: shennetsind <ind@henn.et>
2013-07-08For Bug #7494shennetsind3-67/+105
Modified skill cool down storage (also interfaced the remaining 2 static ers) http://hercules.ws/board/tracker/issue-7494-crash-crash-crash/ Signed-off-by: shennetsind <ind@henn.et>
2013-07-08Fixed Bug #7485shennetsind1-13/+13
Special Thanks to Igniz http://hercules.ws/board/tracker/issue-7485-crash-on-reloadscript/ Signed-off-by: shennetsind <ind@henn.et>
2013-07-08Extended 'ID<item_id>' syntax to item packages and item groups.shennetsind1-2/+8
Signed-off-by: shennetsind <ind@henn.et>
2013-07-08Modified how itemdb->names is populatedshennetsind1-1/+6
Not only does it fix the itemdb2 name override problem, its also more efficient :P Special Thanks to kyeme for bringing this issue to our attention Signed-off-by: shennetsind <ind@henn.et>
2013-07-08Fixed skill delunit problem on packetver > 20120418 && < 20130000shennetsind1-0/+7
Special Thanks to Judas Signed-off-by: shennetsind <ind@henn.et>