313 Commits

Author SHA1 Message Date
aleos89
10bac969ee Added DIR_* to script constants
* Adjusted a few location in source to use the constants.
Thanks to @Lemongrass3110!
2016-04-22 23:12:47 -04:00
Lemongrass3110
2bf64c9773 Refactored the EQI constants
The EQI constants of the constants database did not match the ones used in the source up to now.
For whatever reason long long ago an array was created which mapped the const_db EQI constants to the source's EQP constant(aegis bitmasks).
With this commit we now use the already existing array from pc.h(which was moved from pc.c to be accessible).

This merges and closes #1147 due to follow up changes with 1cd3741.
2016-04-13 11:11:42 +02:00
aleos89
daa9e018f4 Release of Doram Race!
* Requires client 2015-10-01 and newer.
* All skills are usable from from the base list to all 3 branch types.
-- Some skills still need their official activation chance and durations.
* Adjusted the char-server start point and start item split functions to be more dynamic.
Thanks to Rytech and @NovaRagnarok for their information!
2016-03-19 14:09:30 -04:00
Lemongrass3110
fa561fbfe2 Added NPC IDs 10175-10203
Merged from HerculesWS/Hercules@f95290c
Thanks to @Jedzkie
2016-02-27 15:20:51 +01:00
Lemongrass3110
f424a2a71d Reverted 2d03e7f and d32c857
Fixes #890 and #897

