Переглянути джерело

BETA/STABLE: Moved "levelUpCrystalData" to data, also added requirement check for Ant in Builder.

MELERIX 13 роки тому
батько
коміт
d95e546202

+ 11 - 1
L2J_DataPack_BETA/build.xml

@@ -27,7 +27,7 @@
 	<property name="build.dist.game" location="${build.dist}/game" />
 	<property name="build.dist.login" location="${build.dist}/login" />
 
-	<target name="init" depends="clean, getChangelogDateVersion" description="Create the output directories. Do nothing if dirs were already created">
+	<target name="init" depends="clean,checkRequirements,getChangelogDateVersion" description="Create the output directories. Do nothing if dirs were already created">
 		<mkdir dir="${build}" />
 	</target>
 
@@ -50,6 +50,16 @@
 		<delete file="${build}/L2J_DataPack_BETA.zip" />
 	</target>
 
+	<target name="checkRequirements" description="Check Requirements">
+		<fail message="Ant 1.8.2 is required. But your version is ${ant.version}">
+			<condition>
+				<not>
+					<antversion atleast="1.8.2" />
+				</not>
+			</condition>
+		</fail>
+	</target>
+
 	<target name="getChangelogDateVersion" description="Get Changelog, Date, Version">
 		<exec dir="." executable="svn" outputproperty="l2j.changelog">
 			<arg value="log" />

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q350_EnhanceYourWeapon/data.xml → L2J_DataPack_BETA/dist/game/data/levelUpCrystalData.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="data.xsd">
+<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="levelUpCrystalData.xsd">
 	<crystal>
 		<item itemId="4629" level="0" leveledItemId="4630" /> <!-- RED 0 - 1 -->
 		<item itemId="4630" level="1" leveledItemId="4631" /> <!-- RED 1 - 2 -->

+ 0 - 0
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q350_EnhanceYourWeapon/data.xsd → L2J_DataPack_BETA/dist/game/data/levelUpCrystalData.xsd


+ 1 - 1
L2J_DataPack_BETA/dist/game/data/scripts/quests/Q350_EnhanceYourWeapon/Q350_EnhanceYourWeapon.java

@@ -137,7 +137,7 @@ public class Q350_EnhanceYourWeapon extends Quest
 			factory.setValidating(false);
 			factory.setIgnoringComments(true);
 			
-			File file = new File(Config.DATAPACK_ROOT + "/data/scripts/quests/Q350_EnhanceYourWeapon/data.xml");
+			File file = new File(Config.DATAPACK_ROOT + "data/levelUpCrystalData.xml");
 			if (!file.exists())
 			{
 				_log.severe("[EnhanceYourWeapon] Missing data.xml. The quest wont work without it!");