summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2009-05-18* Item-bonuses and NPC skills now use the official default durations for ↵Playtester1-7/+7
status changes - you gain Curse immunity if you have 0 Luk (seems buggy but is official) - our status defense stats are already fully correct :-) - thanks to ultramage for testing this git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13790 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-18status calc code cleanupultramage2-446/+341
* Inverted the status calc code order, so that status_calc_bl optionally invokes status_calc_pc/mob/whatever instead of every status_calc_* calling status_calc_bl. * Inlined functions status_calc_bl_sub_pc, status_calc_bl_sub_hom and status_calc_bl_sub_mer into status_calc_bl. * Restructured status_calc_bl to require as little bl type-specific branching as possible. * Split status_calc_bl into two layers - the inner does the battle status calculations, while the outer deals with running appropriate base status calculations, remembering old values and handling client updates. * The status_calc_bl function is now the single entry-point for all status calculations. * status_calc_bl will now trigger a client update only on attributes that actually changed. * If hp or sp changes during status_calc_bl, it will now properly refresh on the client. * Removed SCB_PC, now SCB_ALL should be used instead. * Revived the unused status calc flag SCB_BASE to indicate that a base status recalculation should be done first (that's what the status_calc_* functions are for). * Defined a new symbolic bitmask SCB_BATTLE (SCB_ALL - SCB_BASE) in case someone needs to only calculate the battle status (currently unused). Please report any issues with this update. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13789 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-17Removed the optional target parameter from atcommand_homshuffle, since the ↵ultramage1-23/+4
standard #-charcommand mechanism exists for this very purpose (code from r9671). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13788 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-17- Fixed a couple of crashes that could ensue from the last memory corruption ↵skotlex1-1/+4
fix to free'ing clones. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13787 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-17* Eske and Eska now affect friendly guardians and slaves. (bugreport:2131)Inkfish1-5/+9
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13786 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-17* Some fixes to the previous commit (apparently it didn't compile with VS 2008)Playtester1-3/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13785 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-17* Monocell, Instant Death and Class Change will now fail on bosses ↵Playtester1-0/+10
(bugreport:2907) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13783 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-15* AutoSpellWhenHit now triggers on normal+skill by default (bugreport:1652)Playtester1-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13777 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-15Cleaning/fixing the previous commits a bitultramage6-10/+10
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13775 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-15- Fixed a bunch of invalid memory access bugs as reported by Valgrind.skotlex13-70/+58
- Updated unit_stop_walking to not move character an extra cell when it is already half-way there unless flag 0x4 is passed. (bugreport:3078) - Fixed the monster MD_CASTSENSOR code not correctly setting the monster's aggressive state. - Corrected a few compiler warnings - Changed a bit the code for SC_BOSSMAPINFO so it is not so hideously ugly. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13774 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-15Changed the type of the 'first' parameter of ↵ultramage2-13/+14
status_calc_pc/mob/pet/homunculus/mercenary functions' from integer flag to a simple boolean. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13773 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-15Removed the undocumented custom level feature from monster spawn lines ↵ultramage4-18/+3
(bugreport:3076). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13772 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-14* More logical modifications on skill_additional_effect thing. Thanks to ↵Inkfish4-80/+49
ultramage. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13771 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-13* Sorry for taking 3 steps for this ugly code. Please take it as a ↵Inkfish1-22/+32
compromise since we do not have enough info to emulate how Aegis does. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13769 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-13Fixed effects being applied improperly in some rare cases.Inkfish2-3/+12
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13768 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-13PNEUMA, BASILICA and SAFETYWALL no longer protect you from such negative ↵Inkfish4-88/+118
status changes as COMA, STUN, FREEZE and etc. (bugreport:1346) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13767 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-13* Fixed combo wait was not canceled when Kick skill was successfully used. ↵Inkfish1-0/+2
(bugreport:1345) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13765 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-12- Removed "serial". Sorry i merged from my source.zephyrus1-3/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13763 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-12- Rental items now can be stackable items too.zephyrus8-74/+169
- Added @font command to test kRO fonts. (Client side requires : Langtype 0 / Hex + Fonts Files on the data folder). - Rental now announces with a maximum time to fix a problem with 1 month or more rentals. - Reduced amount of calculations of Flee on map change (only if required). - More security on Rental items. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13761 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-12- Fixed a bug (important on Battlegrounds if you are using then).zephyrus1-15/+19
* A player can do more than 1 damage to a plant per hit, if he equip only one weapon on left hand and keep the right hand clean and receives Weapon Element buff, for example the post effect of Magnum Break. On battleground it means you can destroy quickly crystals and barricades. - Also fixed the extra bonus of the leaf hand, it was using the bonus of the right hand. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13760 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-12* Fixed Aid Potion can heal the Emperium (bugreport:164)Inkfish1-0/+7
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13759 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-12* Removed DEF reduction display when casting GrandCross.Inkfish3-29/+9
- This might not be official and led to repeated calculation. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13758 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-11Fixed Slow Grace decreasing aspd 10x less than it should (bugreport:2480).ultramage1-1/+3
It was a mistake in r12923 where I didn't realize aspd_rate uses a scale of 1000, not 100. This also fixes Slow Grace not factoring in the Dance Lessons bonus (also 10x less than it should be). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13755 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-11* Fixed a crash when mob uses self-destruct skills (bugreport:2568) [Inkfish]Inkfish1-6/+11
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13754 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-10* Fixed the incorrect DEF reduction of Joint Beat (bugreport:3051)Inkfish1-5/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13751 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-10* Magnetic Earth will never stack even if they are from the same ↵Inkfish1-2/+1
team.(bugreport:2568) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13750 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-10* A typo on my last commitInkfish1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13748 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-10* Now if an NPC is unloaded, only the timer of the player attached to this ↵Inkfish1-3/+6
npc will be deleted. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13747 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-09* Fixed NPC timer errorsInkfish1-16/+18
- ted->rid is not initialized for global timer - timer_id is not set to INVALID_TIMER when timer is deleted - run script after next event is arranged git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13746 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-09* Fixed GX's skill level modifier is missingInkfish1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13745 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-09* Fixed some known and unknown player attached NPC timer problemsInkfish1-84/+124
- Attached timer now can be stopped properly. - Attached timer will now stop if the NPC is unloaded. (bugreport:2510) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13744 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-07* Lv10 Waterball used by mobs should have 81 balls instead of 121Inkfish1-2/+7
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13741 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-07* Fixed up the base success rate of normal strip skillsPlaytester1-1/+5
- normal strip skills: 5% + 5%*level - Full Strip: 5% + 2%*level git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13740 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-07* Clean up for npc timer codeInkfish2-66/+77
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13738 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-07* Update Waterball code due to info updatedInkfish2-2/+9
* A piece of GX casttime def reduction code I forgot to merge git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13737 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-07* Fixed splash damage from Baphomet Card might miss. [Inkfish]Inkfish4-61/+98
* Check if group unit is expired before processing it. (bugreport:3054) [Inkfish] * Fixed Grand Corss outdated behavior (bugreport:1590) [Inkfish] - use new damage formula - DEF is reduced to 2/3 during cast time - block shields switching within attack duration - monsters don't damage themselves any more - intervals between hits are 300ms git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13736 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-07* Added check on stackable items to 'checkweight' (bugreport:1569, ↵Inkfish2-16/+18
bugreport:2756, bugreport 2994) [Inkfish] * Fixed flee penalty wasn't applied for battleground and wouldn't be restored on map change [Inkfish] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13735 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-07* Fixed players can pull water from ME cell (follow up to r13730)Inkfish1-24/+12
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13733 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-06- Fixed an uninitialized variable in r13724. (bugreport:3052)brianluau1-0/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13731 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-04* Players now are allowed to copy the skills the level which is beyond the ↵Inkfish2-30/+44
skill_db max. [Inkfish] * Fixed some behaviors for Waterball (bugreport:3024) [Inkfish] - High level Waterball used by players doesn't increase the number of balls. - Monsters can't pull water from cells with Magnetic Earth. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13730 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-04* Added the md5() script command. (follow up to r13719)brianluau2-2/+18
- Changed kafra storage password to be stored as md5 hash in #kafra_code$. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13728 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-03* Block equipments switching for some skills (bugreport:2900)Inkfish4-1/+43
- cannot change equipments during Arrow Vulcan's cast time - cannot change equipments within Desperado's attack duration git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13724 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-03*Sorry, something I forgot to merge from my own code.Inkfish1-0/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13722 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-03* Players now cannot be revived during pvp respawn delayInkfish2-3/+7
* Fix a logical problem on my last commit git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13720 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-03* Fix several npctimer issues (bugreport:1619, bugreport:1730)Inkfish1-55/+66
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13718 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-03* Fix 'awake' not working (bugreport:2580)Inkfish1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13717 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-03* Do not log damage if it's done by mob itself (bugreport:2933) [Inkfish]Inkfish1-0/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13716 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-02svn:eol-style native for char_sql's int_mercenary code (missing in r13166).ultramage2-241/+241
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13715 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-02* Spirit of Bard and Dancer now only works for mastered skills (bugreport:3037)Playtester2-1/+5
- also fixed an outdated comment in the source code git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13714 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-02- Fixed some typos in the script command documentation. (bugreport:2547)brianluau5-8/+8
- Fixed a misleading message in the custom Job Changer. (bugreport:682) - Updated some NPC's facing directions. (bugreport:3030) - Added missing newline in some ShowWarning(). (bugreport:2940) - Fixed SC_BOSSMAPINFO time being off by 1 minutes (bugreport:3035) Now, the seconds are rounded up to the next whole minute. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13713 54d463be-8e91-2dee-dedb-b68131a5f0ec