summaryrefslogtreecommitdiff
path: root/src/map/status.c
AgeCommit message (Collapse)AuthorFilesLines
2006-05-26I'm still here!DracoRPG1-3/+3
Rewrote fame ranking lists git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6764 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-22- Fixed a pair of compilation logic errors.skotlex1-3/+5
- status_get_sc_tick will now use directly Stun's formula rather than invoking the status sc chance once. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6697 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-22SC_SPEARSQUICKEN -> SC_SPEARQUICKEN normalized enum nameLupus1-10/+10
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6684 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-21* Part A of the Homunculus code.blackhole891-0/+47
This only features the structures, status_* and clif_* (packets) and is not functional yet in any conventional way, but doesn't interfere with present functionality either. I would only forget half of this stuff if I tried to do all at once. Expect the rest somewhen within the upcoming week. (This is not similar to jA's implementation.) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6681 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-21- Fixed the "fake" mute status bugZido1-1/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6677 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-17- Added check to clear previous skill when combo time ends. Should fix TK ↵skotlex1-1/+4
Rankers being unable to initiate a combo with the same kick their previous combo was finished with. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6630 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15- Added SC_BLADESTOP to the switch listing in status_change_startskotlex1-0/+1
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6595 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-11- NPC_POWERUP and NPC_AGIUP now cause a increase in hit/flee (respectively) ↵skotlex1-0/+2
of 40% per level. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6558 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-10- Moved the OPTION defines from map.h to status.h (where they belong)skotlex1-0/+2
- Added back SC_XMAS to status.c (how was it... lost?) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6550 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-10- Rewrote/cleaned up trade.c for a more clean trading implementation.skotlex1-4/+4
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6542 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09- Updated SKA to return a random value between 0 and 99 each time ↵skotlex1-2/+2
status_get_def is invoked. - Updated Making Arrow to not include unidentified items in the list. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6540 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09- Added missing icon for Joint Beatskotlex1-1/+1
- Mob-search functions will now skip enemies with no exp/job_exp. - Treasure chests will now be excluded from the mob-drop listings (@whodrops) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6534 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09- Cleaned up somewhat the implementation of BladeStop.skotlex1-10/+9
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6531 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-08- ES magic will now put the caster on stun for 0.5 secs regardless of ↵skotlex1-4/+6
whether the skill-target is a mob or not. - Added function clif_party_join_info which sends packet 0x1e9 each time a party-member joins. This packet (as redundant info as it has) should also contain the field for "adoptability", but that needs to be coded in yet. - Added clif_ParseAdoptRequest which does the basic adoption handling. More checks and the reply packets still need to be coded in. - Happy State and TK stances won't dispel on death now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6521 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-08- Increased max number of tries to find a random spot in maps to 1000 since ↵skotlex1-2/+2
some maps have so many non-walkable tiles it's hard to find one in just 100 tries. - Reduced Stun duration of multiple skills to 3 secs. Skills affected: Meteor Storm, Land Mine, Bash (fatal blow), Throw Stone, NPC_LICK, Raid, shield Charge, Cart Termination. - status_set_viewdata will remove the Wedding Option status when you set a class that is not wedding. - Removed the Job_Novice range check in pcdb_checkid since it's causing warnings when checking versus vd->class_ (and when will we use a negative value class anyway?) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6518 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-08- Removed SP_DISGUISE from the bonus list.skotlex1-6/+15
- Moved Sharp Shooting display to the block with Auto-Counter (since that's the other skill that can show critical as well) - Corrected some fields in the still packet (guild emblem being stored as a Long when it should be Short) - Modified most fields of view_data to be unsigned shorts rather than signed ones. - On-Touch NPCs will now make you stop walking when you trigger them. - Reduced stun duration of most skills to 3 secs. - ShadowJump/JumpKick will make you land on the target's cell now. - Fixed Kaahi triggering only once per skill duration. - Added the kaahi_heal_timer to the list of status change functions. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6516 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-05- /doridori now won't double the HP/SP regen of TKs, it only activates their ↵skotlex1-10/+14
"happy" state. - Added the -50 hit penalty when standing on Wall of Fog. - Cleaned up status_calc_mdef2 - Uncommented the status_calc_mdef2 call in status_calc_pc. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6491 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-05- Being in Enjoyable Rest state will now also trigger the HP/SP Time skills ↵skotlex1-11/+14
(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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6490 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-05- Added a check to prevent player invoked-endure from overriding infinite ↵skotlex1-2/+11
endure. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6488 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-05- OnEquip scripts will be trigger on log-on now.skotlex1-15/+40
- Infinite Endure will no longer give mdef bonus. - Removed bInfiniteEndure bonus, Eddga card now uses onequip/onunequip to start/end infinite endure. - Hammer fall's stun duration is now 1+lv seconds. - Fixed Kaahi's SP cost per heal. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6487 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-04- All KA-spells are interruptable.skotlex1-4/+2
- Added a temporary SI_RUN state. Actual value needs to be found... git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6469 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-04- Rewrote Kaahi to behave as it should. It will hear whatever amount of ↵skotlex1-27/+45
damage accumulates in the time2 interval (500ms by default) after being hit. - Changed skill_unit_move_unit_group to enable moving of all types of ground-skills except ensembles. - Modified NPC_STUNATTACK: Max level is 5, stun duration is 1+lv seconds. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6466 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-03- Kaahi now triggers every 500ms rather than on every hit (but it only heals ↵skotlex1-3/+29
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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6463 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02- Kaite now works against all types of spells.skotlex1-12/+18
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6447 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02- Modified how Rogue's treasure works so that you get +1% to your steal rate ↵skotlex1-35/+19
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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6446 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02- Fixed Jump Kick's range to 9.skotlex1-1/+1
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6443 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-02- Removed OPTION_XMAS, it seems to not exist....skotlex1-11/+6
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6438 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01- status_setviewdata will set your option accordingly when the previous/new ↵skotlex1-0/+8
view-class is wedding or xmas suit. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6437 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-01- Added -DMAPREGSQL to Makefile, commented out by default for now.skotlex1-4/+5
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6435 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29- pc_resetskill flag can now be &2, it only returns the total amount of ↵skotlex1-2/+2
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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6384 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26- Wedding Dress/Tuxedo now handle view-change using the onequip/onunequip ↵skotlex1-11/+1
scripts. - Removed special state changebase and view-change check on status_calc_pc git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6292 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25- Cleaned up a bit the implementation of SC_MAXIMIZEPOWER, SC_CHASEWALK and ↵skotlex1-7/+4
SC_CLOAKING to prevent infinite looping timers. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6283 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-22- Fixed angelusZido1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6234 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-22- Added SC_KEEPING/SC_BARRIER to calc_flag in status_change_endskotlex1-2/+9
- Added Option constants for Carts, fixed OPTION_FLYING (it conflicts with OPTION_XMAS?) - Updated clif.c to check for OPTION_WEDDING|OPTION_XMAS instead of view class to block attacks and skill usage. - Removed struct pc_base_job and functions pc_calc_base_job/pc_calc_base_job2 which are no longer used anywhere (were long ago deprecated infavor of the new jobid system) - Cleaned up change-cart code. - Modified SC_XMAS to not change your view anymore and only set the proper option value (OPTION_XMAS) - Cleaned up the code regarding char_gm reading. - Changed the option field to unsigned short to make room for the higher values. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6229 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-21- SC_CLOAKING's val4 now holds whether cloaking ends or not on attack.skotlex1-2/+9
- Implemented NPC_INVISIBLE, it starts SC_CLOAKING with val4 set to 1, skill duration is 30 secs. - Moved uncloaking on attack from attack_timer_sub to battle_calc_weapon_attack. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6223 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-21- Updated the HP/SP leech structures to have race-data attached to them.skotlex1-33/+22
- Merged all leeching code to battle_drain function. - Added an enum for races (they match the RC entries in const.txt, except they are in all caps) - Cleaned up atk_mods and aspd_base to be MAX_WEAPON_TYPE sized rather than MAX_WEAPON_TYPE+1 - Simplified a bit the code for Signum Crucis - Added script bonuses: bonus3 bHPDrainRateRace,<Race>,<Activation Rate>,<Drain %> bonus3 bSPDrainRateRace,<Race>,<Activation Rate>,<Drain %> bonus2 bHPDrainValueRace,<Race>,<Value> bonus2 bSPDrainValueRace,<Race>,<Value> git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6221 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20- Added two columns to item_db: equip_script and unequip_script are scripts ↵skotlex1-2/+0
that are executed once when the corresponding item is equipped or unequipped respectively. - Removed bonuses bDamageWhenUnequip, bLoseSPWhenUnequip - Updated sql-files/item_db.sql with latest. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6204 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-18- Removed message 592 from trade.cskotlex1-10/+23
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6159 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-17- Added state.running to unit_data to make it easier to check for running ↵skotlex1-3/+14
characters (saves having to get the sc data and check for the corresponding timer all the time) - removed pc_run, pc_walktodir, replaced with unit_run. - moved the code that makes you walk that extra cell to unit_stop_walking, which is now invoked before resetting the walk-target. - Flag &2 in unit_stop_walking is now to make the character force-move that extra tile if the walkpath pos is 0 at hit time. - Added variable walk_count to unit_data to be use as a counter for cells walked for walk-triggered skills (walk path_pos is not good enough since it keeps resetting each time the walk path is updated) - Increased WALK_SKILL_INTERVAL to 5 (it is the closest value that makes the average mob trigger a chase skill every second) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6137 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-12- Added special_state changebase to identify when a character has a ↵skotlex1-2/+4
special-view associated with some equipment to correctly revert the look when you take off said equipment (fixes tuxedo/wedding dress when you use modify_wedding_display: yes) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6002 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11- Changed clif_damage/clif_skill_damage to return the walk-delay based on ↵skotlex1-6/+6
the passed on damage-delay. - Changed battle_damage to accept the walk-delay as well. - Removed the walk-delay timers from unit.c, merged them to battle_delay_damage. - Traps will not be displayed when you walk within their range. - Added HT_DETECTING revealing traps. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5997 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-11- Implemented use of ers for skill_unit_groups to reduce memory usage. NEEDS ↵skotlex1-2/+2
TESTING git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5991 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-09- Changed the default of multi_hit_delay from 230 to 80 which seems more ↵skotlex1-2/+0
official. - Wedding recall skills are now blocked by the nomemo mapflag. - Skill delay for weapon types is now based on adelay (ASPD) rather than amotion (ASPD/2) - Removed ending Endure when casting Berserk, may fix the timer mismatch issues. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5963 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-08- Added function status_change_init to initialize all the sc timers. Added ↵skotlex1-0/+10
sc_data initialization to the npc structures who were missing them. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5953 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-08- Likely fixed a mob not returning to their original class view on respawn ↵skotlex1-2/+2
after they changed class. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5952 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-07- Moved the devotion damage reduction to the block that only executes if ↵skotlex1-27/+12
flag is zero in battle_damage. - skill_castcancel won't trigger on battle_damage when the passed flag is 1 - The flag in battle_heal is now used to determine whether Berserk blocks the healing or not. - Moved the Fusion HP penalty to battle_calc_weapon_attack - Some cleaning to use battle_heal/damage rather than pc_heal/damage where appropiate. - cleaned up the deadly-poison hp reduction code. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5949 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-07- Added missing creation/destruction of the expcache_ers in guild.cskotlex1-53/+64
- Unified status_remove_buffs/status_remove_debuffs into a single function. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5946 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-06- Removed mapflag noreturn from pvp maps.skotlex1-0/+1
- Fixed status_clear_buffs making SC_BERSERK's end send you to 100hp. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5938 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-06- Fixed an error on the error-message when job_db1 doesn't has enough columns.skotlex1-1/+1
- Fixed undisguising not clearing the mob sprite for the disguised character. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5917 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-06- Modified the item_db and added view_types to ammo: 1 arrows, 2 dagger ↵skotlex1-5/+11
(venom knife), 3 bullets, 4 shells, 5 grenades, 6 shurikens, 7 kunais. - Fixed parsing of job_db1.txt due to the MAX_WEAPON_TYPE change. - Updated skill_require_db to specify the ammo types required for GS/NJ skills (as best as I could understand them) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5916 54d463be-8e91-2dee-dedb-b68131a5f0ec