2131 Commits

Author SHA1 Message Date
skotlex
7a8371273a - Merged the unit_data structure from jA for handling unit-related data (attack times, walking, auto-attack timers, skill related data)
- Modified unit_skillcastcancel to receive flag&2, which stands for "cancel casting only if current skill is cancellable"
- Battle config options changed from yes/no to BL_TYPE settings: skillrange_by_distance, skill_noreiteration, skill_nofootset, gvg_traps_target_all, skill_log, attack_direction_change, auto_counter_type
- Clif.c will disconnect sessions that send an unknown command packet above 0x30000 instead of just ignoring it.
- Cleaned up/rewrite of the pet ai, same for pet_calc_pos
- Implemented use of mob variable attacked_players as it is used on jA
- Cleaned up error reporting during mob-skill loading to be less spamy with non-loaded mobs.
- Corrected water_height reading. I forgot to give credits to LittleWolf for providing the water-reading function :X


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5707 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-22 23:58:16 +00:00
Lance
a4bf5eb3d0 [reddozen's fix]
- Updated Full Buster's damage, status effects, and skill levels
- Bullseye now only uses 1 coin
- changed Adjustment's required SP
- changed Incerase Accuracy's effect bonuses
- changed Magical Bullet's SP cost
- changed Piercing Shot's damage and SP
- changed Desperado's range, hit count, aftercast delay, and SP
- fixed Absorb Spirit Sphere being able to remove coins
- changed Acid Demonstration's damage to the new Japanese formula

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5699 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-22 07:24:47 +00:00
skotlex
5cc553de0f - Small fix to prevent killer/killable states from allowing you to target yourself.
- Added Explosion Spirits to list of effects that dispel on logout.
- Fixed handling of guild skills by pc_blockskill_start, renamed it to skill_blockpc_start as it needs some constants available only in skill.c
- Fixed autoguard icon showing with stun.
- Fixed splash area of Ganbantein
- Fixed acid demonstration breaking shield instead of armor.
- Fixed Slim Pitcher crashing server ocassionally.
- Hopefully fixed Ankle Snare lasting the whole trap's duration
- Added sc_start(SC_ENDURE) on infinite endure bonus.
- Fixed Berserk Pitcher consuming required items twice.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5681 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-20 14:45:17 +00:00
skotlex
22c298e647 - Removed a block of code from skill_check_condition that actually belongs to status_check_skilluse.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5651 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-17 18:58:41 +00:00
MasterOfMuppets
9a0ac94596 A small fix.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5633 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-16 23:05:49 +00:00
MasterOfMuppets
22daa51d05 Restricted the use of GS_BULLSEYE to demi-human and brute targets.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5629 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-16 16:25:23 +00:00
Lance
3e1af99395 * Made an adjustment to addspiritball() to allow Gunslingers to summon up to 10 spheres [reddozen]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5626 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-16 06:48:37 +00:00
skotlex
0c244d241b - Fixed Tarot Card of Fate using time instead of time2 which is the one that actually holds the effect duration.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5623 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-16 02:38:47 +00:00
skotlex
7571250c04 - Fixed mob random walk interval being set to up to 6K seconds in some instances.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5621 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-16 02:17:48 +00:00
skotlex
f5ff59a033 - gm_skill_unconditional setting now also overrides skill_partner_check setting.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5612 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-15 16:16:12 +00:00
skotlex
e0dc8cf506 - Fixed twilight pharmacy dropping 1 item to the ground instead of the qty produced. Thanks to k3dt
- Fixed Plagiarism not working unless you had some sc active.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5607 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-15 13:35:59 +00:00
skotlex
68e0a223ff - Fixed skill_notok blocking guild skills
- Fixed Napalm vulcan's time2 entry in the skill_cast_db
- Removed a pair of debug switches that shouldn't be needed anymore.



git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5604 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-14 23:52:01 +00:00
skotlex
c22cfd5ae8 - Fixed WZ_WATERBALL + HW_MAGICPOWER
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5601 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-14 19:30:42 +00:00
skotlex
2f09d39c17 - Fixed incorrect range check in autospell2 triggers.
- Modified Wedding recall skills to behave as in officials.
- Modified Arrow Shower to be a ground-based skill and work as it should on officials.
- Fixed skill_additional_effect triggering every time you were being hit even if no damage was returned.
- Fixed battle_calc_damage_return to make magic damage be returned by 100%, and received damage nullified


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5598 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-14 17:51:42 +00:00
skotlex
7509afab42 - Fixed player auto-attack not cancelling when dead.
- Some cleanups in skill_unit nooverlapping code.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5595 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-14 13:38:49 +00:00
skotlex
236bb687c9 - Finished some checks to make sure Land Protector Only blocks BF_MAGIC skills. Hammerfall is no longer blocked.
- Some adjustments to what Dispel can remove.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5593 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-13 21:04:53 +00:00
skotlex
6e2b036285 - Shield Reflect is now passed through Devotion as well.
- Devotion won't work on guildmates now (only party-members)
- Devoted to characters lose the devotion effect when the Crusader is at less than 25% Hp.
- Changed Gravity Field's element to earth so that it may hit hidden chars.
- chrif_scdata_save will not send a save scdata request when the char has been already tagged as in the final save.
- Cleaned up status_change_start a bit to make status_change_end calls on a separate switch, before it is cancelled by the switch about "sc already active". If it fails because the sc is already active, now it returns 1.
- Cleaned SC_SUITON a bit to get rid of that compile warning.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5589 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-13 18:50:35 +00:00
skotlex
f5359b3bbc - Corrected char-server parameters so that the subnet config file is the third parameter, not the second (which was conflicting with inter_athena.conf's argument), thanks to foobar.
- Fixed TK and Soul Linker's position of their job entry in exp2.txt, thanks to Coltaro.
- Fixed NPC_GRANDDARKNESS targetting the enemy instead of yourself in mob_skill_db.
- Fixed Grandcross's hit and range entries in the skill_db (it had hit 5? that wasn't even a valid value from the description)
- PR_BENEDICTIO now ignores mdef
- Removed the status_isdead checks from status_check_skilluse, they are now done only on the skill_castend_* functions.
- Fixed NPC_SELFDESTRUCTION not doing the correct damage to oneself.
- Fixed chatlog's x/y column capacity.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5584 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-13 14:49:16 +00:00
Vicious
d6f096d89d nj/gs work by RockmanEXE and red_sun
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5573 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-12 01:42:29 +00:00
Vicious
173221b52e more ninja/gs work
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5572 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-11 16:12:04 +00:00
skotlex
1b0b8a393a - Fixed mob-casted demonstration/quagmire being affected by the gvg_traps_all config setting.
- Moved the gvg_traps_target_all config from guild.conf to skill.conf


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5568 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-10 21:30:17 +00:00
skotlex
dd2012602d - Cleaned up the Skillbreaker implementation, HP gaining happens at level 5 now.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5567 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-10 21:11:45 +00:00
skotlex
5f8c670ba3 - Added a few dummy times in skill_cast_db for some GS skills.
- Autoskills now won't trigger on maps where said skill are not allowed.
- Some compilation warning fixes


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5565 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-10 19:26:56 +00:00
Vicious
6a9cccbf46 some ninja/gs work
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5561 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-10 15:58:22 +00:00
skotlex
01cf48cd39 - Fixed a memory overwrite crash on pc_readdb, thanks to foobar.
- Fixed only the first TK stance triggering when you have multiple of them active.
- Default of skill_attack_enable changed to yes.
- Fixed a compiler error in some ninja skill that only triggers on windows or c++ compilers.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5557 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-10 13:35:11 +00:00
blackhole89
a2a0e1e323 only the first 22 CSVs were read in, but MAX_WEAPON_TYPE+5 was 27 -> uninitialized array indices got atoi'd
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5539 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09 20:26:45 +00:00
skotlex
8309da5f58 - Made Magic Crasher a BF_WEAPON attack.
- Made skill_unit_range a per-level setting. meteor and Lov now have their unit range adjusted in the skill_unit_db rather than hardcoded.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5536 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09 19:14:21 +00:00
Vicious
c4d6af569a more ninja/gs update
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5535 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09 18:39:57 +00:00
Vicious
d574e42132 partial SC work. it doesn't break, but it doesn't work either.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5529 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09 09:14:11 +00:00
Vicious
a3d320f902 more skill fix.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5524 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09 00:56:11 +00:00
Vicious
f36f60be04 nj/gs skill update
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5516 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-08 16:37:58 +00:00
Vicious
10f9078ab9 some skill check condition
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5514 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-08 15:43:04 +00:00
Vicious
d4e9bcf863 fixed compile issue. fixed ninja issues.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5510 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-08 05:52:55 +00:00
Vicious
d2a34c42cc some NJ/GS fix.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5509 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-08 05:18:46 +00:00
skotlex
fad5deaa7b - Added a check that forces self skills to cast on yourself in skill_use_id
- Skills with INF_SELF_SKILL + INF2_NO_TARGET_SELF are now "combo" skills in the sense they auto-select your attack target, and do not stop your attacking animation. Attackable time by default is adjusted by amotion.
- Gospel won't start taking effect until after 10 secs have passed.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5501 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-07 21:31:01 +00:00
Vicious
396e392fd0 more ground work for ninja/GS
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5500 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-07 21:11:54 +00:00
skotlex
39b2650cf0 - skill_blown flag&0x40000 now knocks back in a random direction.
- Some small cleanups to prevent skill_blown execution when the distance is 0 or the target couldn't be knocked back.
- WZ_STORMGUST now knocks back on a random direction.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5484 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-07 17:06:15 +00:00
skotlex
223025ffd0 - Some code-speedups on reading the skill-requirements in skill_check_condition.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5482 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-07 13:51:42 +00:00
skotlex
445fa07fa2 - Some corrections due to the guild skill position change.
- Removed file todo-for-stable as it's impossible to keep it updated :X


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5479 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-07 04:15:39 +00:00
skotlex
2b874adf3c - Fixed a debug message showing up on skill castend nodamage id when using a guild skill
- Fixed #save not working on maps not in the current map server.
- Added battle config clear_skills_on_death to decide whether all ground-based skills should be removed when you die. Defaults to yes.
- Changed Magic Crasher's element to -1


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5472 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-06 14:37:44 +00:00
skotlex
f52676dd01 - Fixed remove trap by updating the definition of INF_GROUND_SKILL (it shouldn't include target-targetting skills!)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5468 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-05 19:14:58 +00:00
skotlex
1dbb2df0a7 - Fixed animation of Redemptio
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5466 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-05 18:12:20 +00:00
skotlex
9e7f9a41ad - Fixed a pair of missing map_freeblock_unlock
- Changed around a bit the code of the skill_get defines to return 0 if you ask for an id of the place where the guild skills are placed. Also moved the guild skills block to ID 900~915. Also stuff like skill_get_inf will return the relevant guild data as defined on skill_db.txt


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5465 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-05 16:06:30 +00:00
skotlex
dc8dd724eb - Fixed missing baby-dancer job in exp2.txt
- Added function battle_set_walkdelay in charge of updating walkdelays of characters based on two criterias: when the delay is induced by damage, if the current walk delay isn't over yet, do not update it. If the delay is instead caused by a skill, then the current walk delay cannot be decreased, only increased.
- Removed the canmove tick reset on skill cast cancel; likewise it isn't updated on begin casting. pc_can_move uses a skilltimer check to know whether you can move or not.
- Added GrandCross's can't move delay of 900ms to skill_cast_db
- Added Finger Offensive's can't move delay of 200ms/lv to skill_cast_db


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5457 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-04 04:48:30 +00:00
skotlex
db973e2998 - The rate passed to status_change_start must now be in 0->10000 range.
- Added macros sc_start and sc_start4 to simplify invocation of status_change_start.
- Cleaned the active guild skills, requirements moved to skill_check_require, should now be usable by non-players as well (pets/mobs).
- Updated skill_cast_db time info. Magnum's time2 is skill-block time, St. Recovery/ Cure's time2 is the confuse/blind duration, added NPC_POWERUP/NPC_AGIUP durations, Napalm Vulcan's time2 is curse length, and most of Tarot Card's effects last time2 as well.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5454 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-04 01:54:56 +00:00
skotlex
1e302d8177 - Fixed compilation error on windows
- Strip sc's are now removed on logout.
- Some cleanups


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5451 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-03 20:01:00 +00:00
skotlex
2558edf496 - Added a column in skill_cast_db for specifying can't walk delays.
- Removed the apply walk-delay entry from skill_cast_nodex
- Fixed autoloot dropping the item to the ground even when it was autolooted.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5450 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-03 18:46:51 +00:00
skotlex
373436fbde - Added event 8 for mobspawns that should spawn with special ai set.
- Modified battle_check_target so that mobs with special ai's default enemy are mobs with no special ai.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5448 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-03 17:15:09 +00:00
skotlex
d770421a9d - Trick dead now ends on logout
- Added mapflag nocommand which blocks @/# commands unless your gm level is above gm_skill_unconditional's level.
- Fixed weapon scripts not being executed unless the weapon was forged.
- gm_skill_unconditional is now a no/gm-level setting instead of yes/no


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5446 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-03 14:38:13 +00:00
skotlex
de382f40b6 - Added the skill-related variables to pet_data, removed the pet skill delay structure.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5440 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-03 02:51:45 +00:00