1657 Commits

Author SHA1 Message Date
skotlex
ff4b163da3 - Fixed slaves warping endlessly to their master when the master-slave distance exceeds 30.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6909 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-01 15:03:48 +00:00
skotlex
ee005cf409 - SC_ORCISH will now be dispelled on logout (if debufF_on_logout is set)
- Removed attackrange/attackrange_ from TBL_PC, corrected clif.c using the incorrect range variable.
- You can now equip/unequip stuff while the storage is open.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6908 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-01 14:32:13 +00:00
skotlex
c3b4139505 - Fixed Soul Drain not really giving you SP
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6907 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-01 04:00:38 +00:00
Lance
b3bf8b2464 [Fixed]:
- Suppressed compilation warning in chrif.c 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6906 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-01 02:59:03 +00:00
Lance
8686c24f90 [Fixed]:
- Guys can't go across map-servers :( Thanks to Buuyo^

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6905 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-01 01:55:35 +00:00
Lance
26e1b07f72 [Fixed]:
- Restoration and saving of sd->npc_id must be done every time. 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6904 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-01 00:50:22 +00:00
skotlex
459b2a672f - Some small cleanups on status_calc_pet
- Fixed one valgrind error report.
- Added back the Freeze/Petrify adjustments of -50%def and +25%mdef (when where these lost?)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6903 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-01 00:23:27 +00:00
skotlex
2c4bcef25a - Corrected the mob_ai&2 setting triggering rude-attacked due to can't walk delay.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6901 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 21:21:44 +00:00
skotlex
a6b8c38454 - Fixed compilation of char_sql/int_party.c -.-
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6899 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 20:41:31 +00:00
skotlex
ca917a0909 - Made the char_name_option char_athena.conf setting apply to parties and guilds as well. It cannot be applied to pets yet without adding a change-name-request interserver packet.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6897 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 20:37:39 +00:00
skotlex
0d281eea6d - Fixed compilation of char_sql/char.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6896 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 20:13:20 +00:00
skotlex
92255a237b - Moved the JOB_* defines from map.h to mmo.h, update char.c to use them.
- Added function char_read_fame_list for famelist reading. Invoked it on init, and made it be sent automatically to connecting map servers.
- Removed request to reload fame list when map server connects.
- Some cleaning of the fame-list reading code.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6895 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 20:08:40 +00:00
Lance
5b32c5d838 [Fixed]:
- Incorrect SQL syntax in login.c (missing collumn)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6892 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 15:53:45 +00:00
skotlex
053931237b - Some cleaning of the fame-update code, fixing a logic bug which made the ranking list fail to display the correct ranker names.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6891 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 15:07:37 +00:00
skotlex
d72c881051 - Removed typedef bool from socket.h and included cbasetypes.c instead.
- Cleaned up and corrected the calculation of hit/flee/cri/lucky dodge in status_calc_bl.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6890 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 14:06:22 +00:00
skotlex
79fb721152 - Corrected a null_po in pet_equip when trying to equip stuff without a pet.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6886 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 12:12:12 +00:00
Lance
9a5c473607 * [Fixed]:
- nullpo in pet.c caused by equipping without checking if the pet is available.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6882 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 07:55:58 +00:00
Lance
1ef042328a Removed debug messages (oops)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6881 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 07:29:51 +00:00
Lance
7cebf95264 [Fixed]:
- Latest client support completed!

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6880 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 07:26:06 +00:00
Lance
428c7271fd [Moved]:
fake_npc from map.h to npc.h

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6879 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 05:40:08 +00:00
Lance
e01880f4e8 [Fixed]:
- Compile warnings/errors

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6878 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 05:37:45 +00:00
Lance
c55ae96b1a [Fixed]:
- Missing #include for cbasetypes.h in login server SQL.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6877 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 05:34:58 +00:00
Lance
23fdd83f2c git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6876 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-05-31 05:31:32 +00:00
Lance
4d978e0930 [Fixed]:
- Logic errors in run_script

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6875 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 05:27:49 +00:00
Lance
45befd270d [Added]:
- Partial support for latest login packet. But it seems to have a new security module. [Lance]

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6874 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 05:14:55 +00:00
Lance
8236d2c93f [Improved]:
- Fake NPC interface to use real NPCs.
- Scripting interface to restore and save sd->npc_id.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6873 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 03:52:56 +00:00
skotlex
2268d4b763 - Added function pc_check_skilltree for checking if you unlocked new tree-skills when raising non-passive skills.
- Some cleaning of pc_calc_skilltree
- Fixed flee/hit calculation in status_calc_bl to account for bonuses from the base status.
- Some cleaning of status_calc_pet to use the cap_value define.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6872 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 03:41:58 +00:00
Lance
bef1525332 [Fixed]:
- Compatibility problems in login.c

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6871 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 03:16:22 +00:00
skotlex
bce845e94f - Fixed pets ignoring can-act delays for skill usage.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6870 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 02:31:08 +00:00
Lance
15194233b8 [Improved]:
- loginlog using unsigned long `ip` field. (Please check for compatibility problems). 
[Added]: 
- Mercenary.c in VS.NET 2005 project files

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6868 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 02:13:23 +00:00
skotlex
8a6609900a - Fixed status_calc_pc not zero'ing ALL vars it should, allowing certain bonuses (like effect-on-hit) to stack.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6867 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 00:03:18 +00:00
skotlex
1de06a14e4 - Call Slave now invokes slaves on a 5x5 area around master.
- AL_TELEPORT will fail when used by slave mobs.
- Added NPC_ENERGYDRAIN, NPC_MENTALBREAKER to the list of undodgeable attacks.
- slaves inherit speed setting will now work regardless of whether the slave or master has the MD_CANMOVE mode bit.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6865 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 23:45:09 +00:00
skotlex
d90347c73e - Fixed status_damage not setting your HP to 0 when you died T.T
- Fixed the pcbonus2 warnings using the wrong value before printing the invalid Element error.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6864 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 23:10:27 +00:00
skotlex
363db7730b - Added a pair of missing pc_setstand in the pc_dead function.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6861 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 20:53:28 +00:00
skotlex
6192e5a5e5 - Fixed underflow issues when calculating dmotion.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6860 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 20:44:54 +00:00
skotlex
7f776280a5 - Fixed Absorb Spirit Spheres
- Added battle_config min_chat_delay (default 0) specifies in ms what is the min delay between player sent chats (whisper/global/party/guild). Messages that exceed this threshold are silently ignored for now (perhaps need to add a "DON'T SPAM" reply to the player?)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6859 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 19:28:41 +00:00
Lance
9f1f9dacb2 * [Fixed]:
- signed/usigned problem in sprintf and fscanf @ mercenary.c

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6858 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 19:22:14 +00:00
skotlex
ba6216e43e - Rewrote/cleaned up @petfriendly.
- Cleaned up final part of status_calc_pc (flags 2/4 do not exist)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6857 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 18:56:49 +00:00
skotlex
a2f222eb46 - Updated attr_fix_table reading code to account for ELE_MAX (will correctly read bigger elemental tables if ELE_MAX is changed)
- Aggressive mobs will now use battle_check_range rather than mob_can_reach to decide whether to lock-on or not to a target within sight-range. 
- Added warnings in mob_readdb when the mob's element is invalid.
- Updated the corresponding entries in map.h to use ELE_MAX
- Added error messages in pc_bonus* functions when an invalid element is passed to the relevant bonuses.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6856 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 18:25:55 +00:00
Lance
e266a08f7c [Optimized]:
- clif_specialeffect to use the enums.
[Improved]: 
- buildin_specialeffect and buildin_specialeffect2 to accept effect area definition.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6855 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 18:13:16 +00:00
Lance
40f2aa9cc5 * [Added]
- Visual Studio .NET 2003 includes for mercenary.c 
* [Fixed]
- Logic error in NPC custom AI in unit.c

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6853 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 17:11:55 +00:00
skotlex
1d027c8db8 - Removed the on-die specific code from unit_remove_map and placed it on the corresponding *_dead functions. unit_remove_map should never assume the char died, it is just a "remove from map" function.
- Updated status_damage to handle the general death code (clearing status changes, clearing skill related data, sending death packet, etc). The return value from the *_dead functions will tell it what to do or not with the object (death aborted, clear it from map/memory, etc)
- Cleaned up pc_dead to take advantage of the fact that status changes are not ended until after the function.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6852 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 17:06:55 +00:00
Lance
9516734715 Added decending npc to slaves. Custom feature.. nothing much.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6849 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 15:39:02 +00:00
skotlex
ccdafb2b70 - Fixed sql compilation of mercenary.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6848 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 15:37:43 +00:00
skotlex
1074b09187 - Small optimization in battle_check_target
- Disabled ontouch npcs triggering on hidden/chase-walk characters.
- Added the SC* code blocks relevant to SC_AVOID, SC_CHANGE, SC_BLOODLUST, SC_FLEET
- Added structure status_data to homun_data
- Added handling of BL_HOMUNCULUS in status_heal, status_damage.
- Cleaned up the homun-submitted code, moved the relevant code to status_calc_homunculus.
- Updated map-server Makefile to compile mercenary.* files.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6847 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 15:29:17 +00:00
Lance
25c499e07b (I need sleep)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6845 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 13:23:06 +00:00
Lance
42f64dbd26 Final alteration :P
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6844 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 13:22:26 +00:00
Lance
aabab7f7c5 [Corrected]:
- pc.c again (Darn I'm making more mistakes)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6843 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 13:19:50 +00:00
Lance
94b0820fda [Fixed]:
pc.c to use unit_stop_attack()

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6842 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 13:15:18 +00:00
Lance
21a6d3fad7 * [Fixed]
- Pets attacking even master is dead

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6841 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 13:11:13 +00:00