1197 Commits

Author SHA1 Message Date
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
Kevin
e7d2509efb Changed guild skills restore, regen, and battle order to only affect BL_PC. (bugreport:1313)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12513 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-07 01:15:52 +00:00
Kevin
29c5006148 Unequip should no longer remove any buff from seven wind. (bugreport:1155)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12503 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-06 04:19:22 +00:00
Kevin
55a166f6ea Union now consumes sp when not soul linked. (bugreport:1155)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12499 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-05 22:59:13 +00:00
Kevin
b21957ba7b Last fix for r12485, I swear. >_>
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12487 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-05 06:03:57 +00:00
Kevin
b6ff32af26 Fix for (r12475), wasn't checking to see if the target cell was walkable.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12486 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-05 05:57:00 +00:00
Kevin
1a5d1c8780 PCs/Mobs/NPCs now block Leap(TK_HIGHJUMP) and sprint(TK_RUN). (bugreport:1155)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12485 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-05 05:28:01 +00:00
zephyrus
2fedf05582 - Fixed wrong expire calculation on Wall of Fog used over Deluge (Bug report 1301).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12451 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-31 05:16:42 +00:00
ultramage
94943b2b6a Adjusted eAthena code to compile cleanly in C++ mode.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12436 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-26 10:37:45 +00:00
ultramage
e2960e9af8 Partially fixed the mess in status.c.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12433 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-25 21:41:31 +00:00
ultramage
f6d2d9a360 Replaced some foreach-based functions by their inlined iterator equivalents.
Changed the dynamic mobs system, so that the flag that indicates whether a particular mob can be unloaded is stored in the mob's respawn data structure.
Cleaned up related parts of the source code.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12358 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-13 22:09:58 +00:00
zephyrus
0588524caa - Added a fix for Abracadabra, this skills allways should use minimum a Yellow Gem.
- Added some code "suggestion" to handle the new Barricades, please test it with:
- @barricade <x> <y> <size> <direction> <killable> <Event Name>
- @killbarricade <Event Name>
- If x and y are -1, it will use your current position.
- Direction 0 Vertical 1 Horizontal.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12352 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-13 04:03:37 +00:00
skotlex
d6eb67c6c4 - Modified attack_walk_delay so it behaves on a 'per-object' basis, and changed the default to 15 (all types).
- Modified battle_delay_damage so damage is not delayed more than one second for non-player attacks. 
- Modified party_member_added with a hack so that the clif functions will send the info of the new member since party_recv_info has not yet arrived.
- Updated clif_calc_delay so the type sent to the client is based on the number of hits of the skill (as Aegis packets reveal)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12332 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-09 20:11:14 +00:00
ultramage
5767cc5285 Cleaned up and corrected some more land skill code:
* removed redundant skill_ganbatein() function
 * Added flag UF_PATHCHECK from jAthena which affects whether a skill's cells will be affected by the surrounding terrain. Adjusted existing flags so that they closely match jA's (for easier comparisons).
 * Fixed code that allowed placing of skill unit cells on 'gaps'.
 * Fixed code that prevented successful casting of land skills on 'gaps' (officially it's possbile, even though they will not deploy entirely).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12331 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-09 17:28:01 +00:00
skotlex
3a36995d8b - Corrected pc_checkitem not behaving correctly when you had more than one equip with a restricted card.
- Fixed non-chatroom owners being able to kick others from the chatroom.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12311 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-06 19:58:53 +00:00
skotlex
ccb13e72c0 - Implemented Firepillar's 'target cannot move for 0.2 sec x hit' property.
- Corrected Earthquake so it behaves as explained in the development topics.
- Corrected a missing opt_flag = 0 when using SC_INCATKRATE on mobs.
- Added a missing line to actually unequip unallowed compounded cards when changing maps.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12299 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-05 15:39:46 +00:00
skotlex
8ae4bd12ad - Updated firepillar so it cannot be placed on top of others.
- Updated the firepillar code so it behaves like the other traps.
- Changed the default format for @me and @main to avoid crashes on the newer clients.
- Fixed the char-sql server so it returns a valid 'not found' packet when attempting to load a non-existing homunculus.
- Fixed jump to use 0,0 for random coordinates rather than -1,-1
- Added missing \n to error reporting in getmonsterinfo
- Additional status changes now only get triggered if the attack did damage, not if they get absorbed.
- Fixed a logical comparison in unit_free to properly remove pets/homuncs when their intimacy is reduced to 0.
- Properly set the opt3 value for Moonlight, Changeundead and Soul Link
- Fixed the "no equip" flag of cards not being properly applied when attemting to equip items.
- Added a check to avoid invoking pet menu entries when the pet is incuvated.
- Fixed the session_data de-association in chrif_auth_delete
- Cleaned chrif_auth_ok so that the latest received char info is kept when previous char login data was already in there.
- Corrected docs mentioning non-existing flag 'mf_nopvp'


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12293 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-04 18:04:04 +00:00
ultramage
5afa9cceb9 Patched an unresolved case where knocking back a bard/dancer would cause the mapserver to crash (bugreport:1043)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12249 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-27 18:40:31 +00:00
ultramage
8e63c21d2e * Fixed Apple of Idun not checking for bard soul link (bugreport:1028)
* Fixed Advanced Adrenaline Rush not working barehanded (bugreport:1049)
 * Disabled idle_no_autoloot setting (bugreport:1051)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12248 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-27 14:48:50 +00:00
ultramage
1acd00e838 * Removed NODAMAGE and ICEWALL cell types (mem usage back to normal)
- Icewall now uses basic cell type 5 (nonwalkable, shootable)
- as a consequence, you can now warp to a nonwalkable cell - but only via gm command or scripted warp bug (hopefully :)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12247 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-27 14:17:14 +00:00
zephyrus
3868080ead - Added new settings for autotrade on battle/misc.conf (you can read descriptions there).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12243 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-26 22:14:05 +00:00
ultramage
76c27942f6 Changed pc_can_give_items() to use standard boolean logic instead of the inverted 1/0 one (bugreport:396)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12220 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-20 16:21:37 +00:00
ultramage
c12125ed84 Fixed Warp Portal code sometimes producing errors/crashes in the case where a priest enters his/her own warp (bugreport:270)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12189 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-10 22:40:50 +00:00
zephyrus
c4fb4f4361 - Some code cleanups.
- Added new Cell types (NoChat and NoDamage)
- Added JobChangeLevel and FreeSKPoints to #stats
- Added a Crash protection in clif_send with invalid fd values.
- Merged a missing update in TK Mission.
- Added script command 'getmapflag'
- Merged some new Status Change to Stable.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12175 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-04 18:23:57 +00:00
skotlex
9b8b53b7cf - Fixed a 'typo' which made my last commit actually not fix anything (Plagiarize can no longer copy skill levels beyond their max skill_db value)
- Corrected Diablo's Robe equip-level and weapon-level columns being exchanged.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12172 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-04 10:18:56 +00:00
ultramage
2ef6778696 Fixes to Devotion (see topic:153345)
- removed totally fake Devotion packet from Marionette Control code (see r3934)
- fixed one devoted chars array management code bug which caused chars to be included in the array multiple times, producing various problems (also see r3934)
- the link will now re-display when coming into view range
- the link will no longer break if the devotee walks away, but instead, if he receives damage while being out of range of Devotion

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12171 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-03 23:26:00 +00:00
skotlex
52b3140f90 - Plagiarize can no longer copy skill levels beyond their max skill_db value.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12151 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-29 19:26:18 +00:00
zephyrus
4fcaa2f78f - Optimized some code about @size changes in chars.
- Fixed #jailtime (Bug Report 853) crash.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12117 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-21 07:41:52 +00:00
skotlex
b4a3bad556 - Fixed a comparison whn doing item searches
- Fixed hom_setting&0x2 conflicting with the 'view-range' limit check.
- Stone curse now uses status_percent_damage instead of a precalculated value.
- Merged the SA_MONOCELL and SA_CLASSCHANGE code. After changing class all the status changes that cannot be triggered on bosses are dispelled. 
- SA_CLASSCHANGE now uses the bloody branch list to pick a target MVP class.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12098 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-20 14:32:10 +00:00
ultramage
9ead7d0a99 Icewalls can no longer be knocked back (see bugreport:38)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12083 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-17 07:38:11 +00:00
skotlex
4988d419aa - Fixed missing mob_spawn call, which was making CR_CULTIVATION not actually spawn the plant.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12077 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-14 22:13:43 +00:00
ultramage
fc719995cb * Client packet corrections
- 0x01df is not 'gmreqnochatcount', but for requesting a player's account name via right-click menu (which currently can't be done)
- added /remove and /recall, aliases to /shift and /summon
- added /changemaptype, which alters a single cell's gat type
- gm kick will no longer exit the client (now it goes to the login screen)
- removed the quicksort invocation in /ignore code

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12076 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-14 19:13:16 +00:00
ultramage
d5455fabfc Simplified the BL_CAST macro (see topic:166795)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12072 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-14 08:54:54 +00:00
ultramage
68659bc0c4 Applied Skotlex's alternative to r12044 (abracadabra fix)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12054 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-11 13:13:35 +00:00
skotlex
da34bd4811 - Implemented the extra damage bonus to TK_JUMPKICK when it is used while running (however what the bonus's equation is has been lost to time, so someone else correct it).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12053 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-11 13:00:27 +00:00