summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2009-07-22Added proper bounds of INT_MIN to INT_MAX for hp/sp when being sent to/from ↵Paradox924X1-4/+4
status_damage/status_heal for negative values because of INT_MAX being (-INT_MIN - 1). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13955 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-18- Fixed the config description for 'random_monster_checklv' (follow up to ↵brianluau2-2/+2
r13952). (bugreport:3378) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13954 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-18* Dead branches no longer check for players' level. (bugreport:3378)Inkfish2-2/+3
* The Lovers Card won't teleport anyone on PVP/WoE/BG maps. (bugreport:3371) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13952 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-11Some insignificant code tweaks.ultramage4-6/+8
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13945 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-11* Some updates for range check. (bugreport:3339)Inkfish4-4/+15
- Monsters shouldn't use skills if the target is within its attack range but is out of the skill range. - Monsters' skill range is no longer 9 by default. - Range for players' attacks and skills should always check for a circular area. - The range of Magnetic Earth is 2. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13944 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-09- Added documentation for 'getmobdrops' (follow up to r13101). (bugreport:3351)brianluau1-19/+20
- Added documentation for 'areamobuseskill' (follow up to r13897). (bugreport:3352) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13942 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-07Skills that have multiple hits should do 1 damage per hit to plants.Inkfish1-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13938 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-05You should lose hp anyway even if your Martyr's Reckoning is perfect dodged.Inkfish1-8/+10
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13934 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-04* Extended ATF_SKILL to ATF_MAGIC and ATF_MISC.Inkfish3-6/+10
* r13932 Fixed a wrong check on hp in Intimidate code. (bugreport:3305) (I forgot to write the message.) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13933 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-04git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13932 ↵Inkfish1-1/+1
54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-04TK_POWER shouldn't count the player him/herself for the skill.Inkfish1-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13931 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-04* Martyr's Reckoning can be perfect dodged.Inkfish1-1/+5
* Casting Flying Kick while running and in the spurt status doubles the damage dealt without spurt status. (bugreport:1898) - TODO: bonus on running is still not correct. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13929 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-02- Re-added { } that were accidentally removed in last commit.brianluau1-1/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13927 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-02- Added mosk_que to the mapcache (follow up to r13903).brianluau1-20/+19
- Fixed some input checks and variable types in Megingjard quest. - Updated SQL item/mob databases to latest. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13926 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-02* Updated autobonus [Inkfish]Inkfish2-8/+5
- added documentation for autobonus. - invoke status_calc_pc to complete autobonus execution and this will refresh client display as well. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13922 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-30Fixed when dynamic_mobs is active, reloading script right after the last ↵Inkfish1-0/+5
player having left a map leads to permanet mobs not spawning on that map.(bugreport:2736) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13921 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-30Fixed sql char deletion code using a broken pet deletion query (ran very ↵ultramage3-218/+150
slow, and had a typo in a binary shift operation) (bugreport:3304). Fixed change r13774 to the code responsible for deciding whether to move 1 extra cell when stopping walking; it had its logic inverted by mistake (bugreport:3312). Cleaned up the itemlist, cartlist and storagelist gm command code: - fixed buffer overflows in all three functions (bugreport:456). - merged all three atcommand functions into a single one; the appropriate behavior is detected from the command's name. - using the StringBuf class instead of static-size buffers and string operations for more efficient and safe processing. - using 'jname' (the one without underscores) as the primary item name in the list, and not using the aegis name for cards at all (since it's almost identical). - fixed forged item details never being displayed due to a missing strcat(). - extended item info (crafted/named items, pet eggs) will now be displayed for storage and cart list as well. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13920 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-29* Fixed attack not counted as connect when dodged and got damage from skill ↵Inkfish1-0/+2
bonus like Weaponry Research. * Corrected the description for vit_penalty_type. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13918 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-28- Fixed a typo in r13915, causing SC_values 247+ to be off by one.brianluau1-1/+1
- Reverted the Continental Guard change from r13911 (that's how it is on official). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13917 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-28fixed some typos on autobonusInkfish2-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13916 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-28* Implemented script command "autobonus". [Inkfish]Inkfish8-238/+274
- "autobonus" is similar to "bonusautoscript", however it has a timer of its own. - Updated itemdb changing items bonus using "bonusautoscript + sc_start" mode to "autobonus + bonus" mode. - Remove bonusautoscript and status changes that was needed by bonusautoscript and is no longer in use. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13915 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-23Minor update to atcommand_jailfor and atcommand_char_ban's modif_p var ↵Paradox924X1-2/+8
incrementation for minute-based bans/jails. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13910 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-21Fixed Backstap bypassing battle_check_target.Inkfish1-8/+8
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13902 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-20- Instancing System (Thanks to Sirius White who did most of the code, with ↵zephyrus19-53/+1244
some of my work to implement client side information, some optimizations and bugfixes). Also thanks to contributions from UEAUP team and Orcao. - Fixed a bug on areamobuseskill and changed it to make it as Aegis. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13901 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-20* Changed Asura Strike/Jump Kick to target skill to get rid of the "target ↵Inkfish5-50/+39
delay". (bugreport:2174) - skill tree will be re-sent on status change to handle using these two skills during combo. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13900 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-20Fixed a typo in buildin_mobuseskill_subInkfish1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13899 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-19* Implemented script command "areamobuseskill" and skill NPC_INVINCIBLE and ↵Inkfish10-22/+122
NPC_INVINCIBLEOFF. (topic:217330) * Using items no longer cancels invincibility(but using target and ground skills through items does). (bugreport:3259) * Fixed Butterfly Wings not working during GVG. (bugreport:3264) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13897 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-17Fixed wings not working when used on top of Magnetic Earth.Inkfish1-1/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13896 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-16* Turn Undead shouldn't apply aftercast delay when casted on a "living" ↵Inkfish1-2/+18
entity. (bugreport:1740) * Autocasts should always fail if the target is outside the skill range or an obstacle is in between. (bugreport:3201) * The Lovers should affect the target instead of the caster. (bugreport:3252) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13895 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-16Fixed an exploit that makes guild skill get higher level than the max ↵Inkfish7-14/+16
defined in guild_skill_tree. (bugreport:3241) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13894 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-15Removed the 'src' parameter from skill_delunitgroup() (see r5911) ↵ultramage4-15/+16
(bugreport:3253). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13893 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-15* Skill through items will not be blocked when 90% overweight. (bugreport:3246)Inkfish2-16/+17
* Now you can drop items when hiding. * Now you can't logout when hiding, cloaking or chase walking. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13892 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-15Improving the r13888 crashfix to cover similar crash scenarios discovered:ultramage5-66/+24
Reordered code in status_change_end(SC_DANCING) so that an ensemble's skill unit group is deleted only after removing both performers' status changes. Modified the call to skill_delunitgroup() IN status_change_end(SC_DANCING) so that it always processes the group's true owner and not others (bugreport:3253). Replaced calls to skill_stop_dancing() with status_change_end(SC_DANCING), since it now provides identical functionality. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13891 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-14Fixed a crash due to group being redeleted when players are performing an ↵Inkfish1-1/+4
ensemble and one of the partner's sp run out. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13888 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-13Changed a few sprintf's that had no format arguments to strcpy's.Paradox924X3-6/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13887 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-13* If both Double Attack and critical attack have chance to trigger within ↵Inkfish2-32/+26
one attack, Double Attack takes priority. (bugreport:3231) * Fixed Butterfly Wings not working on maps blocking Teleport. (bugreport:3236) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13886 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-12Fixed "arrow_atk" flag never being reset results in arrow consumption on ↵Inkfish1-0/+2
itemskills and autocasts. (bugreport:3233) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13884 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-12* Fixed itemskill not bypassing Silence, SteelBody, Berserk and the like. ↵Inkfish2-5/+7
(bugreport:3232) * Fury and Asura no longer disable SP regen on any other classes than Monk/Champion.(bugreport:3200) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13883 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-11* Fixed TaTaMiGaEShi(Improvised Defense) not working.Inkfish3-31/+32
* Implemented new cooking success formula. Now cooking experience starts at 0.(bugreport:2439) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13881 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-11Adjusted the code order in clif_parse_gmkick() to avoid invalid pointer ↵ultramage1-6/+13
access crashes when kicking mobs/npcs (bugreport:3229). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13880 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-09Fixed applying autocasts with negative rate before the positive one was ↵Inkfish1-47/+19
applied made it fail to remove the autocast. (bugreport:3193) (related revision: r7312, r9905, r12041) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13872 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-09Added a check to prevent resetting a mob's hp to full when it levels up ↵ultramage1-1/+2
using the custom mobs_level_up feature (accidentally deleted in r13789) (bugreport:3216). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13871 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-08Follow up to r13867, corrected the newly added MD_TARGETWEAK. Monsters with ↵L0ne_W0lf1-1/+1
this mode will now only target players five level LOWER than itself. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13869 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-08- Added mob mode 0x4000, MD_TARGETWEAK: It makes aggro monsters only chase ↵skotlex2-1/+7
characters whose level is no higher than the monster's +5. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13867 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-08- Added 'font' config in atcommand_athena.conf (bugreport:3123)brianluau1-14/+14
- Changed some defaults in src to match defaults in config. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13865 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-08- Fixed Swordsman Medallion to be usable by Star Gladiators.skotlex2-2/+5
- Fixed Thief Medallion to be usable by Ninjas. - Fixed Valorous Assassin's Damascus to reduce the strength of its effect. - Corrected the AUTOLOOT_DISTANCE code not checking for map changes. - Fixed clif_change_option's "unknown field" to be the character's karma. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13864 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-08Fixed bHPGainValue and bSPGainValue worked on all types of attacks and was ↵Inkfish2-34/+33
only activated on mob's death.(bugreport:3193) [Inkfish] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13863 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-08* Added a configuration for whether damage of EarthQuake with single target ↵Inkfish3-30/+37
can be reflected. * Fixed Wizard Spirit can block reflected magical damage other than Kaite's.(bugreport:3161) * Fixed Kaite works against bosses.(follow up to r13857) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13860 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-07Fixing the 'name requests work at any distance' exploit (bugreport:3206).ultramage1-0/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13858 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-07Magical damage reflection now works against boss monsters and only on target ↵Inkfish1-2/+3
skill(but EarthQuake with one target is an exception).(bugreport:3026, bugreport:2527) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13857 54d463be-8e91-2dee-dedb-b68131a5f0ec