2362 Commits

Author SHA1 Message Date
Vicious
3bbd24f7fc Saycyber21's NJ work
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7529 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-05 02:11:07 +00:00
skotlex
e8e61d25cd - Implemented cooking chances. Chance of success is 70% - 7*(dish-lv)% + 12*(cooking set-lv)%. Exception: When using the legendary cooking set, success chance is 100% regardless of dish.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7518 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04 19:00:02 +00:00
skotlex
6ca52ab9dc - Added battle config setting emergency_recall, specifies behaviour of that skill (skill.conf): 0 - Disabled. 1 - can't be used in nowarpto maps. 2 - Can be used everywhere.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7516 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04 17:58:10 +00:00
skotlex
9b6412ad1b - Removed the NPC/Dance/Song inf2 check of AbraCadabra. whether a skill can come out or not is entirely decided by the abra db file now.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7515 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04 16:44:19 +00:00
skotlex
4c36924fce - Added structure s_addeffect to handle status change additions. Cleaned up relevant code. It is now possible to specify ANY status change, not just the basic ones.
- Added support for bonus3 bAddEff/bAddEffWhenHit as follows:
  bonus3 bAddEff/bAddEffWhenHit, <SC value>, <rate>, <target flag>.
  Target flag is 0: Self. 1: Enemy. 2: Both.
