1317 Commits

Author SHA1 Message Date
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
23a13eb1fc Dangling pointer~
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6430 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01 10:19:49 +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
0e382cb337 - Fixed a small typo/logic-error in pet_ai_sub_hard
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6424 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01 04:19:43 +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
skotlex
0c0fe1e647 - Merged the code of NJ_SHADOWJUMP with TK_JUMPKICK.
- Moved the hiding requirement to the skill_require_db.txt as it should be.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6403 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-30 17:20:31 +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
Lance
2a6dc10d0b Fixed scripts relying on older event calling methods.. Still searching for other scripts..
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6396 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-30 09:24:46 +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
skotlex
9310d31229 - Fixed possible crash when mob drop logs is enabled.
- The drop log tables are useless now that mobs have more slots, that thing needs to be rewritten...


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6391 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-30 04:58:52 +00:00
Lance
e70b7a0837 - and more typos
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6389 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-30 03:23:01 +00:00
Lance
91ea6a4e09 Fixed typo in script.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6388 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-30 03:18:14 +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
Lance
8043799642 - Cleaned up unused variables in npc.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6383 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 19:54:40 +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
Lupus
0b3804b8b1 temp steal disable
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6379 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 17:49:31 +00:00
Lupus
cdffe16fba fixed STEAL. now working
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6378 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 16:40:04 +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
Lupus
367dec7ccf temp steal disable
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6374 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 14:39:21 +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
2dc08e9bda - Added another missing prev/next = NULL setting in chat.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6360 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 07:39:59 +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
Lance
b0698104c3 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6357 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-04-29 04:17:17 +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
celest
63a226a4a0 Rearrange makefile so dependencies won't get overwritten by 'make depend'
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6338 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 03:27:28 +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
skotlex
7a07d3c6ec - Applied some changes in unit.c to make mobs pick chase paths as they should.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6330 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 22:42:31 +00:00