1536 Commits

Author SHA1 Message Date
skotlex
cbea996edc - Fixed pet being incorrectly removed when it had intimacy 0.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6139 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17 18:44:59 +00:00
skotlex
3a2c267be6 - Added state.running to unit_data to make it easier to check for running characters (saves having to get the sc data and check for the corresponding timer all the time)
- removed pc_run, pc_walktodir, replaced with unit_run. 
- moved the code that makes you walk that extra cell to unit_stop_walking, which is now invoked before resetting the walk-target.
- Flag &2 in unit_stop_walking is now to make the character force-move that extra tile if the walkpath pos is 0 at hit time.
- Added variable walk_count to unit_data to be use as a counter for cells walked for walk-triggered skills (walk path_pos is not good enough since it keeps resetting each time the walk path is updated)
- Increased WALK_SKILL_INTERVAL to 5 (it is the closest value that makes the average mob trigger a chase skill every second)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6137 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17 18:12:06 +00:00
skotlex
7beb5f23c3 - Fixed TK_RUN having a cast-bar when attempting to stop-running and generating timer_delete errors when halting as well.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6135 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17 15:51:38 +00:00
Lance
dc68eb5449 Updated DLLS to match libs. Please DO NOT update the libs from now on (except if mySQL has newer builds which are not compatible with client DLL).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6130 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17 12:33:12 +00:00
Lance
1be152193d * Clearing the dummy npc after fooling the client.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6128 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17 09:08:16 +00:00
skotlex
7db6cd3d03 - Fixed the first call to the walk timers having the tick interval halved, which made all walking timers be off by half cell with the actual position displayed client-side.
- Changed the data component of the walktoxy timers to hold the speed (timer interval) so that when you are halted when walking, if you have walked more than half the distance to the next cell, your position is fixed at the next cell.
- If you are halted (damaged) while walking and before reaching the first cell of your walking path, then you are halted at the next cell, this effectively will block stun-lock regardless of aspd of the attacker.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6127 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17 03:47:29 +00:00
skotlex
e5ee6b1fc0 - Changed the npc_id mismatch warning to be more informative.
- Modified @monster command to use map_search_freecell (prevents mobs spawning on non-walkable tiles)
- Modified @nuke to invoke skill_cast_nodamage_id instead of the damage_id version (fixes sprite and splash damage for the skill)
- Corrected Venom Knife's requiring two knives per use.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6124 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17 00:57:42 +00:00
skotlex
b6558a82ae - Fixed char-sql server still reading the old lanconfig format rather than the new one.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6123 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 21:44:30 +00:00
skotlex
571402c435 - Removed water_height.txt reading (since it is always done from the rsw now)
- Fixed a possible crash in grfio_find_file
- Corrected water-level-reading to account for a return of null from the previously mentioned function


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6117 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 16:19:32 +00:00
skotlex
47adb68d91 - Fixed mysql ping setting being in minutes rather than hours.
- Removed npc_event_sub from npc.h and moved it to npc.c
- Cleaned up #warp to prevent spitting non-walkable tile warnings.
- Changed the meaning of msg_athena 2, it is now "invalid target cell, randomizing".


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6114 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 15:33:59 +00:00
Lance
88cf55de08 * Sending fake npc for inputs and menus for NPC without map coordinates.
* Fixed npc.h compiler warnings.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6112 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 14:57:54 +00:00
Lance
ff91dce499 * Missing lines in npc_parse_script!
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6109 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 13:23:57 +00:00
Lance
af5bdf87c3 * Experimental npc_event_doall_sub with queue and npc_id allocation when needed.
* Added warnings to npc_scriptcont for easier debugging.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6106 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 12:10:53 +00:00
skotlex
1380ed55d3 - Fixed wrong check of Deluge + Suiton which broke the water-requirement check for skills.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6103 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 07:12:36 +00:00
skotlex
324c024f96 - Cleared ud->target on remove-map, it should fix the phantom mob sprite issue.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6102 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 06:31:11 +00:00
Lance
d768d869fd * Added pcre3.dll, zlib1.dll and libmysql.dll. DO NOT DELETE THEM. (Required by systems without these DLLs preinstalled)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6099 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 02:51:57 +00:00
Lance
458f135cd7 * Temperory fixed compiler warnings/errors. Please compile before commiting. [Lance]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6098 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 02:40:46 +00:00
skotlex
5004c77916 - Fixed upgrade_svn5902.sql, thanks to Koshiro for pointing it out.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6092 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-15 19:59:36 +00:00
skotlex
5b9305fe41 - Removed the ->prev != NULL checks in skill_attack due to the fact that the code should check elsewhere how it should behave (eg: if traps are not cleared on death, stepping on one afterwards SHOULD cause damage)
- Removed use of packet 0x1c9 for skill_unit display, except for Graffiti (which is the only unit which requires the much larger packet)
- clif_getareachar_skillunit will sent the unit_id of UNT_ATTACK_SKILLS for traps (this is to prevent them from displaying on the client)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6091 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-15 19:17:47 +00:00
Zido
a71840da35 Added an update by ALZ. Refer to changelog.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6079 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-15 15:02:21 +00:00
skotlex
df4fc4cd65 - Updated sql-files/mob_db.sql to current.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6062 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-14 19:00:29 +00:00
skotlex
de415edfde - Fixed being able to do all the stuff you shouldn't be able to during the petrifying state.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6059 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-14 15:58:56 +00:00
skotlex
e5cb6bb260 - Updated sql-files/item_db.sql to current.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6056 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-14 03:25:34 +00:00
skotlex
dc8d892b45 - Added an Info message when pinging the SQL servers.
- Changed line terminators back to *nix on map.c because otherwise it's impossible to run a diff between the stable and trunk versions of the file.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6043 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-13 18:10:08 +00:00
skotlex
9aa86f86e4 - Fixed crash when looking for SC_MIRACLE in battle_calc_weapon_attack
- Some more standard C code cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6038 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-13 15:56:22 +00:00
skotlex
4d97159683 - Cleaned atcommand_param against overflows and also to make it standard C so it may compile with the Borland C.
- Modified Charcommand_stats to make it standard C as well.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6037 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-13 14:25:22 +00:00
MasterOfMuppets
9087343abb Small mapflag changes
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6036 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-13 11:58:18 +00:00
skotlex
b59b68509f - Halved the aftercast delay of auto-casted spells.
- Allowed auto-spells to retrigger themselves.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6028 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-13 04:05:38 +00:00
skotlex
0a5c14f801 - Changed slave chasing from using unit_walktobl to map_search_freecell + unit_walktoxy, since the previous behaviour makes all slaves always end up on the same cell.
- Changed some function declarations to take x,y arguments as short rather than int.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6024 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-13 00:45:55 +00:00
skotlex
503a7759d0 - Added cast time to pick stone of 3 secs and 500ms delay
- Removed area of effect of Assumptio.
- Added "can't act" delay update when an auto-spell triggers.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6021 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-12 19:49:26 +00:00
skotlex
83ed424538 - Expanded the warp warning so that it also warns when a warps takes you to a non-walkable tile.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6019 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-12 17:30:04 +00:00
skotlex
d29c6d8a27 - Simplified the mob-drops structure by using a single timer with a linked list of drops instead of separate timers for each drop.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6014 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-12 16:32:34 +00:00
skotlex
97af776e02 - Added special_state changebase to identify when a character has a special-view associated with some equipment to correctly revert the look when you take off said equipment (fixes tuxedo/wedding dress when you use modify_wedding_display: yes)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6002 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-12 02:55:39 +00:00
skotlex
6676a74acd - Removed the piece of code that "guesses" that job classes between 24 and 68 are advanced classes from mob_avail reading since they conflict with NJ/GS. Use the correct class numbers from now on!
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6000 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-12 02:28:43 +00:00
skotlex
df06ad84f3 - Fixed Landmine's level 1 duration.
- Cleaned up implementation of BlastMine and Claymore Trap.
- Added Freezing trap information to battle_calc_weapon attack.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5998 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-12 02:03:31 +00:00
skotlex
a489ed4364 - Changed clif_damage/clif_skill_damage to return the walk-delay based on the passed on damage-delay.
- Changed battle_damage to accept the walk-delay as well.
- Removed the walk-delay timers from unit.c, merged them to battle_delay_damage.
- Traps will not be displayed when you walk within their range.
- Added HT_DETECTING revealing traps.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5997 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 23:58:55 +00:00
skotlex
3a0621b9ae - Added ers handling for skill_timerskill structures.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5995 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 20:33:19 +00:00
skotlex
58be7c433b - You don't get critical'ed when in counter-attack stance anymore.
- Changed the default counter-type to "always critical".


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5992 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 19:55:48 +00:00
skotlex
0ef81c9d08 - Implemented use of ers for skill_unit_groups to reduce memory usage. NEEDS TESTING
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5991 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 18:45:43 +00:00
skotlex
5e1c234759 - Modified battle_check_range to do a path-check on distances less than 2 (rather than 3) to avoid being able to hit through walls.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5988 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 16:57:37 +00:00
skotlex
d3db62a041 - Modified unit_walktoxy_sub to always move at least one cell when a large chaserange is specified to prevent possible infinite loops where attack_timer says you are not within range, but unit_walktoxy says you are.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5987 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 16:52:52 +00:00
skotlex
c8ad3fbc64 - Fixed Looted items always dropping in quantities of 1.
- Removed the check that deletes Magnus Exorcism cells after they hit once.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5984 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 14:01:04 +00:00
Lance
a71b9f858b * Temperory replaced strtoll to strtoul until the function changes.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5983 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 06:22:51 +00:00
skotlex
42c6f89d86 - Multiple optimizations to the unit_data auto-chase upgrade, also simplified the mob and pet ai routines.
- Simplified the walk routines to half the number of timers required for walking.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5982 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 04:10:41 +00:00
skotlex
3acdfa691b - Finished fixing the unit_data auto-case update. Still need to do some optimizations... but the current code-base should be usable.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5981 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 02:32:30 +00:00
skotlex
e68983a063 - Fixes to the unit_data update that lets characters auto-chase while attacking.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5980 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 00:27:15 +00:00
skotlex
418c98ea0a - Modified the unit_data structure to handle automatically switching between chasing and attacking a character. Note that it's a work in progress and not yet properly tested/finished...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5979 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-10 21:38:05 +00:00
skotlex
b6fa7be9e9 - Updated the subnet support to not require specifying the subnet mask, it is auto-acquired from the char/map IP and the subnet-mask.
- skill_wall_check defaults to yes now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5976 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-10 14:26:52 +00:00
skotlex
e8a8c8fbb9 - Added the missing last_thinktime initialization to pets.
- Reverted the change in skill_Wall_check to let skills go over pits.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5973 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-09 23:14:00 +00:00
skotlex
db62926e5b - Changed use of strtol to strtoll as strtol's result is just a signed int, and we need to parse values above 0x7FFFFFFF
- Corrected Knives being usable by Gunslinger. SQL users use upgrade_svn5972.sql to ugprade that.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5972 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-09 22:52:06 +00:00