- Added these descriptions to doc/item_bonus.txt


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7514 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04 16:38:36 +00:00
skotlex
8b8b55bdf7 - Added a check when joining a chat to make sure the target object is of type BL_CHAT.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7512 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04 14:25:49 +00:00
skotlex
798eea8c5e - Fixed code using i instead of id in a few instances when updating char/map server IP.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7510 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04 13:48:13 +00:00
skotlex
fa457b3872 - Cleared up the bAutoSpellWhenHit description in doc/item_bonus.txt
- Fixed Phantasmic Arrow and Magical Bullet not being correctly tagged as a ranged arrow-type attack.
- Updated help.txt and help2.txt, thanks to Inuyasha for providing the updated files.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7490 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04 01:17:11 +00:00
skotlex
1d6dbc95dc - Char-server SQL won't perform the reconnect cleanup routines when kick_on_disconnect is disabled.
- Renamed summons_inherit_effects to summons_trigger_autospells as the setting now only makes the attacks of the slaves trigger the autospells of the master (as it should be).
- Corrected code capping no_spawn_on_player to 50 when the max should be 100.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7459 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-03 19:59:48 +00:00
skotlex
5144a0c3b9 - Warmth will dispel when warping now (or else the effect is left on the ground)
- Fixed reading of the refine_db not working right when MAX_REFINE is increased from 10.
- Some more cleaning to the implementation of Abracadabra


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7456 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-03 16:29:17 +00:00
skotlex
f89a7d2069 - Fixed a compile warning in login sql/txt
- Fixed pc_makesavestatus not setting your logout position.
- Fixed the UF * flags of Songs/Dances in skill_unit_db.
- Fixed two dances becoming BA_DISSONANCE instead of DC_UGLYDANCE.
- Added the missing +100% damage modifier of Enchant Deadly Poison.
- Fixed SkillStatusChangeTable not working correctly for Homun/Guild skills.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7454 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-03 14:39:15 +00:00
skotlex
8577e86c85 - Removed the check to prevent equipped items from being traded as pc_delitem will take care of unequipping it on trade.
- Added a missing abort when the arrow's script re-calls status_calc_pc


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7436 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-30 23:55:20 +00:00
skotlex
aae78afd23 - Added a check to prevent equipped items from being traded.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7433 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-30 22:56:05 +00:00
skotlex
00cbe67c6f - Small cleanup on Abracadabra.
- Added UF_SONG (0x400) to differentiate songs from dances.
- Updated the skill_unit_db accordingly, ensembles should only have that flag, likewise for songs and dances.
- Added preliminar support for making a Song+Dance turn into BA_DISSONANCE cells. Beware of potential bugs as it's untested.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7428 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-30 19:05:02 +00:00
skotlex
33bbefb989 - Added mapflag "nochat" to prevent chatting rooms from being created.
- Corrected some of the sleep checks when the char id does not matches with the char-id expected by the script engine.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7423 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-30 16:53:56 +00:00
skotlex
1b7a54c893 - Moved item group enumeration from itemdb.h to map.h
- Cleanup in itemheal related code, fixed the item heal group bonus not working on Groups beyond 7.
- Fixed pet's loot not being moved to your inventory on logout.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7419 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-30 13:53:13 +00:00
skotlex
c7d866a034 - Made the map server send list of characters online to the char-server on reconnection regardless of "kick_on_disconnect" setting, as otherwise, a temporary disconnection would make the char-server tag all characters offline and refuse to save them afterwards.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7399 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-29 20:25:54 +00:00
skotlex
eba9a34f0b - Fixed guild storage being "eternally in use" if you quit/logout before closing it.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7395 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-29 15:53:30 +00:00
skotlex
f014b5db0d - Some indentation corrections.
- Ending SC_CLOAK/SC_HIDE/SC_CHASEWALK will now trigger ontouch npcs.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7394 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-29 15:27:48 +00:00
Lance
a7644e81ac git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7393 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-29 12:34:32 +00:00
Lance
304665e8c0 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7392 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-29 09:14:35 +00:00
Lance
8311c8273c git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7391 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-29 08:58:03 +00:00
Lance
706355eda6 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7390 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-29 08:55:12 +00:00
Lance
671522e47c git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7389 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-29 08:51:13 +00:00
Lance
aa70823081 * [Fixed]
- Scripting system screwing up script position after mixing timers with menus. 
- NPC attached AI mobs display as alive when dead. 
- View data not updating after buildin_unitdeadsit. 
[Improved] 
- NPCE_LOADMAP to execute after all (area) objects are sent to the player. 
- Simplified scripting system. sd will now use pointer to the script state itself. 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7388 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-29 08:47:14 +00:00
skotlex
3ce9e8c6e6 - Added a check in script command "set_option" so that invoking "set_option(0)" removes Cart/Peco/Falcon, as expected by scripts.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7381 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-28 23:10:14 +00:00
skotlex
da4e89a287 - Added trade-range check on trade reply.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7377 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-28 18:26:21 +00:00
skotlex
ad25bf8e24 - Added inf2 4096 (INF2_ALLOW_ENEMY) which is to be used in conjunction with INF2_PARTY_ONLY/INF2_GUILD_ONLY when said skill should ALSO be allowed to be used on enemies.
- Updated Soul Change to use inf2 4096 (INF2_ALLOW_ENEMY).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7376 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-28 16:42:32 +00:00
skotlex
07af745abf - Cleaned up a bit the code for @item
- Fixed character/storage being sent to be saved TWICE when you logged out while the storage is opened.
- Added save_settings map config. Specifies after which events do characters get saved (defaults to all): 1 - Trade successful, 2 - Vending transaction, 4 - Closing storage/guild storage, 8 - hatching a pet.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7375 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-28 16:09:13 +00:00
skotlex
029be2fe93 - Fixed a compile warning in the login txt/sql server.
- Changed the mob drop rate adjust function to receive a signed int argument. Probably will fix those drops with 0% becoming 100%


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7371 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-28 14:42:04 +00:00
skotlex
6775ca1476 - Corrected Musical Strike having a different damage equation from Throw Arrow.
- Some minor cleanup of Soul Change 
- Added state rewarp to players. It gets set when a pc_setpos call is triggered while the player is changing maps so that when the player finish loading the map, it is inmediately rewarped to where it has been rewarped/recalled to.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7370 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-28 14:30:47 +00:00
skotlex
fe7e59e6b8 - Map server will now resent the whole list of online characters to char-server on reconnect when the kick_on_disconnect setting is active.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7365 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-28 01:00:31 +00:00
skotlex
6d354a4b06 - Cleaned up the IP sync code to...
- Use charif_sendallwos rather than manually altering the buffers of each server.
- Use the id variable for identifying current char-server instead of scanning the connected servers for it (it's doing the same work twice)
- Added config setting sync_ip_interval to specify how long to go before updating ip. Defaults to 0 (disabled)
- Sending ip update packets will only be done when the ip changed now.
- Removed dns_str variables, and now char_ip_str/login_ip_str/map_ip_str will hold the unresolved dns address (as these variables have no use otherwise)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7360 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-27 17:02:59 +00:00
skotlex
4f1911ae63 - Fixed indentation on int_pet.c (how did it got messed up?)
- Added mapflag "loadevent", now load-map script events will ONLY trigger on maps with this mapflag on, rather than every map.
- High Jump can now be used in all versus maps.
- Added Kaite's opt3 value, taken from jA
- Added state dirty == 2 to storages. Signals when a storage was sent for final saving. Said storage is removed from memory after the ack from the char-server, and they are sent to save if the map/char servers reconnect before the act arrives. In short: they are guaranteed to be saved after a char logs out.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7358 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-27 14:54:01 +00:00
skotlex
5407f6eed1 - Corrected the element of hunter traps.
- Deadly Poison now also reduces def2 by 25%
- Changed skill_setmapcell to use skill splash rather than range.
- Cleaned up a bit skill_moonlit, now it knocks back the correct amount of cells.
- Fixed @mi displaying always 0 instead of the mob's class.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7351 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-27 03:49:08 +00:00
skotlex
1478bfbae3 - Forgot to add Tatami Gaeshi's 3 sec block of ranged attacks.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7345 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-26 18:32:23 +00:00
skotlex
c71d38b672 - Corrected unit id of desperado and Ground Drift using jA's info.
- Rough implementation of Ground Drift according to description and jA info.
- Implemented Tatami Gaeshi using skill description and jA implementation for reference.
- map_foreachinpath calls will no longer go beyond the target point, as this function is required for skills other than SharpShooting now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7344 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-26 18:26:51 +00:00
skotlex
abd2bba4de - Merged Mitternacht's max_heal/max_heal_lv config settings.
- Removed support of packet 0xc3 on the new packet versions. Thanks to Meruru for pointing out they aren't being used anymore.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7343 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-26 14:44:38 +00:00
skotlex
7f92735874 - Autospells will now again check for the skill's nk value, so that skills tagged "nodamage" skills will not trigger autospells.
- A bit of cleaning in pc_equippoint
- Corrected clif_item_sub so that pet eggs will correctly be sent as equipment (fixes them showing up "broken" and with random refine levels)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7341 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-26 13:47:01 +00:00
Lance
fa2cd64215 * [Added]:
- buildin_unitkill just for kicks.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7338 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-26 04:32:50 +00:00
Lance
219f26b6a0 * [Optimized]:
- Setting of variables with defined scope in some frequently executed script events.
* [Added]: 
- Missing script_require_trigger flags for some power hungry events.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7325 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-24 02:41:32 +00:00
skotlex
95aa55a3e6 - Modified pc_setoption so that it will correctly update sprite AND clothes color when mounting/unmounting changing into/from xmas/wedding sprites.
- Allowed itemdb_exists to return the dummy item. Enables "invalid" items to be sold, traded, dropped, etc.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7321 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-23 23:31:55 +00:00
skotlex
4855ad8d5e - Corrected ASC_BREAKER. Int-based damage is applied after attribute fixes and before card reductions. The skill now completely disregards left weapon.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7319 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-23 21:33:24 +00:00
skotlex
ee1f6f4283 - Standarized PF_MEMORIZE to be 50% cast time on all skills (instead of -50% for targetted skills and -66% for ground skills >.>)
- Cleared up the comment on what item_check does and how it works.
- Changed the pointer dummy_item to a normal struct variable.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7316 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-23 16:11:51 +00:00
skotlex
eea63beee9 - Updated BD_INTOABYSS's unit flag to not affect mobs.
- Changed setting for skill_nocast flag 16. It is no longer a "pk-mode map" setting, it's now a clone-forbidden skill. That is, skills with the flag 16 will never be copied by clones. If you use a PK-mode server, use flag 2 now to forbid skills from common maps.
- Default skills from not being cloned are Magnus Exorcism and Turn Undead.
- The map search free cell will now use the size of the map # of tries before giving up when the spawn area is the whole map. Added a check to inmediately give up when the number of spawn retries has reached the max specified (no_spawn_onplayer = 100).
- Cleaned up a bit the clone code to account for the unit flags UF_NOPC/UF_NOMOB when the skill is not ground-based (accounts for self skill that causes a ground-tile to be placed, like Dances).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7315 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-23 15:41:17 +00:00
skotlex
44b40f087c - Added pc_bonus_autospell_del, gives support for removing autospell effects. When a negative rate is specified, it will decrease the chance of casting (eg: You have two different cards with autospell Heal +20% each, then do autospell -30. The second card will be cancelled, and the first one will become Heal +10%)
- npc_timers now will not restore the previous timer data when there's no players attached (when it's strictly an npc timer). This should reenable the old behaviour of getnpctimer returning the total ellapsed time since "startnpctimer" even after the last label has been reached. However, this behaviour won't apply to player-attached timers. 


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7312 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-23 14:14:55 +00:00
Lance
5ca017e91a git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7311 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-06-23 12:22:43 +00:00
Lance
ec2fc0e437 * [Fixed]:
- MAPREGSQL overloading SQL table with temperory map registries.
- Incorrect perfomance calculation for MAPREGSQL loading and saving. 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7310 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-23 11:47:27 +00:00
skotlex
b64f653148 - Guessed and added support for the packets 0x22a (idle) and 0x22b (spawn). This should complete the required packets for PACKETVER 7.
- Added support for the PACKETVER 7 packets in the "dummy" current intravision implementation.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7304 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-23 02:53:32 +00:00
skotlex
3296652856 - Fixed @autoloot being off by 0.01% when entering a manual value.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7303 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-23 00:04:10 +00:00