2737 Commits

Author SHA1 Message Date
Inkfish
a366ac53ce * Fixed some known and unknown player attached NPC timer problems
- Attached timer now can be stopped properly.
- Attached timer will now stop if the NPC is unloaded. (bugreport:2510)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13744 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-09 01:45:11 +00:00
Playtester
5575c28e84 * Fixed up the base success rate of normal strip skills
- normal strip skills: 5% + 5%*level
- Full Strip: 5% + 2%*level

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13740 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-07 17:06:56 +00:00
Inkfish
0595535167 * Fixed splash damage from Baphomet Card might miss. [Inkfish]
* Check if group unit is expired before processing it. (bugreport:3054) [Inkfish]
* Fixed Grand Corss outdated behavior (bugreport:1590) [Inkfish]
- use new damage formula
- DEF is reduced to 2/3 during cast time
- block shields switching within attack duration
- monsters don't damage themselves any more
- intervals between hits are 300ms

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13736 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-07 12:15:14 +00:00
Inkfish
ed83c8817d * Added check on stackable items to 'checkweight' (bugreport:1569, bugreport:2756, bugreport 2994) [Inkfish]
* Fixed flee penalty wasn't applied for battleground and wouldn't be restored on map change [Inkfish]

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13735 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-07 10:38:00 +00:00
Inkfish
68a983ce4b * Fixed players can pull water from ME cell (follow up to r13730)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13733 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-07 09:19:58 +00:00
Inkfish
afaf28a4fa * Players now are allowed to copy the skills the level which is beyond the skill_db max. [Inkfish]
* Fixed some behaviors for Waterball (bugreport:3024) [Inkfish]
- High level Waterball used by players doesn't increase the number of balls.
- Monsters can't pull water from cells with Magnetic Earth.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13730 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-04 13:34:31 +00:00
brianluau
53998c9f3d * Added the md5() script command. (follow up to r13719)
- Changed kafra storage password to be stored as md5 hash in #kafra_code$.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13728 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-04 08:22:53 +00:00
jmanfffreak
072ee7a90b Updated item_db.sql and mob_db.sql from recent changes to both. Thanks to Peter once again!
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13726 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-04 01:25:17 +00:00
Inkfish
f02ea5bfd1 * Block equipments switching for some skills (bugreport:2900)
- cannot change equipments during Arrow Vulcan's cast time
- cannot change equipments within Desperado's attack duration

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13724 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-03 10:20:13 +00:00
Inkfish
8704a43725 * Players now cannot be revived during pvp respawn delay
* Fix a logical problem on my last commit

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13720 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-03 04:41:04 +00:00
Inkfish
a43c9e581b * Fix several npctimer issues (bugreport:1619, bugreport:1730)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13718 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-03 04:06:53 +00:00
Inkfish
8cd8f32c78 * Fix 'awake' not working (bugreport:2580)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13717 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-03 02:59:53 +00:00
Inkfish
39b15f37c8 * Do not log damage if it's done by mob itself (bugreport:2933) [Inkfish]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13716 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-03 02:12:57 +00:00
Playtester
dd635a835a * Spirit of Bard and Dancer now only works for mastered skills (bugreport:3037)
- also fixed an outdated comment in the source code

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13714 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-02 20:33:41 +00:00
Playtester
33911a7594 * Fixed break equipment debuff working on bosses (bugreport:3023)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13703 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-27 16:53:12 +00:00
Playtester
96a0560b11 * Fixed Monster Spiral Pierce not being reduced by Ghostring Card
- it is forced neutral as its a MISC skill for monsters and doesn't take weapon element

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13702 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-25 13:15:45 +00:00
Playtester
7a215a7119 * First attempt to fix up the strip skills, please make sure these fixes work (bugreport:3011)
- the minimum rate of strip skills is now 5% for all levels
- duration of strip skills depends on the dex difference between target and caster and can be reduced to 0
- strip skills can now affect bosses (if duration doesn't get reduced to 0 due to their high dex)
- strip skills do a fixed -25% ATK, -15% DEF, -40% VIT or -40% INT independant of skill level
- autocasting Full Strip has a duration now (if dex is high enough)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13701 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-25 10:40:40 +00:00
FlavioJS
653ddafa5c * Fixed safestrncpy trashing the memory before dst when n == 0. (since r10667, bugreport:2996)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13681 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-20 17:28:48 +00:00
Playtester
d8faa8086c * Monster Spiral Pierce is now a ranged misc attack
- it always gets blocked by Pneuma, but never by Safety Wall
- Defender doesn't reduce its damage
- Range-Def item bonuses reduce its damage

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13672 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-15 16:30:08 +00:00
Playtester
6eccfdfff4 * Cooking success chance is now affected by DEX and LUK
- "cooking exp" still needs to be implemented
- also fixed a small issue when whispering to someone in autotrade

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13671 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-14 16:09:19 +00:00
FlavioJS
e7607efb6c * Removed online_check config options. (always active now)
* Clarified char_maintenance config option.
* Changed packet 0x2712. (added request_id)
* Changed packet 0x2713. (added sex, request_id, version, clienttype; removed email, expiration time, gmlevel)
* Delayed user count check and mmo_char_send006b to when the account data arrives.
* Created auxiliary function MD5_Salt.

(split from a future commit that was getting to big for my taste)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13652 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-01 22:39:19 +00:00
ultramage
c83076c04a Gunslinger Tracking can be canceled if you get hit.
Gunslinger Disarm always shows skill animation.
Removed custom firetrap effect from Gunslinger mines.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13644 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-31 12:57:13 +00:00
Playtester
4b66f607eb * Fixed a problem that blockskill timer failed when there was more than one on a skill
- please test this, now Asura should be blocked 2 seconds after EVERY Snap

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13632 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-27 19:29:58 +00:00
Playtester
6f99db9547 * Fixed Spirit of Assassin not reducing the aftercast delay of Sonic Blow
* Assumptio can neither be cast nor dispelled on monsters anymore

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13629 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-26 18:38:59 +00:00
Sara
b3860fdc01 * Added support for new status change packet, uses new setting display_status_timers in client.conf.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13613 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-24 01:56:16 +00:00
Playtester
94a411d8e5 * Updated item_db.sql with the perl script
* Added missing changelog entries about Moscovia mob changes

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13597 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-18 16:47:37 +00:00
ultramage
4d5e91c6f6 * Fixed a couple bugs with marionette control
- Reduces caster max hp by 1000.
- Job and Equipment bonuses counts toward the 99 limit.
- Fixed stat overflow on baby targets with stats over 80 (bugreport:2232).
- Fixed clowns being able to cast it on another bard/clown (same for gypsy/dancer) (bugreport:166).
- Caster is no longer blocked from using items.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13572 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-08 12:32:45 +00:00
ultramage
541f74494e Added several mail id checks to prevent a map server crash (bugreport:2837).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13571 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-08 00:10:39 +00:00
ultramage
8d57253cc3 Removed the Blade Stop range check against players.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13562 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-03 15:57:28 +00:00
ultramage
1d82043903 Blade Stop status no longer prevents item use and equip changing.
Blade Stop skill will now only activate if the attacker is at most 2 cells away (1 if barehanded).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13557 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-02 18:11:49 +00:00
shadow
7699a5de32 Fixes from 2008/10/13 bugreport:2077 (Only commiting because nobody did until now and those bugs would get lost)
* Fixed monster's Spiral Pierce, now it is always blocked by Pneuma.
* Fixed Monk Absorb Spirits mana recovery per spirit absorbed, 7, not 10.
* Fixed Monk spirit balls not being removed on death (like happens with gunslingers).
* Fixed Swordman Auto-Berserk sp cost, 1, not 5. Should be 0, but eA wont allow the skill to work.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13555 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-01 22:46:03 +00:00
ultramage
4a7bc5ad07 Ankle Snare cannot be knocked back anymore (bugreport:2804).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13554 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-01 18:52:31 +00:00
FlavioJS
14cbb64848 * Wrong variable being used in StringBuf_Vprintf. (follow up to r13386, fixes bugreport:2798)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13548 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-25 16:15:09 +00:00
sketchyphoenix
35dbe82eea * Consolidated is_atcommand() and is_atcommand_sub()
- replaced gmlvl arg with a flag arg for internal/player generated checks. (dummy sds that used this arg are given gm levels)
	- each command check runs through is_atcommand() and is checked for its origin (internal or player generated)
	- charcommands are also parsed in this function.
	- script atcommand/charcommand function calls to is_atcommand() have been updated
	- also updated some clif/map functions calls to is_atcommand()
	* charcommands should now log properly with the target of the command included.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13545 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-23 18:32:43 +00:00
FlavioJS
ddf501b224 * Made mob_timer_delete check the deletetimer in the mob.
* Added missing delete_timer's every time deletetimer is being set. (except when allocating)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13544 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-23 16:36:58 +00:00
FlavioJS
92d80d2e99 * Made mob_delayspawn check the spawn_timer in the mob.
* Added missing delete_timer's every time spawn_timer is being set. (except when allocating)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13543 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-23 15:57:02 +00:00
ultramage
c2cc0763d9 Increased variable size for status/skill points to remove the 65k cap (bugreport:1579).
Added sql upgrade script to adjust the appropriate char table columns.
This is an enhancement to r5762.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13541 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-20 19:47:17 +00:00
FlavioJS
8326096602 * Modified WFIFOSET to trigger a fatal error when trying to send a packet that is too big.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13539 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-20 05:53:50 +00:00
FlavioJS
ad963e52e6 * Fixed impropper filling of w4 in npc_parsesrcfile when there are less than 4 fields. (bugreport:1063)
* Simplified atcommand_spiritball. (deprecated msg_txt 204 and 205)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13538 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-19 16:57:01 +00:00
FlavioJS
29183f62d5 * Follow up to r13485. (bugreport:2741)
- @spiritball creates spiritballs without timer (limited to the array size instead of 500)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13509 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-02-06 18:47:30 +00:00
FlavioJS
4d467728cf * Changes to the configure script:
- added option --enable-profiler (supports gprof)
- added option --enable-64bit (don't force 32bit)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13486 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-25 16:12:20 +00:00
FlavioJS
743de085b2 * Changed pc_spiritball_timer and pc_addspiritball: (bugreport:2705)
- don't make assumptions about the calling order of timers
- ensure that sd->spirit_timer is is ordered by expiration time

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13485 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-24 23:43:27 +00:00
FlavioJS
9a8c2a60c9 * Changed the variables of the mapcache structs to fixed size equivalents. (64bit portability issue)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13483 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-24 19:38:48 +00:00
FlavioJS
58e4991d42 * Changed all uses of struct skill_unit_group* to group_id in status_change_entry's. (last known 64bit portability issue)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13482 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-24 17:38:17 +00:00
FlavioJS
1a2d2c0d4e * Changed npc_get_new_npc_id to ensure that it never returns invalid/used ids.
- npc_get_new_npc_id is used to generate ids for npcs/mobs/homunculus/mercenaries/pets. If the server runs for long enough (years to months or less, depending on settings), the auxiliary variable npc_id will eventually overflow and go negative, then go through the range of object ids, then through the range of account ids. This can lead to all sorts of random crashes and memory leaks.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13481 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-23 17:49:44 +00:00
FlavioJS
e3d5e89496 * Changed val4 of SC_BLADESTOP from a block_list pointer to an id. (64bit portability issue and potential dangling pointer crash)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13471 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-22 09:37:47 +00:00
FlavioJS
672dbf2946 * Added a limit of 1MB of pending data in the write fifo for non-server sockets. Connections that go over the limit are closed.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13469 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-21 15:18:51 +00:00
FlavioJS
69720a42bf * Replaced the fake timer heap (sorted array) with a real heap. (improves performance)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13465 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-21 01:21:24 +00:00
FlavioJS
d60b27d27d * Added a generic binary heap implementation based on defines.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13462 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-20 21:14:13 +00:00
ultramage
9640df0422 Fixed pc_statusup2 to correctly update the client's stat window
- was sending the increment value instead of the new value itself (bugreport:2614)
- wasn't refreshing the increase cost indicator (bugreport:2644)
- wasn't handling stats above 255 correctly

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13460 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-20 13:53:28 +00:00