2131 Commits

Author SHA1 Message Date
zephyrus
83f55ea8bf ** Please update your server ASAP. **
- Fixed a wrong auth process, setting account offline in Login server when accessing Char server. (OMG!)
- Fixed a bug on TK_JUMPKICK. It should only do damage if can reach target.
- Fixed bug on Arug_cas01 script.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13087 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-17 00:21:13 +00:00
ultramage
5f31620e6a Some skill corrections based on bugreport:1945
- enabled WZ_FIREWALL and NJ_KAENSIN effect stacking (for more damage)
- blocked stacking of Warp Portal and Flip Tatami land skills
- reverted r12798's land-protector code change (incorrect and also doesn't have any effect)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13064 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-10 13:22:53 +00:00
ultramage
eb99fad326 Added itemid defines for Stone and Skull_ (used by Pick Stone skill and pvp skull drop, respectively).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13035 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-02 12:18:24 +00:00
ultramage
dac1c2d2df Removed unused guardian hp columns from the guild castles table in main.sql (should have been done in r11915).
Corrected incorrect use of the datetime column in the `login` table (bugreport:1962). Refreshed txt account savefile.
Cleaned up some random minor source code glitches.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13030 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-01 07:05:16 +00:00
ultramage
582c36c11e Renamed struct 'skill' to 's_skill' to remove naming collisions.
Added defines for mercenary skill ranges.
Added a mapping of mercenary skills to the skill db (700-799 atm).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13012 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-29 08:19:07 +00:00
ultramage
6c8cf8d611 Replaced occurences of '-1' with the more appropriate 'INVALID_TIMER' value where appropriate.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12998 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-26 14:22:28 +00:00
zephyrus
d48a482180 - Implemented official Convex Mirror (With help of Yomanda and Sirius White)
- Fixed SC_WARN don't receiving reflecting damage (Bug Report 1854).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12997 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-26 11:13:39 +00:00
FlavioJS
99a1aaa9e1 * Simplified the search in pop_timer_heap and added more debug info to help determine the source condition of timer errors. (bugreport:1860)
* Fixed crash in skill_castend_id. (bugreport:1860)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12968 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-20 01:16:59 +00:00
shadow
dde58291e4 Fixed TK_JUMPKICK, should not jump over objects and cliffs.
- This also might fix them being able to jump barricades on WoESE.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12962 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-16 00:07:16 +00:00
shadow
6eda4e104a Fixed a bad check on NPC_EVILLAND, actually healing players instead of doing damage.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12938 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-12 00:31:51 +00:00
FlavioJS
cdda61ce1b * Added const to the return value of get_timer.
* Added a maximum timer interval. Avoids server shutdowns being delayed for ~10 seconds under some circumstances on windows.
* Replaced the fake timer heap (ordered array) with a binary min heap.

(actually, this is just a merge and has been in use for months)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12926 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-09 01:25:19 +00:00
ultramage
d40b9b93d4 First attempt at implementing the official walk speed system
* separated speed modifiers into bonuses, penalties and other statuses
 * no bonuses stack, instead the maximum is taken
 * no penalties stack, instead the maximum is taken
 * Union, Riding and Pushcart are the only other statuses that stack
 * both bonuses and penalties are linear modifiers of the base walk speed
 * 'other' statuses are applied after bonuses and penalties

Changed many equations to match official walk speed system
 * Steel Body now sets a fixed walk speed of 200 (bypassing everything else)
 * Defender now caps the walk speed to a minimum of 200
 * Slow Grace now uses official equation for aspd/walk speed decrease
 * Pushcart's speed penalty is now halved
 * Free Cast now changes walk speed to a fixed value, bypassing bonuses and penalties
 * Wedding clothes now have a penalty of +100%, not +200%
 * rogue's Tunnel Drive and stalker's Chasewalk ignore all penalties
 * taekwon's Running is now 5% faster
 * Frenzy is now 5% faster
 * Gospel's offensive slowdown is now +75% instead of +33%
 * Quagmire now slows down by +50% instead of +100%
 * Gatling Fever now slows down by +100% instead of +33%
 * Cloaking modifier is now a bonus/penalty, depending on presence of wall
 * Longing for Freedom overrides the song/dance penalty (bugreport:416)
 * Bard/Dancer Spriit now properly affects song/dance penalty (bugreport:1019)
 * item-granted speedup no longer stacks with speed bonuses (topic:145019)
 * removed some status code that pre-calculated speed bonuses/penalties, to make calculations more localized and less messy (see song/dance code)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12923 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-07 11:40:57 +00:00
