summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2014-03-17Added regular expression matching script commands and operatorsHaru2-4/+97
- The script command pcre_match and the operator ~= will return the number of regular expression matches in a given string (roughly equivalent to the php function preg_match or the perl operator =~) - The operator ~! is the opposite of ~= (roughly equivalent to the perl operator !~) - See script_commands and npc/custom/test.txt for more information. Signed-off-by: Haru <haru@dotalux.com>
2014-03-17Follow-up to 0e58529 (for MSVC compatibility)Haru1-5/+5
- Fixes bugreport:8097, thanks to Frost http://hercules.ws/board/tracker/issue-8097-compile-issue-using-msvc-2010-windows-7-64bit/ Signed-off-by: Haru <haru@dotalux.com>
2014-03-17HPM Hooks UpdateHercules.ws1-7/+6
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2014-03-16HPM Hooks UpdateHercules.ws1-6/+7
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2014-03-16Added --load-script commandline argumentHaru3-21/+42
Signed-off-by: Haru <haru@dotalux.com>
2014-03-16Added --load-plugin commandline argumentHaru5-7/+31
Signed-off-by: Haru <haru@dotalux.com>
2014-03-16Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind1-1/+4
2014-03-16Fixed Bug 8093shennetsind1-0/+12
Special Thanks to Haruna for pinpointing the cause, developing test cases and contributing to the final solution :3 http://hercules.ws/board/tracker/issue-8093-memory-leak-after-stop-server-cant-fix/ Signed-off-by: shennetsind <ind@henn.et>
2014-03-17Fix addtimer will report error when hit MAX_EVENTTIMERAnnieRuru1-1/+4
Fix bug 7965 http://hercules.ws/board/tracker/issue-7965-
2014-03-16Follow up 4fe6f657e682b9c722b15346f31ec3fe0298b9d9shennetsind1-0/+1
Yahoo I screwed up. re-adding the tick = -1 I removed in the aforementioned commit. Super-mega thanks to EPuncker! Signed-off-by: shennetsind <ind@henn.et>
2014-03-16Improved ERS memory handlingshennetsind3-24/+21
On shutdown the ERS will loop thru leftover managers and clear them according to each manager's settings, while also printing errors according to each manager's settings. Will also help pinpoint the causes of http://hercules.ws/board/tracker/issue-8093-memory-leak-after-stop-server-cant-fix/ and similar issues. Signed-off-by: shennetsind <ind@henn.et>
2014-03-16Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind3-36/+25
2014-03-16Fixed Bug 8095shennetsind1-2/+4
Mounting SC_ALL_RIDING (new mounts) now causes character to stop attacking. Special Thanks to bgamez23 http://hercules.ws/board/tracker/issue-8095-ridding-mount2-can-attack/ Signed-off-by: shennetsind <ind@henn.et>
2014-03-16Fix Bug 8041Michieru2-14/+18
http://hercules.ws/board/tracker/issue-8041-sura-cresent-elbow/ Special Thanks to Ind Fix Bug 6826 http://hercules.ws/board/tracker/issue-6826-crescent-elbow/?gopid=15188#entry15188 Fix Bug 8075 http://hercules.ws/board/tracker/issue-8075-lightning-walk/
2014-03-16Fixed Bug#8086malufett1-22/+7
-http://hercules.ws/board/tracker/issue-8086-overbrand-mega-bug/ Notice: old behavior of LG_OVERBRAND contains exploitable bug..this patch must pull to eliminate the bug Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2014-03-15Fixed Bug 8089shennetsind1-1/+3
In the scenario where damage is reflected and kills the caste sc->data[SC__SHADOWFORM] would be null (caster no longer is under the condition) and thus the crash. http://hercules.ws/board/tracker/issue-8089-map-crash/ Signed-off-by: shennetsind <ind@henn.et>
2014-03-15Follow up f4b1ff7426b1c4cd5e8cac37f7e3983cc03c706eshennetsind1-0/+5
Memory leak from bug report 8090 which was created in f4b1ff7426b1c4cd5e8cac37f7e3983cc03c706e when I somehow managed to assume all instances consuming memory would be active. Special Thanks to LordOdin! http://hercules.ws/board/tracker/issue-8090-memory-leak/ Signed-off-by: shennetsind <ind@henn.et>
2014-03-14Fixed Bug 8078shennetsind2-4/+7
gms relogging while char server is on char_server_type will no longer get rejected. Special Thanks to Beret. http://hercules.ws/board/tracker/issue-8078-maintenance-mode-enabled/ Signed-off-by: shennetsind <ind@henn.et>
2014-03-14Fixed Bug 7936shennetsind1-1/+1
Guild bound item deletion is no longer relies on account id to lookup (would cause false positives) , instead it relies on char id. special thanks to kyeme. http://hercules.ws/board/tracker/issue-7936-guildparty-item-bounded/ Signed-off-by: shennetsind <ind@henn.et>
2014-03-14Follow up 1007d606645c16d5246761976b7648809edb8b1dshennetsind3-4/+14
A bonus. Fixed unitwalk's non-x/y possibility, NPCs can now be set to chase players around for as long as they keep walking, which opens a number of possibilities e.g. help npc y get thru z. Signed-off-by: shennetsind <ind@henn.et>
2014-03-14Fixed Bug 8083shennetsind1-1/+1
Player-looking NPCs will now display properly, thanks to evilpuncker. http://hercules.ws/board/tracker/issue-8083-mob-avail-npc-sprite/ Signed-off-by: shennetsind <ind@henn.et>
2014-03-14Fixed Bug 8081shennetsind1-1/+1
disabling rental items with zones would cause such rental items to be deleted when the item_restricted_consumption_type setting was enabled, this has been fixed in this commit. Special Thanks to Tepoo. http://hercules.ws/board/tracker/issue-8081-map-zone-dbconf-item-dissabled-issues/ Signed-off-by: shennetsind <ind@henn.et>
2014-03-14Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind3-19/+30
2014-03-14Added internal awareness of active script instancesshennetsind3-12/+32
Fixes the following issues: - donpcevent could cause a crash when used to a event of the same npc - input/other-dialog-interactions could cause a crash when sending data to a disabled-fakenpc-id'd. Special Thanks to Haruna, ossi0110. Signed-off-by: shennetsind <ind@henn.et>
2014-03-13Corrected itemheal documentation, it was fairly wrong.panikon1-5/+9
Added simple overflow check in pc_heal to fix issue: 8082 http://hercules.ws/board/tracker/issue-8082-itemheal-kills-with-high-rand-value/
2014-03-12Fixed Bug#8038malufett1-7/+14
-http://hercules.ws/board/tracker/issue-8038-shadow-chaser-feint-bomb/?gopid=22073#entry22073 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2014-03-12Merge branch 'master' of https://github.com/HerculesWS/Herculesmalufett8-20/+67
2014-03-12Fixed Bug#8073malufett1-7/+7
-http://hercules.ws/board/tracker/issue-8073-removing-magic-gear-and-cart/?gopid=22195#entry22195 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2014-03-11Fixed getvariableofnpcshennetsind1-0/+3
Would crash when target npc's variable database is empty. Special Thanks to Haruna, ossi0110 Signed-off-by: shennetsind <ind@henn.et>
2014-03-11Fixed Bug 8072shennetsind2-3/+9
Special Thanks to kyeme, Haruna http://hercules.ws/board/tracker/issue-8072-map-crash-autotrade/ Signed-off-by: shennetsind <ind@henn.et>
2014-03-11Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind1-0/+34
2014-03-11Fixed Bug 8067shennetsind1-1/+3
Sample plugin compiler error on msvc, credits to AnnieRuru (Thank you!) http://hercules.ws/board/tracker/issue-8067-pluginsamplec-throws-error-on-microsoft-compiler/ Signed-off-by: shennetsind <ind@henn.et>
2014-03-11Merge pull request #265 from AnnieRuru/request_1shennetsind1-0/+34
set_constant the send_target
2014-03-11Fixed some warnings (unused functions) pointed out by clang-5.1.Haru2-12/+10
Signed-off-by: Haru <haru@dotalux.com>
2014-03-10Fixed issue 8043panikon1-3/+4
http://hercules.ws/board/tracker/issue-8043-arch-bishop-lauda-ramus/ Also corrected similar issue with AB_LAUDAAGNUS, now both skills can be used properly whether the caster is in a party or not. Special thanks to kyeme for reporting this issue
2014-03-10Fixed Bug 8046shennetsind3-1/+4
Fixed issue with permanent statuses being removed during logout for memory-freeing operations, special thanks to streusel and all those who contributed to the bug report. http://hercules.ws/board/tracker/issue-8046-cart-disappearance/ Signed-off-by: shennetsind <ind@henn.et>
2014-03-10Merge pull request #262 from Baalberith6/masterHaruna2-2/+2
MH_LIGHT_OF_REGENE resetting intimacy to 0.25% and checking for 0.75% when used (instead of 25% and 75%)
2014-03-10HPM Hooks UpdateHercules.ws3-0/+30
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2014-03-10Fixed a crash caused by NPC variable references in callfuncHaru2-13/+44
- Fixes bugreport:8074, thanks to ahmadshidqi http://hercules.ws/board/tracker/issue-8074-help-crash/ - Also fixed some DBMap allocation mistakes introduced in 4f3156b. - Added testcases to the self-test script. - Made possible thanks to Ind. Signed-off-by: Haru <haru@dotalux.com>
2014-03-10set_constant the send_targetAnnieRuru1-0/+34
fix bug 8049 http://hercules.ws/board/tracker/issue-8049-specialeffect-target-self-doesnt-work/
2014-03-09Follow-up to e2fdc3b858dda8abb7518735fbb254a2d63ea760Haru1-0/+2
Fixed pre-renewal build. Signed-off-by: Haru <haru@dotalux.com>
2014-03-09fixing permission from commit 7dd4dafMatej Pristak1-0/+0
2014-03-09fixing permissions from my last commitMatej Pristak1-0/+0
2014-03-09Fix Bug 8069Michieru1-0/+1
http://hercules.ws/board/tracker/issue-8069-gate-of-hell-bonus2-bsubrace-thara-frog-card/ Completely review the 1st and 2nd class skill_cast_db in renewal with aegis files. Thanks to Yommy and Ind for the files
2014-03-08Homunculus initimacy is always stored in interval <0,100000>, ↵Matej Pristak1-2/+2
MH_LIGHT_OF_REGENE shouldn't reset it to almost zero - cordial is 75000, not 750 and neutral is 25100, not 251. This was ultimately reseting your intimacy on use, shat wasn't the intention.
2014-03-08Merge pull request #261 from Baalberith6/mastershennetsind1-1/+1
wrong HPM parsing of packets of variable length, when the size is not equal declared size.
2014-03-07Fixed some warnings on ARMHaru2-17/+16
Now Hercules is officially able to compile and run on a Raspberry Pi. Signed-off-by: Haru <haru@dotalux.com>
2014-03-07Tweaked a platform check to support ARMv6+Haru2-1/+15
Signed-off-by: Haru <haru@dotalux.com>
2014-03-06When working with packets with variable length (defined with -1 length) in HPM,Matej Pristak1-1/+1
we are leaving these in stack when the size of packet exceeds declared size due to this line. This was probably meant as if( packet_declared_size > packet_actual_size ) do_not_parse_it_yet, but was doing the opposite.
2014-03-06HPM Hooks UpdateHercules.ws4-37/+80
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>