Addition of random craft system.

Thanks to Mode.
This commit is contained in:
MobiusDevelopment
2021-01-16 01:43:14 +00:00
parent 10b0cf2c86
commit 8fdb533aa5
39 changed files with 6017 additions and 41 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,236 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xsd/RandomCraftRewardData.xsd">
<!-- The default chance of an item to be added to the player random craft rewards is 100%. -->
<!-- If you want to reduce the change for an item to be shown, you can add a lower chance value. -->
<!-- You can also add an announce value if you want the craft to be announced on the server. -->
<rewards>
<item id="93047" chance="50" /> <!-- Samurai Long Sword -->
<item id="93048" chance="50" /> <!-- Demon's Staff -->
<item id="93049" chance="50" /> <!-- Ecliptic Axe -->
<item id="93050" chance="50" /> <!-- Crystal Dagger -->
<item id="93051" chance="50" /> <!-- Eminence Bow -->
<item id="93052" chance="50" /> <!-- Orcish Poleaxe -->
<item id="93053" chance="50" /> <!-- Katana*Katana -->
<item id="93054" chance="50" /> <!-- Yaksa Mace -->
<item id="93055" chance="50" /> <!-- Berserker Blade -->
<item id="93056" chance="50" /> <!-- Great Pata -->
<item id="93057" chance="50" /> <!-- Admiral's Estoc -->
<item id="93058" chance="50" /> <!-- Saber Tooth -->
<item id="93422" chance="25" /> <!-- Damascus Sword -->
<item id="93423" chance="25" /> <!-- Lance -->
<item id="93424" chance="25" /> <!-- Deadman's Glory -->
<item id="93425" chance="25" /> <!-- Art of Battle Axe -->
<item id="93426" chance="25" /> <!-- Staff of Evil Spirits -->
<item id="93427" chance="25" /> <!-- Demon's Dagger -->
<item id="93428" chance="25" /> <!-- Bellion Cestus -->
<item id="93429" chance="25" /> <!-- Bow of Peril -->
<item id="93430" chance="25" /> <!-- Samurai Long Sword*Samurai Long Sword -->
<item id="93431" chance="25" /> <!-- Guardian's Sword -->
<item id="93432" chance="25" /> <!-- Wizard's Tear -->
<item id="93433" chance="25" /> <!-- Star Buster -->
<item id="93434" chance="25" /> <!-- Dismantler -->
<item id="93435" chance="25" /> <!-- Colichemarde -->
<item id="92930" chance="12.5" /> <!-- Tallum Blade -->
<item id="92931" chance="12.5" /> <!-- Dragon Slayer -->
<item id="92932" chance="12.5" /> <!-- Halberd -->
<item id="92933" chance="12.5" /> <!-- Elemental Sword -->
<item id="92934" chance="12.5" /> <!-- Sword of Miracles -->
<item id="92935" chance="12.5" /> <!-- Elysian -->
<item id="92936" chance="12.5" /> <!-- Dasparion's Staff -->
<item id="92937" chance="12.5" /> <!-- Branch of the Mother Tree -->
<item id="92938" chance="12.5" /> <!-- Bloody Orchid -->
<item id="92939" chance="12.5" /> <!-- Soul Separator -->
<item id="92940" chance="12.5" /> <!-- Blood Tornado -->
<item id="92941" chance="12.5" /> <!-- Dragon Grinder -->
<item id="92942" chance="12.5" /> <!-- Carnage Bow -->
<item id="92943" chance="12.5" /> <!-- Soul Bow -->
<item id="92944" chance="12.5" /> <!-- Tallum Glaive -->
<item id="92945" chance="12.5" /> <!-- Dark Legion's Edge -->
<item id="92946" chance="12.5" /> <!-- Meteor Shower -->
<item id="92947" chance="12.5" /> <!-- Keshanberk*Keshanberk -->
<item id="92948" chance="12.5" /> <!-- Keshanberk*Damascus -->
<item id="92949" chance="12.5" /> <!-- Damascus*Damascus -->
<item id="92970" chance="12.5" /> <!-- Éclair Bijou -->
<item id="92971" chance="12.5" /> <!-- Lacerator -->
<item id="92972" chance="12.5" /> <!-- White Lightning -->
<item id="93639" /> <!-- Full Plate Helmet -->
<item id="93640" /> <!-- Full Plate Boots -->
<item id="93641" /> <!-- Full Plate Gauntlets -->
<item id="93642" /> <!-- Full Plate Armor -->
<item id="93643" /> <!-- Drake Leather Armor -->
<item id="93644" /> <!-- Drake Leather Boots -->
<item id="93645" /> <!-- Drake Leather Gloves -->
<item id="93646" /> <!-- Karmian Tunic -->
<item id="93647" /> <!-- Karmian Stockings -->
<item id="93648" /> <!-- Karmian Boots -->
<item id="93649" /> <!-- Karmian Gloves -->
<item id="93501" chance="50" /> <!-- Zubei's Breastplate -->
<item id="93502" chance="50" /> <!-- Blue Wolf Breastplate -->
<item id="93503" chance="50" /> <!-- Zubei's Gaiters -->
<item id="93504" chance="50" /> <!-- Avadon Breastplate -->
<item id="93505" chance="50" /> <!-- Avadon Gaiters -->
<item id="93506" chance="50" /> <!-- Blue Wolf Gaiters -->
<item id="93507" chance="50" /> <!-- Doom Plate Armor -->
<item id="93508" chance="50" /> <!-- Zubei's Leather Shirt -->
<item id="93509" chance="50" /> <!-- Zubei's Leather Gaiters -->
<item id="93510" chance="50" /> <!-- Avadon Leather Armor -->
<item id="93511" chance="50" /> <!-- Blue Wolf Leather Armor -->
<item id="93512" chance="50" /> <!-- Doom Leather Armor -->
<item id="93513" chance="50" /> <!-- Zubei's Tunic -->
<item id="93514" chance="50" /> <!-- Blue Wolf Tunic -->
<item id="93515" chance="50" /> <!-- Doom Tunic -->
<item id="93516" chance="50" /> <!-- Zubei's Stockings -->
<item id="93517" chance="50" /> <!-- Blue Wolf Stockings -->
<item id="93518" chance="50" /> <!-- Doom Stockings -->
<item id="93519" chance="50" /> <!-- Avadon Robe -->
<item id="93520" chance="50" /> <!-- Zubei's Gauntlets (Heavy) -->
<item id="93521" chance="50" /> <!-- Zubei's Gauntlets (Light) -->
<item id="93522" chance="50" /> <!-- Zubei's Gauntlets (Robe) -->
<item id="93523" chance="50" /> <!-- Avadon Gloves (Heavy) -->
<item id="93524" chance="50" /> <!-- Avadon Gloves (Light) -->
<item id="93525" chance="50" /> <!-- Avadon Gloves (Robe) -->
<item id="93526" chance="50" /> <!-- Blue Wolf Gloves (Heavy) -->
<item id="93527" chance="50" /> <!-- Blue Wolf Gloves (Light) -->
<item id="93528" chance="50" /> <!-- Blue Wolf Gloves (Robe) -->
<item id="93529" chance="50" /> <!-- Doom Gloves (Heavy) -->
<item id="93530" chance="50" /> <!-- Doom Gloves (Light) -->
<item id="93531" chance="50" /> <!-- Doom Gloves (Robe) -->
<item id="93532" chance="50" /> <!-- Zubei's Boots (Heavy) -->
<item id="93533" chance="50" /> <!-- Zubei's Boots (Light) -->
<item id="93534" chance="50" /> <!-- Zubei's Boots (Robe) -->
<item id="93535" chance="50" /> <!-- Avadon Boots (Heavy) -->
<item id="93536" chance="50" /> <!-- Avadon Boots (Light) -->
<item id="93537" chance="50" /> <!-- Avadon Boots (Robe) -->
<item id="93538" chance="50" /> <!-- Blue Wolf Boots (Heavy) -->
<item id="93539" chance="50" /> <!-- Blue Wolf Boots (Light) -->
<item id="93540" chance="50" /> <!-- Blue Wolf Boots (Robe) -->
<item id="93541" chance="50" /> <!-- Doom Boots (Heavy) -->
<item id="93542" chance="50" /> <!-- Doom Boots (Light) -->
<item id="93543" chance="50" /> <!-- Doom Boots (Robe) -->
<item id="93544" chance="50" /> <!-- Avadon Circlet (Heavy Armor) -->
<item id="93545" chance="50" /> <!-- Avadon Circlet (Light Armor) -->
<item id="93546" chance="50" /> <!-- Avadon Circlet (Robe) -->
<item id="93547" chance="50" /> <!-- Zubei's Helmet - Heavy Armor -->
<item id="93548" chance="50" /> <!-- Zubei's Helmet - Light Armor -->
<item id="93549" chance="50" /> <!-- Zubei's Helmet - Robe -->
<item id="93550" chance="50" /> <!-- Blue Wolf Helmet - Heavy Armor -->
<item id="93551" chance="50" /> <!-- Blue Wolf Helmet - Light Armor -->
<item id="93552" chance="50" /> <!-- Blue Wolf Helmet - Robe -->
<item id="93553" chance="50" /> <!-- Doom Helmet - Heavy Armor -->
<item id="93554" chance="50" /> <!-- Doom Helmet - Light Armor -->
<item id="93555" chance="50" /> <!-- Doom Helmet - Robe -->
<item id="92384" chance="50" /> <!-- Black Ore Earring -->
<item id="92385" chance="50" /> <!-- Black Ore Ring -->
<item id="92386" chance="50" /> <!-- Black Ore Necklace -->
<item id="92255" chance="25" /> <!-- Dark Crystal Breastplate -->
<item id="92256" chance="25" /> <!-- Armor of Nightmare -->
<item id="92257" chance="25" /> <!-- Dark Crystal Gaiters -->
<item id="92258" chance="25" /> <!-- Dark Crystal Helmet -->
<item id="92259" chance="25" /> <!-- Tallum Helmet -->
<item id="92261" chance="25" /> <!-- Tallum Plate Armor -->
<item id="92262" chance="25" /> <!-- Majestic Plate Armor -->
<item id="92263" chance="25" /> <!-- Dark Crystal Leather Armor -->
<item id="92264" chance="25" /> <!-- Dark Crystal Leggings -->
<item id="92265" chance="25" /> <!-- Tallum Leather Armor -->
<item id="92266" chance="25" /> <!-- Leather Armor of Nightmare -->
<item id="92267" chance="25" /> <!-- Majestic Leather Armor -->
<item id="92268" chance="25" /> <!-- Tallum Tunic -->
<item id="92269" chance="25" /> <!-- Tallum Stockings -->
<item id="92270" chance="25" /> <!-- Dark Crystal Robe -->
<item id="92271" chance="25" /> <!-- Robe of Nightmare -->
<item id="92272" chance="25" /> <!-- Majestic Robe -->
<item id="92273" chance="25" /> <!-- Helm of Nightmare -->
<item id="92274" chance="25" /> <!-- Majestic Circlet -->
<item id="92275" chance="25" /> <!-- Dark Crystal Gloves -->
<item id="92277" chance="25" /> <!-- Dark Crystal Gloves (Heavy) -->
<item id="92278" chance="25" /> <!-- Dark Crystal Gloves (Light) -->
<item id="92279" chance="25" /> <!-- Dark Crystal Gloves (Robe) -->
<item id="92280" chance="25" /> <!-- Tallum Gloves (Heavy) -->
<item id="92281" chance="25" /> <!-- Tallum Gloves (Light) -->
<item id="92282" chance="25" /> <!-- Tallum Gloves (Robe) -->
<item id="92283" chance="25" /> <!-- Gauntlets of Nightmare (Heavy) -->
<item id="92284" chance="25" /> <!-- Gauntlets of Nightmare (Light) -->
<item id="92285" chance="25" /> <!-- Gauntlets of Nightmare (Robe) -->
<item id="92286" chance="25" /> <!-- Majestic Gauntlets (Heavy) -->
<item id="92287" chance="25" /> <!-- Majestic Gauntlets (Light) -->
<item id="92288" chance="25" /> <!-- Majestic Gauntlets (Robe) -->
<item id="92289" chance="25" /> <!-- Dark Crystal Boots (Heavy) -->
<item id="92290" chance="25" /> <!-- Dark Crystal Boots (Light) -->
<item id="92291" chance="25" /> <!-- Dark Crystal Boots (Robe) -->
<item id="92292" chance="25" /> <!-- Tallum Boots (Heavy) -->
<item id="92293" chance="25" /> <!-- Tallum Boots (Light) -->
<item id="92294" chance="25" /> <!-- Tallum Boots (Robe) -->
<item id="92295" chance="25" /> <!-- Boots of Nightmare (Heavy) -->
<item id="92296" chance="25" /> <!-- Boots of Nightmare (Light) -->
<item id="92297" chance="25" /> <!-- Boots of Nightmare (Robe) -->
<item id="92298" chance="25" /> <!-- Majestic Boots (Heavy) -->
<item id="92299" chance="25" /> <!-- Majestic Boots (Light) -->
<item id="92300" chance="25" /> <!-- Majestic Boots (Robe) -->
<item id="92301" chance="25" /> <!-- Tallum Helmet - Heavy Armor -->
<item id="92302" chance="25" /> <!-- Tallum Helmet - Light Armor -->
<item id="92303" chance="25" /> <!-- Tallum Helmet - Robe -->
<item id="92304" chance="25" /> <!-- Dark Crystal Helmet - Heavy Armor -->
<item id="92305" chance="25" /> <!-- Dark Crystal Helmet - Light Armor -->
<item id="92306" chance="25" /> <!-- Dark Crystal Helmet - Robe -->
<item id="92307" chance="25" /> <!-- Helm of Nightmare (Heavy) -->
<item id="92308" chance="25" /> <!-- Helm of Nightmare (Light) -->
<item id="92309" chance="25" /> <!-- Helm of Nightmare (Robe) -->
<item id="92310" chance="25" /> <!-- Majestic Circlet (Heavy) -->
<item id="92311" chance="25" /> <!-- Majestic Circlet (Light) -->
<item id="92312" chance="25" /> <!-- Majestic Circlet (Robe) -->
<item id="92260" chance="25" /> <!-- Dark Crystal Shield -->
<item id="92276" chance="25" /> <!-- Shield of Nightmare -->
<item id="93109" chance="10" /> <!-- Wooden Sigil -->
<item id="93110" chance="10" /> <!-- Elven Sigil -->
<item id="93111" chance="10" /> <!-- Chain Sigil -->
<item id="93112" chance="10" /> <!-- Sigil of Demon -->
<item id="93113" chance="10" /> <!-- Sigil of Blue Wolf -->
<item id="93114" chance="10" /> <!-- Avadon Sigil -->
<item id="93115" chance="10" /> <!-- Doom Sigil -->
<item id="93116" chance="10" /> <!-- Zubei's Sigil -->
<item id="93117" chance="10" /> <!-- Dark Crystal Sigil -->
<item id="93118" chance="10" /> <!-- Tallum Sigil -->
<item id="93119" chance="10" /> <!-- Sigil of Nightmare -->
<item id="93120" chance="10" /> <!-- Majestic Sigil -->
<item id="93076" chance="7" announce="true" /> <!-- Gloves of Silence -->
<item id="93141" chance="7" announce="true" /> <!-- Ice Crystal Breastplate -->
<item id="93142" chance="7" announce="true" /> <!-- Ice Crystal Gaiters -->
<item id="93317" chance="7" announce="true" /> <!-- Leather Armor of Lightning -->
<item id="93318" chance="7" announce="true" /> <!-- Leather Leggings of Lightning -->
<item id="93735" chance="7" announce="true" /> <!-- Flaming Tunic -->
<item id="93736" chance="7" announce="true" /> <!-- Flaming Stockings -->
<item id="94084" chance="7" announce="true" /> <!-- Helmet of Mana -->
<item id="94086" chance="7" announce="true" /> <!-- Boots of Evasion -->
<item id="94264" chance="7" announce="true" /> <!-- Stun Gauntlets -->
<item id="90934" chance="33.3" /> <!-- Brooch Lv. 3 -->
<item id="91912" count="10000" /> <!-- HP Potion (Exchangeable) -->
<item id="91031" /> <!-- Water Spirit Evolution Stone -->
<item id="91032" /> <!-- Fire Spirit Evolution Stone -->
<item id="91033" /> <!-- Wind Spirit Evolution Stone -->
<item id="91034" /> <!-- Earth Spirit Evolution Stone -->
<item id="93103" /> <!-- Spellbook: Divine Beam -->
<item id="93384" /> <!-- Spellbook: Burning Field -->
<item id="93385" /> <!-- Spellbook: Frozen Field -->
<item id="93386" /> <!-- Spellbook: Lightning Storm -->
<item id="93387" /> <!-- Spellbook: Ultimate Death Knight Transformation -->
<item id="93631" /> <!-- Spellbook: Hellfire -->
<item id="93867" /> <!-- Spellbook: Amazing Thunder Storm Mastery -->
<item id="93869" /> <!-- Spellbook: Elemental Burst -->
<item id="93870" /> <!-- Spellbook: Ethereal Strike -->
<item id="93871" /> <!-- Spellbook: Knight's Help -->
<item id="91944" /> <!-- Book of Light -->
<item id="91945" /> <!-- Book of Shadows -->
<item id="90907" count="100" /> <!-- Soulshot Ticket -->
<item id="5126" /> <!-- Dual Sword Crafting Stamp -->
<item id="3031" count="1500" /> <!-- Spirit Ore -->
<item id="91840" count="10" /> <!-- XP Growth Scroll (Event) -->
<item id="730" /> <!-- Scroll: Enchant A-grade Armor (Exchangeable) -->
<item id="948" /> <!-- Scroll: Enchant B-grade Armor (Exchangeable) -->
<item id="952" /> <!-- Scroll: Enchant C-grade Armor (Exchangeable) -->
<item id="956" /> <!-- Scroll: Enchant D-grade Armor (Exchangeable) -->
<item id="729" /> <!-- Scroll: Enchant A-grade Weapon (Exchangeable) -->
<item id="947" /> <!-- Scroll: Enchant B-grade Weapon (Exchangeable) -->
<item id="951" /> <!-- Scroll: Enchant C-grade Weapon (Exchangeable) -->
<item id="955" /> <!-- Scroll: Enchant D-grade Weapon (Exchangeable) -->
</rewards>
</list>

