diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/events/FreyaCelebration/FreyaCelebration.java b/L2J_DataPack_BETA/dist/game/data/scripts/events/FreyaCelebration/FreyaCelebration.java index 1b3f73f21446cdea1e13a6a033efdf2d83ce68dd..28f3b68adf6d4b9be747908ad120d065c23661ab 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/events/FreyaCelebration/FreyaCelebration.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/events/FreyaCelebration/FreyaCelebration.java @@ -150,9 +150,9 @@ public class FreyaCelebration extends LongTimeEvent return "13296.htm"; } - public FreyaCelebration(int questId, String name, String descr) + public FreyaCelebration(String name, String descr) { - super(questId, name, descr); + super(name, descr); addStartNpc(FREYA); addFirstTalkId(FREYA); @@ -162,6 +162,6 @@ public class FreyaCelebration extends LongTimeEvent public static void main(String[] args) { - new FreyaCelebration(-1, FreyaCelebration.class.getSimpleName(), "events"); + new FreyaCelebration(FreyaCelebration.class.getSimpleName(), "events"); } } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/events/FreyaCelebration/config.xml b/L2J_DataPack_BETA/dist/game/data/scripts/events/FreyaCelebration/config.xml index cd0d78c5366a602b0021e8bbd863e365919c0dba..13a41a9f46cb20cc2ae5c5e54ba1d1fab1025b44 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/events/FreyaCelebration/config.xml +++ b/L2J_DataPack_BETA/dist/game/data/scripts/events/FreyaCelebration/config.xml @@ -1,7 +1,5 @@ -<event name="Freya Celebration" active="27 02 2009-28 02 2009"> - <droplist> - <!-- No drop here --> - </droplist> +<?xml version="1.0" encoding="UTF-8"?> +<event name="Freya Celebration" active="27 02 2009-28 02 2009" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/eventConfig.xsd"> <spawnlist> <add npc="13296" x="-119494" y="44882" z="360" heading="24576" /> <add npc="13296" x="-117239" y="46842" z="360" heading="49151" /> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/events/GiftOfVitality/GiftOfVitality.java b/L2J_DataPack_BETA/dist/game/data/scripts/events/GiftOfVitality/GiftOfVitality.java index 38b224ccccfe74ddc54696bef6d10a434bfa9c53..855e793bd8861d99c07b60da9f1074840566303f 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/events/GiftOfVitality/GiftOfVitality.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/events/GiftOfVitality/GiftOfVitality.java @@ -34,9 +34,9 @@ public class GiftOfVitality extends LongTimeEvent // NPC private static final int JACK = 4306; - public GiftOfVitality(int questId, String name, String descr) + public GiftOfVitality(String name, String descr) { - super(questId, name, descr); + super(name, descr); addStartNpc(JACK); addFirstTalkId(JACK); addTalkId(JACK); @@ -149,6 +149,6 @@ public class GiftOfVitality extends LongTimeEvent public static void main(String[] args) { - new GiftOfVitality(-1, GiftOfVitality.class.getSimpleName(), "events"); + new GiftOfVitality(GiftOfVitality.class.getSimpleName(), "events"); } } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/events/GiftOfVitality/config.xml b/L2J_DataPack_BETA/dist/game/data/scripts/events/GiftOfVitality/config.xml index 7e8dfad71e3a1f93a6f517b290b81594a320e4e2..13fc2dbef9bef30a9f64c4bcc815b54c6139c13d 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/events/GiftOfVitality/config.xml +++ b/L2J_DataPack_BETA/dist/game/data/scripts/events/GiftOfVitality/config.xml @@ -1,7 +1,5 @@ -<event name="Gift of Vitality" active="27 02 2008-28 02 2008"> - <droplist> - <!-- No drop here --> - </droplist> +<?xml version="1.0" encoding="UTF-8"?> +<event name="Gift of Vitality" active="27 02 2008-28 02 2008" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/eventConfig.xsd"> <spawnlist> <add npc="4306" x="82766" y="149438" z="-3464" heading="33865" /> <add npc="4306" x="82286" y="53291" z="-1488" heading="15250" /> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/events/HeavyMedal/HeavyMedal.java b/L2J_DataPack_BETA/dist/game/data/scripts/events/HeavyMedal/HeavyMedal.java index a9136f184b19e01e577bfa5f1970f270e1ecd47d..6486dcb4f2bea2a96b9c095f63814176ea06867f 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/events/HeavyMedal/HeavyMedal.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/events/HeavyMedal/HeavyMedal.java @@ -46,9 +46,9 @@ public class HeavyMedal extends LongTimeEvent 6402 }; - public HeavyMedal(int questId, String name, String descr) + public HeavyMedal(String name, String descr) { - super(questId, name, descr); + super(name, descr); addStartNpc(CAT_ROY); addStartNpc(CAT_WINNIE); addTalkId(CAT_ROY); @@ -141,6 +141,6 @@ public class HeavyMedal extends LongTimeEvent public static void main(String[] args) { - new HeavyMedal(-1, HeavyMedal.class.getSimpleName(), "events"); + new HeavyMedal(HeavyMedal.class.getSimpleName(), "events"); } } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/events/HeavyMedal/config.xml b/L2J_DataPack_BETA/dist/game/data/scripts/events/HeavyMedal/config.xml index 466339ce539fbb519eba77cffd275cb625d80da7..fff159a650927f6766af1962eb20e4c3b3fcc65a 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/events/HeavyMedal/config.xml +++ b/L2J_DataPack_BETA/dist/game/data/scripts/events/HeavyMedal/config.xml @@ -1,4 +1,5 @@ -<event name="Heavy Medal" active="27 02 2007-28 02 2007"> +<?xml version="1.0" encoding="UTF-8"?> +<event name="Heavy Medal" active="27 02 2007-28 02 2007" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/eventConfig.xsd"> <droplist> <add item="6392" min="1" max="1" chance="45%" /> <!-- Event - Medal --> <add item="6393" min="1" max="1" chance="5%" /> <!-- Event - Glittering Medal --> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/events/MasterOfEnchanting/MasterOfEnchanting.java b/L2J_DataPack_BETA/dist/game/data/scripts/events/MasterOfEnchanting/MasterOfEnchanting.java index 5522965ff40b9e3e718bbfa065534ee685c6bc4b..e0ccc1c09808cd427bc7b4386f3a530d2c251fb4 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/events/MasterOfEnchanting/MasterOfEnchanting.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/events/MasterOfEnchanting/MasterOfEnchanting.java @@ -65,9 +65,9 @@ public class MasterOfEnchanting extends LongTimeEvent @SuppressWarnings("deprecation") private static final Date _eventStart = new Date(2011, 7, 1); - public MasterOfEnchanting(int questId, String name, String descr) + public MasterOfEnchanting(String name, String descr) { - super(questId, name, descr); + super(name, descr); addStartNpc(MASTER_YOGI); addFirstTalkId(MASTER_YOGI); addTalkId(MASTER_YOGI); @@ -280,6 +280,6 @@ public class MasterOfEnchanting extends LongTimeEvent public static void main(String[] args) { - new MasterOfEnchanting(-1, MasterOfEnchanting.class.getSimpleName(), "events"); + new MasterOfEnchanting(MasterOfEnchanting.class.getSimpleName(), "events"); } } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/events/MasterOfEnchanting/config.xml b/L2J_DataPack_BETA/dist/game/data/scripts/events/MasterOfEnchanting/config.xml index 823f5995118355abdbbe80395c6a6c68fa1af3c8..ea262c520107b02d68dbb2fb16e620a9fb4635c3 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/events/MasterOfEnchanting/config.xml +++ b/L2J_DataPack_BETA/dist/game/data/scripts/events/MasterOfEnchanting/config.xml @@ -1,4 +1,5 @@ -<event name="Master of Enchanting" active="27 02 2010-28 02 2010"> +<?xml version="1.0" encoding="UTF-8"?> +<event name="Master of Enchanting" active="27 02 2010-28 02 2010" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/eventConfig.xsd"> <droplist> <add item="13540" min="1" max="1" chance="1%" /> <!-- Master Yogi's Scroll: Enchant Weapon --> </droplist> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/events/TheValentineEvent/TheValentineEvent.java b/L2J_DataPack_BETA/dist/game/data/scripts/events/TheValentineEvent/TheValentineEvent.java index 29ad9a7df1dd757647772b762b8eefd4182f8c6e..11b8f4af704b46df4ba7f692c6fc5845fa45baab 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/events/TheValentineEvent/TheValentineEvent.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/events/TheValentineEvent/TheValentineEvent.java @@ -31,9 +31,9 @@ public class TheValentineEvent extends LongTimeEvent // Item private static final int RECIPE = 20191; - public TheValentineEvent(int questId, String name, String descr) + public TheValentineEvent(String name, String descr) { - super(questId, name, descr); + super(name, descr); addStartNpc(NPC); addFirstTalkId(NPC); addTalkId(NPC); @@ -77,6 +77,6 @@ public class TheValentineEvent extends LongTimeEvent public static void main(String[] args) { - new TheValentineEvent(-1, TheValentineEvent.class.getSimpleName(), "events"); + new TheValentineEvent(TheValentineEvent.class.getSimpleName(), "events"); } } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/events/TheValentineEvent/config.xml b/L2J_DataPack_BETA/dist/game/data/scripts/events/TheValentineEvent/config.xml index 25876975eb2f8707b3ac7e5c8968edbbdc54ea91..9dbe5816174d63ced785c415e25306214a265b35 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/events/TheValentineEvent/config.xml +++ b/L2J_DataPack_BETA/dist/game/data/scripts/events/TheValentineEvent/config.xml @@ -1,4 +1,5 @@ -<event name="Valentine Event" active="15 12 2001-16 12 2001"> +<?xml version="1.0" encoding="UTF-8"?> +<event name="Valentine Event" active="15 12 2001-16 12 2001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/eventConfig.xsd"> <droplist> <add item="20192" min="1" max="1" chance="5%" /> <!-- Valentine Dark Chocolate --> <add item="20193" min="1" max="1" chance="5%" /> <!-- Valentine White Chocolate --> diff --git a/L2J_DataPack_BETA/dist/game/data/xsd/eventConfig.xsd b/L2J_DataPack_BETA/dist/game/data/xsd/eventConfig.xsd new file mode 100644 index 0000000000000000000000000000000000000000..27701305818f43e819a677e89f536adc55645a1c --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/xsd/eventConfig.xsd @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:element name="event"> + <xs:complexType> + <xs:sequence maxOccurs="1" minOccurs="1"> + <xs:element name="droplist" maxOccurs="1" minOccurs="0"> + <xs:complexType> + <xs:sequence maxOccurs="1" minOccurs="1"> + <xs:element name="add" maxOccurs="unbounded" minOccurs="1"> + <xs:complexType> + <xs:attribute name="item" type="xs:positiveInteger" use="required" /> + <xs:attribute name="min" type="xs:positiveInteger" use="required" /> + <xs:attribute name="max" type="xs:positiveInteger" use="required" /> + <xs:attribute name="chance" type="xs:token" use="required" /> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="spawnlist" maxOccurs="1" minOccurs="1"> + <xs:complexType> + <xs:sequence maxOccurs="1" minOccurs="1"> + <xs:element name="add" maxOccurs="unbounded" minOccurs="1"> + <xs:complexType> + <xs:attribute name="npc" type="xs:positiveInteger" use="required" /> + <xs:attribute name="x" type="xs:int" use="required" /> + <xs:attribute name="y" type="xs:int" use="required" /> + <xs:attribute name="z" type="xs:int" use="required" /> + <xs:attribute name="heading" type="xs:int" use="required" /> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="messages" maxOccurs="1" minOccurs="1"> + <xs:complexType> + <xs:sequence maxOccurs="1" minOccurs="1"> + <xs:element name="add" maxOccurs="2" minOccurs="2"> + <xs:complexType> + <xs:attribute name="type" use="required"> + <xs:simpleType> + <xs:restriction base="xs:token"> + <xs:enumeration value="onEnd" /> + <xs:enumeration value="onEnter" /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + <xs:attribute name="text" type="xs:token" use="required" /> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="name" type="xs:token" use="required" /> + <xs:attribute name="active" type="xs:token" use="required" /> + </xs:complexType> + </xs:element> +</xs:schema> \ No newline at end of file