2606 Commits

Author SHA1 Message Date
Lance
26500644dd * Optional macro MEMSET_TURBO for faster low-level memory initializations.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8499 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-27 06:38:17 +00:00
toms
7cfbea6671 Small bug fix in read_homunculus_expdb (a warning was always displayed)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8495 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-26 22:42:44 +00:00
skotlex
3a1128726c - Small adjustment on the mob_ai code which could fix mobs not chasing you if you hit them from the maximum possible diagonal distance.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8490 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-26 15:02:52 +00:00
skotlex
c8bdf075de - Cleaned some the skill unit removal added flag so that it signals whether the skill is being force-removed, or it has "naturally expired".
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8484 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-25 19:40:21 +00:00
skotlex
9e90077f67 - The following skills will display a normal attack animation now:
NPC_WATERATTACK, NPC_GROUNDATTACK, NPC_FIREATTACK, NPC_WINDATTACK, NPC_POISONATTACK, NPC_HOLYATTACK, NPC_DARKNESSATTACK, NPC_TELEKINESISATTACK, NPC_SPLASHATTACK
- Skills that require a weapon and consume spirit spheres will no longer be auto-tagged to require ammo.
- Now MISC skills with delay 0 will also use the attack delay (if the skill is tagged to do damage)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8483 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-25 19:15:50 +00:00
skotlex
f5375adc1a - Oops, forgot to even try to compile the previous update.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8481 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-25 16:57:28 +00:00
skotlex
78789dc389 - Added script commands roclass/eaclass to enable scripts to access eA's job format. Read script_commands.txt and ea_job_system.txt for a more complete explanation of how this job system works.
- Removed doc/item.txt (seems like a totally useless file)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8480 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-25 16:52:41 +00:00
toms
44880dc493 Added a flag to skill_delunitgroup, skill_delunit & skill_unit_onlimit.
If 1 is passed, it will avoid UNT_WARP_ACTIVE to be transformed in UNT_WARP_WAITING and will destroy it. [Toms]
( To avoid such crash : http://www.eathena.ws/board/index.php?showtopic=114102 when the code need an empty slot and the oldest one is UNT_WARP_ACTIVE )

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8478 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-25 11:07:30 +00:00
toms
4233fe5c11 - Cleanup/typo on homunc's code
- Modified @reloadmobdb & @reloadskilldb to reload homunc's db too

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8476 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-24 23:49:05 +00:00
skotlex
ea4513e726 - Now when a mob's adelay is set to be less than the amotion, both values will be swapped (this is an attempt to understand how those mobs actually work on aegis)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8474 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-24 20:29:32 +00:00
skotlex
f3687369e6 - script command "isrefine" will no longer return always false for equip positions above 6 (this has not been needed since the addition of the refine column to tbe item_db many months ago)
- Added NPC_CRITICALSLASH to the list of skills that display as a normal attack.
- Changed the default of clear_skills_on_death to 0


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8473 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-24 19:25:16 +00:00
skotlex
383129375f - Reverted the previous change, changed the pet capture code to try to capture a mob based on their view class rather than actual class.
- Changed various instances of md->db->lv for md->level, since the later is the actual mob level.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8471 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-24 15:25:50 +00:00
skotlex
ac3aeb0574 - Fixed the md->class_ variable not being updated when a mob's class is changed.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8470 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-24 14:59:23 +00:00
skotlex
dbedc092e8 - Added setting clear_skills_on_warp to specify when a character's land-based skills are deleted when the caster changes maps. Defaults to all types.
- Should have fixed Brandish Spear not passing the flag to skill_attack, causing it to do miserable damage.
- Warp Portal will no longer be removed when caster steps through it (this is left to the new clear_skills_on_warp setting)
- Cleaned up status_percent_change to switch equations when the target has high hp to prevent overflows, also it will directly take hp/maxhp when a rate of 100 or higher is passed to prevent calculations.
- Traps and Land Elemental fields are no longer automatically removed on map change (handled now by clear_skills_on_warp)
- traps_setting &2 no longer does anything (handled now by blah blah)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8469 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-24 14:49:16 +00:00
toms
10d8fa1083 - Applied some change from mpeg on Ninja Skills
- Put HVAN_Explosion based on max_hp instead of current hp

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8468 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-24 14:43:20 +00:00
skotlex
e19c834ae2 - Fixed mob_clone_spawn completely ignoring the mode variable.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8462 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-24 04:19:56 +00:00
skotlex
44a5b037a3 - Fixed Energy Coat reducing and consuming more than it should when you have 100% SP
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8460 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-23 21:27:51 +00:00
skotlex
db3fdbe23b - Cleaned up getmapxy script function, also added support for type 4 so that it returns a player's homunculus position if such exists.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8459 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-23 20:27:24 +00:00
toms
88841f05dc SC_ARMOR_ELEMENT looks like gone away from status_change_start since ... rev 6791. Try to reimplement it.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8456 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-23 17:22:46 +00:00
skotlex
6ffb2533a7 - Some minor cleanups.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8455 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-23 16:42:42 +00:00
skotlex
99f03f87cc - Fixed HVAN_EXPLOSION (What did I fixed? either it doing no damage, or it giving no exp to the caster, whichever bug was there)
- Frost Nova won't display a nodamage skill packet (still need to sort out a way to fix the splash damaged packets)
- Some cleaning on the timeout code for traps.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8453 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-23 16:12:25 +00:00
toms
cff4864a78 - Fixed a possible SIGSEGV on buildin_maprespawnguildid if the map is unknown
- Added debug on "Inifity loop" to know which script is making this loop


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8451 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-23 13:29:05 +00:00
skotlex
cd5cecdf0f - Adjusted skill_attack_area so that skill_area_temp[1] holds the ID of the target, this way the skill animation will correctly display for the targetted mob, and not the others who get caught in the splash area.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8447 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-23 00:57:21 +00:00
skotlex
98d0cb73fd - Fixed a crash on the mobspawn script command.
- Made SC_FLEET increase batk as well as watk.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8444 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 21:26:17 +00:00
toms
fb6029a221 Fixed gcc warning
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8443 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 20:26:50 +00:00
toms
da4d239d1f Fixed AM_REST not closing the homunc status window
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8442 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 20:10:03 +00:00
toms
34e28b6b16 - Fixed SC_NEN according to Mpeg
- Added a ShowStatus("Terminating...\n") on login-server_sql


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8441 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 19:30:27 +00:00
skotlex
c026d4bcac - Some corrections to make Tatami Gaeshi work correctly.
- Fixed SBR44 doing 100% more damage than it should.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8437 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 18:39:52 +00:00
skotlex
8a8ed83b63 - Some more work on the splash skill code. Now splash-damaged enemies should show no animation at all, just the damage-number, while only the targetted character should still display the full skill animation.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8436 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 17:21:42 +00:00
skotlex
2cf8c82bc7 - Modified the homun-txt file-save format to separate the name from the rest of fields with tabs (like character saving does), this may fix homun save/loading when using non-latin characters on the name, but be warned that it also means the previous homun-data files are lost! (unless you replace the comma before the start of a name with a tab)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8432 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 16:05:53 +00:00
skotlex
9f8cee903c - updated (more or less) the sql-files/item_db2.sql file.
- Some insignificant cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8429 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 14:54:29 +00:00
skotlex
d359756066 - getnameditem will now also work on stackable items
- Corrected battle_calc_weapon_attack so that all skills ignore your left-hand weapon, and that the Katar's double-attack damage bonus for the offhand damage applies ONLY on normal attacks.
- Fixed Resurrect Homunculus's % to 20*lv%


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8426 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 14:09:01 +00:00
Lupus
6d6d0f4000 more typos
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8422 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 11:35:38 +00:00
Lupus
337a5bcaca field typo
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8421 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 11:31:54 +00:00
Lupus
796497fae5 added char deletion condition by BaseLevel
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8420 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 11:27:48 +00:00
skotlex
30bf9a2b13 - Some more cleaning up of the splash skill code. Now the passed hit value for the splash targetted mobs is 9 instead of 5, this allows multi-hitting splash skills to display the number of hits correctly.
- Also merged Blitz Beat to the rest of the splash code.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8415 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 03:30:07 +00:00
toms
a18ae6fb49 Fixed call homunc bug when the homunc was vapo and the master has change of map
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8414 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21 21:57:56 +00:00
toms
cc6ddef2e4 Fixed SQL-Guild Creation, guild name was escaped 2 times
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8413 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21 21:44:52 +00:00
skotlex
df20c4e1d2 - Some cleaning of the splash skills. Updated skill-attack to enable again passing of flag 0xF000 which signals that the skill level sent to the client should be -1 (no skill name shouted). Should (hopefully) clear/clean up a bunch of splash damage skill animation-related packets.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8412 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21 21:35:44 +00:00
skotlex
8ce99cc52d - Homun saving won't cap hp/sp to max hp/sp since a homun can have higher hp/sp than the one stated in the db (due to skill bonuses or status changes)
- Increased splash range of HVAN_EXPLOSION to 4.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8411 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21 19:53:03 +00:00
skotlex
2fa44057cb - Cleaned up some more the regen_data structure, so that skill/sitting-skill related data is optional (since only players have it).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8410 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21 19:36:13 +00:00
toms
9788569dae Fixed AM_RESURRECTION, thanks to RockmanEXE for %HP values
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8409 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21 19:33:51 +00:00
toms
6dfd77c8f5 Fixed HAMI_CASTLE, HAMI_DEFENCE & HLIF_AVOID
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8408 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21 18:46:08 +00:00
skotlex
200813da7e - Adjusted Glittering's success rate to 20+10*lv%
- Corrected isequipped() so that cards will not be tagged as "used up" unless all the specified items were found.
- Fixed a confusion in skill_attack using the src instead of dsrc for some calls, which was causing some problems with the KAITE check from AoE spells.
- Fixed ASC_BREAKER's misc damage part not having the ignore-element flag set.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8406 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21 17:55:19 +00:00
skotlex
03601f28fc - Added BL_HOM handling to battle_gettarget.
- Some cleaning in skill.c in regard to homun skills.
- Madness Canceller now stacks with other aspd bonuses, just like Berserk does.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8403 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21 16:39:14 +00:00
skotlex
fd6e193e90 - Removed config setting "muting_players", and expanded the manner_system config to specify how having negative manner (mute) affects a player (see battle/misc.conf).
- Expanded the pk_mode setting from no/yes to 0/1/2. 1 is normal pk_mode, if 2 is used, it makes killing players give you a loss of 5 manner points.
- Fixed WS_WEAPONREFINE always failing when at less than job 50.
- Fixed a compilation warning in char-txt/int_homun.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8402 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21 16:07:50 +00:00
skotlex
cb54955cc4 - Fixed the Autosave routine not working when there's only one player online.
- Disabled command @rain since the client no longer supports it anyway.
- Fixed delitem not checking for the first slot's card, also optimized it so that it doesn't checks on the other slots.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8399 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21 14:05:24 +00:00
skotlex
05a17d8570 - Added a check during mob_db loading so that the six basic stats, max hp and max sp are never below 1, as this could cause crashes when using certain skills.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8393 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-20 21:57:54 +00:00
skotlex
68df921a84 - Gravitation now only blocks the caster from using potions.
- Corrected Madness Canceller not letting you walk while the effect lasts.
- Splitted yet again ASC_BREAKER into a two-part attack. This time the int-based damage is a MISC type attack, and gets reduced by skills as such.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8392 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-20 21:38:02 +00:00
toms
5dffc4b45e Fixed "int format, long unsigned int arg" warning
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8391 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-20 20:56:08 +00:00