661 Commits

Author SHA1 Message Date
skotlex
9776045b22 - Corrected SL KA* spells not working on other Soul Linkers.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6727 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-24 14:45:30 +00:00
skotlex
6a7fd3930f - Corrected mob angry mode, now it only "restores" itself after being hit when the mob has no target within their range of sight rather than on picking a new target.
- Corrected a pair of incorrect sql query parsing logic in the login-sql ban request packet.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6724 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-24 13:42:12 +00:00
Zido
3d73de5545 - Fixed wedding sprite staying active after unequip.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6719 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-23 20:40:41 +00:00
skotlex
8b29b1574f - Some cleanup of run_script, should fix the memory leak there.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6718 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-23 18:16:25 +00:00
skotlex
0c8a59d012 - the charname request hack message has been downgraded to only include GM-invisible characters.
- corrected clif_charnameack to send negative ID when a disguised player asks for it's own disguised name.
- Cleaned up the disguised target-id checks taking into considering that the only character that sees a negative ID is the same disguised character.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6715 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-23 15:43:40 +00:00
skotlex
ed8a9e9848 - Modified battle_calc_weapon_attack to use new flags pdef/pdef (pierce defense), Investigate and Icepick will now use the final def/vit-def values rather than the base ones.
- The move-enable condition checks for skills are now checked for only when on skill use, not at cast-end time.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6714 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-23 15:08:37 +00:00
skotlex
e7a25fdeac - Corrected clif parse name request failing on disguised characters.
- Corrected Soul Drain draining from all non-ground-based skills including non-magic attacks.
- Corrected pc_setoption to change the option and then change class. changing option-wedding will automatically convert the view-class as well.
- Corrected the 15% drop rate increase when killing higher level mobs in pk-mode triggering for all mobs with lower level than yourself. Thanks to Vayu.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6709 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-23 13:51:42 +00:00
Lance
81efffac73 * Fixed typo (this time it's not my fault) in script_reload() clearing the same db each time o_o
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6708 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-23 10:59:36 +00:00
Lance
56005cb610 * Fixed sleep command.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6705 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-23 09:54:27 +00:00
Lance
fa084e111c * Added 'setd' support for local NPC scope (') variables.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6704 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-23 08:35:22 +00:00
Lance
5120d7677c * [Scripting Engine Update] New variables are ready to be used.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6703 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-23 08:22:53 +00:00
skotlex
1a06a9a6f4 - Updated skill_delayfix to return 0 for mobs since they have no skill delay other than the one specified in mob_skill_db
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6699 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-22 19:56:26 +00:00
skotlex
8e1cd35c5a - Corrected the 20 lvl diff 15% exp bonus on pk_mode servers. Thanks to Vayu for pointing it out.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6698 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-22 17:33:58 +00:00
skotlex
b59d433a35 - Fixed a pair of compilation logic errors.
- status_get_sc_tick will now use directly Stun's formula rather than invoking the status sc chance once.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6697 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-22 15:58:49 +00:00
skotlex
98de35a4f7 - Fixed a possible null pointer in script command misc_effect
- Modified Investigate to take into consideration final def/vit-def rather than base values for damage adjustment.
- Added missing include unit.h in pet.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6695 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-22 14:38:18 +00:00
Lance
a7e5993400 * WARNING: New scripting system contains memory leak
TODO: Free all scripts using script_free_code() instead of old methods. 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6690 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-22 12:15:49 +00:00
Lance
5dbe5de760 * Excluded idle and auto-trade party members from TK_POWER list.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6688 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-22 09:40:18 +00:00
Lance
6ae92d0a86 * Fixed compilation errors.
* Tidy up jobmaster for easy debugging. 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6686 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-22 08:52:56 +00:00
Lupus
64a604f58e added thanks
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6685 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-22 08:34:16 +00:00
Lupus
24beddd3ae SC_SPEARSQUICKEN -> SC_SPEARQUICKEN normalized enum name
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6684 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-22 04:49:33 +00:00
blackhole89
752cd268ef * Part A of the Homunculus code.
This only features the structures, status_* and clif_* (packets) and is
	  not functional yet in any conventional way, but doesn't interfere
	  with present functionality either.
I would only forget half of this stuff if I tried to do all at once.
Expect the rest somewhen within the upcoming week.
(This is not similar to jA's implementation.)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6681 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-21 18:59:13 +00:00
Lance
4908a915e7 Incorrect dates in changelog :(
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6679 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-21 13:37:55 +00:00
Zido
c10e8877aa - Fixed the "fake" mute status bug
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6677 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-21 11:55:20 +00:00
Lance
3fbb543cfc * Speed up array size calculation and deletion.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6676 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-21 08:09:20 +00:00
Lance
f0d3a6cb54 * Player must learn the skill before doing auto-spell
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6673 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-21 02:48:25 +00:00
Lance
2a38662225 * Exploit prevention in clif_parse_NpcStringInput
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6670 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-21 02:37:36 +00:00
Lance
96817a95ec * grfio_final moved back (with condition) if any of GRF overriding is enabled so servers with such configuration will not have different values after reloading.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6667 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-20 15:17:18 +00:00
Lance
720879a767 * grfio_final moved back to do_final since it's used by @reloaditemdb.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6666 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-20 15:08:31 +00:00
Lance
fdfaf7ba79 * jA1983 script.c buildin_menu fix. Thanks to End_of_exam.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6665 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-20 15:01:47 +00:00
Lance
a233231e4c * Abit of alterations to login-server.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6664 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-20 08:14:35 +00:00
Lance
025ee8cbb4 * Minor unsigned/signed alteration in pc_additem to shut the compiler up.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6661 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-19 17:12:01 +00:00
skotlex
1f864cfee8 - Small change in pc_additem that could be fixing the current bug with it.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6660 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-19 16:52:38 +00:00
skotlex
078cab13fd - Fixed loginlog definition in main.sql, thanks to Tempesta
- Likely fixed the mob-skill random picking behaviour causing infinite loops sometimes.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6658 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-19 16:27:14 +00:00
skotlex
1b2a882dc3 - Added some braces to clear up the code in pc_additem, even though I doubt it'll fix the problem :X
- Modified mobskill_use behaviour to pick a random starting point and check skills from that, rather than always checking from first to last. Fixes skills with high priority blocking skills lower down in the list from triggering.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6657 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-19 15:38:15 +00:00
skotlex
5e600508f8 - Updated mob ai behaviour so that mobs use IDLE state skills when their current target cannot be reached for melee fighting.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6655 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-19 14:03:40 +00:00
skotlex
d16d7e47b4 - Added 5 config settings to adjust damage in pk-mode servers (misc.conf)
- Corrected LoV's effect range for levels 11+ to range 8.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6646 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-18 21:14:18 +00:00
skotlex
55d19e5598 - Fixed mob_max_skilllvl being capped to 11!
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6643 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-18 17:49:15 +00:00
skotlex
e5f005cc1d - Rewrote/cleaned up several functions in storage.c
- Optimized pc_additem comparisons to account for items with more than four slots.
- Updated clif.c to enable retrieval of items from cart/storage while trading. Exception is retrieving items from the cart while vending.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6642 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-18 16:55:07 +00:00
skotlex
862dde5c5b - Some code cleaning of the skill reiteration/nofootset code.
- skill reiteration code now does not checks for the trigger-area of the skill in the case of non-players, which means mobs can now place traps in cells adjacent to each other.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6640 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-18 14:37:48 +00:00
skotlex
0aed0eaa95 - Applied an experimental weather code that should lower bandwidth usage to near-none, which's only disadvantage should be the weather not clearing out until moving to another map (even when the mapflag is removed from the current map).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6639 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-18 14:11:16 +00:00
skotlex
f56c98572b - NPC_AGIUP will now give movement boost of 50%
- Fixed WZ_WATERBALL number of hits when used by non-players.
- MO_BODYRELOCATION will send the slide packet with the actual src's coordinates rather than selected tile.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6638 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-18 13:52:56 +00:00
skotlex
e2ba12927e - Modified mob_can_changetarget to return true always when the new target is the provoked-by character. Fixes provoke not making the mob change target when it already is locked on another player.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6633 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-17 15:23:25 +00:00
skotlex
af26a46c9b - Added check to clear previous skill when combo time ends. Should fix TK Rankers being unable to initiate a combo with the same kick their previous combo was finished with.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6630 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-17 14:23:00 +00:00
skotlex
c042d6153c - Power Up and Agi Up now increase Hit/Flee by 20%/lv
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6629 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-17 13:46:05 +00:00
skotlex
4fcac3b2f9 - Modified "hide woe damage" to send the number of hits rather than 1 as damage Because when the damage is less than the number of hits, the client will display MISS.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6624 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-16 18:51:20 +00:00
skotlex
1bac98be0c - Fire Pillar will now do 200%MATK damage per hit when level is >10.
- Blood Drain always hits now.
- Fixed Mob Area Skills not updating their use-time (rendering their skill delay useless)
- Search free cell will now skip picking the center-tile as target location. Will prevent slaves from walking on top of their master, or mobs placing stuff right under themselves with the "around" target conditions.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6621 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-16 14:42:54 +00:00
Playtester
f44e764d49 More Amon Ra related changes
- Dark Blessing and Blood Sucker now have a range of 9 tiles
- Small fixes on his skills again
- G_Khalitzburg is a bit slower now

Changes to skill.conf:
-mobs now can stack ground skills by default
-mobs can place unlimited ground skills
-format for land_skill_limit changed

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6614 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 23:17:16 +00:00
skotlex
1b1249c5d8 - When reading mapflags, when a map is set to be pvp or gvg, the other will be turned off (disables pvp mapflags in gvg maps for pk-servers)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6610 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 21:09:45 +00:00
skotlex
c832510453 - Firepillar's damage per hit is now 100% MATK (rather than 20%) when the skill level is above 10.
- Sorted out the item_data structure, getiteminfo should work correctly now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6608 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 20:24:37 +00:00
skotlex
96c03caf7e - Soul Drain will now show the SP drained regardless of drain display settings.
- SC_COMBO state will now end in skill_attack rather than skill_check_condition (as it is required there to apply damage bonuses based on combo-casted skills)
- Spirit skills now have 500ms delay.
- KA skills can now be casted on other Soul Linkers as well without the Spirit requirement.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6607 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 19:30:35 +00:00