View File

@@ -46,6 +46,7 @@ import org.l2jmobius.gameserver.data.xml.NpcData;
import org.l2jmobius.gameserver.data.xml.NpcNameLocalisationData;
import org.l2jmobius.gameserver.data.xml.OptionData;
import org.l2jmobius.gameserver.data.xml.PrimeShopData;
import org.l2jmobius.gameserver.data.xml.RandomCraftData;
import org.l2jmobius.gameserver.data.xml.SayuneData;
import org.l2jmobius.gameserver.data.xml.SendMessageLocalisationData;
import org.l2jmobius.gameserver.data.xml.SkillData;
@@ -369,6 +370,12 @@ public class AdminReload implements IAdminCommandHandler
AdminData.getInstance().broadcastMessageToGMs(activeChar.getName() + ": Reloaded Equipment Upgrade data.");
break;
}
case "randomcraft":
{
RandomCraftData.getInstance().load();
AdminData.getInstance().broadcastMessageToGMs(activeChar.getName() + ": Reloaded Random Craft data.");
break;
}
default:
{
activeChar.sendMessage(RELOAD_USAGE);

View File

@@ -0,0 +1,25 @@
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="list">
<xs:complexType>
<xs:sequence>
<xs:element name="extract">
<xs:complexType>
<xs:sequence>
<xs:element name="item" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:int" name="id" use="required"/>
<xs:attribute type="xs:long" name="points" use="required"/>
<xs:attribute type="xs:long" name="fee" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@@ -0,0 +1,26 @@
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="list">
<xs:complexType>
<xs:sequence>
<xs:element name="rewards">
<xs:complexType>
<xs:sequence>
<xs:element name="item" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:int" name="id" use="required"/>
<xs:attribute type="xs:long" name="count" use="optional"/>
<xs:attribute type="xs:double" name="chance" use="optional"/>
<xs:attribute type="xs:boolean" name="announce" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>