summaryrefslogtreecommitdiff
path: root/src/map/status.c
AgeCommit message (Collapse)AuthorFilesLines
2006-11-29- Added overflow protection to @main whisper parsing.skotlex1-1/+1
- Fixed a bug in slaves_inherit_speed - Miscellanous silly cleanups (format, unnecessary assignments, comments, etc) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9367 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-29- Now gvg_dungeon mapflag will activate the other mapflags which are ↵skotlex1-2/+3
required: pvp, pvp_nocalcrank and pvp_noparty/pvp_noguild (they are forced to off if gvg_dungeon is on and viceversa) - Cleaned the pvp ranking code so that it takes effect even if pvp_nocalcrank is active WHEN the map is a gvg_dungeon one. - Cleaned up a bit the pvp ranking timer code. - Now homuncs and their masters are the only ones who can use support skills on the homunc. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9360 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-29- Some cleaning on the homunc speed calculating code, so that it correctly ↵skotlex1-4/+8
uses the default walk speed if the player has no speed yet. - Some speed up code when loading status changes (use a pointer instead of memcpy'ing all the time) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9359 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-28- Fixed a typo which made the wedding_ignore_palette setting not work when ↵skotlex1-2/+2
you log on with them equipped git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9353 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-28- Reverted the previous SG freeze counter method. Now the counter is reset ↵skotlex1-2/+9
on status_change_clear. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9351 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-28- Moved the blocking of casting supportive skills on homunculus from ↵skotlex1-19/+23
battle_check_target to status_check_skilluse as bct is not invoked unless the skill is offensive (or party/guild only) - Cleaned up status_calc_bl_sub_hom, fixed recasting dex/str/vit/int bonuses skills making their atk/def/mdef stack with itself over and over. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9350 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-28- Modified the way Storm Gust freeze's counter works. Now it checks for the ↵skotlex1-1/+1
caster of the Storm Gust, if it's the same as the previous hit, the counter is increased, otherwise, the ID is updated and the counter is changed to 1. - Fixed always receiving at least 1 bexp/jexp even when the mob gives no exp at all. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9345 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-27- Corrected KiriKage's range so it works correctly when used by non-players ↵skotlex1-14/+0
or when use weapon's range is used. - Changed service for you's flags so it affects all players on range. - Corrected the skill animation for Absorb Spirits - Cleaned up a bit the implementation of how Gravity Field blocks the caster from moving. - Mob class-changing will fail if the new class is the same as the previous one. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9325 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-25- Fixed missing line in status.c which explains why NPC_DEFENDER wasn't ↵skotlex1-0/+1
quite working yet. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9317 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-24- Heaven's drive no longer targets traps.skotlex1-1/+1
- Some minor cleanups git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9316 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-24- Cleaned the opt3 values to use hex instead of decimals in status.c, ↵skotlex1-22/+27
removed theconstants in status.h since each opt3 value can mean many different things. - Homunc's min matk is now always equal to max matk git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9315 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-24- Fixed EDP's damage being 100% more than it should (should be 5x, not 6x on ↵skotlex1-1/+2
normal attacks) - Self Destruction will only hit everyone and not just enemies when used by mobs (non marine spheres) unless the map is a versus map. - Spider Web's duration is now halved on players (before it was halved in pvp maps only) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9314 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-22- Modified slaves_inherit_speed and slaves_inherit_mode so you get better ↵skotlex1-1/+5
control of when to copy/remove modes/speed. - Reenabled usage of mode MD_CHANGETARGET, so mobs with mode 0x200 will be able to switch targets while attacking. - Simplified some more the chase-changetarget function. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9294 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-22- Fixed the Auto-Berserk giving you back defense when it triggers during ↵skotlex1-0/+2
berserk's HP penalty. - Some small changes in the pet ai to make it more responsive. - Rewrote the pet looting behaviour (taken from the mob's), pets are much more smarter now when looting from multiple possible items. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9291 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-21- Corrected GS_DISARM, it is now a normal attack, which, when it connects, ↵skotlex1-20/+21
has a chance to do strip weapon ar a 3*lv% rate (modified by dex) - Fixed GS_PIERCINGSHOT, it should ignore defense - Corrected Gatling Fever costing SP when trying to turn it off. Also, speed increases bonuses won't take effect while it's active. - Updated the main makefile with a new OPT line. It is commented by default since it only works with GCC 4.X, when unset, it will hide away a huge amount of warnings that have to do with stuff that is not gonna be corrected in eA anyway. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9287 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-21- Corrected TripleAction's damage. It should do 150%*3 instead of 100*3% damage.skotlex1-1/+4
- Updated GS_CRACKER's stun chance using Doddler's info as reference. - GS_FLING won't reduce armor defense when used on players. - Added constant MAX_STEAL_DROP to determine up to which slot you can steal. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9286 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-20- The max level of NPC_SPLASHATTACK is now 1.skotlex1-10/+24
- Implemented NPC_DEFENDER. Reduces ranged Physical+Misc damage by 80% - Improved the battle config reader so it accepts hexadecimal values. Updated the monster_ai description to make use of this. - Added monster_ai&0x200. When set, mob skill delays are shared. That is, if the mob has several lines with the same skill, when the skill is used, the delay will be set to all of them, not just the one entry used. - Cleaned mob.c to use hex values when refering mob_ai - Corrected NPC_BARRIER so it grants 100 def/mdef (and not just mdef) - Weapon ATK bonuses will now only apply to watk and NOT watk2 on players (on players watk2 is refine bonus) - Corrected NPC_KEEPING. it should give 90 def, not 100 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9277 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-16- Shadow Jump and Kirikage won't "move" you if you use them in GvG grounds. ↵skotlex1-1/+1
Fixed Kirikage so it first warps you, and then you unhide. - Corrected Zeny Nage so the Zeny spent on the attack is always the exact same value as the damage you are dealing. Also corrected it so it does half damage when used on players. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9229 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-10- Deluge/Violent Gale/Volcano tiles will now fail to be placed on cells that ↵skotlex1-3/+4
are already ocuppied by anything else. - status_is_immune will now return 0 or the amount of immunity of the target. In which cases it returns 100 for WoH and the GTB bonus when they have passed the gtb_sc_immunity setting. This enables targetted spells to not "fail silently" unless GTB's magic reduction is 100. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9194 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-09- Reduced the check area of hermod to 3x3, you now have to literally stand ↵skotlex1-4/+7
next to a warp for it to work. - Corrected the Fog of Wall check so that it lasts 2x when it is placed on TOP of a suiton/deluge, not when the caster is on top of them. - Updated status_check_skilluse so that when the caster has a disabling status change (stun/petrify/etc) it will block the skill in all cases EXCEPT on cast-end when the skill is ground-targetted. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9185 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-08- Moved the duel functions to pc.c since they are so totally out of place in ↵skotlex1-5/+0
atcommand.c - Fixed Spider Web not ending when hit by a fireelemental attack. - Cast-time reductions from status changes will not be executed until right before casting, to prevent status changes from ending when attempting to cast and the attempt fails (invalid cells, not enough sp, wrong target, etc, etc) - Added check to prevent Wand of Hermod from seeking for a partner to encore, since the partner is supposed to be the warp. - Moved the duel auto-reject on logout from map_quit to unit_free - Corrected the mob spawn reading code so that the event-name can be up to 50 characters long (which is the actual event length) and so that it can read spaces within them, it will also strip the leading/trailing quotes if you use them so that the event is actually found on mob-death (so you can do stuff like "My NPC::OnDead" as a valid event). - Moved the homunc inherit speed from the master from status_calc_pc to LoadEndAck, since the hom's speed matches that of the master each time the master changes maps. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9173 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-07- Applied FlavioJs's patch which enables colored console output for Windows ↵skotlex1-17/+30
systems. It also includes a config setting called "stdout_with_ansisequence" with which you can turn off the color codes (in case you are logging all output) - Added error reporting when the max number of ground unit cells has been reached (this may be the reason why sometimes it fails to recognize when you step out of a song/dance/encore) - Added passing the Endure effect to other devoted people. Note that the "hit count" is individual for each character, and only when it ends on the Crusader himself will that force it to end on everyone else. It also will not transfer on gvg grounds, but it does transfer in pvp. - Fixed Reflect-Shield triggering Auto-Guard instead on devoted chars. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9168 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-07- Fixed map_foreachiddb and map_foreachpc so they don't encapsulate the ↵skotlex1-3/+2
variable arguments into a double va_arg list. Thanks to the Ultra Mage for the tip. - Cleaned up the clif_hate/mob_info functions with the correct fields/usage as explained by Rayce. - Implemented clif_feel_hate_reset packet to properly display the Angel of the Sun/Moon/Stars, thanks again to Rayce for the relevant information. - LP will again block all land-stuff from being placed down on top of it for the exception of Song/Dance/Encores. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9162 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-06- Corrected Ground Drift. Splash range of 3x3, stackable and placeable ↵skotlex1-2/+2
underneath others, cast time is 2 secs. It's considered ranged, and it's damage increase is defense ignoring, always neutral damage. - Added Bull's Eye 0.5 sec cast time - Corrected Bull's Eye implementation, it should deal normal damage against non brute/demi-human targets. - GS_DUST is now considered a short-range attack - Implemented Desperado's hit rate based on distance to caster as it's believed to behave. - Suiton's Speed/Agi penalty will affect everyone when used in versus maps. - GS_TRACKING's range is no longer affected by Snake Eye. - Cleaned up some skill_trap_splash - GS_FLING's defense reduction is now 5*lv% git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9158 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-06- Ganbantein's delay is now 2 secs.skotlex1-2/+5
- Removed the time2 value of NJ_NEN since it has no use. - Removed the return code entry when logging GM reload-GM requests (login-sql),it'll just be stored as zero. - Added a fix on socket.c to not pick INADDR_ANY when choosing our own IP. - Applied the correction on maprespawnguildid so that it parses ALL players and not just those on a map. - TK_JUMPKICK now dispels normal aspd/speed potions (not berserk pitched ones) and Preserve will be unable to block this. - Soul Linkers are now inmune to SA_DISPEL - You can now place everything (except magic skills) on top of LPs. - Corrected Ganbantein to not touch song/dance/ensembles. - Status_calc_pc will refuse to execute if the player is still tagged as a "new connection" and the invocation is not meant to be the first one. - Swapped the order of checks in status_isimmune so that Wand of Hermod skill blocking takes precedence over GTB's - Client packets will all be ignored while a player is not on a map until the LoadEndAck packet is received. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9152 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-31Update homunc's speed when master's speed changes, should avoid homunc's ↵toms1-0/+12
speed = 0 on login (when homunc's stats are calculated before master's stats) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9110 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-31- When Kaizel (or super novice rebirth skill) triggers, you get debuffed now.skotlex1-5/+8
- Modified the player_cloak_check_type and monster_cloak_check_type settings. 1 makes it check for walls, 2 makes cloaking NOT end on normal attacks, and 4 makes cloaking NOT end when using skills. The default setting for players is still 1, but for mobs the default has been changed to 4. - Non-players can now use all skills while hidden. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9109 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-30- Set the inf2 to encore skills of Wand of Hermodeskotlex1-5/+6
- Modified battle_calc_return_damage to take the skill id as well, now magic damage return will not work on skills tagged as ground or self targetted. - Fixed Gank not working at all with the default max steal tries setting. - Soul Drain won't work with skills tagged as self-targetted. - Improved the Suiton code so that the walk/agi penalty only applies to enemies of whoever casted the skill. - Moved the initial status_calc_pc call to when you finish loading the map, should fix equipment scripts which are based on character variables not working. - Some cleanup of the clif_parse_LoadEndAck function. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9099 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-25- MG_STONECURSE and NPC_PETRIFYATTACK now use time1 to specify the ↵skotlex1-1/+3
"petrifying time". This value has been set to 5 seconds. - Now when SC_STONE is triggered from status-change cards, it's petrifying duration will be passed as 0, causing the minimum (1 sec) to be used. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9066 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-24- Removed again your mdef reducing "petrifying" time as apparently it can't ↵skotlex1-8/+0
be reduced by mdef. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9059 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-23- Modified SC_STONE so that the duration of the "petrifying" time is 5 secs ↵skotlex1-0/+9
reduced by your natural resistance to petrify (which is mdef%) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9047 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-23- Removed NJ_TOBIDOUGU adding damage to W_HUUMA weapons which somehow got ↵skotlex1-0/+2
readded. - When nonplayers use Cloaking, it will be forced to level 10 since mobs shouldn't have movement/attack restrictions while walking cloaked. - Should fix a warning in int_homun.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9043 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-20- Fixed Charge Atk being able to go through chasm/pits.skotlex1-23/+17
- Moved the homunculus DB information from the player structure to the homun structure. Modified the homunculus creation packets to hold this information during creation, also, all initial values are handled by the map-server, the char server only assigns it a homun ID. - Removed target_id/attacked_id from homun_data as it wasn't really used. - Codes cleanup (removing of commented code mostly) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9031 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-16- Applied most of Mpeg's work on Ninja Skills. For information see: ↵skotlex1-27/+9
http://gpegon.free.fr/ea/ninja_10-15-06_mpeg.txt git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8999 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-16- When reinvoking a combo-time, the previous combo time will be terminated.skotlex1-1/+1
- Fixed Esma-state not ending after casting it. - Fixed @hominfo displaying intimacy on a 1/10k scale. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8997 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-13- Sight Blaster will not end after hitting 1 enemy if there's several ↵skotlex1-7/+5
enemies within range, it will first knock them all back, and then end (as reported by AuronX) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8983 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-13- Base attack for non players is now calculated as str + [str/10]^2 (it does ↵skotlex1-1/+7
not has +dex/5+luk/5 which players do have) - Fixed the char-sql server trying to read the gms off a "gm_db" config setting stead of "login_db" git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8981 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-13- Corrected Throw Arrow/Musical Strike's damage formulaskotlex1-10/+6
- Altered Trick Dead. It doesn't prevents skills from being casted on you now, but damage-based skills will do no damage. - Made the battle_config.attack_attr_none apply to pets when using the "fixed damage" pet skill scripts. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8978 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-12- Added a temporary message when Angel of the Sun, Moon and Stars trigger so ↵skotlex1-0/+1
you know it triggered. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8974 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-12- Corrected Caprice cast info. No cast time, delay time equal to the bolt ↵skotlex1-9/+15
spells. - When slaves_inherit_speed is set (which is also the default), homun will have the same speed of their master when spawned. - When using Hatred and you already have a hate target, your current hate target is displayed now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8972 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-11- Cleaned up unitattack, unittalk and unitdeadsitskotlex1-8/+10
- Updated status_get_name to take into account fakename, also cleaned it up. - Cleaned up the char-server code when the last point of a player is not found. First it'll check if there's any mapserver online, and then, if there is, it'll look for the major cities. If this fails, then the player will be told server is closed instead of trying to send him to a "random map". git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8967 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-10- Should have fixed being petrified not reducing your defense and ↵skotlex1-6/+3
increaseing your mdef. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8958 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-09- sc_cast_cancel is now a type 4 setting.skotlex1-9/+7
- Fixed SC_NOCHAT printing the "skills are now available" message twice on natural expiration. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8953 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-02- Modified item-granded status resistance reduction to behave as explained ↵skotlex1-7/+9
by Vicious (Ragnarok Monthly magazine) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8921 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-02- Added the opt3 values to Eskeskotlex1-5/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8920 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-01- Removed the speed adjustment per level of Increase/Decrease Agilityskotlex1-11/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8913 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-29- Spurt state will now trigger on Soul Linkers as well.skotlex1-2/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8902 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-29- Added a check un unit_run when unit_walktoxy fails. Should fix running ↵skotlex1-1/+1
getting you stuck sometimes when running on diagonals near obstacles. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8900 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-27- Cleaned up status_get_party/guild_id, it should also fix a possible crash ↵skotlex1-23/+39
when invoking such a functio on a masterless pet. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8889 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-25- Removed config setting allow_atcommand_when_mute as it's no longer used ↵skotlex1-2/+0
(see manner_system in misc.conf for it's replacement) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8860 54d463be-8e91-2dee-dedb-b68131a5f0ec