4932 Commits

Author SHA1 Message Date
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
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
ffa383b768 *Sorry, something I forgot to merge from my own code.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13722 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-03 05:05:47 +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
ultramage
8e3102cfc1 svn:eol-style native for char_sql's int_mercenary code (missing in r13166).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13715 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-02 23:46:36 +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
brianluau
a11e789e0a - Fixed some typos in the script command documentation. (bugreport:2547)
- Fixed a misleading message in the custom Job Changer. (bugreport:682)
- Updated some NPC's facing directions. (bugreport:3030)
- Added missing newline in some ShowWarning(). (bugreport:2940)
- Fixed SC_BOSSMAPINFO time being off by 1 minutes (bugreport:3035)
Now, the seconds are rounded up to the next whole minute.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13713 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-02 20:23:30 +00:00
ultramage
23bd309798 Added missing case SC_ONEHAND (from r5227) and case SC_MERC_QUICKEN (from r13203) to function status_change_start.
Added missing case SC_AURABLADE (from r13693) to function status_change_end.
Added symbolic names for all OPT3 values and replaced the OPT1/OPT2/OPT3/OPTION defines with corresponding enums.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13709 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-30 02:26:04 +00:00
skotlex
a047b057df - Avoid setting the canwalk delay after being hit if the target is already unable to move.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13706 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-28 16:48:46 +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
ultramage
7c730e4fbd Added an int64 typecast to both the acid demonstration equation (which couldn't handle 1000-ish stats), and the misc damage reduction code (followup to r13694).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13700 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-25 10:03:23 +00:00
ultramage
7d85415214 Filled in missing SI_ (status icon) names based on official info.
This is just for completeness, since nothing will display on the client until icon files are associated with these ids.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13699 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-25 07:34:47 +00:00
ultramage
ff21daafa2 Correction to some status icons based on official information
- Added SI_S_LIFEPOTION and SI_L_LIFEPOTION and their corresponding new status changes to deal with the fact that Small_Life_Potion and Med_Life_Potion each use a different status icon.
- Left the duplicate SC_HPREGEN status in fof backwards compatibility, but removed its icon.
- Corrected the status icon id for SC_INCCRI from 292 to 295.
- Corrected the status icon id for SC_INCHEALRATE from 293 to 292.
- Added status icons for SC_INCFLEE2, SC_SPCOST_RATE and SC_COMMONSC_RESIST.
- Removed icon from SC_ARMOR_RESIST since officially it is a bonus, not a status, and thus doesn't (and can't) have an icon.
- Renamed the status icon name of SC_ELEMENTALCHANGE from SI_ARMOR_RESIST to SI_ARMOR_PROPERTY.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13698 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-25 07:25:50 +00:00
Playtester
a223cdcba8 Fixed a small typo I did in my last Spiral Pierce fix, thanks to Inkfish for pointing it out (bugreport:3013)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13697 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-24 15:30:24 +00:00
akrus
5a35f1c88e * Lil fix for my last commit. Sorry :)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13696 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-24 12:58:35 +00:00
ultramage
c17d002e07 Renamed Happy Break's status name from SC_TKREST to SC_EARTHSCROLL, since that's its official purpose and it doesn't do anything else.
Also removed the associated SI_TKREST since this status doesn't actually have an icon.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13695 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-24 09:37:08 +00:00
akrus
97f947bb63 * Fixed Acid Demonstration (and probably some other skills) working wrong on high-rate servers (thanks to [Funt] for the idea)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13694 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-24 07:56:29 +00:00
ultramage
26736bf2a8 Filled in missing OPT3 change for LK's Aura Blade.
Added comments for OPT3 values 0x100 and 0x20000, which are currently unused.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13693 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-24 05:52:34 +00:00
ultramage
22b2671e0f Added length check to functions clif_parse_CreateChatRoom and clif_parse_ChatRoomStatusChange (bugreport:2999).
This prevents a signed/unsigned integer overflow when calling the safestrncpy function.
Also added a note regarding a potential out-of-bounds access issue in these functions.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13690 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-23 15:09:17 +00:00
ultramage
cd82016586 Fixed several occurences of map_freeblock() being used before map_deliddb() (caused by r13503, r13505 and r13508) (bugreport:2959).
This would cause object ids (chatrooms / ground items) to never be removed when DEBUG_MEMMGR was turned on, ultimately causing a 'no free object id' fatal error.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13689 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-23 14:05:20 +00:00
ultramage
d6ca23f16f Made some adjustments to the land skill code, based on official information:
- Expanded and corrected the land skill view id enum in skill.h
- Renamed UNT_ATTACK_SKILLS to UNT_DUMMYSKILL and UNT_KAENSIN to UNT_KAEN (official terminology)
- changed GS_DESPERADO to use the UNT_DUMMYSKILL view id instead of UNT_KAENSIN (and is it supposed to be a land skill at all?)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13688 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-23 13:57:22 +00:00
skotlex
7a7728f3d2 - Now when the mob picks and attacks a player target, he is added to the "log" of attacked chars (counts for the total number of attackers bonus)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13685 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-21 15:46:56 +00:00
akrus
00afdab392 Crashfix for negative skill id values (bugreport:2984)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13684 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-21 08:32:05 +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
ultramage
c7515f00d8 Adjusted the exploit crashfix from r13678 to abort when invalid input is detected.
Script text input packets of length 8 are now also invalid since there must be at least a zero byte (end of string) present.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13680 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-20 16:28:53 +00:00
zephyrus
27e8e70acb - Critical crash fix. Please update your servers.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13678 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-17 22:59:41 +00:00
skotlex
3db650ec38 - Corrected the attack_attr_none setting to behave as it should: for those whom it is set, their "innate" attack element is "not elemental", meaning it deals 100% against all elements (rather than making only NEUTRAL attacks become not elemental).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13676 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-16 19:36:16 +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
768ceda5e9 * Took care of some warnings. (marionette formulas and *INTPTR_* macros)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13670 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-12 13:39:15 +00:00
ultramage
66f7ed7239 Inverted the way monster_ai 0x200 works, default is 0 again (followup to r13667).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13668 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-11 17:06:24 +00:00
skotlex
45a5374a40 - Set mob delay to a max of 24 hours so that mob_skill_db entries with huge delay values won't cause the skill to never trigger.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13666 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-10 13:17:51 +00:00
ultramage
82ea64929c Berserk Pitcher can now be used on characters that have bows equipped (fix to r4371) (bugreport:2412).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13665 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-07 19:30:25 +00:00
ultramage
eda5e6104c Modified the lazy mob AI code to fix some very annoying behavior (bugreport:2258)
- mobs will no longer get scattered across the whole map as soon as the last player leaves
- mobs will now random-walk indefinitely even if there are no players on the map (might have a performance impact)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13664 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-06 19:53:48 +00:00
ultramage
efe4c572b6 The dynamic mobs system will no longer de-spawn mvps (because it's annoying as hell).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13662 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-05 16:56:38 +00:00
ultramage
0149dbeb97 Quick-fixed a bug that let anyone kick any online character from the mapserver (bugreport:2939).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13656 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-04-03 17:04:49 +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
sketchyphoenix
67adb599ab (bugreport:2836) A correction of a typographical error with GM command logging.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13646 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-31 15:08:57 +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
ultramage
0180cacd4e Fixed atcommand_param() using a hardcoded @ symbol, which broke on charcommands and changed atcommand_symbol (bugreport:2918).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13642 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-30 10:18:25 +00:00
ultramage
d8104e4df7 Defined new server-side PACKETVER 20081126 to add support for the modified pet information packet (topic:197874).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13641 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-30 10:02:41 +00:00
ultramage
500f9893a1 Added packet 0x43f's length to the packet len table and adjusted related code (followup to r13622).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13640 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-30 08:55:12 +00:00
ultramage
86c1cf7721 Extended the hardcoded packet length table values up to MAX_PACKET_DB (0x500).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13639 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-30 08:51:01 +00:00
zephyrus
f3ca760a29 - Missing cleanup from the previous BG code removal.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13637 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-03-29 18:52:44 +00:00