73 Commits

Author SHA1 Message Date
ultramage
d220dde7c0 - Removed the +25% mdef, -50% def effect from Freeze status
- Changed autocast skills, they now only work with normal attacks
- Fixed a few spots where the attack_type flag was getting truncated
- Hopefully fixed the cygwin + size_t problem (using stddef.h as source)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10298 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-21 17:08:08 +00:00
skotlex
bdaf348a6d - Expanded the autospell structure to hold a flag, which contains the required Battle Flag conditions required for a skill to trigger.
- Added the required constants to const.txt to specify the autospell trigger properties.
- Added bonus5 bAutoSpell/bAutoSpellWhenHit. The new parameter is used to specify when the spell should trigger (melee/range + weapon/magic/misc attack), see item_bonus for details.
- Applied use of packet 0x28a (clif_changeoption2) to transmit opt3 changes. 


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10278 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-17 15:43:40 +00:00
skotlex
945be871ce - Removed bonus 'bAspdAddRate'. bAspdRate now behaves on a stackable matter, so it's no longer needed.
- Reimplemented the bonus 'bAspd'
- Renamed variable aspd_add_rate to aspd_add, since bAspdAddRate was removed, this variable now holds the absolute aspd bonuses.
- Added define status_base_amotion_pc to get the base amotion value.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10107 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-01 14:40:49 +00:00
Playtester
b1a7e1979e Updated and fixed Item Groups and Doom Slayer
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10101 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-30 23:52:33 +00:00
skotlex
a0d1e3f0dd - Removed unused bIgnoreDefMob
- Removed unneeded sd variables cart_max_weight and cart_max_num
- Made ignore_mdef_ele/ignore_mdef_race/ignore_def_ele/ignore_def_race unsigned chars rather than ints.
- Made pc_dropitem check for inventory_data, to guarantee that the item will be deleted from the inventory after dropping it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10051 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-22 16:46:09 +00:00
skotlex
2907fa6467 - Removed the last argument from skillitem, the skill name passed to the client should always be of the type "AL_HEAL" anyway.
- Added skill ITEM_ENCHANTARMS, this is what weapon enchanting items should use.
- Corrected itemskill calls in the item_db, also made the weapon enchanting items invoke the ITEM_ENCHANTARMS skill. Corrected Holy Egg not being type 11 (delay consume)
- Updated item_db.sql with item_db information.
- Added support for specifying different elements per skill level in the skill_db
- Added bonus bNoKnockback
- Corrected typo in bonus bSubRace2 (it was called bSPSubRace2 for some reason)
- Corrected login sql server not resetting your account state to 0 when the banuntil duration expires.
- Corrected use of UINT_MAX instead of INT_MAX in some jailing check.
- Made the skillatk bonus it's own function, it can now be used to boost Heal/Sanctuary/Potion Pitcher and Slim Pitcher as well.
- Cleaned up TK_WARMWIND to use the element acquired from the skill_db rather than hardcoded values.
- Corrected Teleport's save map entry being sent without the .gat extension.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10031 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-19 19:44:21 +00:00
skotlex
6597b8c74b - Updated the range of BioExplosion and Self Destruction so they count as ranged skills.
- Removed old script bonuses bMatk, bMatk1, bMatk2
- Fixed char-server not sending online notification when a party member logs in.
- When skill range by distance is set, the distance checked for is now 5 cells rather than 3.
- Fixed bMatkRate bonuses not applying to status earned modifications to int/matk.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9816 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-07 17:46:50 +00:00
FlavioJS
637ae9a4dc - Massive EOL normalization & 'svn:eol-style native' flag setting for all txt/conf/h/c files.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9410 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-05 13:23:07 +00:00
skotlex
c97cbb77c4 - Characters with Karma may fight amongst them anywhere.
- Added mapflags partylock and guildlock, which lock the state of the parties/guilds on said maps. partylock blocks user party requests to create/invite/leave/kick, while guildlock blocks user guild requests to create/invite/leave/expel/make alliance/make opposition/delete alliance/delete opposition/break


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9216 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-14 14:21:47 +00:00
Vicious
4569b7ad49 Updated some DB.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9090 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-29 07:46:51 +00:00
skotlex
55cf6d9d0f - Renamed nopenalty mapflag to noexppenalty. Using nopenalty will turn on/off both noexppenalty and nozenypenalty now.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8915 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-02 14:19:56 +00:00
skotlex
750d6613bf - Fixed the db/const.txt constant for EAJ_NINJA
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8683 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-09 02:16:30 +00:00
skotlex
609bfd1e48 - Updated skill_require_db's entry for Abracadabra, it requires yellow 2 gemstones (there's no such hardcoded yellow gemstone requirement anymore)
- Corrected db/const.txt entry bMagicSubRace -> bMagicAddSize
- Fixed Aex Aeterna ending on Soul Breaker's first half.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8651 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-06 14:22:16 +00:00
skotlex
78789dc389 - Added script commands roclass/eaclass to enable scripts to access eA's job format. Read script_commands.txt and ea_job_system.txt for a more complete explanation of how this job system works.
- Removed doc/item.txt (seems like a totally useless file)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8480 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-25 16:52:41 +00:00
skotlex
00f4aecb26 - Added support for hexadecimal values in the const.txt file.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8321 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-16 20:13:19 +00:00
skotlex
9c6d56be63 - Asura Strike now moves you to the target on fail always (unless the target does not exists or is in another map or there's a obstacle on the way)
- Corrected skill_attack_area hitting dead characters on it's splash range.
- Swapped the values for OPTION_XMAS and OPTION_FLYING. This should enable SG to show the fly animation again, even if sometimes others will see him as Santa. As for xmas cloth, it shouldn't make much of a difference since the view class is changed to christmas anyway.
- Moved the AM_CALLHOMUN code from castend_id to castend_pos.
- Made AM_CALLHOMUN and AM_RESURRECTHOMUN be like the wedding skills, where they automatically pick a spot around you.
- Cleaned up some the AM_RESURRECTHOMUN code. Hopefully it works now.
- Cleaned up some the hom evolution code.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8292 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-15 15:26:51 +00:00
Playtester
448929e1dc * Added some official item drop bonus rates
- also replaced IG_Jellopy with IG_Resist

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8137 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-04 20:08:44 +00:00
skotlex
2c88556eb7 - Added bNoMiscDamage setting so you can specify misc-damage blocking from skills. Modified battle_calc_damage so that even Pressure and similar skills will be affected by this setting.
- Removed SC_LANDPROTECTOR as it wasn't being used by anything.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7982 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-30 18:56:33 +00:00
skotlex
830106c6f9 - Modified party_item_share_type config setting so that using 1 disables item-sharing from non-mob loot (player dropped items or pet loot) and 2 enables round-robin instead of random sharing. Using 3 obviously is enabling both 1 and 2.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7898 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-26 18:51:22 +00:00
skotlex
7cd47130d0 - Added support for "sc_end -1" which will clear all status changes. Added the constant SC_ALL so you can use in scripts "sc_end SC_ALL;" instead.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7895 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-26 15:12:50 +00:00
skotlex
33bbefb989 - Added mapflag "nochat" to prevent chatting rooms from being created.
- Corrected some of the sleep checks when the char id does not matches with the char-id expected by the script engine.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7423 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-30 16:53:56 +00:00
skotlex
4f1911ae63 - Fixed indentation on int_pet.c (how did it got messed up?)
- Added mapflag "loadevent", now load-map script events will ONLY trigger on maps with this mapflag on, rather than every map.
- High Jump can now be used in all versus maps.
- Added Kaite's opt3 value, taken from jA
- Added state dirty == 2 to storages. Signals when a storage was sent for final saving. Said storage is removed from memory after the ack from the char-server, and they are sent to save if the map/char servers reconnect before the act arrives. In short: they are guaranteed to be saved after a char logs out.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7358 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-27 14:54:01 +00:00
Lance
61cf41923c * [Removed]:
- Large part of scripted mob control commands are removed.
- Large part of scripted player control commands are removed.
- Scripted mob slaves changing master ID.

[Added]: 
- Unit control commands.
- CALLBACK_NPCCLICK for scripted mobs, added this to db/const.txt too.
- Macro RECURSIVE_MASTER_CHECK in battle.c

[Modified]: 
- buildin_skilluseid and buildin_skillusepos -> buildin_unitskilluseid and buildin_unitskillusepos.
- md->callback_flag to short (double word).	[Lance]

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7233 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-18 02:42:41 +00:00
skotlex
7e10a0586c - Added IG_LottoBox for that tricky Lotto Box item.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7227 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-17 17:13:57 +00:00
Lance
397f255a23 * [Improved]:
- Cleaned up Custom Mob Script Callback codes. Looks much better now :B.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7202 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 14:42:16 +00:00
skotlex
ba6216e43e - Rewrote/cleaned up @petfriendly.
- Cleaned up final part of status_calc_pc (flags 2/4 do not exist)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6857 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-30 18:56:49 +00:00
Lance
2681e4127b * Patches to allow everything to work right. + 1 more sample script.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6779 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26 18:54:07 +00:00
Lance
7e5a2c9c34 Added a few more events in..
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6776 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26 11:58:13 +00:00
Lance
8320520472 * Mob control engine tested 99% working so far.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6770 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26 09:46:45 +00:00
Lupus
d5dd578e57 added noVending mapflag. Tested. + custom Market Place NPC, fixed MSG strings
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6755 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-25 16:26:17 +00:00
skotlex
e00d2e1716 - Fixed Option_Wedding in const.txt (0x1000 won't work, it has to be 4096)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6604 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-15 18:56:43 +00:00
skotlex
ae5d5020c0 - Changed wedding costumes to use setoption rather than changebase.
- Modified setoption so that flag 1 or no flag adds an option, and flag 0 removes it.
- Updated script_commands with the new behaviour.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6548 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-10 13:43:00 +00:00
skotlex
3b5ab1ba35 - Removed SP_DISGUISE from the bonus list.
- 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://svn.code.sf.net/p/rathena/svn/trunk@6516 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-08 15:11:25 +00:00
skotlex
391e5359ad - OnEquip scripts will be trigger on log-on now.
- 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://svn.code.sf.net/p/rathena/svn/trunk@6487 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-05 14:13:03 +00:00
Playtester
39f49da059 Fixed the stun typo that has been in eAthena for ages
- SC_STAN is now SC_STUN
- Eff_Stan is now Eff_Stun

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6352 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-28 20:02:56 +00:00
Lupus
b662c487e4 updated 'setmapflag' script command
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6304 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 05:55:23 +00:00
Vicious
198047d6b7 updated the db to X.2/X.3's itemsummonlist.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6277 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 19:29:52 +00:00
skotlex
f983dc57c3 - Modified and simplified the random item group format. It now is <GroupID>,<ItemID>,<Rate>, where Rate normally is 1, greater numbers is the equivalent of adding the line multiple times.
- Added constants to identify all groups to db/const.txt
- Cleaned up and updated item_db to use these new constants (warning: item_db.sql needs to be updated!)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6275 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-25 18:05:40 +00:00
skotlex
3ffd7ebdb9 - Updated the HP/SP leech structures to have race-data attached to them.
- 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://svn.code.sf.net/p/rathena/svn/trunk@6221 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-21 18:42:35 +00:00
skotlex
c69118e1e5 - Added two columns to item_db: equip_script and unequip_script are scripts 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://svn.code.sf.net/p/rathena/svn/trunk@6204 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20 23:24:20 +00:00
Lance
343deba71c * April fool! Improved soundeffectall script command. (No, this is not a lie)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5832 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 02:11:23 +00:00
Lupus
9a51949029 added script function 'getmonsterinfo'
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5659 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-18 14:41:02 +00:00
skotlex
8955a37a9b - Added mapflag nodrop, fixed mapflag notrade.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5619 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-15 21:07:00 +00:00
skotlex
d770421a9d - Trick dead now ends on logout
- Added mapflag nocommand which blocks @/# commands unless your gm level is above gm_skill_unconditional's level.
- Fixed weapon scripts not being executed unless the weapon was forged.
- gm_skill_unconditional is now a no/gm-level setting instead of yes/no


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5446 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-03 14:38:13 +00:00
skotlex
e647a2cbe3 - Pet eggs won't be deleted upon selection for hatching, but on pet data retrieval now.
- Added check to pc_readdb to printout if a certain job is missing it's experience table.
- Added Job_Wedding to db/const.txt


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5272 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-13 20:55:09 +00:00
Komurka
b4d3e485db Oh, me so baka ;P Added bSPVanishRate to const.txt - Dark Priest Card should work now
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5110 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-30 08:30:06 +00:00
Valaris
2178a86317 AS OF SVN REV. 5901, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.  EVERYTHING ELSE
GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5094 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-29 16:10:48 +00:00
Valaris
fd99753f8e Clearing trunk.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5091 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-29 16:00:45 +00:00
DracoRPG
480a67ddb8 Cards and item updates, 4 different bUnstripable effects
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1382 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-04-02 20:34:21 +00:00
celest
0ff3b351da * Fixed a potential crash in pc_walk in Win32 builds
* Added bAddEffWhenHitShort and changed bAddEffWhenHit back to all physical damage

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1373 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-04-01 08:37:31 +00:00