4932 Commits

Author SHA1 Message Date
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
zephyrus
33e1fbbd66 - Instancing System (Thanks to Sirius White who did most of the code, with some of my work to implement client side information, some optimizations and bugfixes). Also thanks to contributions from UEAUP team and Orcao.
- Fixed a bug on areamobuseskill and changed it to make it as Aegis.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13901 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-20 17:56:01 +00:00
Inkfish
e447a8a92a * Changed Asura Strike/Jump Kick to target skill to get rid of the "target delay". (bugreport:2174)
- skill tree will be re-sent on status change to handle using these two skills during combo.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13900 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-20 08:22:52 +00:00
Inkfish
47d2031e40 Fixed a typo in buildin_mobuseskill_sub
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13899 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-20 02:07:00 +00:00
Inkfish
1d90917604 * Implemented script command "areamobuseskill" and skill NPC_INVINCIBLE and NPC_INVINCIBLEOFF. (topic:217330)
* Using items no longer cancels invincibility(but using target and ground skills through items does). (bugreport:3259)
* Fixed Butterfly Wings not working during GVG. (bugreport:3264)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13897 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-19 13:26:50 +00:00
Inkfish
6ee6b810e0 Fixed wings not working when used on top of Magnetic Earth.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13896 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-17 09:06:29 +00:00
Inkfish
144103199a * Turn Undead shouldn't apply aftercast delay when casted on a "living" entity. (bugreport:1740)
* Autocasts should always fail if the target is outside the skill range or an obstacle is in between. (bugreport:3201)
* The Lovers should affect the target instead of the caster. (bugreport:3252)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13895 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-16 14:08:18 +00:00
Inkfish
86d162ad13 Fixed an exploit that makes guild skill get higher level than the max defined in guild_skill_tree. (bugreport:3241)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13894 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-16 12:35:03 +00:00
ultramage
1035d7490f Removed the 'src' parameter from skill_delunitgroup() (see r5911) (bugreport:3253).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13893 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-15 16:33:01 +00:00
Inkfish
94583ef92f * Skill through items will not be blocked when 90% overweight. (bugreport:3246)
* Now you can drop items when hiding.
* Now you can't logout when hiding, cloaking or chase walking.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13892 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-15 15:29:32 +00:00