257 Commits

Author SHA1 Message Date
MasterOfMuppets
c24697b09a Implemented a missing npc in Amatsu and the momotaro event.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7114 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 00:53:28 +00:00
skotlex
2e5660ec68 - Fixed @mapinfo displaying incorrectly maps with nosave which send you back to your last savepoint.
- Moved guild_exp_rate from a mapserver battle config setting to a char server config. It no longer modifies the total taxed exp as seen on the guild information window, but directly modifies the exp that the guild earns.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7074 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-09 15:12:53 +00:00
skotlex
604f5b40fe - Updated mob_npc_warp to a three-state config switch. 0 disables. 1 enable only on warps that don't lead to nobranch maps. 2 - enable on all warps.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7048 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-08 15:44:04 +00:00
skotlex
b6a5dc4547 - Added config setting mob_npc_warp, when set to yes, enables mobs to be warped between maps when stepping on a npc-warp.
- Added monster_ai setting &64, when enabled makes a mob run to any nearby npc-warp when their current target has switched maps.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7039 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-07 20:15:23 +00:00
skotlex
86514f550b - Altered status_calc_pc so that equipment scripts are ran before card-scripts.
- Fixed pc_bonus to not underflow/overflow when adjusting def/mdef.
- These two together, should fix Tao Gunka Card.
- npc_debug_warps() will now be invoked if warp_point_debug is set.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6925 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-02 02:51:34 +00:00
skotlex
ca917a0909 - Made the char_name_option char_athena.conf setting apply to parties and guilds as well. It cannot be applied to pets yet without adding a change-name-request interserver packet.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6897 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 20:37:39 +00:00
skotlex
7f776280a5 - Fixed Absorb Spirit Spheres
- Added battle_config min_chat_delay (default 0) specifies in ms what is the min delay between player sent chats (whisper/global/party/guild). Messages that exceed this threshold are silently ignored for now (perhaps need to add a "DON'T SPAM" reply to the player?)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6859 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 19:28:41 +00:00
Playtester
b606b677b7 Added the Arunafeltz maps, not tested yet
- someone with an up-to-date client should test them

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6829 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-29 22:33:11 +00:00
skotlex
d69e247829 - Updated max_def parameter to not apply to mdef if magic_defense_type is set (rather than weapon_defense_type)
- Updated comment description for config setting max_def
- Fixed battle_check_target check on BCT_ALL to check versus BL_CHAR instead of BL_PC and BL_MOB


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6826 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-29 18:08:07 +00:00
MasterOfMuppets
a3d351765f Changed undeads to by default always sustain 100% of the damage from firewalls.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6805 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-28 17:07:32 +00:00
skotlex
856240443d - Added structure status_data which holds status-related information (str, agi, etc, speed, amotion, adelay, dmotion, weapon-damage, race, size, etc) and weapon_atk structure with the weapon specific info (atk, atk2, element) to be used by all combat structures (TODO: Homun needs to be updated to use it)
- Cleaned up TBL_PC, TBL_MOB, TBL_PC and mob_db structures to use status_data.
- Set the NPC-Change Attribute duration on Time1, updated their max to 1 in the db.
- Berserk's HP cost interval is now defined as time2.
- Split damage received functions into pc_damage/pc_dead and mob_damage/mob_dead
- Rewrote the @heal related functions to use the new status_* healing functions.
- Added status functions to deal with damage and healing (status_damage, status_heal, status_percent_change) and a bunch of defines for easier handling of them (status_percent_heal, status_percent_damage, status_fix_damage, status_kill, etc)
- Splitted mob_once_spawn into two. mob_once_spawn_sub creates the mob instance without spawning it.
- Added defines for Elements (ELE_*)
- Modified battle_calc_(weapon/magic/misc)_attack to use the status data structure.
- Rewrote and cleaned up battle_calc_misc_attack
- Merged config options pc_attack_attr_none, mob_attack_attr_none, pet_attack_attr_none into attack_attr_none (type 4)
- Removed config options player_defense_type, monster_defense_type, pet_defense_type in favor of weapon_defense_type
- Cleaned up pet.c to stop invoking status_calc_pc when unnecessary
- Modified skill_calc_heal to take into account the MEDITATION bonus.
- Cleaned up code of Adjustment, Madness Cancel and other GS/NJ skills inside skill_check_condition
- Added status change SC_MODECHANGE which handles mob state changes (this SC is continous until manually ended, eg: like Weight50)
- Modified Slim Pitcher so it will work when casted by non-players. Will now also work with SP-healing items.
- Rewrote Freedom of Cast code to use function status_freecast_switch to switch adelay/speed when cast begins/ends.
- Modified Magic Power to store amplified MATK/MATK2 in val3/val4 for easier updating when used in conjunction with ground skills.
- Fixed Asura Strike being usable from within a combo regardless of combo skill.
- Modifed SC_DANCING to store speed-change in val3 (it is shared with skill duration...)
- Added StatusChangeFlagTable to store which statuses are changed by each SC
- Added SCB_* constants to specify the different stats that each sc changes. SCB_PC is the only one that means a change hardcoded in status_calc_pc, the rest are handled by status_calc_bl
- Added some helper functions to simplify with basic status calculations (status_base_atk, status_calc_misc, status_base_pc_maxhp, status_base_pc_maxsp)
- Added status_calc_mob which calculates initial status and special base status alterations (HP changes, stat changes due to big/small mobs, etc)
- Made all the status_calc functions static.
- Added status_calc_bl_sub_pc for PC related calculations that must happen after status-change adjustments.
- Added status_calc_bl which does status-change related calculations using as base the base_status of the bl object and the SCB_* flag passed.
- Added status_get_status_data and status_get_base_status to retrieve the bl objects current status_data and basic status_data (current never returns null, instead it returns a dummy structure with basic data)
- The main switch in status_change_start now only sets the tick and val values, therefore it is skipped when loading (flag&4)
- Cleaned up status_change_start and replaced many of the ex-japanese comments for english ones.
- Changed Hiding to store the speed penalty on val3. val4 stores interval SP cost.
- Changed Chase Walk to store Speed adjustment on val3, sp cost in val4
- Changed Cloaking to store speed penalty on val3, val4&2 signals wall-present, val4&1 is infinite cloaking.
- Changed Wind walk to store speed bonus on val3
- Rewrote Marionette Control to store the status to add/substract in val3/val4, it now works on anyone (players/mobs)
- Changed Improve concentration to store Card bonuses (which are not counted for total % increase) on val3/val4
- Changed SC_ADRENALINE, SC_CONCENTRATION, SC_ANGELUS, SC_IMPOSITIO, SC_MELTDOWN, SC_TRUESIGHT, SC_SUN_COMFORT, SC_MOON_COMFORT, SC_STAR_COMFORT, SC_QUAGMIRE, SC_GATLINGFEVER to store the bonus modifiers in their val values rather than calculate them in status_calc_*
- Status_change_start/end will use clif_status_load rather than clif_status_change when related bl is not on a map.
- Modified status_change_timer to use the status_charge function rather than directly substracting SP
- Added SC_ELEMENTALCHANGE to modify someone's base defense element.
- pc_clean_skilltree will now also remove item-granted skills.
- Learning skills will now only invoke status_calc_pc when the skill is passive.
- Cleaned up pc_steal_coin
- Cleaned up pc_check_base/job_lvup to only invoke the lv-up related packets and functions ONCE regardless of skill-levls earned.
- Cleaned up pc_ regen related functions.
- Made player-sprite mobs have item pickup animation and walkdelay when taking items.
- Cleaned up mob_dead code.
- Removed paramb, parame from struct map_session_data, replaced them by param_bonus[6],param_equip[6]
- mob special ai state 3 signals summon flora.
- Moved petDB pet_hungry_timer vars from TBL_PC to TBL_PET
- Cleaned up some pet functions, made the menu functions receive as argument both pet and master.
- Clones will copy a player's base status rather than battle status (so status-change alterations are not cloned)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6791 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-27 18:08:30 +00:00
Lupus
2fcfdbdd46 updated desc
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6774 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26 11:06:58 +00:00
Lupus
d5dd578e57 added noVending mapflag. Tested. + custom Market Place NPC, fixed MSG strings
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6755 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-25 16:26:17 +00:00
skotlex
d16d7e47b4 - Added 5 config settings to adjust damage in pk-mode servers (misc.conf)
- Corrected LoV's effect range for levels 11+ to range 8.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6646 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-18 21:14:18 +00:00
skotlex
862dde5c5b - Some code cleaning of the skill reiteration/nofootset code.
- skill reiteration code now does not checks for the trigger-area of the skill in the case of non-players, which means mobs can now place traps in cells adjacent to each other.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6640 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-18 14:37:48 +00:00
Playtester
f44e764d49 More Amon Ra related changes
- Dark Blessing and Blood Sucker now have a range of 9 tiles
- Small fixes on his skills again
- G_Khalitzburg is a bit slower now

