Permalink
4 comments
on commit
Please
sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
RE:Initial release item random option for monster drop (#2065)
* Initial release item random option for monster drop * To add item for monster with random option group, see 'db/[pre-]re/mob_drop.txt' * To add item random option group with random option group, see 'db/[pre-]re/mob_item_randomopt_group.txt' * Default entries for random options are follow iRO Crimson/Scarlet Weapon based on * "[Renewal] Episode 15.2 Crimson Weapon System", see http://www.playragnarok.com/news/updatedetail.aspx?id=280&p=1. * File uploaded by Oda (iRO's CM) on https://forums.warpportal.com/index.php?/topic/168763-fansitedb-information-distribution-and-request-station/?p=2495922 Signed-off-by: Cydh Ramdh <cydh@pservero.com> * Follow up 3b7db36 * Moved `RDMOPTG_Crimson_Weapon` from const.txt to `enum Random_Option_Group` in `itemdb.h`. * Removed `RDMOPT_WEAPON_ATTR_POISON`, `RDMOPT_WEAPON_ATTR_TELEKINESIS`, and `RDMOPT_WEAPON_ATTR_UNDEAD` from Crimson Weapon random group (`RDMOPTG_Crimson_Weapon`), thanks to @Atemo * Added db header for impot-tmpl files, thanks to @secretdataz Signed-off-by: Cydh Ramdh <cydh@pservero.com> * Follow up ac0cdd8 * Fixed type on steal checking Signed-off-by: Cydh Ramdh <cydh@pservero.com> * Cleared some drop slot for crimson weapon
- Loading branch information
Showing
with
527 additions
and 147 deletions.
- +1 −0 db/import-tmpl/item_randomopt_group.txt
- +17 −0 db/import-tmpl/mob_drop.txt
- +1 −0 db/pre-re/item_randomopt_group.txt
- +17 −0 db/pre-re/mob_drop.txt
- +10 −0 db/re/item_randomopt_group.txt
- +92 −92 db/re/mob_db.txt
- +123 −0 db/re/mob_drop.txt
- +7 −5 src/common/mmo.h
- +2 −2 src/map/atcommand.c
- +79 −1 src/map/itemdb.c
- +19 −0 src/map/itemdb.h
- +127 −35 src/map/mob.c
- +15 −8 src/map/mob.h
- +2 −1 src/map/pc.c
- +3 −3 src/map/script.c
- +4 −0 src/map/script_constants.h
- +2 −0 vcproj-10/map-server.vcxproj
- +2 −0 vcproj-12/map-server.vcxproj
- +2 −0 vcproj-13/map-server.vcxproj
- +2 −0 vcproj-14/map-server.vcxproj
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1 @@ | ||
| // <randopt_groupid>,<rate>,<randopt_id1>,<randopt_value1>,<randopt_param1>{,<randopt_id2>,<randopt_value2>,<randopt_param2>,<randopt_id3>,<randopt_value3>,<randopt_param3>,<randopt_id4>,<randopt_value4>,<randopt_param4>,<randopt_id5>,<randopt_value5>,<randopt_param5>} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,17 @@ | ||
| // Monster Drop Database | ||
| // Add drop item to monster | ||
| // | ||
| // Structure: | ||
| // <mobid>,<itemid>,<rate>{,<randopt_groupid>,<flag>} | ||
| // | ||
| // <mobid> : Monster ID. See db/[pre-]re/mob_db.txt | ||
| // <itemid> : Item ID. | ||
| // <rate> : 1 = 0.01% | ||
| // 100 = 1% | ||
| // 10000 = 100% | ||
| // Just like rate in mob_db.txt, adjusted by battle_config. | ||
| // To remove original drop from monster, use 0 as rate. | ||
| // Optional: | ||
| // <randopt_groupid> : If set, the dropped item will be modified by Random Option Group based on db/[pre-]re/item_randomopt_group.txt | ||
| // <flag> : 1 - The item is protected from steal. | ||
| // 2 - As MVP Reward |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1 @@ | ||
| // <randopt_groupid>,<rate>,<randopt_id1>,<randopt_value1>,<randopt_param1>{,<randopt_id2>,<randopt_value2>,<randopt_param2>,<randopt_id3>,<randopt_value3>,<randopt_param3>,<randopt_id4>,<randopt_value4>,<randopt_param4>,<randopt_id5>,<randopt_value5>,<randopt_param5>} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,17 @@ | ||
| // Monster Drop Database | ||
| // Add drop item to monster | ||
| // | ||
| // Structure: | ||
| // <mobid>,<itemid>,<rate>{,<randopt_groupid>,<flag>} | ||
| // | ||
| // <mobid> : Monster ID. See db/[pre-]re/mob_db.txt | ||
| // <itemid> : Item ID. | ||
| // <rate> : 1 = 0.01% | ||
| // 100 = 1% | ||
| // 10000 = 100% | ||
| // Just like rate in mob_db.txt, adjusted by battle_config. | ||
| // To remove original drop from monster, use 0 as rate. | ||
| // Optional: | ||
| // <randopt_groupid> : If set, the dropped item will be modified by Random Option Group based on db/[pre-]re/item_randomopt_group.txt | ||
| // <flag> : 1 - The item is protected from steal. | ||
| // 2 - As MVP Reward |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,10 @@ | ||
| // <randopt_groupid>,<rate>,<randopt_id1>,<randopt_value1>,<randopt_param1>{,<randopt_id2>,<randopt_value2>,<randopt_param2>,<randopt_id3>,<randopt_value3>,<randopt_param3>,<randopt_id4>,<randopt_value4>,<randopt_param4>,<randopt_id5>,<randopt_value5>,<randopt_param5>} | ||
|
|
||
| // Crimson Weapon | ||
| RDMOPTG_Crimson_Weapon,1,RDMOPT_WEAPON_ATTR_NOTHING,0,0 | ||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized. |
||
| RDMOPTG_Crimson_Weapon,1,RDMOPT_WEAPON_ATTR_WATER,0,0 | ||
| RDMOPTG_Crimson_Weapon,1,RDMOPT_WEAPON_ATTR_GROUND,0,0 | ||
| RDMOPTG_Crimson_Weapon,1,RDMOPT_WEAPON_ATTR_FIRE,0,0 | ||
| RDMOPTG_Crimson_Weapon,1,RDMOPT_WEAPON_ATTR_WIND,0,0 | ||
| RDMOPTG_Crimson_Weapon,1,RDMOPT_WEAPON_ATTR_SAINT,0,0 | ||
| RDMOPTG_Crimson_Weapon,1,RDMOPT_WEAPON_ATTR_DARKNESS,0,0 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,123 @@ | ||
| // Monster Drop Database | ||
| // Add drop item to monster | ||
| // | ||
| // Structure: | ||
| // <mobid>,<itemid>,<rate>{,<randopt_groupid>,<flag>} | ||
| // | ||
| // <mobid> : Monster ID. See db/[pre-]re/mob_db.txt | ||
| // <itemid> : Item ID. | ||
| // <rate> : 1 = 0.01% | ||
| // 100 = 1% | ||
| // 10000 = 100% | ||
| // Just like rate in mob_db.txt, adjusted by battle_config. | ||
| // To remove original drop from monster, use 0 as rate. | ||
| // Optional: | ||
| // <randopt_groupid> : If set, the dropped item will be modified by Random Option Group based on db/[pre-]re/item_randomopt_group.txt | ||
| // <flag> : 1 - The item is protected from steal. | ||
| // 2 - As MVP Reward | ||
|
|
||
| 1063,1102,100,RDMOPTG_None // LUNATIC | ||
| 2770,1102,500,RDMOPTG_None // C2_LUNATIC | ||
| 2771,1102,500,RDMOPTG_None // C3_LUNATIC | ||
| 2072,1839,50,RDMOPTG_Crimson_Weapon // JAGUAR | ||
| 1584,21015,50,RDMOPTG_Crimson_Weapon // TAMRUAN | ||
| 2639,21015,250,RDMOPTG_Crimson_Weapon // C4_TAMRUAN | ||
| 1154,13454,50,RDMOPTG_Crimson_Weapon // PASANA | ||
| 1154,28705,50,RDMOPTG_Crimson_Weapon // PASANA | ||
| 2719,13454,250,RDMOPTG_Crimson_Weapon // C1_PASANA | ||
| 2719,28705,250,RDMOPTG_Crimson_Weapon // C1_PASANA | ||
| 1117,28604,50,RDMOPTG_Crimson_Weapon // EVIL_DRUID | ||
| 1517,16040,50,RDMOPTG_Crimson_Weapon // LI_ME_MANG_RYANG | ||
| 2071,28007,50,RDMOPTG_Crimson_Weapon // HEADLESS_MULE | ||
| 2778,16040,250,RDMOPTG_Crimson_Weapon // C5_LI_ME_MANG_RYANG | ||
| 2838,28604,50,RDMOPTG_Crimson_Weapon // C5_EVIL_DRUID | ||
| 1613,13127,50,RDMOPTG_None // METALING | ||
| 1386,28705,50,RDMOPTG_Crimson_Weapon // SLEEPER | ||
| 2655,28705,250,RDMOPTG_Crimson_Weapon // C5_SLEEPER | ||
| 2656,28705,250,RDMOPTG_Crimson_Weapon // C1_SLEEPER | ||
| 2755,13127,250,RDMOPTG_None // C2_METALING | ||
| 2756,13127,250,RDMOPTG_None // C3_METALING | ||
| 1631,1839,50,RDMOPTG_Crimson_Weapon // CHUNG_E_ | ||
| 1215,1443,50,RDMOPTG_Crimson_Weapon // STEM_WORM | ||
| 2641,1443,250,RDMOPTG_Crimson_Weapon // C1_STEM_WORM | ||
| 1404,1939,50,RDMOPTG_Crimson_Weapon // MIYABI_NINGYO | ||
| 1628,13127,50,RDMOPTG_None // MOLE | ||
| 1619,28705,50,RDMOPTG_Crimson_Weapon // PORCELLIO | ||
| 2700,28705,250,RDMOPTG_Crimson_Weapon // C2_PORCELLIO | ||
| 2745,13127,250,RDMOPTG_None // C2_MOLE | ||
| 2746,1939,250,RDMOPTG_Crimson_Weapon // C3_MIYABI_NINGYO | ||
| 1102,2009,50,RDMOPTG_None // BATHORY | ||
| 1155,16040,50,RDMOPTG_Crimson_Weapon // PETIT | ||
| 2714,16040,250,RDMOPTG_Crimson_Weapon // C1_PETIT | ||
| 2715,16040,250,RDMOPTG_Crimson_Weapon // C2_PETIT | ||
| 2885,2009,250,RDMOPTG_None // C4_BATHORY | ||
| 2199,28705,50,RDMOPTG_Crimson_Weapon // SIORAVA | ||
| 1143,16040,50,RDMOPTG_Crimson_Weapon // MARIONETTE | ||
| 1413,1995,50,RDMOPTG_Crimson_Weapon // WILD_GINSENG | ||
| 2761,16040,250,RDMOPTG_Crimson_Weapon // C3_MARIONETTE | ||
| 1320,1498,50,RDMOPTG_Crimson_Weapon // OWL_DUKE | ||
| 1320,2025,50,RDMOPTG_None // OWL_DUKE | ||
| 1316,16040,50,RDMOPTG_Crimson_Weapon // SOLIDER | ||
| 2647,16040,250,RDMOPTG_Crimson_Weapon // C2_SOLIDER | ||
| 2721,1498,250,RDMOPTG_Crimson_Weapon // C3_OWL_DUKE | ||
| 2721,2025,250,RDMOPTG_None // C3_OWL_DUKE | ||
| 1408,1839,50,RDMOPTG_Crimson_Weapon // BLOOD_BUTTERFLY | ||
| 2883,1839,250,RDMOPTG_Crimson_Weapon // C1_BLOOD_BUTTERFLY | ||
| 1257,28007,50,RDMOPTG_Crimson_Weapon // INJUSTICE | ||
| 2792,28007,250,RDMOPTG_Crimson_Weapon // C4_INJUSTICE | ||
| 1302,21015,50,RDMOPTG_Crimson_Weapon // DARK_ILLUSION | ||
| 1416,1939,50,RDMOPTG_Crimson_Weapon // WICKED_NYMPH | ||
| 1416,1995,50,RDMOPTG_Crimson_Weapon // WICKED_NYMPH | ||
| 2617,1939,250,RDMOPTG_Crimson_Weapon // C5_WICKED_NYMPH | ||
| 2617,1995,250,RDMOPTG_Crimson_Weapon // C5_WICKED_NYMPH | ||
| 1405,13327,50,RDMOPTG_Crimson_Weapon // TENGU | ||
| 1030,1498,50,RDMOPTG_Crimson_Weapon // ANACONDAQ | ||
| 2904,1498,250,RDMOPTG_Crimson_Weapon // C4_ANACONDAQ | ||
| 1205,13454,50,RDMOPTG_Crimson_Weapon // EXECUTIONER | ||
| 1135,28106,50,RDMOPTG_Crimson_Weapon // KOBOLD_3 | ||
| 1106,28705,50,RDMOPTG_Crimson_Weapon // DESERT_WOLF | ||
| 1259,1498,250,RDMOPTG_Crimson_Weapon // GRYPHON | ||
| 1310,28106,50,RDMOPTG_Crimson_Weapon // MAJORUROS | ||
| 2767,28106,250,RDMOPTG_Crimson_Weapon // C4_MAJORUROS | ||
| 1736,1839,50,RDMOPTG_Crimson_Weapon // ALIOT | ||
| 1296,16040,50,RDMOPTG_Crimson_Weapon // KOBOLD_LEADER | ||
| 1204,28705,50,RDMOPTG_Crimson_Weapon // TIRFING | ||
| 1204,13454,50,RDMOPTG_Crimson_Weapon // TIRFING | ||
| 1993,1443,50,RDMOPTG_Crimson_Weapon // NAGA | ||
| 1390,1939,50,RDMOPTG_Crimson_Weapon // VIOLY | ||
| 2621,1939,250,RDMOPTG_Crimson_Weapon // C5_VIOLY | ||
| 2622,1939,250,RDMOPTG_Crimson_Weapon // C1_VIOLY | ||
| 2623,1939,250,RDMOPTG_Crimson_Weapon // C2_VIOLY | ||
| 1295,18130,50,RDMOPTG_None // OWL_BARON | ||
| 1303,2025,50,RDMOPTG_None // GIANT_HONET | ||
| 2821,2025,250,RDMOPTG_None // C3_GIANT_HONET | ||
| 1702,21015,50,RDMOPTG_Crimson_Weapon // RETRIBUTION | ||
| 2353,28106,50,RDMOPTG_Crimson_Weapon // N_MINOROUS | ||
| 2684,21015,250,RDMOPTG_Crimson_Weapon // C4_RETRIBUTION | ||
| 2685,21015,250,RDMOPTG_Crimson_Weapon // C5_RETRIBUTION | ||
| 2686,21015,250,RDMOPTG_Crimson_Weapon // C1_RETRIBUTION | ||
| 1219,21015,50,RDMOPTG_Crimson_Weapon // KNIGHT_OF_ABYSS | ||
| 1703,1939,50,RDMOPTG_Crimson_Weapon // SOLACE | ||
| 2650,1939,250,RDMOPTG_Crimson_Weapon // C5_SOLACE | ||
| 2041,28705,50,RDMOPTG_Crimson_Weapon // MYSTELTAINN | ||
| 2041,13454,50,RDMOPTG_Crimson_Weapon // MYSTELTAINN | ||
| 2041,21015,50,RDMOPTG_Crimson_Weapon // MYSTELTAINN | ||
| 1830,18130,50,RDMOPTG_None // BOW_GUARDIAN | ||
| 1653,28705,50,RDMOPTG_Crimson_Weapon // WHIKEBAIN | ||
| 1655,1839,50,RDMOPTG_Crimson_Weapon // EREND | ||
| 1655,16040,50,RDMOPTG_Crimson_Weapon // EREND | ||
| 1657,2009,50,RDMOPTG_None // RAWREL | ||
| 1829,21015,50,RDMOPTG_Crimson_Weapon // SWORD_GUARDIAN | ||
| 2692,2009,250,RDMOPTG_None // C3_RAWREL | ||
| 1654,13454,50,RDMOPTG_Crimson_Weapon // ARMAIA | ||
| 1654,28106,50,RDMOPTG_Crimson_Weapon // ARMAIA | ||
| 1656,1939,50,RDMOPTG_Crimson_Weapon // KAVAC | ||
| 1656,18130,50,RDMOPTG_None // KAVAC | ||
| 1652,13454,50,RDMOPTG_Crimson_Weapon // YGNIZEM | ||
| 1652,21015,50,RDMOPTG_Crimson_Weapon // YGNIZEM | ||
| 1290,28705,50,RDMOPTG_Crimson_Weapon // SKELETON_GENERAL | ||
| 2658,28705,250,RDMOPTG_Crimson_Weapon // C3_SKELETON_GENERAL | ||
| 2659,28705,250,RDMOPTG_Crimson_Weapon // C4_SKELETON_GENERAL | ||
| 1658,21015,500,RDMOPTG_Crimson_Weapon // B_YGNIZEM | ||
| 1301,16040,50,RDMOPTG_Crimson_Weapon // AM_MUT | ||
| 2362,28604,50,RDMOPTG_Crimson_Weapon // N_AMON_RA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
4 comments
on commit e59cdff
There was a problem hiding this comment.
i already did all of things above. still no option. can you help me sir?
There was a problem hiding this comment.
Please checkout the current HEAD revision and retry it. We discourage from applying such big changes manually. If you can reproduce an issue on the current HEAD revision, please open an issue with detailed informations also following the issue template. Everything else is at your own risk. Thanks
There was a problem hiding this comment.
Hi, i just started to test those thing above and seen that monster doesn't drop the items and also when i'm using @mi command, monsters involved doesn't display the crimson items on monster details. Can someone help? thanks
How is the value of randopt_value1 random?