2362 Commits

Author SHA1 Message Date
skotlex
81530c4ef9 - Reenabled client requesting to self mute, as the whole knockback packet issues of the past which were causing players to mute themselves when being knockback is no longer there.
- Changed NPC_CHANGEUNDEAD from a self skill to a targetted skill. Changed it's duration to 30 secs.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8787 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-18 00:35:25 +00:00
skotlex
401920c1d8 - Fixed NPC_INVISIBLE's cloak ending after attacking once.
- Fixed SG_FUSION being castable without Soul Link state.
- Moved the item-use restriction SC checks from clif.c to pc_use_item, fixed Gravitation blocking potion usage on it's area of effect.
- Sphere Marines and Summoned Flora are now inmune to class-changing.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8782 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-17 07:38:10 +00:00
skotlex
c61da328ed - Moved some speed adjustments in status_calc_pc to where they belong.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8781 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-16 23:50:00 +00:00
skotlex
fd7c6a36a2 - Added monster_ai&256. When set, a monster will pick a random starting position to begin checking versus it's skills, otherwise, it will always begin checking from the beginning.
- Added NPC_CHANGEUNDEAD to the skill_cast_db, fixes it apparently doing "nothing".


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8778 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-16 23:41:07 +00:00
skotlex
e31d762f33 - Fixed the status change duration reduction equation was was totally wrong, thanks to k3dt
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8776 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-16 20:18:35 +00:00
skotlex
3d19bd2c4e - Now mobs won't do a distance check to lose their target on every ai iteration, but only when they finish walking (unless you set monster_ai&1)
- The chase distance before a mob gives up following a player has been increased from view-size (range2) to min-chase (range3).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8773 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-15 21:33:36 +00:00
skotlex
7ad8d4effa - Reverted the Summon Flora change where all plants were being summoned in one go.
- Removed some redundant code.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8772 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-15 19:48:00 +00:00
skotlex
6b77c081e9 - Moved the weapon repair effect to where it belongs (after successfully repairing an item)
- Added atcommand.conf entries for @adjgmlvl and @adjcmdlvl


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8770 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-15 17:28:17 +00:00
skotlex
abec02f1fe - Added config setting "friend_auto_add" (battle/player.conf), if set, when you accept someone as your friend, both characters will show up on each other's friend list.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8769 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-15 16:40:01 +00:00
skotlex
b3d74eb0ad - Changed Extremity Fist's code to make you actually walk past your target, which displays a much more correct "animation" for the skill. Thanks to HiddenDragon for the information and code.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8765 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-15 01:57:23 +00:00
skotlex
ae631dda54 - Updated the item_db search functions so that when returning the dummy-item, it first updates the nameid to match the requested one, this prevents pc_additem later on giving you an item with ID 500 instead of the ID requested.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8764 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-15 01:02:20 +00:00
skotlex
25b73f7772 - Added a clif_skill_nodamage packet when using Repair Weapon, just to see what happens.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8762 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-14 21:10:54 +00:00
skotlex
f7e2c8a84c - Likely fixed "half" of the alliance being saved, which ends up in guilds that can attack another, but not viceversa.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8761 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-14 18:39:18 +00:00
skotlex
961cd2330f - Added deleting of saved Status changes on character delete for the Char-TXT server.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8759 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-14 17:51:19 +00:00
skotlex
570b52caff - Fixed the can-act delay never being checked when requesting to use Homunculus Skills. O.O
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8758 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-14 17:02:39 +00:00
skotlex
4eabecd228 - Fixed warmth skills draining SP of the target, not the caster.
- If val3 for a combo is set, then the combo will no longer delay attack/movement.
- When TK_DODGE triggers, it will no longer delay your attack or movement.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8757 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-14 16:50:12 +00:00
skotlex
1b4521aff2 - Estimation /Sense/ whatever will no longer hide the vit bonus to mdef2, as reported by Playtester.
- Updated Summon Flora to summon the max number of possible plants on one cast. It will consume as many bottles as monsters summoned. Also cleaned up the function to be usable by non players.
- Added function status_get_name


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8756 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-14 16:34:06 +00:00
skotlex
c9f9218a2b - Shadow Jump no longer goes over walls.
- Insignificant cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8751 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-14 15:39:24 +00:00
skotlex
d16c9da400 - Corrected Smokie's pet script to use petskillbonus instead of "bonus"
- Added constant map_flag_gvg2 which tags gvg maps independently of whether woe is on or off.
- battle_calc_gvg_damage will be invoked in gvg maps regardless of woe time.
- NPC_MENTALBREAKER now zaps matk*lv SP based on observations by Tharis.
- md->class_ will be changed on mob-class-change to fix all class-change related bugs. On respawn, the spawn data will be used to revert to the original class. 
- Improved the pet skillbonus timer for "eternal bonuses" cases where the bonus delay is 0.
- Adjusted gvg long damage rate to 80%, magic damage rate to 60%


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8748 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-14 13:46:14 +00:00
skotlex
955a3c310b - SC_CHANGE cannot override itself anymore. This fixes being able to "recast" the skill while it's still active to lengthen the duration AND rehealing the target.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8737 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-13 18:57:25 +00:00
skotlex
66869ed12a - Changed a bit the dnsbl lookup in the login servers to make it faster.
- Moved the pc rate modifiers from items (hp/sp/matk/hit/flee/cri/flee2/def2/mdef2/def/def2/speed) from status_calc_bl_sub_pc to status_calc_pc, as it simplifies code vastly, and also fixes Osiris card not applying to said bonuses.
- Fixed pc_damage_delay_rate not working, thanks to Orn.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8736 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-13 18:51:07 +00:00
skotlex
4f24872a12 - Fixed compilation for native windows builds.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8734 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-13 16:23:24 +00:00
skotlex
84f86fa96e - Modified the nocommand mapflag so you can specify the GM range that is blocked from using commands (eg: "prontera.gat mapflag nocommand 40" disables commands to characters in the GM range 0~39)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8733 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-13 16:11:22 +00:00
skotlex
c06808095d - Modified the char-server TXT whisper system to use the online_db to know to which map server forward whispers, instead of just sending the whisper to every map server.
- Added char-server functions search_character_byname() and search_character_online() required for the previous update.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8732 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-13 15:36:38 +00:00
skotlex
a64ba50b61 - Readded the setting TCP_NODELAY on socket.c to see if it fixes the walk-lag issue.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8731 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-13 13:33:08 +00:00
skotlex
3c5c104561 - Modified the login SQL server so that case insensitive lookups use "where name = BINARY 'name'" instead of "where BINARY name = 'name'", since this way the name index should be used, and performance will no longer be heavily affected.
- Modified main.sql to add 4 missing indexes (thanks to ErkDog): char_id on the tables memo/friends, and online/name on the char table. Added upgrade_svn8728.sql to add these indexes to already existing tables.
- Changed back the default of case-sensitive to ON since it shouldn't be such a bad performance hog now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8728 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-13 01:07:45 +00:00
skotlex
0697e450ed - Improved sql-query to check if name already exists when creating new chars.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8727 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 21:30:03 +00:00
skotlex
6f501a8bb2 - Moved the morph restrictions from skill_additional_effect to mob_class_change, so that SA_MONOCELL will not convert clones, emperium, or treasure boxes.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8724 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 18:44:07 +00:00
toms
7b6be24f47 Fixed 'range' might be used uninitialized warning
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8723 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 18:39:57 +00:00
skotlex
c6142c3f39 - Added manual deletion of sc_data entries when deleting a character (char-SQL)
- Updated main.sql to use pure MyISAM tables, removed all foreign keys.
- Added Jaguar's sql script to convert all tables to MyISAM. It's located in sql-files/convert_engine.sql
- Removed convert_guild_tables.sql as we don't use InnoDB anymore.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8722 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 18:22:54 +00:00
skotlex
34683f252f - Updated battle_switch to use strncmpi instead of strcmpi, it makes it so using "yessir" will match "yes", this is actually needed because if you set a config setting to "yes " (notice the trailing space), then the map config engine fails to read it right, and will set the config setting to 0 (no).
- Added function pc_resethate to more easily handle Angel trigger
- Made feel_var and hate_var static variables to pc.c to simplify things and avoid errors due to redundancy.
- Updated the show_mob_info setting to add another space to the separating pipes, so that each field is separated by " | " instead of " |".


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8721 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 16:17:57 +00:00
skotlex
ebc1f2bc02 - Moved the packet_len variable in login.c to the login parse case, since it's used nowhere else.
- timestamp check speed-up in showmsg.c
- Swapped the blank ShowMessage on server startup to a printf
- Homunculus intimacy will go back to 500 on evolution.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8719 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 14:21:02 +00:00
skotlex
59fae741c3 - Baphomet splash damage will now hit nearby enemies regardless of flee (but the initial attack still has to connect for the splash to trigger)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8716 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 13:42:54 +00:00
skotlex
27c9a6fe5a - Modified set_nonblocking and setsocketoptions in socket.c, using eApp's code as reference. Hopefully should improve performance somewhat.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8710 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-11 21:32:26 +00:00
skotlex
e5aacfe978 - CG_MOONLIT is no longer castable in WoE grounds.
- Changed the default of enable_baseatk to 9 (player + homun)
- Changed the default of enable_perfect_flee to 1 (players only)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8708 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-11 20:59:12 +00:00
skotlex
4cd82897d0 - Added a comment explaining what a comment is to login/char/map config files, as well as the main script config file.
- Modified SG_FEEL so that it works the same way that in Aegis (packet-wise)
- Added a comment to explain how to "remove" a string variable from the msg_athena entries.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8707 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-11 16:20:40 +00:00
skotlex
4bec54f154 - Summoned and slave mobs won't show up on @showmobs anymore.
- Moved Spider Web damage bonus from battle_calc_damage to battle_attr_fix, so that damage will be doubled based on the actual attack element.
- Adjusted autospell cards to trigger only on physical weapon attacks.
- Adjusted a bit the heal code, it should now show either the full heal amount, or 0, depending on whether the target was healed at all or not (this also means it shows 0 if you try to heal a full-life character.. but it's the closest I've gotten to make it display 0 on Berserked chars)
- Memorize will be consumed even on instant cast spells now.
- Berserk will end now if hit and remaining hp is less or equal to 100.
- Guild Aura will be removed on sc-load to prevent Guild Masters from getting that bonus from the old implementation.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8705 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-11 14:27:49 +00:00
Lupus
59e39f1b71 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8698 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-09-11 05:01:48 +00:00
skotlex
e232baea00 - Added a crash protection in case mapfreeblock unlock tries to free a null pointer.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8688 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-09 17:32:40 +00:00
skotlex
2487548c72 - Moved perfect_hiding from state to special_state, so that it clears out when you remove your pet.
- Probably fixed the Taekwon Rest skills.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8687 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-09 16:52:24 +00:00
skotlex
2b63a85789 - Fixed a npc-timer memory leak on npc_unload ("[Warning]: ers_obj_destroy: X entries missing, continuing destruction. Manager for entries of size 16.")
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8686 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-09 14:11:02 +00:00
skotlex
99aca1182b - Unified the rest and ganstar paradise code into a single function.
- Moved the Happy State trigger to the regen function, it now triggers at the same time the SPTIME does.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8681 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-08 19:37:56 +00:00
skotlex
0d30562da5 - Cleaned up SG_HATE to use a new function, pc_set_hate_mob to handle setting.
- Updated pc_authok to initialize all mob_hate vars to -1
- Updated clif_hate_mob to receive the hate-type instead of skill-lv.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8680 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-08 18:45:51 +00:00
skotlex
50e0a52c9b - Removed sg_miracle_skill_duration, replaced it with sg_miracle_skill_min_duration and sg_miracle_skill_max_duration, to specify a range for the duration of the skill.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8679 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-08 17:56:10 +00:00
skotlex
6db8420f3c - Added upgrade_svn8675.sql in case, for some reason, your guild table still has the emblem_data field as a 'blob' with "NOT NULL" specified.
- Some minor cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8675 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-08 16:36:48 +00:00
skotlex
56127c4b8d - Fixed alliance/opposition making not cancelling out map-server-side when the guild already had max number of alliances/oppositions (thanks to k3dt)
- Cleaned a bit the code for SG_*_ANGER
- Fixed a warning in clif.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8673 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-08 13:34:38 +00:00
skotlex
5b7601f3db - Fixed SC_BERSERK setting Hp to 100 when dispelled by unnatural means (eg: wand of hermod)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8668 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-08 00:25:51 +00:00
skotlex
845659a32d - Changed the default of sg_angel_skill_ratio to 10 based on recent information from Tharis.
- Cleaned up the doridori parse clif function.
- Moved doridori_counter to state.doridori
- Merged some of mpeg's work on NJ skills


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8665 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-07 20:24:41 +00:00
skotlex
a64e58d5eb - Removed the Warmth "stacking" code.
- Added back the effect of /doridori to skill-SP regen
- Implemented a rough version of Angel of the Sun/Moon/Stars, it has a low chance of triggering on doridori-boosted SP-regen events.
- Added sg_angel_skill_ratio to specify rate at which the Angel skill triggers.
- Added unit_cancel_combo which takes care of ending a combo time and resuming normal attack 'inmediately'
- Cleaned up some the SG_HATE code, you can't change hate targets anymore.
- Increased duration of Miracle of the Sun/Moon/Stars to one hour.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8664 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-07 17:40:46 +00:00
skotlex
09fa10f2c2 - Added error message when attempting to use deprecated bonus bAspd.
- Added missing line terminator on a pair of ShowErrors in the sig plugin.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8660 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-07 13:39:49 +00:00