ultramage
35c93c2cab Removed stop/slowdown effect from Grimtooth (bugreport:1806)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12917 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-07 04:50:58 +00:00
shadow
4e1d094db0 Fixed AM_PHARMACY produce chances based on info gathered by flaviojs, aegis zone ep 11.2, of 20070629
Added missing version on my last commit on dancer.txt script (added by akrus on stable branch already)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12913 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-05 00:21:16 +00:00
ultramage
8d6505fdee Adjusted Free Cast code so that its walk penalty gets calculated in status_calc_speed and nowhere else.
Removed aspd penalty from Free Cast since tests show it's not there, even though RO sites claim it is.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12904 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-03 03:24:58 +00:00
shadow
901d311735 Fixes regarding bugreport:1727 (undead element/race skill behaviors) follow up on revisions r12820 r12821 and r12822
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12903 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-03 02:18:44 +00:00
ultramage
7444eb572c Random assortment of various small corrections and tweaks.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12894 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-29 06:00:05 +00:00
ultramage
39c437346f Cleaned up unconditional calls to status_change_end().
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12890 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-24 14:23:15 +00:00
sketchyphoenix
285e8e1f36 Changed a if statement around because gcc emocries over it.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12878 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-22 21:42:16 +00:00
sketchyphoenix
e25af12edf * Fixed a bug where the "OnMyMobDead" event wouldn't trigger if the mob was killed and never attacked. (bugreport: 1725)
* Reworded a comment in can_copy to make more sense.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12870 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-21 20:45:40 +00:00
sketchyphoenix
7173c6123f * Fixed SC_CHANGEUNDEAD behavior: Blessing and Increase AGI deals 1 damage and does not apply buffs to those inflicted by it.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12862 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-19 08:05:57 +00:00
sketchyphoenix
7340e02d5b Added Sirius_White's fix for sense working on emperium. (bugreport: 1679)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12860 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-19 07:35:03 +00:00
ultramage
696ac9ce34 Fixed Icewall not restoring the original cell type (mistake in r11175).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12836 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-15 03:34:46 +00:00
shadow
76274aa15f Fixed Evil Land working versus undead element instead of undead race.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12822 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-13 14:40:55 +00:00
shadow
491d146d39 Fixed Grandcross and darkgrandcross, should only cause blind against undead race.
Also confirmed that ME, evil land, sanctuary, grandcross/DGC and status recovery are versus element, not race.
Removed confusion effect part from AL_CURE, it doesnt work on official anymore.
Partial revert of signum crucis modification, it doesnt work against players, but work on ELEMENT undead monsters.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12821 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-13 13:22:36 +00:00
shadow
a80253d14f Fixed some skills working on undead element when they were supposed to work on undead race.
Skills Fixed: GrandCross, Dark GrandCross, Cure, Head Crush, Signum Crusis, Blessing, Demons Bane, Divine Protection.
Skills needing confirmation: Magnus Exorcismus, Evil Land, Sanctuary, Status Recovery.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12820 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-13 11:39:13 +00:00
FlavioJS
625f9f62fd * Added support for skill names to script commands:
- skill, addtoskill, guildskill, getskilllv, getgdskilllv, itemskill, petskillattack, petskillattack2, petskillsupport, skilleffect, npcskilleffect, unitskilluseid, unitskillusepos
- bonus/bonus2/bonus3/bonus4/bonus5 for bonuses bAutoSpell, bSkillAtk, bSkillHeal, bAutoSpellWhenHit, bAddSkillBlow, bCastrate

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12814 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-12 09:30:12 +00:00
shadow
a7f7dae99d Fixed 1734,Orc_Archer_Bow working with Iron Arrow instead of Steel Arrow. Thanks Muad Dib for reporting.
Fixed Active Guild skills not working when WoE is OFF, follow up on r12770, bugreport:1653 and bugreport:1637

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12800 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-09 12:43:08 +00:00
shadow
542867516d Fixed Fire Pillar (and any future splash damage magical trap) not working on Land Protector.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12798 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-09 09:20:50 +00:00
shadow
097072f1fe Fixed reject sword having a infinite duration, bugreport:695 (both stable and trunk)
Fixed 13007,Jitte and 13008,Jitte_ break chances (5->2%).
Fixed 1535,Hollgrehenn_Hammer break chances without combo (2->1%) and with combo (12->10%), also has no chance of breaking user equip.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12797 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-09 00:33:09 +00:00
ultramage
5d98e5cbf4 Implemented the two-handed staff/rod type (thanks to Muad_Dib).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12793 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-08 13:17:51 +00:00
shadow
55f8ddeb2f Fixed SA_DISPELL removing SC_CRITICALWOUND.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12781 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-08 03:42:49 +00:00
ultramage
4517a5c8e2 Swapped the weapon type IDs of Shotgun and Gatling Gun weapons to match aegis.
Added Mace Mastery bonus to 2handed maces, and made them unbreakable.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12779 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-07 17:01:29 +00:00
ultramage
91e7ba7d50 Usage of map_flag_gvg2() in Emergency Recall code (minor followup to r12770).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12774 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-07 12:07:41 +00:00
shadow
01cb41bb34 Fixed GD_EMERGENCYCALL not working inside gvg castles when WoE is off, bugreport:1637 fix by Meyraw
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12770 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-07 11:21:27 +00:00
ultramage
d5f1f0a910 Kaite should not work against high-level mobs - bug introduced in r11230 (bugreport:1623).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12767 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-07 10:22:33 +00:00
shadow
69089d210e Fixed a few properties of NPC_CHANGEUNDEAD bugreport:79
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12763 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-07 02:52:03 +00:00
zephyrus
31320fcc9d - Added some new items and headgears.
- Changed the way DEF Potion and MDEF potion works to official.
- Cleanups to Barricade Engine. It now can be used in WoE 2.0, i will release optional scripts soon.
- Fixes to @noks. Now if the mob is targeting someone else the protection get lost.
- Added new status effects icons to cash items.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12693 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-08 16:58:57 +00:00
skotlex
61093d095a - Moved the SD_PREAMBLE code to skill_area_sub
- Added SD_SPLASH to let skill_area_sub do the target counter.
- Updated splash skills to use these defines.
- The NPC_WIDE* skills now use SD_PREAMBLE to correctly display their animation.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12689 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-07 20:10:13 +00:00
skotlex
247996b40e - Added function battle_attr_ratio to handle just getting the attribute table data. Fixes Sense messing up with elemental based statuses.
- Added Throw tomahawk to the list of items that do not trigger the equipment breaking code.
- Moved a bit around the SC_ start of dancing skills to fix Moonlight petals pushing back the casters.
- Modified status_damage to handle SC_KAZIEL. The return value of *_dead functions can pass 8 to specify that kaziel should not be triggered (ie: pvp/gvg)
- Infinite Endure won't be passed on to devoted characters.
- Infinite Endure is no longer saved on logout.
- Added check to avoid gms opening vending shops if they don't have the required level.
- Moved around the Steel Body S. Novice code, simplified it so it triggers before most of the penalties (death is cancelled).
- Fixed the flee penalty not applying when you walk into a gvg map.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12688 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-07 18:46:21 +00:00
ultramage
6559c24882 Replaced the integers+checking approach in r12679 with usage of floating point arithmetic.
Applied search&replace to use the new name of the function.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12680 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-01 13:56:24 +00:00
ultramage
d5775e7e11 Implemented get_percentage() for compact and safe calculation of percentual values.
Fixed integer arithmetic overflows that were occuring in several supernovice checks (bugreport:1135).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12679 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-05-01 12:14:06 +00:00
FlavioJS
c880052f0f * Changed the data field of timers from int to intptr.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12633 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-21 21:34:31 +00:00
ultramage
9609149c15 * Corrected some invalid syntax in skill_db.txt (wrong usage of commas)
* Renamed BA_FROSTJOKE to BA_FROSTJOKER (aegis server-side name)
 * Implemented a generic framework for parsing delimited db files (allows specifying min/max column ranges and max number of rows to read)
 * Corrected a typo in quest_update_objective()
 * Cleaned up pc.c a bit

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12599 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-15 13:49:40 +00:00
zephyrus
3f1e9f8d9b - Added code to remove a trap when it dies.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12566 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-11 16:34:50 +00:00
zephyrus
d6c303341b - Fixed Max Guardians max = 8 (no need to increase this value for woe 2.0 as non indexed guardians are set outside of the array).
- Hunter traps have 3500 HP, they are not removed by just one hit. (This also fix the bug you can't move traps with arrow shower).
- Some cleanups.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12549 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-10 15:40:48 +00:00
L0ne_W0lf
83f22f6584 * Updated NPC skill "Evil Land". More gravity wtfage.
- Based on visual observation, and experience with it on iRO Sakray.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12548 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-10 15:16:27 +00:00
Kevin
c86112f4e9 Immunity to magic now makes you immune to the SC effect as well. (bugreport:1277)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12527 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-07 22:25:22 +00:00
Kevin
bb63504c0f Magnum Break will now affect traps. See (r12516).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12517 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-07 04:59:46 +00:00
Kevin
9320f89d09 -Sight rasher now affects the wizard's own and other's icewalls.
-Sight rasher, sight blaster, and arrow shower are now the only three skills that will affect traps.
(bugreport:59)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12516 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-07 04:55:26 +00:00