Changes to skill.conf:
-mobs now can stack ground skills by default
-mobs can place unlimited ground skills
-format for land_skill_limit changed

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6614 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 23:17:16 +00:00
skotlex
125e05d3cd - Added SC_BLADESTOP to the switch listing in status_change_start
- Characters in vending are now always considered "idle" if the idle_no_share setting is active.
- Corrected 10 Geminis spawning in Lhz1 rather than 2.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6595 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 14:15:04 +00:00
skotlex
64bd8b1dbe - Added the missing semi-comma from the upgrade_svn6533.sql file. Thanks to Tanaous
- Added back the missing code that substracts arrows when normal-attacking.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6554 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-11 13:38:30 +00:00
Zido
b467a6bfbc Finished DNSBL, Although untested, It's simple code and should work fine.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6543 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-10 05:38:27 +00:00
skotlex
e2eadf7bb2 - Rewrote/cleaned up trade.c for a more clean trading implementation.
- Added @request commands, sends a request to all connected GMs of lowest_gm_level or above as a whisper message. Defaults to gm level 20 users.
- Made SC_COMBO status start delay attackabletime and walkdelay by sc's duration regardless of skill used (previously it was only for TK kicks, now it's for both those and Monk combos)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6542 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-10 04:04:36 +00:00
skotlex
aae1ae1832 - Fixed compilation error.
- idletime will now be updated on attack-request, not on sit/standup
- Party members sitting will no longer be considered idle.
- hide_gvg_damage will now send 1 instead of -1 as damage.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6517 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-08 16:19:02 +00:00
Lupus
a866920e15 removed old logs
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6510 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-07 09:50:37 +00:00
skotlex
8d57200659 - Changed @deletemail's default level 0. NO ATCOMMAND SHOULD HAVE A DEFAULT OF 0 >.<
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6503 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-06 04:29:15 +00:00
skotlex
88722161e5 - Being in Enjoyable Rest state will now also trigger the HP/SP Time skills (even if there's no other TK around).
- Renamed SC_TKDORI to SC_TKREST (makes more sense if you ask me)
- Added battle config settings view_range_rate and chase_range_rate to adjust the view-range and chase-range (range2/range3) of the mob_db without having to manually change them.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6490 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-05 16:30:47 +00:00
skotlex
4ef4e4dc84 - Stun time for using ES magic on non-mobs reduced to 0.5 secs.
- Eska is now usable on bosses.
- Swoo will stun you if attempted on an already 'swooned' enemy.
- clif_skill_failed will print out a debug line with the skill_id (since the current null_po does not helps at all to fix it)
- Applied TheUltraMage's suggested fixes to the grfio module.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6467 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-04 15:18:30 +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
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
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
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
2728afbb10 - Added at command @commands, displays the list of commands available to you.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6313 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 14:10:29 +00:00
skotlex
1a3d6004c5 - Corrected the hit value of the TK kicks (from single hit "6" to multi-hit "8")
- All kicks do 3 hits now.
- Added battle config hide_woe_damage which hides damage on woe maps packet-wise.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6311 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 13:31:29 +00:00
skotlex
d66d94cd80 - Item use interval is set to a default of 100ms now.
- Updated Full Buster so that the can't act delay carries on to the weapon attack delay and can't use item intervals.
- Added script command getbattleflag to retrieve the current value of a battle_config switch.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6296 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26 21:12:08 +00:00
skotlex
d44188210b - Renamed skill_clear_element_field to skill_clear_group, it accepts a flag to determine what to erase. &1 for elemental fields, &2 for traps. Also rewrote how it works to prevent missing elements (since each time an element is erased, the array contents shift)
- Added battle config traps_setting to determine how traps should behave. With &1 traps are invisible if you didn't see them get set up. With &2 traps will be removed after changing maps. The default is 2.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6285 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 23:58:19 +00:00
Zido
e79642ff57 - DNSBL. Refer to changelog.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6258 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-24 21:08:40 +00:00
skotlex
bf3e426dc1 - Corrected mob_spawn_delay/boss_spawn_delay/plant_spawn_delay settings (they were named rate rather than delay in monster.conf)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6254 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-24 20:14:02 +00:00
skotlex
72faf33f97 - Added new column to mob_db Sprite_Name to hold the mob's sprite name. Columns Name and JName now hold the mob's english and kro names respectively.
- Currently both Name and Jname have the KRO names, so someone will have to update them.
- Updated mob_db.sql and mob_db2.sql to latest.
- Added battle_config option override_mob_names to make the spawned mob names use the mob_db names instead of the specified names in the spawn files.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6246 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-24 03:53:29 +00:00
skotlex
66bab4bc3d - Fixed a pair of wrong mapflag lines in nopvp.txt
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6183 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-19 20:03:15 +00:00
Zido
bc11c8b54f - IRC Bot can now auto-join when kicked from the channel
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6170 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18 21:28:35 +00:00
skotlex
6b9fd3cf04 - Removed message 592 from trade.c
- Removed mapflag nopvp
- Added support for disabling mapflags on a mapflag line:
  comodo.gat	mapflag	nomemo <- turns on nomemo mapflag
  comodo.gat	mapflag	nomemo	off <- turns off nomemo mapflag
- Cleaned up and optimized the restricted/zones mapflag. Restricted cards will just not work in disallowed maps rather than blocking the compounded equipement from being used.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6159 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18 16:01:26 +00:00
Playtester
64272bf114 Converted the format of the battle conf files to windows format
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6155 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18 14:21:07 +00:00
skotlex
6ec369963a - skill_clear_unitgroup is now invoked in unit_remove_map only on death if the applicable battle setting is set. It is now also invoked in unit_free.
- Changed setting clear_unit_ondeath to a type 4 (bl-based) which defaults to BL_ALL.
- Fixed Absorb spirit sphere not working on mobs, thanks to Vividd.
- Cleared the ud->target on pc_stop_attack to prevent attack resuming an other such oddities.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6145 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17 23:54:49 +00:00
skotlex
571402c435 - Removed water_height.txt reading (since it is always done from the rsw now)
- Fixed a possible crash in grfio_find_file
- Corrected water-level-reading to account for a return of null from the previously mentioned function


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6117 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 16:19:32 +00:00
skotlex
47adb68d91 - Fixed mysql ping setting being in minutes rather than hours.
- Removed npc_event_sub from npc.h and moved it to npc.c
- Cleaned up #warp to prevent spitting non-walkable tile warnings.
- Changed the meaning of msg_athena 2, it is now "invalid target cell, randomizing".


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6114 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 15:33:59 +00:00
MasterOfMuppets
9087343abb Small mapflag changes
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6036 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-13 11:58:18 +00:00
Lupus
bd60d1e117 fixed typos in waterheight, mapflags. updated items weigh
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6006 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-12 09:39:48 +00:00
Lupus
3cd0c8c1e0 updated mapflags
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6005 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-12 07:52:57 +00:00
Vicious
a6de127a8e bunch of updates..
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5994 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 19:58:53 +00:00
skotlex
58be7c433b - You don't get critical'ed when in counter-attack stance anymore.
- Changed the default counter-type to "always critical".


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5992 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11 19:55:48 +00:00
skotlex
b6fa7be9e9 - Updated the subnet support to not require specifying the subnet mask, it is auto-acquired from the char/map IP and the subnet-mask.
- skill_wall_check defaults to yes now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5976 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-10 14:26:52 +00:00