1536 Commits

Author SHA1 Message Date
toms
3db5a31015 Update homunc's speed when master's speed changes, should avoid homunc's speed = 0 on login (when homunc's stats are calculated before master's stats)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9110 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-31 16:24:17 +00:00
skotlex
4435ff8b9c - When Kaizel (or super novice rebirth skill) triggers, you get debuffed now.
- Modified the player_cloak_check_type and monster_cloak_check_type settings. 1 makes it check for walls, 2 makes cloaking NOT end on normal attacks, and 4 makes cloaking NOT end when using skills. The default setting for players is still 1, but for mobs the default has been changed to 4.
- Non-players can now use all skills while hidden.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9109 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-31 16:04:06 +00:00
skotlex
186798af26 - Added a check to prevent adding negative damage to the total accumulated damage in mob_damage.
- Implemented the property where the first attacker get's double exp-share than the others. Due to the way exp calculation is done, this bonus will not apply when you use exp_calc_type 1 (damage/max_hp) instead of the default (damage/total-damage). For now this bonus is done after calculating who is the MVP character instead of before.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9107 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-31 15:08:07 +00:00
toms
8fb29cb951 Fixed a little bug in event enqueue code
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9102 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-30 21:30:02 +00:00
skotlex
43db171cb5 - Corrected GS skill ranges using Aegis data. All their targetted skills have a base range of 9 T_T, and Dust (Choke) has a range of 2.
- Updated the code so mobs can use ChainAction as a targetted skill.
- Added GroundDrift effects for Wind (Stun) and Fire (knockback). The knockback value is unknown, so 3 is used for now.
- Cleaned up some more the steal code, now you can't steal the last slot regardless of skill level used.
- Added consideration of Chain Action when cloning GunSlingers.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9100 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-30 20:31:28 +00:00
skotlex
f9bca76cd9 - Set the inf2 to encore skills of Wand of Hermode
- Modified battle_calc_return_damage to take the skill id as well, now magic damage return will not work on skills tagged as ground or self targetted.
- Fixed Gank not working at all with the default max steal tries setting.
- Soul Drain won't work with skills tagged as self-targetted.
- Improved the Suiton code so that the walk/agi penalty only applies to enemies of whoever casted the skill.
- Moved the initial status_calc_pc call to when you finish loading the map, should fix equipment scripts which are based on character variables not working.
- Some cleanup of the clif_parse_LoadEndAck function.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9099 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-30 17:53:18 +00:00
Lupus
f7442ef2b3 Fixed getcharid according to samples and docs
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9098 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-30 12:28:23 +00:00
skotlex
d6711d07b9 - Fixed mob-skill event "skillused" not triggering at all.
- Summoned mobs will only be removed from a map if their master is also removed (dynamic mobs)
- Minor cleanups


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9088 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-28 03:55:01 +00:00
Lance
bdca3b4cc2 * Experimental tweak to npc_parse_function - Overwrite existing functions.
modified   Changelog-Trunk.txt
modified   src/map/npc.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9084 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-27 05:33:08 +00:00
Playtester
ff9d10bc92 Updated sql files
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9081 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-26 20:39:17 +00:00
skotlex
3e29770cc9 - Cleaned up some more the event dequeue code, it will no longer clear out the npc_id if there's no events waiting to be executed (why does it clears the npc_id anyway?)
- Because of possible conflicts with this change and the on-login script, now the on-login script is executed when the player has finished loading into their start-up map rather than as soon as receiving the registry variables from the char-server.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9073 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-25 21:35:38 +00:00
skotlex
c4932353bf - Some cleaning of the pc_eventtimer and pc enqueue code, it should fix some memory leaks when the event counter does not matches with the actual number of queued timers during logout.
- Minor typos, corrections, etc.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9072 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-25 20:55:19 +00:00
skotlex
7d2bc900c7 - Fixed "skill_sp_override_grffile: yes" causing crashes when parsing Homuncuus/Guild skills.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9069 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-25 16:15:28 +00:00
skotlex
71601f58b3 - Made the exp bonus settings be adjustable:
- exp_bonus_attacker: Indicates how much additional exp a mob gives per additional attacker (eg: 10 -> +10%*attacker)
- exp_bonus_max_attacker: Indicates at which number of attackers the bonus is capped (eg: 5 -> 5 attackers, so a mob yield the same exp whether 5 or 10 people attack it)
- Changed the way the party_even_share_bonus setting works. It now uses a simple linear bonus increase (eg: 10 -> +10%*party member)
- The defaults are as explained by Tharis: +25%/attacker, capped at 12 attackers, no party bonus.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9067 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-25 14:44:14 +00:00
skotlex
274bcb4fa0 - MG_STONECURSE and NPC_PETRIFYATTACK now use time1 to specify the "petrifying time". This value has been set to 5 seconds.
- Now when SC_STONE is triggered from status-change cards, it's petrifying duration will be passed as 0, causing the minimum (1 sec) to be used.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9066 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-25 13:34:43 +00:00
Lupus
27fbde260e final clone maps -> original maps change. also fixed novice grounds map in char.c. fixed socked_enchant npc
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9064 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-25 05:26:11 +00:00
skotlex
2b16b2d295 - Removed again your mdef reducing "petrifying" time as apparently it can't be reduced by mdef.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9059 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-24 18:13:51 +00:00
skotlex
14fd5f1b63 - Cleaned up the "show_steal_in_party" setting so it only takes effect when the item was successfully stolen (there was no point in telling you the item couldn't be stolen due to being overweight)
- Cleaned up the pc_steal_item implementation (again). It now uses a more random, simple approach in each steal attempt.
- Changed the way the skill_steal_max_tries work. Now it actually MEANS the max number of steal tries, use 0 to disable (unlimited tries).
- Changed the default of skill_steal_max_tries to 0 as there's no proof anywhere that there should be such a limit.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9057 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-24 16:34:51 +00:00
skotlex
182e56b1d7 - Added a bunch of important indexes when dealing with the log tables. Added upgrade_svn9050.sql for this purpose.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9051 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-23 18:54:28 +00:00
skotlex
70f2fde6ac - char_family now returns the char_id of the children when previously it would return true.
- Expanded the family check to work as it should, exp-share-range is respected, and the child is not considered for it (thanks to TheUltraMage for the investigation)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9049 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-23 18:21:49 +00:00
skotlex
8b37134bc7 - Double Casting will no longer fail when used.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9048 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-23 17:55:42 +00:00
skotlex
d80ed485d0 - Modified SC_STONE so that the duration of the "petrifying" time is 5 secs reduced by your natural resistance to petrify (which is mdef%)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9047 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-23 17:11:02 +00:00
skotlex
c87ac4f0a5 - Modified the meaning of the third column in the skill_require_db. Instead of MaxHP, this is now called MaxHPTrigger. This column (which was previously unused by all skills) signals the limit HP% that you can have to be able to use the skill. For example, setting it to 20 means the skill is unusable if you have more than 20% life (not that this is merely a threshold setting, it won't actually substract HP when used!)
- Adjusted LK_BERSERK so you can only use it when you have 20% or less life.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9045 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-23 16:06:01 +00:00
skotlex
a78eb50f08 - Removed NJ_TOBIDOUGU adding damage to W_HUUMA weapons which somehow got readded.
- When nonplayers use Cloaking, it will be forced to level 10 since mobs shouldn't have movement/attack restrictions while walking cloaked.
- Should fix a warning in int_homun.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9043 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-23 13:57:54 +00:00
blackhole89
1e4545aef5 clif_fixpos -> clif_slide in HAMI_CASTLE code
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9039 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-21 16:18:55 +00:00
skotlex
a127683c6b - Some minor cleanups
- Fixed the Homunc not spawning next to you after receiving it's data from the char-server.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9035 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-21 03:38:14 +00:00
skotlex
1107b381bd - Fixed Charge Atk being able to go through chasm/pits.
- Moved the homunculus DB information from the player structure to the homun structure. Modified the homunculus creation packets to hold this information during creation, also, all initial values are handled by the map-server, the char server only assigns it a homun ID.
- Removed target_id/attacked_id from homun_data as it wasn't really used.
- Codes cleanup (removing of commented code mostly)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9031 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-20 18:30:05 +00:00
skotlex
8c699742a8 - Added config setting "summon_flora_setting", which it you can decide now two things: a. Whether or not players can harm your floras outside versus grounds, and b. Whether or not you can summon out and mix different types of plants at the same time.
- Likely fixed pc_steal_item always failing to steal (it was attempting to steal random item IDs...) 
- Cleaned up a bit the mob on-death event so that when the killer is a homunculus, it's master will be taken. Also, the variable killerrid will be set before running the script to specify who delivered the final blow. If the killerrid matches with the script attached player, you can be sure your player did the final blow to the mob, otherwise, the attached player is who did the most damage to the mob.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9026 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-20 14:30:28 +00:00
skotlex
2b44fd5db4 - Cleaned up the log.c file.
- Splitted log_pick into log_pick_pc and log_pick_mob to avoid ugly type-casting.
- Fixed log_chat not recording anything if the server is compiled in SQL mode and sql_logs is turned off (it should then record to a plain txt file)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9017 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-19 21:25:56 +00:00
skotlex
b0f98e1dad - Corrected a compilation error.
- Fixed SG_FRIEND, it should be triggering when Monks do Combo Finish (not triple blows), and the trigger rate increase should be based on your known level of SG_FRIEND, NOT TK_COUNTER.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9013 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-19 16:47:30 +00:00
skotlex
b8d25efdf3 - Added the Monk combos to skill_castnodex so their delay is not decreased by skills.
- Added the actual skill delay of 1000ms to Triple Attack and Chain combo in skill_cast_db. Added Combo Finish and TigerFist as well with a delay of 700ms.
- Phantasmic arrow now knockbacks even if it misses.
- Adjusted the way Monk combo times work. The combo time is now always 300ms (adjusted by combo_delay_rate) which takes effect inmediately AFTER your current skill's canact-delay (which is why the particular skill delays were moved to skillcast_db)
- Modified skill_delayfix so it performs the can-act reduction from agi/dex for combos there.
- Modified pc_steal_item so that it behaves more closely to the way it does on Aegis.
- Commented out the monster_noteleport mapflag from the guild castles as this is the Aegis behaviour


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9012 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-19 16:21:09 +00:00
skotlex
0ee096b60e - Added a overflow check when calculating party exp share.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9010 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-18 21:31:59 +00:00
skotlex
e20dcadea9 - Adjusted UTSUSEMI/BUNSINJYUTSU so that they block range/melee weapon attacks and only melee misc attacks. This isn't 100% correct, but it's a better approximation to the way these skills behave.
- Corrected issen's range to 5, as per the login packet information.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9001 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-16 20:22:31 +00:00
skotlex
9860974ef6 - Emergency call &16 (disable skill from nowarpto maps) will now NOT block Emergency Call if that map is also a gvg-castle map. Makes it safe to turn on this option to prevent usage from special maps (like Lhz3) without crippling the skill during WoE.
- Added &16 to the default of the emergency_call setting.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9000 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-16 19:16:16 +00:00
skotlex
d99bf3c795 - Applied most of Mpeg's work on Ninja Skills. For information see: http://gpegon.free.fr/ea/ninja_10-15-06_mpeg.txt
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8999 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-16 19:07:24 +00:00
skotlex
6326212fda - When reinvoking a combo-time, the previous combo time will be terminated.
- Fixed Esma-state not ending after casting it.
- Fixed @hominfo displaying intimacy on a 1/10k scale.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8997 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-16 14:05:24 +00:00
Vicious
c16645f3d3 Homun info window to display crit value
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8993 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-14 17:24:52 +00:00
skotlex
a2be20df3d - Base attack for non players is now calculated as str + [str/10]^2 (it does not has +dex/5+luk/5 which players do have)
- Fixed the char-sql server trying to read the gms off a "gm_db" config setting stead of "login_db"


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8981 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-13 18:50:55 +00:00
skotlex
af7c7912a6 - Corrected Throw Arrow/Musical Strike's damage formula
- Altered Trick Dead. It doesn't prevents skills from being casted on you now, but damage-based skills will do no damage.
- Made the battle_config.attack_attr_none apply to pets when using the "fixed damage" pet skill scripts.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8978 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-13 15:27:41 +00:00
skotlex
cc00ad7c09 - made @killmonster make the mobs drop items again.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8976 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-12 20:34:50 +00:00
skotlex
8719acd1c1 - Added a temporary message when Angel of the Sun, Moon and Stars trigger so you know it triggered.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8974 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-12 14:14:39 +00:00
skotlex
ffc5a83ea9 - Corrected Caprice cast info. No cast time, delay time equal to the bolt spells.
- When slaves_inherit_speed is set (which is also the default), homun will have the same speed of their master when spawned.
- When using Hatred and you already have a hate target, your current hate target is displayed now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8972 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-12 13:57:01 +00:00
skotlex
ddc6b5e07b - Cleaned up unitattack, unittalk and unitdeadsit
- Updated status_get_name to take into account fakename, also cleaned it up.
- Cleaned up the char-server code when the last point of a player is not found. First it'll check if there's any mapserver online, and then, if there is, it'll look for the major cities. If this fails, then the player will be told server is closed instead of trying to send him to a "random map".


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8967 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-11 19:49:55 +00:00
skotlex
02e41c0e3a - Corrected the mob damagelog structure so that you can't exploit it by switching characters.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8963 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-11 13:54:42 +00:00
skotlex
f91836f32c - Fixed crash when char-server sends to a "random" map-server online on connect.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8960 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-10 21:30:59 +00:00
skotlex
231c36a9c7 - Should have fixed being petrified not reducing your defense and increaseing your mdef.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8958 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-10 16:44:59 +00:00
skotlex
13dc720b21 - sc_cast_cancel is now a type 4 setting.
- Fixed SC_NOCHAT printing the "skills are now available" message twice on natural expiration.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8953 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-09 18:55:43 +00:00
Playtester
87a8b3ccaf Updated sql files
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8951 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-08 13:11:12 +00:00
skotlex
30888904c1 - Removed gm_all_skill_add_abra which was doing nothing anyway.
- Updated Land Protector to block absolutely every land-based skills with the exception of Encores/Dances.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8948 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-06 18:28:03 +00:00
skotlex
0a23841806 - Disabling status abnormalities will now reset a mob's target.
- Mob morphing also resets their target now.
- Monk combos no longer can ignore skill delay (delay skill for all their combo-related skills is ASPD)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8945 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-06 15:53:40 +00:00