2386 Commits

Author SHA1 Message Date
skotlex
063270b3cb - Soul Breaker will now be affected by Lex Aeterna on both parts of the attack.
- Some minor code cleanups
- Cleaned Adaptation's code to not require to check the Skill Unit group structure to extract the skill lv info.
- Status changes with no skill and no SCB* data will now go through if they have an SI* icon. This should fix SC_MIRACLE
- Reverted switching a mob's adelay/amotion when the later is longer than the former, now both get updated to amotion.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8574 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-01 14:12:51 +00:00
skotlex
a19cafda61 - Moved the intimacy penalty of HFLI_SBR44 and HVAN_EXPLOSION to skill_counter_additional_effect
- Simplified skillnotok_hom by using an invocation to skillnotok
- Hopefully fixed BD_ADAPTATION
- Homun won't lose any intimacy on death now.
- Homun will be saved together with the master now (as long as the homun is active)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8564 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-31 16:40:37 +00:00
skotlex
5c8103cb76 - Modified the error reporting in map_freeblock_unlock so that when there's an error, the reported line number is the file's linenumber plus the object's type *10000. This is for debug information to help track down the already-freed error.
- pc_adopt will now preserve the kid's job/job-level/experience. This means that if you adopt a Swordman level 45, it will become a baby-swordman level 45, with the exact same exp as before.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8563 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-31 16:09:50 +00:00
toms
4ed81c185a Fixed new mob's name not sent to the client when the mob is morphed
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8562 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-31 15:22:32 +00:00
skotlex
da0c3867d8 - Added setting attack_walk_delay which specifies whether a character should (or not) be able to move inmediately after starting a normal attack (battle.conf). Defaults to 0 since that's what Aegis uses.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8561 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-31 14:46:56 +00:00
skotlex
eac939f439 - Fixed @summon's delete timer being screwed up.
- Cleaned up a bit the summon script command.
- Fixed the clone script command's delete-timer being screwed up.
- Corrected battle config name max_walk_rate, it should be named max_walk_speed.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8559 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-31 14:18:37 +00:00
skotlex
b0428a5285 - Skill required-state will now only be checked on cast-begin, not cast-end.
- Added a check in status_calc_pc to prevent player rate adjustments from from going below 0.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8553 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-31 01:10:36 +00:00
skotlex
83c639d54a - Removed sending normal-damage packets instead of skill packets for splash-damaged skills, since... well, that's how Aegis does it.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8548 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-30 14:22:20 +00:00
skotlex
87d78eb976 - Updated HLIF_CHANGE to work as explained by Tharis -> It now adds 30*lv vit and 20*lv int, is dispelled on warp, and can-act delay is 5+5*lv minutes. Hp/Sp is no longer set to 10 after a forced expiration.
- Added instant skill unblock in skill_[merc/pc]block_start when the duration passed is less than 1.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8547 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-30 14:11:23 +00:00
skotlex
0f8fb18252 - Fixed char-sql compilation
- Added support for reading the item_db_db inter config settings (char-sql)
- Fixed some compile warnings (functions with no arguments should have a (void) instead of ()).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8546 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-30 13:56:27 +00:00
skotlex
dfac028631 - Added a message to @clearweather stating when climate changes will dispel.
- Corrected @hidenpc saying that it's command name was "@npcoff"
- Updated itemdb reading on the char-sql server so that it reads both item_db and item_db2 files (totally untested yet as I can't compile SQL here x.x)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8545 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-30 13:40:10 +00:00
skotlex
20bb25e81d - Added printing out whenever the irc-module attempts to connect, to debug whether the map-server lag is due to this or not.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8537 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-29 18:42:11 +00:00
skotlex
499e88f059 - Mobs will now always chase players using hard-path seeks.
- monster_ai&1 now only signals whether mobs should update their target cell while chasing more frequently (rather than being state-driven like Aegis)
- Changed the defaults of view_range_rate and chase_range_rate to 120 to aproximate better Aegis's view ranges (which are square areas and not circles)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8536 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-29 18:29:37 +00:00
toms
66158f3bb6 - Applied Mpeg's work on GS
( http://gpegon.free.fr/ea/gunslinger_08-29-06_mpeg.txt )
- Fixed a syntax error in @showmobs


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8528 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-29 10:23:11 +00:00
Lupus
28b1fa6ff4 @showmobs = shows selected mobs on mini-map
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8527 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-29 05:52:34 +00:00
skotlex
7107181297 - Restructured CG_MOONLIT so that it is a ground effect like the other Encores.
- Modified SC_DANCING so that val1 can contain both skill id and skill lv, removed SC_MOONLIT


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8526 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 20:44:44 +00:00
skotlex
a45d7c414d - The memory leak reports will now print out in the logs also the revision they belong to.
- Cleaned up the scriptable npc-shop code, it should be crash-proof now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8525 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 19:22:13 +00:00
DracoRPG
0f0747d4c7 Added TK level-up buffs to SG too, and extended them to 10 min
Added "Barefeet Mastery" effect to TK_RUN
-> As always, big thanks to Tharis ;)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8524 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 19:09:46 +00:00
skotlex
af5ad1cfda - Changed the produce_db format, now there's a skill-lv column right after the skill-id column to specify required skill-level to craft this item.
- Modified the skill produce_db code to take into account the new skill-lv requirement.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8523 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 16:47:19 +00:00
Vicious
5cfee7525e reverted mpeg's work
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8522 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 16:15:16 +00:00
skotlex
8de2aba3b4 - Reverted the "fix" to mdef reduction code being applied before the number of hits adjustment @.@
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8521 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 16:13:28 +00:00
skotlex
4120bc9c3b - Added a missing pair of lines to mob.c which mysteriously vanished on my last commit @.@
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8519 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 16:07:10 +00:00
skotlex
33cb9f7449 - Fixed exp bonuses applying twice for the job-exp
- Magic damage adjustment per number of hits is now performed before mdef reductions.
- @reloadbattleconf  will now also update the ragsrvinfo table on the char-server.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8518 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 16:03:23 +00:00
toms
f61e238ad7 Reverted Mpeg's change of NJ_BUNSINJYUTSU SCB
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8517 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 15:31:03 +00:00
skotlex
79dce13c08 - Fixed homun hp/sp growth rates stacking with HP/SP passive increasing skills.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8514 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 14:10:43 +00:00
toms
b891e7752c Applied Mpeg's work on GS ( http://gpegon.free.fr/ea/gunslinger_08-28-06_mpeg.txt )
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8513 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-28 13:40:55 +00:00
Lance
52453a6433 And a minor typo. Sorry.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8506 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-27 22:28:35 +00:00
Lance
8867e722ac Tweaked MEMSET_TURBO abit, temperory disabled GCC version.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8505 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-27 22:20:00 +00:00
toms
c92fc42ba2 Fixed undefined reference to 'malloc_set' in log.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8501 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-27 20:08:14 +00:00
toms
6dc1c19fdb - Updated svn-revision reading, now it can read the new svn file system
- Fixed a bug with homunc which could spawn on a non-walkable cell

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8500 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-27 18:47:53 +00:00
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