4541 Commits

Author SHA1 Message Date
Inkfish
8b3aeaa2ee Fixed Teleport through Hocus-Pocus skips menu. (bugreport:3513)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14020 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-22 17:55:21 +00:00
Inkfish
e9379c3be0 Fixed the wrong packet length makes client choke when add_quest packets are sent.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14019 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-21 07:16:40 +00:00
Inkfish
b0d8294419 Added bMagicHPGainValue and bMagicSPGainValue.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14018 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-21 06:21:44 +00:00
Inkfish
a464adf45b * Some fixes for Heat
- won't cancel combo wait. (bugreport:3228)
- should work with hp/sp drain bonus. (bugreport:3507)
- consumes 10 sp if the attack doesn't connect. (bugreport:3038)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14017 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-20 01:23:25 +00:00
Inkfish
feb7cc2d61 Equipment DEF penalty shouldn't be applied to players in Mental Strength.(bugreport:3454)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14010 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-18 08:25:04 +00:00
zephyrus
16642d0c14 - Added missing #includes to fix some linux warnings.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14009 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-16 19:08:41 +00:00
zephyrus
d25e4cc14a - Fixed final instancing bug. Tested Endless Tower and working. I will ask if i can publish it :3
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14008 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-15 09:47:23 +00:00
Inkfish
395149b2b8 Fixed self skills affecting target unit when used within combo delay for Asura and Flying Kick. (bugreport:3495) (follow up to r13900)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14007 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-15 02:22:24 +00:00
zephyrus
515cd8685c - Fixes and optimization to instancing. Thanks to Saithis
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14006 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-14 14:03:53 +00:00
zephyrus
6b710571ad - Optimization to instance system.
* Removed the crc feature to generate instance npc names. The instance npc name will be "dup_" + instanceid + "_" + srcnpcid.
* Removed the big array under map structure and coded in a different way. It was only used to generate map names, but i just used the instance_id + "origin map name".
* Moved all instance features to separated files.
* Moved the npc duplication for instances into npc.c as Ultramage says (removed npcname_db from npc.h).
* Added recomendations for scripts commands by Saithis.
- Testing required, i will prepare Endless Tower script soon. I hope this do almost anything in bugreport 3276.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14003 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-12 21:44:02 +00:00
Inkfish
dbb80324bc Fixed changequest behavior(before: completequest+setquest, now: erasequest+setquest)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14002 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-12 07:11:01 +00:00
Inkfish
79d0f3595e * Fixed autospell and autobonus will still trigger even if the chance is 0.
* Disabled "show_party_share_picker" functioning on client older than 20071002 to prevent from disconnection. (bugreport:3457) 
* Fixed units other than players and mercenaries using Devotion will cause crashes. (bugreport:3475)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13999 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-11 06:26:27 +00:00
Kisuka
b4ca3a4f1c - Added episode 12 & 13 cards (most episode 13 ones need matk + n;).
- Added some items from the ep 12 & 13 item givers.
- Increased MAX_RANDITEM to 11000.
(topic:226055)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13993 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-04 22:21:12 +00:00
Kisuka
8fd9c788de - Added episode 12 and 13 item givers. (topic:226055)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13992 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-04 20:59:06 +00:00
Inkfish
52bac46cfe * Questlog code cleanup.
* Fixed range check of autospell and autospell2 using wrong target when it should be used on yourself.
* Implemented official behavior of party_show_share_picker.
* Restricted zones in 'item_noequip.txt' can now stack.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13987 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-08-02 04:10:23 +00:00
zephyrus
86563064db - Fixed a bug cleaning instance variable on party when instance is destroy.
- Fixed a bug on Yuno Castle 2 and 3, not killing guardians.
- Moved battleground team leave on unit remove map to prevent a crash on multimap servers.
- Fixed a bug on checking range with the wrong target. Fix a crash on Item 2002 at refine >= 9.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13979 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-29 09:10:51 +00:00
Inkfish
56da31a0e1 * Fixed damage_level is not calculated properly on normal attack.
* Kaahi is supposed to be canceled on logout.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13978 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-29 05:33:20 +00:00
Inkfish
4cafc71047 * Kaahi heals no matter if attack connects. (bugreport:2440)
* Fixed a typo causing skillitem always resets skill delay. (bugreport:3431)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13977 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-29 04:33:00 +00:00
brianluau
8be9797841 - Added a missing 'next' in Kiel Hyre Quest (Medicine Chest).
- Fixed a type in Mjolnir Seal quest (Dwarf Blacksmith#south).
- Fixed wrong parameters in 'areapercentheal'. (bugreport:3428)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13976 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-28 21:21:45 +00:00
Inkfish
76f7ee022d Corrected two mistakes when I was trying to do some tricks...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13974 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-28 05:48:17 +00:00
Inkfish
b753cba749 * Some more updates to Quest Log
- Implemented a new saving mechanism. Now they can be saved every 'autosave_time' in case the char-server is not online when you get a quest.
- Improved 'changequest' code.
- Increase MAX_QUEST_DB to 1200.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13973 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-28 04:04:50 +00:00
ultramage
f1caa42610 Partially reverted the fail from r13966.
Added support for empty lines between individual attr_fix.txt blocks, fixes crash at startup (bugreport:3426).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13968 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-27 09:15:53 +00:00
Inkfish
816e93ef9b Fixed mob counts and quest states are not saved properly sometimes
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13964 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-26 09:52:08 +00:00
Inkfish
4a6f0d122c * Some updates of Quest Log system
- renamed table 'questlog' to 'quest' to avoid misunderstanding
- updated main.sql
- fixed the server can't load more than 16 quests
- removed the MAX_QUEST limit. tests show the client can handle more than 100 quests.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13963 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-26 06:01:10 +00:00
Inkfish
2187e9a59a * Fixed message display for FullStrip and SelfProvoke. (bugreport: 3011, bugreport: 3415)
* Fixed an error on 'changequest'

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13962 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-25 23:18:53 +00:00
Inkfish
153c9f5c5c Fixed undeclared variables on charserv compiling. how careless i am.....
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13961 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-25 21:09:25 +00:00
Inkfish
698e7a0fc0 Rewrote Quest Log system.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13959 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-25 20:55:35 +00:00
Paradox924X
fda1387f60 Added proper bounds of INT_MIN to INT_MAX for hp/sp when being sent to/from status_damage/status_heal for negative values because of INT_MAX being (-INT_MIN - 1).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13955 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-22 18:46:44 +00:00
brianluau
e151f5b278 - Fixed the config description for 'random_monster_checklv' (follow up to r13952). (bugreport:3378)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13954 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-18 21:44:52 +00:00
Inkfish
9858d45649 * Dead branches no longer check for players' level. (bugreport:3378)
* The Lovers Card won't teleport anyone on PVP/WoE/BG maps. (bugreport:3371)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13952 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-18 02:18:40 +00:00
ultramage
0ed37a79b7 Some insignificant code tweaks.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13945 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-11 07:05:05 +00:00
Inkfish
b1445ca0ae * Some updates for range check. (bugreport:3339)
- Monsters shouldn't use skills if the target is within its attack range but is out of the skill range.
- Monsters' skill range is no longer 9 by default. 
- Range for players' attacks and skills should always check for a circular area.
- The range of Magnetic Earth is 2.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13944 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-11 04:48:40 +00:00
brianluau
f3c006322f - Added documentation for 'getmobdrops' (follow up to r13101). (bugreport:3351)
- Added documentation for 'areamobuseskill' (follow up to r13897). (bugreport:3352)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13942 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-09 05:11:54 +00:00
Inkfish
2d8b6a13f4 Skills that have multiple hits should do 1 damage per hit to plants.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13938 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-07 10:54:21 +00:00
Inkfish
98159d09a3 You should lose hp anyway even if your Martyr's Reckoning is perfect dodged.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13934 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-05 03:40:34 +00:00
Inkfish
ab4ae85ca5 * Extended ATF_SKILL to ATF_MAGIC and ATF_MISC.
* r13932 Fixed a wrong check on hp in Intimidate code. (bugreport:3305) (I forgot to write the message.)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13933 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-04 13:17:08 +00:00
Inkfish
3f4795f53e git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13932 54d463be-8e91-2dee-dedb-b68131a5f0ec 2009-07-04 12:06:04 +00:00
Inkfish
e7219585ed TK_POWER shouldn't count the player him/herself for the skill.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13931 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-04 11:29:36 +00:00
Inkfish
ef5faf1479 * Martyr's Reckoning can be perfect dodged.
* Casting Flying Kick while running and in the spurt status doubles the damage dealt without spurt status. (bugreport:1898)
- TODO: bonus on running is still not correct.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13929 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-04 03:54:58 +00:00
brianluau
3bc93f0426 - Re-added { } that were accidentally removed in last commit.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13927 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-02 19:30:49 +00:00
brianluau
973a96f9aa - Added mosk_que to the mapcache (follow up to r13903).
- Fixed some input checks and variable types in Megingjard quest.
- Updated SQL item/mob databases to latest.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13926 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-02 18:56:16 +00:00
Inkfish
eb77057e6e * Updated autobonus [Inkfish]
- added documentation for autobonus.
- invoke status_calc_pc to complete autobonus execution and this will refresh client display as well.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13922 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-02 12:51:05 +00:00
Inkfish
f9b0729dfa Fixed when dynamic_mobs is active, reloading script right after the last player having left a map leads to permanet mobs not spawning on that map.(bugreport:2736)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13921 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-30 14:27:02 +00:00
ultramage
e54bf092d2 Fixed sql char deletion code using a broken pet deletion query (ran very slow, and had a typo in a binary shift operation) (bugreport:3304).
Fixed change r13774 to the code responsible for deciding whether to move 1 extra cell when stopping walking; it had its logic inverted by mistake (bugreport:3312).
Cleaned up the itemlist, cartlist and storagelist gm command code:
- fixed buffer overflows in all three functions (bugreport:456).
- merged all three atcommand functions into a single one; the appropriate behavior is detected from the command's name.
- using the StringBuf class instead of static-size buffers and string operations for more efficient and safe processing.
- using 'jname' (the one without underscores) as the primary item name in the list, and not using the aegis name for cards at all (since it's almost identical).
- fixed forged item details never being displayed due to a missing strcat().
- extended item info (crafted/named items, pet eggs) will now be displayed for storage and cart list as well.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13920 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-30 09:21:28 +00:00
Inkfish
6b975e4fd5 * Fixed attack not counted as connect when dodged and got damage from skill bonus like Weaponry Research.
* Corrected the description for vit_penalty_type.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13918 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-29 12:47:21 +00:00
brianluau
eebb014937 - Fixed a typo in r13915, causing SC_values 247+ to be off by one.
- Reverted the Continental Guard change from r13911 (that's how it is on official).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13917 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-28 17:06:14 +00:00
Inkfish
50961ceec3 fixed some typos on autobonus
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13916 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-28 10:28:48 +00:00
Inkfish
5516002a5c * Implemented script command "autobonus". [Inkfish]
- "autobonus" is similar to "bonusautoscript", however it has a timer of its own.
- Updated itemdb changing items bonus using "bonusautoscript + sc_start" mode to "autobonus + bonus" mode.
- Remove bonusautoscript and status changes that was needed by bonusautoscript and is no longer in use.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13915 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-28 08:23:53 +00:00
Paradox924X
c52de2b250 Minor update to atcommand_jailfor and atcommand_char_ban's modif_p var incrementation for minute-based bans/jails.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13910 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-23 21:42:16 +00:00
Inkfish
73b120c83b Fixed Backstap bypassing battle_check_target.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13902 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-21 01:39:38 +00:00