548 Commits

Author SHA1 Message Date
skotlex
0349c76984 - Kaahi now triggers every 500ms rather than on every hit (but it only heals if in those 500ms an attack that would previously trigger Kaahi has taken effect). In other words, it works just like before, except damage gets "buffered" into 500ms slots.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6463 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-03 19:47:10 +00:00
skotlex
01340a866e - Kaite, Kaute will now show a skill effect when they trigger.
- Fusion's cast time reduced to 0.
- Knowledge will now only trigger if you logon to the memorized map, not walk into it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6462 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-03 17:53:57 +00:00
skotlex
a312cf5d84 - Corrected @whomap directly invoking msg_table[] rather than msg_txt()
- Guessed where the pet data goes in spawn packet 0x7c
- Updated Charge Attack's state from none to move_enable.
- Made tomahawk an NPC_SKILL so that it may not be plagiarized.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6459 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-03 14:15:20 +00:00
skotlex
827f003768 - Fixed standing up not really standing you up.
- Moved battle_consume_ammo to the end of skill_castend_damage_id, skill_castend_nodamage_id and skill_castend_pos2 rather than battle_calc_weapon_attack. They will trigger when the player's arrow_atk state is active and a ground skill was not invoked. It should fix all issues with splash/ground skills consuming ammo per target rather than once per skill use.
- Added structure state to the ground skills, their fields are magic_power, into_abyss and ammo_consume to indicate the states that were previously stored in val3.
- Corrected Desperado ammo consumption (should be 10)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6455 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-03 04:02:17 +00:00
skotlex
7f07476e22 - Implemented desperado as explained by Rockman-EXE.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6454 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-03 00:33:37 +00:00
skotlex
f977066536 - Removed the unit_can_move checks in skill cast-end, they should be performed in skill_check_require when the skill's state is move_enabled.
- Changed extremity fist's state to move_enabled, the explosion spirits check is now hardcoded.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6452 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02 21:21:00 +00:00
skotlex
9b6b46c455 - Absorb Spirit Sphere now gives +10SP per sphere as per discussions with Haplo.
- Changed a <= into a < in pc_steal_item. This means drops with 0.01% are impossible to steal unless you have at least 100% steal-rate (where steal rate is dex - opponent dex + skill_lv*3% + 10%)
- Cleaned up clif_parse_action_request to enable sitting/standing while in shops, interacting with npcs, etc.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6451 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02 19:53:38 +00:00
skotlex
1839d33ce7 - Kaite now works against all types of spells.
- Kaupe now works against all skills.
- Sanctuary now won't damage non-enemies.
- Blessing now will always give you bonus stats even if you are wearing undead armor.
- Linking skills now have their cast-time reduced by dex.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6447 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02 16:32:37 +00:00
skotlex
64618b2b98 - Modified how Rogue's treasure works so that you get +1% to your steal rate rather than +0.01% to the final rate.
- Rewrote Warmth to use ground-skill-units, it should behave now like in officials (implementation is not quite the same, but it should yield the same effects while consuming less bandwidth). "Stacking", as it's called, is possible now, but limited to eA's minimum timer skill interval (100ms).
- Modified NPC_POWERUP so that it gives +10 dex * skill level rather than +5+lv to all stats (as explained by Playtester and Tharis on how the skill behaves).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6446 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02 15:02:29 +00:00
skotlex
de78454f67 - Fixed Jump Kick's range to 9.
- Allowed SG_FEEL memorizing the same map for all three.
- SC_FUSION won't end when you die now.
- Added knockback when you run into a wall during running. However position is not being refreshed on the client yet...


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6443 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02 03:59:59 +00:00
skotlex
ff981b5404 - Fixed pc_disguise not allowing you to "redisguise".
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6442 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02 02:05:20 +00:00
skotlex
4382529413 - Corrected a crash when sd is null in npc_event
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6440 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02 01:22:28 +00:00
reddozen
29db2f4743 added support to regulate MVP drops [Reddozen]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6439 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02 00:20:17 +00:00
skotlex
5a5d30b660 - Removed OPTION_XMAS, it seems to not exist....
- Added SC_SMA to handle "ready to use SMA" status (rather than SC_COMBO) since it has a visual effect to use.
- Corrected the value of OPTION_FLYING
- Using SG_FUSION ends Soul Linked effect.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6438 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02 00:06:58 +00:00
skotlex
a5b4b2d05e - status_setviewdata will set your option accordingly when the previous/new view-class is wedding or xmas suit.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6437 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01 22:07:15 +00:00
skotlex
14413f8ec6 - Added function map_foreachinshootrange, behaves the same way as map_foreachinrange, but it also performs a "shoot-path" check before invoking the function. Used in the skill subtimer function if skill_wall_check is defined.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6436 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01 21:53:17 +00:00
skotlex
41aa178964 - Added -DMAPREGSQL to Makefile, commented out by default for now.
- Fixed AL_WARP displaying "Unknown Area" selections when you don't have all memo points used up.
- Fixed alive_count not being reset on skill unitsetting, which leads to some groups not being cleared once all their units expire.
- Optimized Kahii, will now only show the amount of HP healed. Moved to skill_counter additional effect so it may trigger even on miss.
- SKA no longer blocks skills.
- Modified the AM_TWILIGHT* skills to require 200 medicine bowls.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6435 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01 21:14:27 +00:00
Lance
49fc4fe81d * Optimized fake npc system. Added npc_checknear back to npc_buysellsel.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6426 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01 05:48:06 +00:00
skotlex
54d5c82e12 - Skills with the move_enable state won't get the walkdelay increased on a skill-cast.
- Changed TK_RUN's state from none to move_enable.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6425 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01 05:01:15 +00:00
skotlex
c24b68e5eb - Some corrections in the clif_parse_whisper function which should fix crashes in the chat_log under "certain" conditions.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6423 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01 03:31:31 +00:00
Lance
147c06cb89 * Fixed dangling pointer in pc_steal_item (missing lines) causing crash.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6421 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01 02:01:06 +00:00
Lance
7acd437879 * Fixed lack of initialization in chrif_authreq causing crashes in chrif_authok.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6420 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01 01:55:17 +00:00
skotlex
42fae8721c - Fixed a logic error that was likely the cause of pet loot drops not working.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6412 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-30 20:39:13 +00:00
skotlex
f95ab0abbe - If someone is expulsed from a guild while the guild storage is open, it will be auto-closed now.
- Modified battle_consume_ammo to prevent consuming multiple arrows on AC_SHOWER.
- Readded script command skillpointcount. (who removed it? <.<)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6406 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-30 18:41:05 +00:00
Lupus
d880305708 fixed STEAL. 8) and tested at lhz_dun03
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6399 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-30 14:11:27 +00:00
blackhole89
171ba4e902 Implemented NJ_SHADOWJUMP. Tell me if I forgot anything (especially DB entries).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6397 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-30 12:58:23 +00:00
skotlex
ffea9656f8 - Removed attack_type from sd->state structure (it's only use was for soul-drain!)
- Moved the soul-drain code to skill_counter_additionaleffect


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6392 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-30 06:01:16 +00:00
Lance
ac1a85a96d * Fixed fake NPC missing code. Thanks to Skotlex for pointing out.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6390 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-30 03:32:28 +00:00
skotlex
f73a093fc6 - Changed the HT_DETECTING method from invoking clif_changetraplook to clif_skill_setunit since in the first the client ignores the fact that it is now a trap (rendering skills like Remove Trap useless).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6386 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 21:08:29 +00:00
skotlex
f0fc466d8b - pc_resetskill flag can now be &2, it only returns the total amount of skill points spent, it doesn't does a reset.
- added script command skillpointcount. Returns total amount of skill points a char has (the value returned is the same that SkillPoint would have after invoking a skill reset)
- Modified Defender. Speed reduction is 35-5*lv%, damage reduction on devoted chars is 5+5*lv%. These values are custom, but should be closer to "reality" than what we have.
- When you have the wrong ammo type equipped, the equip arrows first message will be sent, as suggested by Haplo


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6384 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 20:51:07 +00:00
skotlex
99a6cf0627 - Changed checks of item's identify field from 0/1 to 0/non-zero
- Corrected TK_JUMPKICK to place the caster on the tile next to the target rather than on top of it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6382 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 19:03:46 +00:00
skotlex
3c1a4c2b72 - Small change in pc_calc_skilltree which should fix the infinite loop...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6381 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 18:50:08 +00:00
LuzZza
c2276ce3e2 Added @noask command: enable/disable deals/invites autorejecting.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6376 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 15:54:20 +00:00
Lance
46c0cbffff * Removed unreferenced local variable in pc.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6371 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 13:42:12 +00:00
Lance
2fc07bb1c8 * Reverted npc_checknear to exclude check for class_ -1.
* Removed npc_checknear in npc_buysellsel, npc_selllist and npc_buylist as enough preventive measures of hacking are already implemented.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6370 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 13:25:12 +00:00
Lupus
687b2210a7 Updated STEAL skill (WIP), added a battle config option: 'skill_steal_max_tries' to set max number of stealing tries. It could help to fix stealing exploit on mobs with few drops
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6367 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 11:16:21 +00:00
skotlex
54e4cd9afc - Added support for packet 0x229 (clif_changeoption).
- Bumped up PACKETVER to 7 to enable use of packets 0x229 and 0x22c
- Small cleanup on the calculation in the skill tree regarding spirit skills.
- Added missing next/prev initialization in chat-creation.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6359 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 07:30:19 +00:00
skotlex
056ee82c7f - Added missing sql-files/mob_db.sql... somehow it was missing from the mob_db update.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6358 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 04:18:55 +00:00
skotlex
552bc8752c - Clones can't be class-changed now
- Readded the class == -1 distance check in npc_checknear
- Replaced check sd->trade_partner for sd->state.trading in clif.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6356 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 04:13:21 +00:00
Lance
020b35d68a * Using malloc for memory allocations that doesn't need to be pre-initialized.
* Eliminated initializations for pointers returned by calloc.
* Moved grfio_final to do_init since it's not used after server boot.
* Optimized scripts to return CONSTSTR instead of allocating memory just to return a constant string. Some buildin functions still need work. 
* Disabled graph since it doesn't work yet.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6355 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 04:00:19 +00:00
skotlex
38243e373c - Modified the mob_db structure. The mvp related columns were moved to before the drops, amount of drops increased from 10 to 15.
- Updated sql-files/mob_db.sql to latest.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6354 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 00:34:36 +00:00
skotlex
c791cc651f - Modified HP conversion so that it fails when you don't have enough Hp. Also updated it to enable casting on "someone else" (effect: target loses Hp and gains Sp based on the max HP of the caster, will someone ever use this? who knows, but it's nice to have :P)
- Cleaned up Strip skills so that the skill animation will only show when something was stripped.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6349 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 17:27:53 +00:00
skotlex
f8db64c952 - Added constant MAX_MOB_DROP to specify the amount of normal drops a mob has. The mob_db reading code will automatically parse the file according to the number of drops expected (the Mexp/Mper and MVP item rewards must still be after the normal drops). Set to 10 currently.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6347 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 15:53:03 +00:00
skotlex
1b38364cab - Storm Kick's range increased to 2.
- Mobinfo's drop list will use jName rather than Name for drop names.
- Some cleaning of the ASC_BREAKER code in skill_attack
- Modified skill_attack so that all skills with amotion get their damage delayed (should fix mob walk-teleport issues)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6346 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 15:20:28 +00:00
skotlex
0f3de92a52 - Added function stristr to strlib.c, used by mob.c and item_db.c for case-insensitive seeks.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6345 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 14:36:55 +00:00
skotlex
6469df410d - Removed the sending of the online guild list when you log-on, may fix the "getting stuck" problem.
- Added battle config default_skill_delay. Specifies the default skill delay for most skills, it is also applied as a walkdelay (total skill walkdelay is default_skill_delay + that skill's can't walk delay)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6344 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 13:58:59 +00:00
skotlex
4ded556eb0 - skill_castend_id and skill_castend_pos will trigger unit_stop_walking with flag 1 (fix pos) rather than none. Should fix some skills making you appear moving while doing them.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6336 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 03:07:59 +00:00
skotlex
e967ccf396 - Modified clif_skill_nodamage to allow for a NULL source. This is to simplify code related to AL_HEAL/MG_RECOVERY effects where someone shows a healing value, but there's no "caster" in sight (Pitcher skills, Blood Drain, Kaahi)
- Updated Kaahi to use clif_skill_nodamage to display amount healed.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6335 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 02:41:54 +00:00
skotlex
ebf3c20d6b - Added unlocking ud.target on mob_unlocktarget, fixes mobs chasing you around while cloaked.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6333 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 00:03:26 +00:00
skotlex
1e0a083910 - Changed the default rate of clone mob skills to 5% modified by mob_skill_rate setting.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6332 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 23:07:45 +00:00