2386 Commits

Author SHA1 Message Date
toms
4940b38ba3 Fixed homunc skill up bug
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8215 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-09 22:17:09 +00:00
skotlex
49f0ddf3fa - Adjusted some the dance/song/encore code so that the source of an ensemble will always get checked, so that walking out of an ensemble skill should make it end now. However, since ensembles requires two characters and only one is marged as source of the ensemble.... this may not be finished, some kind of check is required so that the partner will also get a force-check and not just he who started the ensemble.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8213 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-09 20:50:59 +00:00
skotlex
ce0613fb1c - Added crash protection to the mob_db txt reading when the mob_db file has lines with insufficient number of columns.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8212 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-09 19:24:24 +00:00
skotlex
07e449bc5c - Should have fixed a signed/unsigned warning in login-txt
- Moved the class-change code from battle_calc_weapon_attack to skill_additional_effect.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8211 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-09 17:58:00 +00:00
skotlex
4c3eae0bbe - Cleaned up some the code of TF_DOUBLE and GS_CHAINACTION.
- Removed the code which was auto-setting attacks that do no damage to type FLEE, since that was disabling status-effects which should incur even when the damage was blocked.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8208 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-09 16:29:25 +00:00
skotlex
3fc01d5169 - Trade requests will now fail when either character is unable to act (character in storage, vending, interacting with an npc, petrified, etc)
- Change the default of attack_attr_none to all classes except players. This means that pet/mobs/homun will always do normal attacks with no-element modifiers (but elemental reduction cards still apply)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8207 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-09 14:42:08 +00:00
toms
5cdcef4080 Heard skotlex voice, changed all msg_table[] into msg_txt() in atcommand.c ;)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8201 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-09 12:34:03 +00:00
skotlex
4fe5bc0478 - Got rid of the "i might be used uninitialized on this function" warning in `buildin_getpartyleader'
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8199 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-09 02:29:11 +00:00
skotlex
9456f83ac2 - Fixed the char-server not invoking the party_calc_state function when the third party-member is added to a party, hence failing to check for families and disabling even share from them unless all three relog first (state is correctly calculated when party is first loaded).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8197 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-09 02:19:53 +00:00
skotlex
0c91b56537 - Crash-protections in the mail-checking function.
- Changed a bunch of msg_table use into msg_txt in atcommand.c, there's still a lot left... am not feeling inspired to finish this >.<
- Some additional parenthesis on equipment check in pc_equipitem, seems to have fixed the mid/lower headgear-sprites not showing up.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8195 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-09 00:49:38 +00:00
skotlex
895eacb80a - Added back missing state set to prevent Ankle-Snare from being retrieved after the target dies.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8194 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-08 21:33:28 +00:00
toms
c2b0590289 Fixed compilation warning
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8191 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-08 19:49:55 +00:00
skotlex
359899fbb2 - Added a check to handle Spider Web as a targetted skill. If there's more than one character on the targetted cell, a different one may get trapped, but it will mostly do as it is now.
- Added check to Asura so that it will move you to the target when it fails ONLY when you can cast the skill on the target (not stunned, asleep, target not hidden, etc)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8190 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-08 19:05:35 +00:00
skotlex
d12f317dbb - Changed the map_freeblock_unlock code so that when there's an "already free'd pointer" error, the memory manager will print out the invoking function rather than map_freeblock_unlock, this should help fix it up next time it happens.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8189 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-08 18:55:46 +00:00
skotlex
8157062811 - Casting Kaensin will clear out Suiton and viceversa now.
- Fixed drop-rates (@whodrops) getting duplicates when you use @reloadmobdb
- Fixed unjailing not sending characters to Prontera.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8188 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-08 17:55:37 +00:00
skotlex
b62481ed5b - Removed config settings display_delay_skill_fail and display_snatcher_skill_fail, replaced them with display_skill_fail, which can be used to determine whether you hide ALL skill-failed messages, those from delay, those from Snatcher or those from Envenom (battle/skill.conf)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8186 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-08 15:33:18 +00:00
skotlex
ee59874725 - Fixed yet again AS_SPLASHER doing full damage on all characters. Now you can use the NK split damage value in the skill_db if you want damage divided by the amount of targets rather than by 2.
- Fixed crash on the battle_drain functions.
- Cleaned up HAMI_CASTLE, HLIF_AVOID, HAMI_DEFENCE so that it's usable by other types of objects other than Homunculus. 
- Cleaned up the Asura Strike code so that the SP/Spheres/States is not consumed when the skill fails due to Fog of Wall.
- When a negative delay for a skill is specified, this delay is now added on top of the character's amotion rather than adelay
- Modified main.sql to make the guild table allow NULL on the emblem data.
- Added file conf-tmpl/Changelog.txt


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8185 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-08 15:07:29 +00:00
skotlex
29fdbcae3b - Fixed the login-sql server replying to the change-sex packet with the wrong gender, causing the char-server to screw-up job-change updates.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8180 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-08 03:07:57 +00:00
skotlex
367750c38c - Cleaned up the apparent mess that is pc_skill. Hopefully it SHOULD fix as described on the docs now, this should also fix adopting not correctly giving the family-related skills. The flag value of skill should be: 0 to set the skill (if skill level is 0, this removes a learned skill), 1 grants the skill as an item bonus which is temporary, and 2 will add a skill bonus like 1, except the skill level adds up to whatever level already known of that skill.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8179 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-08 02:18:01 +00:00
skotlex
b372f8dfce - Changed define EQP_WEAPON to specify only the right-hand weapon, added define EQP_ARMS to specify both arm-slots.
- Some minor code cleanups to take account for the above, fixed Strip shield/weapon removing both.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8177 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-08 01:16:56 +00:00
skotlex
e9bee91ea7 - Cleaned up the Asura code so that when the skill fails your SP/Spheres/Fury are all taken away always, as well as moving you next to the target (as long as the target still exists within a reachable path from your position)
- SC_GUILDAURA is now removed on logout.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8175 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-07 20:31:40 +00:00
skotlex
81acdb7a46 - Fixed Venom Splasher doing half-damage instead of full-damage to the "exploding" character.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8174 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-07 19:54:14 +00:00
skotlex
527a7ac223 - Hopefully fixed the party_even_share cast-overflow bug as reported by Adobe.
- Standarized the autosave interval setting to be always in seconds regardless of type.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8172 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-07 19:48:27 +00:00
skotlex
71b9605a0c - Removed the setting of blow-count to 0 when the target is a boss on the battle_calc_* functions, now skill_blown will fail when the source is different from the target and the target is a boss.
- Some parenthesis cleanup before invoking battle_calc_base_damage, could be fixing the current issue with arrow attacks not adding the arrow damage.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8170 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-07 19:07:37 +00:00
skotlex
b577d98d88 - Fixed the map_search_freecell error which was making mobs fail to respawn.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8169 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-07 18:46:00 +00:00
skotlex
871e79bf38 - Added in Lupus's suggestion of not making multi-slot headgears set all slot view-ids, which supposedly causes the client to re-draw the headgear multiple times on characters.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8168 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-07 18:42:59 +00:00
skotlex
6daec0f2c0 - Cleaned some of mpeg's updated work.
- Fixed HT_BLITZBEAT hitting neutral characters when it auto-triggers.
- Simplified the Tatami Gaeshi code.
- Fixed AS_SPLASHER doing full damage on everyone except targetted char instead of the other way around.
- Fixed KAENSIN clearing out SUITON cells and viceversa.
- The spawn area is now seen as range rather than absolute for mob spawn lines. This means that x,y,10,10 will spawn the mob on a 21x21 grid around the given x,y point.
- Some clean up of the mob-spawn code. Now you can specify negative areas, so that a spawn location such as 100,150,0,-1 will spawn a mob always on x=100, but any Y value of the current map.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8165 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-07 17:43:53 +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
8fa60b9249 - Adjusted Battle_check_target so that alchemist summoned mobs are targetted by everyone as long as 1. The top-level master is a player and 2. the actual attacker is not a mob-type.
- Added config force_random_spawn which overrides the spawn-files defined coordinates to make all mobs always spawn randomly on the map.
- SC_SPEEDUP0 is no longer dispellable by SA_DISPEL


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8159 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-07 14:38:23 +00:00
toms
35b7140aec Updated item_db.sql to latest.
Little fixes on homunc (hp/sp are now saved and init stats changed)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8154 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-06 21:28:14 +00:00
skotlex
5752836839 - Fixed a compile warning.
- Added a commented piece of code in clif_parse_LoadEndAck which will update your direction to wherever you were facing before warping. Should this be the default? Nearby people DO see you facing on the same direction before warping, it's only yourself that will always see you facing north on spawn.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8143 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-05 02:40:40 +00:00
skotlex
4b49756a40 - Updated @mobinfo to display slots in the drop information.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8141 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-05 01:32:02 +00:00
skotlex
f2acf50b24 - Fixed flag.elefix not being respected in battle_calc_misc_damage.
- Some code cleanups in battle_calc_damage.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8139 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-04 21:29:09 +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
c79270a22f - Some minor code cleanups.
- Cleaned up skill code for NJ_BAKUENRYU
- Unified splash-damage packet display for NJ_HUUMA and other splash skills (like Brandish spear)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8134 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-04 18:20:02 +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
f029f7bc6e - Hide/Chasewalk will again stop screaming skill name (I guess displaying the skill animation wasn't such a good idea afterall)
- Soul Breaker will no longer receive Mastery damage.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8126 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-04 13:43:44 +00:00
toms
8c8609bece Fixed warning:'type' might be used uninitialized in this function
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8123 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-04 09:43:33 +00:00
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