2445 Commits

Author SHA1 Message Date
skotlex
da6ee09ccc - Added a check to skip the experience share of characters who are dead or on another map.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8117 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 22:43:20 +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
5d9e8a7325 - Moved SI_CHASEWALK to 119 as concluded by LoneWolf
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8110 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 18:39:04 +00:00
skotlex
b6b81e7051 - Corrected clif.c sending the raw mdef2 value to the client instead of first substracting the "secret vit/2" bonus from it.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8109 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 18:06:22 +00:00
skotlex
1296ac9375 - Added a damage cap to CR_ACIDDEMONSTRATION of INT_MAX/2 to prevent overflows. It is not capped to INT_MAX because damage increasing skills would cause it to still over flow afterwards.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8107 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 17:15:24 +00:00
skotlex
fb0b6dcabf - Fixed NPC_CRITICALSLASH not being considered as a Critical hit by the code.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8105 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 16:41:35 +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
5f6f6ff55e - Some adjustments so that the last-skill-used will be correctly cleared when your combo-time ends.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8101 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 15:30:48 +00:00
toms
b34ef7be7c Fix a bug in atcommand_charspeed
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8100 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 15:13:43 +00:00
DracoRPG
ac75d02b8a Cooking fix
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8097 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 14:56:07 +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
toms
5511cb9ea3 Changed atoi to strtoul for guild-experience's field
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8090 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 09:46:35 +00:00
toms
c831b74d87 Fixed a bug in int_storage.c, temp array doesn't have the good size
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8088 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 08:51:18 +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
c02123e704 - Added a check in the walking code when triggering skills. NPC_SELFDESTRUCTION will no longer cancel walking, it will instead resend the walk packet, this effectively causes the mob to start walking (clientside) while the cast-bar is showing.
- Updated the mob skills so that the marine sphere casts self-destruction with 3 second cast after it starts walking.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8079 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 23:47:33 +00:00
skotlex
587f8e7568 - Fixed a logic error on battle_get_master which was causing infinite loops... ~.~
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8077 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 23:21:54 +00:00
toms
c68d6a5717 Fixed homunculus error message
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8073 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 21:34:01 +00:00
skotlex
ed76d50157 - Rewrote pc_payzeny to not use doubles, it may more accurately prevent charging a player more zeny than they can withhold.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8072 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 21:14:38 +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
28a6fc49c1 Little add on NJ_HUUMA
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8069 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 20:32:43 +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
a70dcb58c6 - Fixed char-txt compilation.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8065 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 17:56:27 +00:00
skotlex
0fbdc22df4 - Fixed Martyr's Reckoning having a cap damage of 32k.
- Changed Scream and Hammerfall's stun duration to 5 seconds.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8064 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 17:49:01 +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
toms
8e191af335 Code cleanup & optimization on guild part of char-server
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8059 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 16:37:02 +00:00
skotlex
abcf47cd67 - Fixed script code data not being free'd if a player quits in the middle of a script.
- Modified run_script so that when there are leaks, it will report the place where run_script was called from as source rather than the inner code of run_script (for debugging purposes)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8057 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 15:40:25 +00:00
skotlex
d239082490 - Made recursive master check the default (otherwise it messes skill -> pet -> player kind of herarchies) and cleaned up some the battle_get_master code to prevent infinite loops in the weird case someone specifies that their master is itself.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8055 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 15:11:17 +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
6ef71063cb - Fixed NPC_SELFDESTRUCTION damaging yourself, causing the source to be knocked back, as well as making others in the splash damage not receive any damage if they are hurt after the caster.
- Fixed NPC_RUN not setting the mob's state to MSS_WALK (normally not set by the mob ai)
- unit_walktoxy flag&2 setting will now also ignore unit_can_move, for a forced walk. 
- Adjusted NPC_RUN level of Marine Spheres (5->7 cells)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8044 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 04:09:01 +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
2d7b332124 - Should have fixed the cooking sets not displaying all cooking available items.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8036 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 16:08:43 +00:00
skotlex
cd50714a47 - Figured out and fixed the issue with Volcano/Deluge/Violent Gale not really working. Thanks to Mpeg for noting it out.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8034 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 16:02:19 +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
7f0c0e574c - Added the missing lines to enable script command "kickwaitingroomall"
- Magic Rod's can-act delay will no longer be applied when you absorb a spell.
- Fixed Don't Forget Me increase speed instead of decreasing it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8031 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 14:52:22 +00:00
skotlex
65e0327024 - Modified setlabel so that the script engine barks when you are trying to use the same label name as a constant or variable name.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8027 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 13:52:17 +00:00
skotlex
2918287bd5 - Fixed the subnet 0 mask being reset to 0 when someone goes up on the fame rankings.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8021 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 04:24:45 +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
toms
be50bd5620 Little fix on duel
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8014 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31 22:41:40 +00:00
toms
35fc0dc4f3 Added possibility to restrict duel usage to same map
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8013 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31 21:21:55 +00:00
toms
5e47973166 Merged mpeg's fix on ninja skills
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8012 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-31 20:19:56 +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