Sorry for the inconveniences guys!
2016-01-12 15:59:42 +01:00
Lemongrass3110
65347041c1 Migrated all boolean constants to source exports 2016-01-07 00:53:31 +01:00
Lemongrass3110
33729eb961 Migrated all look constants to source exports 2016-01-07 00:43:26 +01:00
Lemongrass3110
958b6cd5d9 Migrated all font weight constants to source exports 2016-01-07 00:28:15 +01:00
Lemongrass3110
de61a19eca Migrated all getpetinfo constants to source exports
Created the respective enum on source side.
2016-01-07 00:19:37 +01:00
Lemongrass3110
28e337127e Migrated all getmonsterinfo constants to source exports
Created the respective enum on source side and changed the script doc to only refer to the constants not the direct values.
Additionally adjusted the sample script.
2016-01-06 23:55:06 +01:00
Lemongrass3110
a68ab0c88d Migrated all getpetinfo constants to source exports
Created the respective enum on source side and changed the script doc to only refer to the constants not the direct values.
2016-01-06 23:28:05 +01:00
Lemongrass3110
d30b250fb2 Migrated all parameter constants to source exports 2016-01-02 01:54:39 +01:00
Lemongrass3110
6532f74c3b Migrated all quest check constants to source exports 2016-01-02 01:10:51 +01:00
Lemongrass3110
087a0f4a5e Migrated all binding constants to source exports 2016-01-02 01:08:55 +01:00
Lemongrass3110
d37e8958ce Migrated all bonus script flag constants to source exports 2016-01-02 01:07:28 +01:00
Lemongrass3110
b1e97ce6b1 Migrated all add skill type constants to source exports 2016-01-02 01:06:41 +01:00
Lemongrass3110
a2a13eeee3 Migrated all item type constants to source exports 2016-01-02 01:02:21 +01:00
Lemongrass3110
5b789412e7 Migrated all mercenary guild constants to source exports 2016-01-02 00:59:13 +01:00
Lemongrass3110
00057d7535 Migrated all send target constants to source exports 2016-01-02 00:57:37 +01:00
Lemongrass3110
3929f7adc3 Migrated all emoticon constants to source exports 2016-01-02 00:55:17 +01:00
Lemongrass3110
43d9445c6d Migrated all battle and auto trigger flag constants to source exports 2016-01-02 00:48:55 +01:00
Lemongrass3110
2eb8b933a7 Migrated all class and size constants to source exports 2016-01-02 00:43:43 +01:00
Lemongrass3110
f558f85abf Migrated all race constants to source exports 2016-01-02 00:38:56 +01:00
Lemongrass3110
7565dcc16b Migrated all element constants to source exports 2016-01-02 00:36:34 +01:00
Lemongrass3110
2b0087955e Migrated all status icon constants to source exports 2016-01-02 00:31:17 +01:00
Lemongrass3110
2174395717 Migrated all status change constants to source exports 2015-12-31 15:56:10 +01:00
Lemongrass3110
6322d609f4 Migrated all look constants to source exports 2015-12-31 04:17:50 +01:00
Lemongrass3110
2d03e7fb9e Migrated all equip position constants to source exports 2015-12-31 04:12:19 +01:00
Lemongrass3110
a1b08c380a Migrated all setcell and getcell constants to source exports 2015-12-31 04:06:50 +01:00
Lemongrass3110
8d3cff4b0e Migrated all mapflag constants to source exports 2015-12-31 04:02:26 +01:00
Lemongrass3110
2ee3765456 Migrated all broadcast constants to source exports 2015-12-31 03:56:05 +01:00
Lemongrass3110
e68ad2bef5 Migrated all eAthena job constants to source exports 2015-12-31 03:51:42 +01:00
Lemongrass3110
fb6688951d Migrated all job constants to source exports 2015-12-31 03:32:26 +01:00
aleos89
b0e289fbf3 Follow up to 89a33a7
* Added missing status change defines to const database.
* Updated documentation for bSateNoRecoverRace.
2015-12-10 11:36:13 -05:00
Cydh Ramdh
241e10b92c Follow up 89a33a77ad47da523828d1156c2f68d1d2e561ee
* Corrected documentaion of `bStateNoRecoverRace`
* Added `bStateNoRecoverRace` to const.txt

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
2015-12-09 05:26:18 +07:00
Cydh Ramdh
ae98019014 Update some NPC constants.
Signed-off-by: Cydh Ramdh <cydh@pservero.com>
2015-10-29 12:16:10 +07:00
Cydh Ramdh
587da1048d Item DB Update
* Added items, packages, and combos from idRO patch 2015-10-07 and 2015-10-15.
* There are some WoE TE items. (just bad, we don't have WoE TE implemented yet)

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
2015-10-18 16:38:08 +07:00
Cydh Ramdh
48293b757d Item DB Update
* Added items, packages, and combos from idRO patch 2015-09-09

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
2015-09-14 11:56:48 +07:00
nanakiwurtz
43068e1777 Fixed #469
* Added Eff_Crystalize to /db/const.txt
* Thanks to @joelolopez

Signed-off-by: nanakiwurtz <nanakiwurtz240@gmail.com>
2015-09-04 01:28:50 +07:00
Cydh Ramdh
4a55439550 * Typo in const.txt for SC with ID 608, SC_HASTEATTACK_CASH -> SC_ATTHASTE_CASH.
* Move 'dummy' skill lookup to `skill_dummy2skill_id` so can be used for item bonus for revelant skill.

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
2015-09-02 23:02:13 +07:00
Cydh Ramdh
c4da965ee6 Item DB Updates
* Added items from idRO patch 19/8

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
2015-08-26 12:19:49 +07:00
Cydh Ramdh
64cb02e5f1 * Introducing Item Reuse Limit Group
* By expanding current item_delay.txt's function to implement official item reuse limit.
  * There's the 3rd optional column, put SC ID value to add reuse limit. The reuse delay will be acknowledged as status change. Ignoring this column will use 'normal' item delay.
  * Added some items to their reuse limit group.
* Item DB Updates
  * Added effect for ASPD_Potion (12684).
  * Added effect and delay for Para_Team_Mark_ (22508).

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
2015-08-03 20:48:35 +07:00
Cydh Ramdh
7a77e6965d Item DB Updates: Lucky Eggs
* Ref: idRO, you can see the item list on its forum. TODO: Rates, and othe package's params

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
2015-07-19 19:46:15 +07:00
Cydh Ramdh
9b87ca2b7c Clean up Monster Random List
* Now using db/[pre-]re/mob_random_db.txt as main file.
* Removed hardcoded limit for random monster group.
* Introduce contants for monster random group, MOBG_*. Usage in `monster` script can be '-1-MOBG_ID' to determines 'summon monster from random summon list'.

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
2015-06-27 13:11:49 +07:00
Cydh Ramdh
e6d5b09b06 Follow up 3d9c6e7763c3d257593ba159a18dffc435b5ff06
* Added 'missing' packets for 2015-10-22 (51).
* Packet keys for packet_ver 50 and 51.
* Fixed memleak from Roulette items.
* Corrected date2version cases.
* Doc update, packet_interserv.txt.

Fixed wrong constant value for bSubSkill and bSubDefEle

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
2015-06-20 11:59:29 +07:00
aleos89
3d9c6e7763 2014 Client Support
* Implemented the Roulette Game feature.
* Implemented per-character sex change feature.
* More info: https://rathena.org/board/topic/102247-2014-client-support/
- Special thanks to HerculesWS/Hercules@239d480 for the base.
2015-06-19 14:07:34 -04:00
Cydh Ramdh
6ad4ed13d1 * Added script command showscript "<message>"{,<GID>}; by using clif_showscript.
* Removed hardcoded message that displayed clif_showscript for `transform` script, replaced its usage for item script by using `showscript`.
* Changed unittalk usage on `F_Cat_Hard_Biscuit` and `F_Rice_Weevil_Bug` function in quests_malangdo.txt.

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
2015-06-19 00:37:48 +07:00
Cydh Ramdh
3f549cafb5 * Revert some changes on 549f491fe6a0f879b5d4b647cac8307b8123e181
* Item bonus correction, ambiguous of 'HP/SP Gain' implementation.
  * Since no implementation for 'drain HP/SP from target', the bonus was removed but makes 'HP/SP Drain' bonuses act like 'drain HP/SP from target' that was totally wrong.
  * This also fixed #471, @AbuGosok
  * Removed HP/SP Gain bonuses that should be use HP/SP Drain:
    * `bonus bHPGainAttack,n;` is same as `bonus bHPDrainValue,n;`.
    * `bonus bSPGainAttack,n;` is same as `bonus bSPDrainValue,n;`.
    * `bonus2 bHPGainAttackRate,x,n;` is same as `bonus2 bHPDrainRate,x,n;`.
    * `bonus2 bSPGainAttackRate,x,n;` is same as `bonus2 bSPDrainRate,x,n;`.
    * `bonus2 bHPGainRaceAttack,r,n;` is same as `bonus2 bHPDrainValueRace,r,n;`.
    * `bonus2 bSPGainRaceAttack,r,n;` is same as `bonus2 bSPDrainValueRace,r,n;`.
    * `bonus2 bHPGainRaceAttackRate,r,n;` is same as `bonus2 bSPDrainValueRace,r,n;`.
    * `bonus2 bSPGainRaceAttackRate,r,n;` is same as `bonus2 bSPDrainValueRace,r,n;`.
    * `bonus bHPGainAttackRate,n;` none.
    * `bonus bSPGainAttackRate,n;` none.
* Fixed #454, thank @jeanroyce
* Item update & correction script from Aegis
  * Wunderkammer renamed to YinYang_Earring (18575).
  * Updated scripts for 7676, 18593, 18595, 18597, 18600, 18601, 18630, 18631, 18636, 18637, 18650, 18650, 18652, 18656, 18659, 18671, 20700, 20724, 28315, 28316, 28317, 28318.
  * Updated script for RCC2013 Combos 28315:28317 and 28316:28318.

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
2015-06-18 19:26:05 +07:00
Cydh Ramdh
b71ed05857 Bug Fixes
* Now coma triggered on every attack types (bugreport:3100)
  * Added bonuses `bonus2 bComaRace,r,n;` and `bonus2 bComaClass,c,n;`, replacing the current usages of `bWeaponComaRace` and `bWeaponComaClass`.
  * This bonus has no effect for GVG and BG monsters.
* Fixed Shockwave Trap (HT_SHOCKWAVE) SP reduction, should be % of MaxSP not % of 'current' SP.
* Fixed #462, failure in `setunitdata` for NPC. Thank a91323, @julia40124009
* Fixed #470, changed SO_ARRULLO target to BL_CHAR.
* Added skill flag INF2_HIT_TRAP (0x40000) to removed hardcoded 'skill that can hit traps'.
  * NOTE: Client-side's factor also determines that skill can be targeted to trap-type skill or not.

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
2015-06-17 00:33:08 +07:00
Cydh Ramdh
5a4cd7426e Bug Fixes:
* Fixed #445, fixed Health Conversion cast time & cooldown.
* Fixed #404:
  * Added new item bonus `bonus2 bSubDefEle,e,x;` to reduce x% damage received from monster with element e.
  * Fixed item script for item 4442 until 4449.
  * Added config `subdef_ele` in conf/battle/items.conf to change bSubDefEle behavior.
* Follow up 111eb0c1c1a048219cb7c908cf8be0b0a24afdde, added state requirement for skill 'elementalspirit2' for skill that need summoned Elemental Spirit and removes it.
* Fixed monster that `is_infinite_defense` ignored Safety Wall && Pneuma effect.
  * Also fixed bugreport:6741.
  * But the effects are still ignored for Emperium when WOE time, and BG monsters in BG Arena (like previous).
* Item Updates:
  * Transformation chance to becomes Atroce as combo of Fidelity_Necklace (2959) and Black_Shiba_Inu_Hat (18756).
  * Transformation chance to becomes Eddga as bonus of King_Tiger_Doll_Hat (5497) and W_King_Tiger_Doll_Hat (18856).
  * Cooldown reduction for skill WL_RECOGNIZEDSPELL in Naqsh (2904).
  * Fixed bonus damage for WS_CARTTERMINATION as combo of Gigant_Helm (19021) and Giant_Axe (1387).
  * Changed `bonus3 bSPDrainRate` to `bonus2 bSPGainAttackRate` and `bonus3 bHPDrainRate` to `bonus2 bHPGainAttackRate` in db/re/pet_db.txt.
* Corrected calculation in `battle_calc_cardfix` for BF_MISC, it's should be `if( cardfix != 1000 )`!.
* Source documentation updates for `battle_calc_cardfix`.
* Typo at MOBID_GUARIDAN1 and MOBID_GUARIDAN2.

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
2015-06-10 12:03:52 +07:00