331 Commits

Author SHA1 Message Date
toms
ed8b093cc2 - Corrected map_random_dir algorithm
- Fixed homunc natural heal and little code cleanup

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8327 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-17 22:38:25 +00:00
skotlex
6a8503e7b1 - Fixed being unable to recast Adrenaline Rush to reset the duration timers.
- Added structure regen_data to handle unified regen logic for bl objects. Eh... this is wip, so it isn't used yet, just the preliminar structure is there... (somehow I lost all other progress I had done on it x.x)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8323 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-17 00:38:19 +00:00
skotlex
5c44979d67 - Applied multiple fixes which should take care of making homun save/load work on TXT now.
- Added Gatling Fever's batk bonus.
- Some cleaning in status_damage which should prevent trying to free already free'd pointers when unit_remove_map invokes unit_free (when status_damage was going to invoke unit_free anyway)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8308 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-15 23:30:48 +00:00
skotlex
ee8298bb8a - Cleaned up some of the pet related @/# commands, same for some script commands.
- Moved s_pet structure from map_session_data to pet_data, this enabled the removal of a few redundant values in the pet_data structure (name, class, equip)
- Pet offensive skills who's inf value is self will be casted on the pet now (for stuff like Grand Cross)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8301 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-15 21:12:45 +00:00
skotlex
3a6cea35b4 - Added a crash-fix on status_calc_bl_sub_homun to abort in case the homun has no master (need to clean up this function later)
- Tested char-txt load/save, it seems to be working fine.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8296 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-15 17:57:44 +00:00
skotlex
baee95996c - Added SCB_DYE which marks which status-changes need a forced cloth dye change to 0 due to sprite issues. Currently only NJ_BUNSINJYUTSU's status uses it.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8293 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-15 15:42:55 +00:00
skotlex
9c6d56be63 - Asura Strike now moves you to the target on fail always (unless the target does not exists or is in another map or there's a obstacle on the way)
- Corrected skill_attack_area hitting dead characters on it's splash range.
- Swapped the values for OPTION_XMAS and OPTION_FLYING. This should enable SG to show the fly animation again, even if sometimes others will see him as Santa. As for xmas cloth, it shouldn't make much of a difference since the view class is changed to christmas anyway.
- Moved the AM_CALLHOMUN code from castend_id to castend_pos.
- Made AM_CALLHOMUN and AM_RESURRECTHOMUN be like the wedding skills, where they automatically pick a spot around you.
- Cleaned up some the AM_RESURRECTHOMUN code. Hopefully it works now.
- Cleaned up some the hom evolution code.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8292 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-15 15:26:51 +00:00
skotlex
41f2f3ca40 - Increased Run's walk speed bonus to 25->50%
- Modified emergency_call setting to allow for more specific configuration (woe/non-woe, gvg-grounds/non-gvg-grounds, disable from nowarpto maps), see skill.conf for details.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8275 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-14 16:30:14 +00:00
skotlex
1d2c4f8950 - Removed @itemcheck as it was totally pointless.
- Corrected states killer/killable being easily dispellable.
- Fixed the totally wrong text messages being used for @killer/@killable related atcommands, added appropiate entries to msg_athena
- Magic and Misc attacks will now get type "flee" when they do less than 1 damage, this blocks them from causing additional status effects when they are blocked.
- Cleaned up a bit the Basilica code, it should now properly end when you walk.
- Added an unnecessary qty check when inserting cards :P
- Fixed some logs not working when you enabled all logs.
- Corrected unmute being a level 60 command by default (should be 80)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8256 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-13 06:14:27 +00:00
skotlex
9080a1b373 - Corrected the mapif_parse_PartyChangeMap function to correctly update level-range when someone logs on/off, fixes being unable to set even-share on once it's been broken even when the characters out of range logoff.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8254 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-13 05:07:13 +00:00
blackhole89
11d3442df9 See Changelog.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8253 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-12 22:47:16 +00:00
skotlex
c39d3b2a02 - Fixed Dancers/Bards being able to use normal attacks while performing.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8245 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-12 02:00:52 +00:00
skotlex
155f9c12f5 - Fixed the item group bonus not working.
- Removed unnecessary member id from the item group structure.
- Fixed songs/dances always being considered overlapped with themselves.
- Added some additional song/dance overlap code that should correctly change the effect of songs/dances when they overlap.
- Added a check so that the status-change packet is always send to self when the inflicted char is a player disguised.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8242 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-11 01:25:40 +00:00
skotlex
6db2d44adb - Hopefully fixed family-party-even-share not breaking when a member logs out.
- Corrected Advanced Jobs HP bonus from 30% -> 25%


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8238 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-10 20:17:38 +00:00
skotlex
26a6620863 - Some code cleaning in status.c
- Reflected damage will now also have a chance of draining hp/sp.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8164 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-07 16:53:10 +00:00
skotlex
85655282d4 - Adjusted the order in which option/sc change packets are sent to match Aegis's
- Added script command getpartyleader through which you can retrieve various information of a party's leader.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8162 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-07 16:19:42 +00:00
Vicious
6cb68e6f4a mpeg's ninja work
http://gpegon.free.fr/ea/ninja_08-07-06_mpeg.txt

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8160 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-07 15:12:05 +00:00
skotlex
04edacd3d9 - Changed function itemdb_group to itemdb_group_bonus, it now calculates the total group bonuses of a player for a given item.
- Changed itemhealrate to itemgrouphealrate, added a structure itemhealrate to allow storing item-healing bonuses per item.
- Modified bAddItemHealRate so it can receive both item-id and item-group values (since the first item-id is +500, there's no risk of mixing them up).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8136 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-04 20:04:16 +00:00
skotlex
5ef4f71588 - Removed settings enemy_critical_rate, homun_critical_rate. Added settings enable_critical (defaults to specify only players), mob_critical_rate and critical_rate. The last applies to all non-mobs and non-players (battle/battle.conf)
- Removed settings mob_npc_warp, mob_warpportal. Replaced with setting mob_warp which specifies which types of warp can a mob step into (battle/monster.conf)
- Updated status_calc_misc so that it also handles the BL_PC case, removed redundant info from status_calc_pc, and moving the SNovice Max Hp bonus to status_base_pc_maxhp


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8135 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-04 19:30:15 +00:00
skotlex
8c98388bc5 - Enabled Mastery damage on Soul Breaker again, moved adv katar mastery out of the mastery function so that it may apply to all skills except Soul Breaker.
- Changed name of the setting log_pick to log_filter since that's what it does now.
- Modified enable_logs so that instead of a 0/1 setting, you can specify which kind of events to log (so you can use a combination), see log_athena for the bitmask configuration.
- Cleaned a bit the contents of log_athena.conf


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8129 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-04 16:38:54 +00:00
skotlex
b0d9f8bbd3 - Reverted the previous change, chasewalk has no icon, only the str-bonus has that fist icon now.
- Allowed chase-walk to display a skill animation when using it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8115 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 21:19:46 +00:00
skotlex
2c6377dc33 - Readjusted the Chasewalk icon to be as it should be.
- GS_DESPERADO is now a short-range attack skill.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8114 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 20:35:48 +00:00
skotlex
1728ee1850 - Changed the Battle-Orders icon to be the Strength Up icon (for Chasewalk's str bonus).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8113 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 19:59:22 +00:00
skotlex
5d9e6b4a71 - GAHH, I am sick tired of typing TBL_HOMUNCULUS/BL_HOMUNCULUS all over the place. The idea is that the TBL* versions are supposed to be easier to use than the standard structure definition, but using TBL_HOMUNCULUS as an alias to struct homun_data kinda beats the purpose! Renamed them all to TBL_HOM/BL_HOM.
- Fixed using the right-hand weapon's size modifiers regardless of which weapon was being used.
- Simplified the ignore-size check by making the Weapon Perfection check be done when specifying the flag, also moved the size-fix property of riding spear-knights to status_calc_pc.
- Removed variable hd from status_calc_bl as it's not needed.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8112 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 19:45:12 +00:00
skotlex
187fb75379 - Added RUDE_ATTACKED_COUNT so you can easily adjust how many rude-attacks should happen before a mob uses the rude-attacked skill. Value has been set to 2 for now.
- Now when a mob changes target (to someone they can hit) their rude-attacked count won't be reset, but instead will be reduced by one.
- SC_SPEEDUP0 can now stack with the other speed raising buffs.
- Changed the inf2 value of SA_DISPEL so it can be casted on party/guild mates, but not yourself.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8104 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 15:54:46 +00:00
skotlex
34eea8ae57 - Cleaned up the last NJ update code.
- Added @ command `charspeed`
- Fixed @jailfor using MAP_PRONTERA as jail instead of MAP_JAIL
- Removed case for GS_SPREADATTACK on damage packets to see if the skill displays correctly now.
- Corrected Deluge/Volcano/V. Gale overlaps so that the placing tiles are removed, NOT the ones who were already placed.
- Made SC_SPEEDUP0 and SC_SPEEDUP1 use different icon IDs, to fix icon-confusion when both are enabled at a time.
- Mob rude-attacked count is not reset now on picking a new char (gotta investigate this further)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8096 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 14:39:38 +00:00
skotlex
aebca964db - Modified yet again SC_SILENCE after iRO tests from Entwined on IRC. Silence now ONLY blocks skills from being used, it will not stop on-going casts.
- Updated status_cast_cancel to also include silence (so the cast bar is cancelled if you are silenced during it)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8086 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 01:50:40 +00:00
skotlex
689c7368e6 - Updated the way SC_SILENCE works. From what I remember (from previous forum discussions) it: 1- Always blocks skills from being used. 2- Will only block a skill when the cast-bar ends IF the skill is targetted. If anyone wants to debate to get this changed, make an appropiate forum topic in the svn development area to discuss.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8083 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 00:45:49 +00:00
skotlex
f131a8bda7 - Moved Full Buster blind penalty to skill_counter_additional_effect
- Added a dummy blind duration of 10 secs to FullBuster.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8082 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 00:27:22 +00:00
skotlex
8961bc591d - Fixed failing to create Deadly Poison Bottles damaging 50% of your max life instead of 25%
- Added the missing status-change flags to SC_FREEZE to signal it should modify def and magic def


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8070 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 21:00:45 +00:00
toms
20da0f1913 Merged Mpeg's work on Ninja skills
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8068 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 18:33:34 +00:00
skotlex
8d7c008a65 - Fixed Defender Raising Walk speed instead of diminishing it.
- Swaped val3/val4 of defender so that all walking penalty skills store said penalty in val3.
- Added a check on status-change load to prevent loading speed-affecting status when their speed adjustment is 0 (prevents division by zero)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8061 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 17:06:16 +00:00
skotlex
19a4f0b31a - Recoded the GuildAura code to use val3 & val4, allowing much greater stat bonuses (in case someone wants to get Guild Skill level 20 or something crazy like that)
- Fixed compilation error...


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8053 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 14:55:14 +00:00
skotlex
7a082b02a8 - Updated battle_check_target so that all alchemist summoned mobs can be target by everyone.
- Cleaned up skill_check_condition_mob_master_sub, it will now count both total number of summoned mobs and amount that belong to the same type.
- Corrected AM_CANNIBALIZE so it will fail if you already have plants of another type out.
- Using NPC_SELFDESTRUCTION no longer will make the caster stop walking.
- Removed SI_GUILDAURA, and replaced it with SI_LANDENDOW, now Volcano/Deluge/V. Gale will get that funky icon instead.
- Changed clif_hominfo to receive both sd and hd as parameters
- Some redundancy cleaning in mercenary.c
- Moved updating of sd->mercenary.hp from merc_damage to pc_makesavestatus.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8048 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 14:27:17 +00:00
skotlex
14b59636c7 - Made Deluge/volcano/v. gale be castable on top of each other again
- Modified unit_walktoxy and NPC_RUN to enable running even when the caster does not has the MD_CANMOVE bit on.
- PF_MINDBREAKER will now silently fail if you try to use it on someone who already has the status active.
- Cleaned up yet again skill_landprotector, now new cells of Deluge/Volcano/V.Gale will delete previous cells when they are recasted on top of each other.
- Summoned Marine Spheres no longer get the MD_CANMOVE bit.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8039 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 18:37:16 +00:00
skotlex
56c9df875c - Cleaned up some more the SC_JAILED code
- merged in atcommands jailfor, jailtime, charjailtime. Thanks to Meruru and Coltaro for the code.
- Cleaned the code of atcommnds jail and unjail
- Be warned that the code MAY contain bugs as I adjusted it to save the character's position before jailing, allowing the automatic unjailing to warp you back to the exact spot you were at before being jailed.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8038 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 17:59:34 +00:00
skotlex
4550e45f33 - Modified Self Destruction, so that Marine Spheres in non-versus maps will hurt only enemies, while in all other situations this skill will hurt everyone around them.
- Expanded setting debuff_on_logout so that &1 removes negative buffs and &2 removes positive buffs.
- Food status boosts will no longer end on death, but they will end when you respawn or logout.
- Added battle config file status.conf, moved some settings from skill.conf and battle.conf to it since they are entirely Status-Change related.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8033 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 15:56:57 +00:00
skotlex
010bec3575 - Updated Poison React chance to counter and number of counters as per skill description updates.
- Fixed Sharpshooting being counted as a magic attack, and hence, using your MATK as base damage.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8019 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 01:54:20 +00:00
skotlex
cd1b6a71e9 - Fixed NPC_STOP id value in skill_cast_db
- Bladestop will no longer stop when you push either of the characters around.
- Fixed Enchant Poison having a near 100% chance of poisoning target on attack.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8015 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 00:32:54 +00:00
skotlex
5bbd6fe6b9 - Corrected a status_get_race call which should be status_get_race2 in misc attacks.
- Moved the Devotion code to the top of the SC list in status_damage, meaning that now stuff like being asleep or confused won't end if you are hit, but the damage is absorbed by devotion.
- Some cleanups in battle.c (replaced usage of status_get_* for status->*)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8009 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31 18:38:51 +00:00
skotlex
2fd9920c75 - Changed the variable message in parsing normal text from unsigned char to char (should shut up some compiler warnings)
- Added the Soul Link of Rogue speed bonus to Chase-Walk. Since there's no information of how much the bonus should be, it currently is a conservative 10%.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8007 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31 16:00:38 +00:00
skotlex
56580d56f0 - Removed incorrect "Waterball range+1 when standing on suiton" feature.
- Corrected the Speed update code to prevent sending "walk to xy" packets twice when the affected character is a player.
- Expanded mob can't move warning to print out where this mob was stuck at (map, x,y)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7998 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31 14:26:04 +00:00
toms
30c231ad0c Fixed segmentation fault in status_change_end, vd wasn't initialized
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7995 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31 09:13:19 +00:00
skotlex
8c1698e2e5 - Mob casted Sanctuary will no longer always heal it's targets regardless of element/race
- Status change packets will now use as criteria for sending the actual view_class instead of player/not-player. This will fix status-changes displaying improperly on clones, and also possible crashes with disguised players.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7984 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-30 20:43:57 +00:00
toms
d05578fe70 Merged mpeg's fix on ninja skills and SA_VOLCANO,SA_DELUGE,SA_VIOLENTGALE
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7983 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-30 19:32:53 +00:00
skotlex
2c88556eb7 - Added bNoMiscDamage setting so you can specify misc-damage blocking from skills. Modified battle_calc_damage so that even Pressure and similar skills will be affected by this setting.
- Removed SC_LANDPROTECTOR as it wasn't being used by anything.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7982 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-30 18:56:33 +00:00
Vicious
f0d0180409 GS Skill updates/fixes
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7979 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-30 15:48:12 +00:00
skotlex
2239037185 - Some small bug fixes discovered while merging.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7961 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-29 09:01:36 +00:00
skotlex
7cdbea9cf2 - Cleaned up the NJ update code.
- Restored code which was removed (stuff like SC_SKA)
- Fixed possible crashes on some NJ skills if used by non-players.
- Fixed most NJ magic spells doing more damage than they should.
- Fixed ZenyNage being able to do more damage than zeny you have.
- Cleaned up skill setting code for Suiton and Kaensin
- Ordered SC_* definitions in status.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7947 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28 15:11:17 +00:00
skotlex
1d754d8cd8 - Some cleaning of battle_drain, Evil Druid card should work now.
- Made status_damage allow damaging of objects not on a map, this should fix pet-catching making the mob never respawn again.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7946 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-28 13:33:51 +00:00