summaryrefslogtreecommitdiff
path: root/src/map
AgeCommit message (Collapse)AuthorFilesLines
2013-10-27Fixed Bug #7418shennetsind3-11/+28
Item rentals now take place after status changes arrive, guaranteeing that items that expired cancel their effects properly. Thanks to kyeme, malufett. http://hercules.ws/board/tracker/issue-7418-setmount-boarding-hatler/ Signed-off-by: shennetsind <ind@henn.et>
2013-10-27query_sql script command modificationshennetsind1-1/+1
query_sql will now halt the script execution when a invalid query is used. Signed-off-by: shennetsind <ind@henn.et>
2013-10-27Fixed Ancient Invisible Bugshennetsind2-8/+28
The movement of invisible units is no longer sent to the game clients of foes, therefore cheat tools that'd display hidden units, without requiring maya p, will no longer function. Special Thanks to hemagx, Haruna. Signed-off-by: shennetsind <ind@henn.et>
2013-10-27Performance Improvement: hpmetershennetsind4-2/+17
whenever a character's hp was modified (e.g. damage/heal), clif_hpmeter would look for nearby characters with the PC_PERM_VIEW_HPMETER permission (foreachinarea operation), and since most of the time there isn't such a char nearby it would needlessly consume processing power, now hpmeter is only triggered when there are actual need (when a character with such capabilities is within the map). as little as this may look like, its a mega boost for damage-intensive areas e.g. woe, whereas a single AoE damaging 10 people would, without this, trigger foreachinarea 10 times one very hit. Signed-off-by: shennetsind <ind@henn.et>
2013-10-27Fixed instance empty timershennetsind1-4/+4
counter val could go off making the empty timer not to be run. Signed-off-by: shennetsind <ind@henn.et>
2013-10-27Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind43-508/+679
2013-10-27Shadows System Baseshennetsind6-411/+552
http://hercules.ws/board/topic/581-implement-the-shadows-system/ Special Thanks to Yommy for all the client data, Haru for making it possible to get it out and rosfus for the details on the feature. Shadows Feature requires packetver 20120925 or newer. ---------- Also: Updated all packets related to the shadows system, improved memory/processing of inventory/cart/storage/viewequip packets Signed-off-by: shennetsind <ind@henn.et>
2013-10-27Added full support on Moon Star and Super Star itemsJedzkie2-0/+10
Signed-off-by: Jedzkie <jedzkie13@rocketmail.com>
2013-10-27Follow-up to 44c33fda3614d588e6bf6cee1cf884e98f1531f0Haru1-6/+6
Corrected some 64 bit literal constants not declared as such, and causing compiler warnings and possible issues on some systems. Special thanks to Yommy. Signed-off-by: Haru <haru@dotalux.com>
2013-10-26Changed 'tick' variables to 64 bitHaru43-497/+481
- This fixes an issue with timers that stop working after about 24-49 days when the tick overflows (note that this may happen much earlier than that, and at hard to predict times, on some systems) - Updated the RDTSC help message in the configure script to also warn users about issues with SpeedStep enabled systems. - On Windows, tick() still has a resolution of 10~15ms (or even as low as 100ms on some systems). A TODO comment (thanks, Ai4rei) was added for a follow-up patch, as I want this one to be as small as possible) - Note: on Windows versions earlier than 6.x (Vista, Server 2008), the tick overflow issue is NOT fixed, since they don't support the function used to retrieve a 64 bit tick. This isn't a big issue, since those platforms are already - or going soon to be - out of their extended support period, and it's already advisable to upgrade, for other reasons. If you're the unfortunate user of such a system, it is recommended that you reboot your machine at least once every 49 days for Hercules to work reliably. - Note: To clear some doubts, since I've already been asked, this has absolutely NOTHING to do with 32/64 bit CPUs or OSes. It's all about a variable's size, not the size of registers of your CPU, and your 32bit CPU will be able to handle this just fine. Signed-off-by: Haru <haru@dotalux.com>
2013-10-25Merge pull request #202 from kisuka/mastershennetsind6-11/+188
Quest Bubbles (Actually Works Finally)
2013-10-25nocashshop mapflagshennetsind7-4/+32
As requested by the community in http://hercules.ws/board/topic/1477-mapflag-for-cash-shop/ and http://hercules.ws/board/topic/1476-disable-cashshop-in-pvp-woe/ 'nocashshop' mapflag disables the usage of the cashshop button as well as any attempts to purchase (in case the flag is turned on after someone gets the shop open). Signed-off-by: shennetsind <ind@henn.et>
2013-10-25Quest Bubbles Updateshennetsind7-56/+138
- Introduced questinfo cache, memory & processing speed improvement - Fixed mini-map marker support Special Thanks to Haruna Signed-off-by: shennetsind <ind@henn.et>
2013-10-25Follow up e08c05a0f73d6e6ea4fe64a9b91291bc0a002251shennetsind1-1/+2
Fixed idletime from being updated on walk despite criteria, thanks to kyeme for pointing it out! Signed-off-by: shennetsind <ind@henn.et>
2013-10-24Quest Bubbles (Actually Works Finally)Kisuka3-9/+104
2013-10-24Fixed nullpo calls in script.c mismatching new macro return typeshennetsind1-8/+8
Thanks to Kisuka. Signed-off-by: shennetsind <ind@henn.et>
2013-10-24Merge pull request #189 from dastgirpojee/SkidConstshennetsind1-0/+1
During skill_db parse the skill names are now automatically turned into constants for use throughout any and all scripts, this improves processing speed during runtime and readability (as haruna demonstrates over #189). Thanks to dastgirpojee! Closes #188
2013-10-24Follow up f304c3637f82a5a3ab3a979c5d4b463ab26e7d72shennetsind1-1/+3
Fixed SC_AQUAPLAY_OPTION which was eaten away during the change, and removed a duplicate val2 set on SC_CRESCENTELBOW Signed-off-by: shennetsind <ind@henn.et>
2013-10-24Merge pull request #199 from ossi0110/mastermalufett1-0/+1
Follow UP Fixed Bug #7754
2013-10-24Fixed @cash/@points displayshennetsind1-18/+21
message would be displayed twice, when cashshop_show_points was enabled, with positive values Merge from e71a6cc7eca7d0c003c9cc6bf1965a0e07fdf505 Closes #157 Signed-off-by: shennetsind <ind@henn.et>
2013-10-24Added idletime optionsshennetsind5-6/+62
There have been requests for the extension of the feature, I was reluctant given more options would cause features relying on the feature to be easier to counter (less accurate), with the modification of the feature to employ options the feature is now configurable at the server owners discretion. Special Thanks to Haruna Signed-off-by: shennetsind <ind@henn.et>
2013-10-24Follow UP Fixed Bug #7754ossi01101-0/+1
Follow Up Fixed Bug #7754 there was the SC_CASH_RECIVEITEM line missing in Inds Commit. added case SC_CASH_RECEIVEITEM: so it will display the correct % value.
2013-10-24Fixed Bug #7759shennetsind5-28/+87
Modified how @commands from HPM plugins are handled so that they are persistent to @reloadatcommand (also prepares for the future load/unload during runtime feature) http://hercules.ws/board/tracker/issue-7759-reloadatcommand/ Signed-off-by: shennetsind <ind@henn.et>
2013-10-24Fixed Bug #7781shennetsind1-0/+3
Item parsing was missing a check for IDs beyond maximum and allowing them to remain in the system which can cause numerous issues including the one in the report http://hercules.ws/board/tracker/issue-7781-mapcrash-when-add-itemid-above-50k-in-itemdb2/ Signed-off-by: shennetsind <ind@henn.et>
2013-10-24Fixed Bug #7754shennetsind1-0/+2
Fixed Field Manuals not display the proper boost percentage on the client. http://hercules.ws/board/tracker/issue-7754-field-manuals-issue/ Thanks to Frost Signed-off-by: shennetsind <ind@henn.et>
2013-10-22Fixed bug with status visual effects on relogshennetsind1-66/+124
val_flag was being set only when status were being created, not loaded, moved them into its own switch so its set regardless of flag&4 being set or not. Signed-off-by: shennetsind <ind@henn.et>
2013-10-21Minor identation fixes on status_change_startshennetsind1-2348/+2348
Signed-off-by: shennetsind <ind@henn.et>
2013-10-20Bug:7723 and Skill Cooldownsshennetsind5-56/+72
Fixed 7723, skill cooldowns are no longer have concurrent duplicates, when adding cooldown for a skill already in cooldown the timer is modified instead. http://hercules.ws/board/tracker/issue-7723-skill-blockpc-end-error Special Thanks to Haru, Wend and Beret. Also fixed skill cooldown duration/total display for characters that relog with a skill cooldown on clients 20120604 or higher Signed-off-by: shennetsind <ind@henn.et>
2013-10-19Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind1-47/+36
2013-10-19Instance Dungeons Updateshennetsind5-8/+165
As requested by the community in http://hercules.ws/board/topic/1702-implement-rathena-npc/ we're merging in the latest of rAthena's dungeons, this includes the rewriting of all instance dungeons and the addition of 4 dungeons that were not present previously (BakonawaLake, BangungotHospital, BuwayaCave and OldGlastHeim). Update also includes the ability for instances to reset (or be destroyed if instance files were disabled/removed) upon @reloadscript, instance scripts are able to control to what stage the instances are to be reset via the instance_set_respawn (reload spawn) script command, OnInstanceInit labels are now triggered when the instance starts via instance_init (and upon reload), they may be used alongside instance variables (which are persistent to @reloadscript) to save players' progress. - NPC Changelog: -- npc/instances/EndlessTower.txt --- 2.2 Instance system rewrite. [Euphy] --- 2.3 Added some missing announcements. [Euphy] --- 2.4 Added GM management function. [Euphy] -- npc/instances/NydhoggsNest.txt --- 1.5 Instance system rewrite. [Euphy] --- 1.6 Added GM management NPCs. [Euphy] -- npc/instances/OrcsMemory.txt --- 1.7 Instance system rewrite. [Euphy] -- npc/instances/SealedShrine.txt --- 2.3 Instance system rewrite. [Euphy] -- npc/other/gm_npcs.txt --- 1.0 First version. [Euphy] -- npc/re/instances/BakonawaLake.txt --- 1.0 First version. [Euphy] --- 1.1 Added GM management NPC. [Euphy] -- npc/re/instances/BangungotHospital.txt --- 1.0 First version. [Euphy] --- 1.1 Added GM management function. [Euphy] -- npc/re/instances/BuwayaCave.txt --- 1.0 First version. [Euphy] -- npc/re/instances/HazyForest.txt --- 1.1 Instance system rewrite. [Euphy] -- npc/re/instances/MalangdoCulvert.txt --- 1.0b Fixed incorrect use of 'close'. [Joseph] --- 1.1 Instance system rewrite. [Euphy] -- npc/re/instances/OctopusCave.txt --- 1.1 Instance system rewrite. [Euphy] -- npc/re/instances/OldGlastHeim.txt --- 1.0 First version. [Euphy] Special Thanks to Haru, Uziel for their contributions to this update, and ossi0110 for helping us debug it. Signed-off-by: shennetsind <ind@henn.et>
2013-10-19Added support for missing or empty categories in cashshop_db.confHaru1-47/+36
- If a category in cashshop_db.conf is empty or missing, it will no longer show an error and/or insert an apple (dummy item). - Corrected a mapserver startup crash in case cashshop_db is missing elements. - Special thanks to Ind for providing official server/client info to handle the case of empty categories. Signed-off-by: Haru <haru@dotalux.com>
2013-10-18Minor HPM Updateshennetsind2-1/+16
Attempting to hook to a unknown hooking point will now display a message. Added support for item bonuses Check https://github.com/HerculesWS/StaffPlugins/tree/master/shennetsind/bCoolDownRate for a demonstration. Signed-off-by: shennetsind <ind@henn.et>
2013-10-18Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind3-37/+99
2013-10-18Item Drop (from any source) Processing Improvementshennetsind2-12/+28
Signed-off-by: shennetsind <ind@henn.et>
2013-10-18Minor atcommand.c cleanupshennetsind1-284/+51
Removed many wrong/pointless nullpo_ calls, Special Thanks to Haruna, ossi0110 Signed-off-by: shennetsind <ind@henn.et>
2013-10-19Fixed Bug#7737malufett3-37/+99
-http://hercules.ws/board/tracker/issue-7737-shadow-form-and-interaction-with-multi-hit-skills/?gopid=20576#entry20576 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-10-17Merge remote-tracking branch 'upstream/master' into SkidConstDastgir Pojee10-43/+296
2013-10-16Fixed Bug #7771shennetsind1-1/+4
http://hercules.ws/board/tracker/issue-7771-compiling-errors/ Signed-off-by: shennetsind <ind@henn.et>
2013-10-16Fixed Bug#7770malufett4-2/+26
-split 'item_delay.txt'. Follow up @ 9692bc034537693d331148ae8bd15153265c6cf0 -implement PACKET_ZC_SHOWSCRIPT. Special thanks to Kyeme and super awesome Yommy. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-10-16Fixed Bug#7122malufett1-0/+2
-where 'bLongAtkDef' affects magic in RE. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-10-16Merge branch 'master' of https://github.com/HerculesWS/Herculesmalufett1-2/+2
2013-10-16Follow up @ ↵malufett1-15/+17
https://github.com/HerculesWS/Hercules/commit/9692bc034537693d331148ae8bd15153265c6cf0 -Should now accept mob id. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-10-16Fixed a variable going out of scope causing an invalid pointer accessHaru1-2/+2
- Follow-up to 20bdc01fa687b174a732be4483ddea4982d67ce9 - The issue was found thanks to gcc 4.7.3 on a 32 bit linux system, where the issue became evident and caused all sorts of parsing errors on argument-less command functions such as 'end', 'close', 'next', etc - Special thanks to Ind for quickly pointing me to the right place! Signed-off-by: Haru <haru@dotalux.com>
2013-10-16Fixed Bug#7374malufett7-2/+145
-Hercules now fully support Monster Transformation. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-10-15Fixed Bug#7738malufett1-1/+1
-where item bonuses 'bBreakWeapon' and 'bBreakArmor' or WS_MELTDOWN take effect in reflect damage. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-10-15Fixed Bug#7764malufett1-1/+0
-reverted r15787 where after warping char must face at north. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-10-15Follow up @ a4802eaef9d71283070f1f31c859da871a7c8d32malufett1-9/+6
-skill animation. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2013-10-14Added scriptcommands addmonsterdrop and delmonsterdrop (Missing documentation)EPuncker1-26/+108
[Edit by Haru: This commit has been amended in order for it to work properly in Hercules, and to correct some flaws of the original version, according to what I said in my review of issue #191. Credits to the original author have been moved to an "Original idea by" comment. Commit authorship is preserved. Documentation will be added in a follow-up commit] Signed-off-by: Haru <haru@dotalux.com>
2013-10-12Fixed Bug #7701shennetsind1-1/+2
Cashshop window wasn't visually updating the cashpoint count after purchasing pet eggs, Thanks to kyeme. http://hercules.ws/board/tracker/issue-7701-buying-egg-on-cash-shop/ Signed-off-by: shennetsind <ind@henn.et>
2013-10-12Merge branch 'master' of https://github.com/dastgirpojee/Hercules into SkidConstDastgir Pojee1-1/+1