Преглед на файлове

Adding basic support for Path to Becoming quests

Moved ipconfig.xsd to config folder to simplify the hierarchy.
Zoey76 преди 4 години
родител
ревизия
01ee90bb2e

+ 4 - 0
src/main/java/com/l2jserver/gameserver/instancemanager/TerritoryWarManager.java

@@ -1382,6 +1382,10 @@ public final class TerritoryWarManager implements Siegable {
 		
 		
 	}
 	}
 	
 	
+	public void declareLord(int territoryId, L2PcInstance player) {
+		// TODO(Zoey76): Implement.
+	}
+	
 	public static final TerritoryWarManager getInstance() {
 	public static final TerritoryWarManager getInstance() {
 		return SingletonHolder._instance;
 		return SingletonHolder._instance;
 	}
 	}

+ 14 - 2
src/main/java/com/l2jserver/gameserver/model/quest/QuestState.java

@@ -526,6 +526,10 @@ public final class QuestState {
 		return (getInt("memoState") == memoState);
 		return (getInt("memoState") == memoState);
 	}
 	}
 	
 	
+	public String removeMemo() {
+		return unset("memoState");
+	}
+	
 	/**
 	/**
 	 * Gets the memo state ex.
 	 * Gets the memo state ex.
 	 * @param slot the slot where the value was saved
 	 * @param slot the slot where the value was saved
@@ -1120,8 +1124,16 @@ public final class QuestState {
 		return getInt("NRmemo") == slot;
 		return getInt("NRmemo") == slot;
 	}
 	}
 	
 	
-	public void setNRFlagJournal(L2PcInstance talker, int questId, int val) {
-		// TODO Implement me!
+	public void setNRFlagJournal(L2PcInstance talker, int questId, int flagId) {
+		set("NRFlagJournal", String.valueOf(flagId));
+	}
+	
+	public void setFlagJournal(int flagId) {
+		set("FlagJournal", String.valueOf(flagId));
+	}
+	
+	public void resetFlagJournal(int flagId) {
+		unset("FlagJournal");
 	}
 	}
 	
 	
 	/**
 	/**

+ 1 - 1
src/main/resources/config/default-ipconfig.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Note: If file is named "ipconfig.xml" this data will be used as network configuration, otherwise server will configure it automatically! -->
 <!-- Note: If file is named "ipconfig.xml" this data will be used as network configuration, otherwise server will configure it automatically! -->
 <!-- External host here (Internet IP) or Localhost IP for local test -->
 <!-- External host here (Internet IP) or Localhost IP for local test -->
-<gameserver address="127.0.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../data/xsd/ipconfig.xsd">
+<gameserver address="127.0.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ipconfig.xsd">
 	<!-- Localhost here -->
 	<!-- Localhost here -->
 	<define subnet="127.0.0.0/8" address="127.0.0.1" />
 	<define subnet="127.0.0.0/8" address="127.0.0.1" />
 	<!-- Internal hosts here (LANs IPs) -->
 	<!-- Internal hosts here (LANs IPs) -->

+ 0 - 0
src/main/resources/data/xsd/ipconfig.xsd → src/main/resources/config/ipconfig.xsd