summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2006-11-10- AL_TELEPORT now fails when used on top of Land Protector.skotlex2-5/+8
- Some minor cleanings in pc_setpos, it may (or not) help fix that homunc-caused "map_addblock" error message. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9192 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-10- Removed the inf2 = TRAP of FirePillar and Spider Web so they are blocked ↵skotlex1-22/+32
by Land Protector. - Renamed skill_landprotector to skill_cell_overlap since that is more coherent with what that function does now. - Corrected fog of wall, so that the deleted/doubled-duration effects are calculated on a cell-by-cell basis. - Updated Land Protector: It will now delete/block effects of ALL ground skills EXCEPT: Song/Dances/Traps (encores are still blocked). Land skills blocked/deleted by LP also can't be casted on top of an existing LP. The code uses the inf2 value of the skill to determine if it is a song/dance/trap. - Ganbantein, mimicking LP, will now also remove ensembles. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9191 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-10- Fog of Wall will fail when casted on top of a Volcano/Violent Galeskotlex2-19/+26
- Applied FlavioJS's fix to the npc whisper system. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9190 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-09- Fixed status-change loading not working.skotlex5-6/+6
- Fixed permanent mob-spawn script-events not working. - AL_CURE won't confuse undead players. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9187 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-09- Reduced the check area of hermod to 3x3, you now have to literally stand ↵skotlex2-7/+11
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-09Fixed Health Conversion skill formula bugLupus1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9181 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-09- Fixed Desperado's hit-rate.skotlex3-22/+20
- Some miscellanous cleanups. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9180 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-08- The GVG map-packet will now also be sent for guild dungeon maps.skotlex1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9178 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-08- Did some cleaning in pc_authok and clif_parse_LoadEndAckskotlex2-99/+105
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9175 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-08- Some cleaning of the Gospel code.skotlex3-37/+72
- Added clif_gospel_info which displays info about the buffs you are receiving. Thanks to Rayce for the packet information. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9174 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-08- Moved the duel functions to pc.c since they are so totally out of place in ↵skotlex13-216/+231
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- A few reorders and type-changes in the map_session_data structure for ↵skotlex1-8/+7
better memory allocation of the variables. Also fixes a size conversion warning. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9169 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-07- Applied FlavioJs's patch which enables colored console output for Windows ↵skotlex9-130/+789
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 a fake nullpo when parsing the reply to a guild alliance request.skotlex1-3/+7
- Fixed the position of a nullpo in guild.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9164 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-07- Added a check to prevent casting ground skills on a target and vice-versa ↵skotlex1-7/+12
when said skill use packets are received. It really shouldn't be exploitable, but doing that certainly makes the server print a lot of "unknown skill used!" messages. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9163 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-07- Fixed map_foreachiddb and map_foreachpc so they don't encapsulate the ↵skotlex9-50/+58
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-07* Reapplied 'fix equipment scripts which are based on character variables ↵Lance1-4/+5
not working.' modified Changelog-Trunk.txt modified src/map/pc.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9160 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-06- Corrected Ground Drift. Splash range of 3x3, stackable and placeable ↵skotlex3-71/+91
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- Corrected Kaupe so it doesn't ends on the first part of Soul Destroyer.skotlex3-12/+17
- Applied some cleaning to the way Tatami Gaeshi knocks back. - Cleaned up the way mobskill_use checks for the correct event. It should fix unlimited mob-skill-casting issues. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9154 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-06- Ganbantein's delay is now 2 secs.skotlex8-51/+61
- 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-11-06* Reverted changes, moved status_calc_pc(sd,1) back to pc_authok since it ↵Lance2-5/+7
causes problems. modified Changelog-Trunk.txt modified src/map/pc.c modified src/map/script.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9150 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-06modified src/map/clif.cLance2-3/+4
modified src/map/pc.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9149 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-06* Temperory fixed stability issue caused by initial status_calc_pc being ↵Lance1-2/+4
placed AFTER another status_calc_pc. modified Changelog-Trunk.txt modified src/map/pc.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9148 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-05Readded duel code in map_quit. Why it has been removed!?LuzZza1-2/+10
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9138 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-04a couple new script commands [Reddozen]reddozen1-20/+75
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9136 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-31- Fixed song/dance/encore cells not being placed down when casted on top of ↵skotlex1-1/+1
a land Protector. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9111 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.skotlex5-15/+21
- 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-31- Added a check to prevent adding negative damage to the total accumulated ↵skotlex1-3/+12
damage in mob_damage. - Implemented the property where the first attacker get's double exp-share than the others. Due to the way exp calculation is done, this bonus will not apply when you use exp_calc_type 1 (damage/max_hp) instead of the default (damage/total-damage). For now this bonus is done after calculating who is the MVP character instead of before. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9107 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-30Fixed a little bug in event enqueue codetoms1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9102 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-30- Corrected GS skill ranges using Aegis data. All their targetted skills ↵skotlex4-17/+23
have a base range of 9 T_T, and Dust (Choke) has a range of 2. - Updated the code so mobs can use ChainAction as a targetted skill. - Added GroundDrift effects for Wind (Stun) and Fire (knockback). The knockback value is unknown, so 3 is used for now. - Cleaned up some more the steal code, now you can't steal the last slot regardless of skill level used. - Added consideration of Chain Action when cloning GunSlingers. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9100 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-30- Set the inf2 to encore skills of Wand of Hermodeskotlex6-54/+59
- 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-30Fixed getcharid according to samples and docsLupus1-2/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9098 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-28- Fixed mob-skill event "skillused" not triggering at all.skotlex4-6/+5
- Summoned mobs will only be removed from a map if their master is also removed (dynamic mobs) - Minor cleanups git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9088 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-27modified src/map/npc.cLance1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9085 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-27* Experimental tweak to npc_parse_function - Overwrite existing functions.Lance1-4/+11
modified Changelog-Trunk.txt modified src/map/npc.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9084 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-25- Cleaned up some more the event dequeue code, it will no longer clear out ↵skotlex4-44/+24
the npc_id if there's no events waiting to be executed (why does it clears the npc_id anyway?) - Because of possible conflicts with this change and the on-login script, now the on-login script is executed when the player has finished loading into their start-up map rather than as soon as receiving the registry variables from the char-server. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9073 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-25- Some cleaning of the pc_eventtimer and pc enqueue code, it should fix some ↵skotlex3-27/+22
memory leaks when the event counter does not matches with the actual number of queued timers during logout. - Minor typos, corrections, etc. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9072 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-25- Fixed "skill_sp_override_grffile: yes" causing crashes when parsing ↵skotlex1-1/+7
Homuncuus/Guild skills. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9069 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-25- Made the exp bonus settings be adjustable:skotlex6-26/+54
- exp_bonus_attacker: Indicates how much additional exp a mob gives per additional attacker (eg: 10 -> +10%*attacker) - exp_bonus_max_attacker: Indicates at which number of attackers the bonus is capped (eg: 5 -> 5 attackers, so a mob yield the same exp whether 5 or 10 people attack it) - Changed the way the party_even_share_bonus setting works. It now uses a simple linear bonus increase (eg: 10 -> +10%*party member) - The defaults are as explained by Tharis: +25%/attacker, capped at 12 attackers, no party bonus. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9067 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-25- MG_STONECURSE and NPC_PETRIFYATTACK now use time1 to specify the ↵skotlex3-4/+11
"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-25final clone maps -> original maps change. also fixed novice grounds map in ↵Lupus3-4/+4
char.c. fixed socked_enchant npc git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9064 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-24- Removed again your mdef reducing "petrifying" time as apparently it can't ↵skotlex2-9/+1
be reduced by mdef. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9059 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-24- Cleaned up the "show_steal_in_party" setting so it only takes effect when ↵skotlex3-64/+48
the item was successfully stolen (there was no point in telling you the item couldn't be stolen due to being overweight) - Cleaned up the pc_steal_item implementation (again). It now uses a more random, simple approach in each steal attempt. - Changed the way the skill_steal_max_tries work. Now it actually MEANS the max number of steal tries, use 0 to disable (unlimited tries). - Changed the default of skill_steal_max_tries to 0 as there's no proof anywhere that there should be such a limit. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9057 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-23- char_family now returns the char_id of the children when previously it ↵skotlex4-29/+39
would return true. - Expanded the family check to work as it should, exp-share-range is respected, and the child is not considered for it (thanks to TheUltraMage for the investigation) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9049 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-23- Double Casting will no longer fail when used.skotlex1-10/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9048 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 useless variable in char-txt from-str char loading.skotlex1-13/+13
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9046 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-23- Modified the meaning of the third column in the skill_require_db. Instead ↵skotlex1-2/+6
of MaxHP, this is now called MaxHPTrigger. This column (which was previously unused by all skills) signals the limit HP% that you can have to be able to use the skill. For example, setting it to 20 means the skill is unusable if you have more than 20% life (not that this is merely a threshold setting, it won't actually substract HP when used!) - Adjusted LK_BERSERK so you can only use it when you have 20% or less life. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9045 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-23- Removed NJ_TOBIDOUGU adding damage to W_HUUMA weapons which somehow got ↵skotlex5-8/+7
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