4640 Commits

Author SHA1 Message Date
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
Lance
78bf3ea131 Skot please fix the remaining code by removing the fake npc after sending the input.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6116 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 15:45:25 +00:00
Lance
44c387b2a7 Initialization in send_fake_npc. Still needs fixing.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6115 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 15:36:16 +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
53614089eb Please fix my packets :S
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6113 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 15:32:12 +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
64da9b3c0b Optimized. (What am I thinking)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6111 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 13:31:54 +00:00
Lance
cb1ecd440c Fix my fix.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6110 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 13:30:58 +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
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
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
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
ef97447f1c - Changed the Warning of char-server disconnected to a status in the login-TXT server (SQL already had it fixed)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6050 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-13 20:24:06 +00:00
skotlex
a9c1cfc172 - Fixed the plugin's makefile to make it compile cleanly
- Added used of Show* stuff in sig.c rather than printf.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6048 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-13 20:15:32 +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
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
254d003229 - Fixed various include lines in the map server (of the type <include "nullpo.h"> -> <include "../common/nullpo.h">)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5985 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 14:24:46 +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
skotlex
3954b070de - Modified @warp/@rura to prevent causing pc_setpos position error messages.
- Fixed the mob's last_thinktime not being updated on mob_spawn, causing them to not "think".


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5971 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-09 22:13:25 +00:00
skotlex
3851b1299d - Fixed @npcmove not sending the correct packets to make the moving refresh client-side.
- Fixed mobs with aggressive + looter mode never looting.
- skill_wall_check now also checks for pits so that skill effects don't go through them.
- Now you can't leave/be-kicked from a guild inside guild castles.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5969 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-09 18:11:32 +00:00
skotlex
0ed5d38cdd - Small code cleanups. One should lower a bit function overhead when using mob_ai&32
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5967 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-09 16:33:11 +00:00
Lance
d955a685c3 * Fixed map_waterheight prefixing extra "data\"
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5966 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-09 11:40:47 +00:00
skotlex
b810c3cefb - Mob_ai update. The attacked checks will trigger even if the mob can't move. Being attacked while the mob can't move no longer will trigger rude-attacked skills.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5964 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-09 06:14:40 +00:00