1657 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
6dc8e549e4 Reloadscript cleanup
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6707 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-23 10:40:54 +00:00
Lance
c243406d9e Crash prevention
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6706 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-23 10:34:08 +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
Lance
aaa3738ed9 Dunno what the hell the causing the errors when using '@variables, 'variables works fine.. something is messing up....
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6702 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-23 08:01:40 +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
0867d2e23e * Looks like I fixed all of the leaks.. need someone to check :P
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6692 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-22 12:39:47 +00:00
Lance
2870364349 - Fixed some of the leaks.. still fixing..
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6691 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-22 12:38:12 +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
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
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
2e341e2a76 And again
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6672 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-21 02:39:32 +00:00
Lance
90d285dbd9 * Fix the fix: Should be sd->npc_str[message_len]=0;
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6671 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-21 02:38:34 +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
58204d275e * Ammendment: battle_config.skill_sp_override_grffile
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6668 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-20 15:23:01 +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
0d31063329 - Corrected number of water-ball hits when used by mobs and not consuming deluge cells when using lv1 (Thanks to Kyoki).
- cardillust_read_grffile, item_equip_override_grffile, item_slots_override_grffile, and item_name_override_grffile are set to 0 after map-server loads to prevent crashes on item_db reloading.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6656 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-19 14:42:52 +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