7DTD A19 Serverseitige Scripts - Server-side scriptsNeue Quests einfügen - add new Quests

Our server side scripts that do not need to be downloaded. Every player gets all settings directly from the server.
Benutzeravatar
sx_schaddi
Site Admin
Beiträge: 52
Registriert: Dienstag 21. Mai 2019, 11:41

Neue Quests einfügen - add new Quests

#1

Ungelesener Beitrag von sx_schaddi » Sonntag 6. Dezember 2020, 17:51

Hier am Beispiel: hinzufügen von Versteckte Vorräte
Here is an example: adding Hidden Inventories
quests.xml
Suchen und darunter einfügen:
Search and insert below
<quest id="tier2_buried_supplies">
...
</quest>

Code: Alles auswählen

	<quest id="tier3_buried_supplies">
		<property name="name_key" value="quest_tier2_buried_supplies"/>
		<property name="subtitle_key" value="quest_buried_supplies_subtitle"/>
		<property name="description_key" value="quest_buried_supplies_description"/>
		<property name="icon" value="ui_game_symbol_treasure"/>
		<property name="repeatable" value="true"/>
		<property name="category_key" value="quest"/>
		<property name="offer_key" value="quest_tier1_buried_supplies_offer"/>
		<property name="difficulty" value="medium"/>
		<property name="difficulty_tier" value="3"/>
		<property name="statement_key" value="quest_buried_supplies_statement"/>
		<property name="response_key" value="quest_buried_supplies_response"/>
		<property name="completiontype" value="TurnIn"/>
		<property name="completion_key" value="quest_buried_supplies_completion"/>
		<property name="shareable" value="true"/>

		<objective type="TreasureChest">
			<property name="block" value="cntBuriedWeaponChest"/>
			<property name="distance" value="100-250"/>
			<property name="default_radius" value="7"/> <!-- 7 -->
			<property name="container_type" value="Supplies"/>
			<property name="nav_object" value="treasure" />
			<property name="direct_nav_object" value="treasure_direct" />
			<property name="blocks_per_reduction" value="10" />
			<property name="radius_reduction_sound" value="ui_radius_shrink" />
		</objective>

		<objective type="FetchFromTreasure">
			<property name="block" value="cntBuriedWeaponChest"/>
			<property name="quest_item_ID" value="1"/>
			<property name="item_count" value="1"/>
		</objective>

		<action type="SpawnEnemy" id="animalZombieDog" value="30-40" phase="2"/>

		<objective type="ReturnToNPC">
			<property name="phase" value="2"/>
			<property name="nav_object" value="return_to_trader" />
		</objective>

		<objective type="InteractWithNPC">
			<property name="phase" value="2"/>
			<property name="nav_object" value="return_to_trader" />
		</objective>

		<reward type="Exp" value="5500"/>
		<reward type="Item" id="casinoCoin" value="2950"/>

		<reward type="LootItem" id="groupQuestMedical" ischosen="true" isfixed="true" value="5"/>
		<reward type="LootItem" id="groupQuestWeapons,groupQuestArmor" ischosen="true" isfixed="true" value="5"/>
		<reward type="LootItem" id="groupQuestAmmo" ischosen="true" value="5"/>
		<reward type="LootItem" id="groupQuestTools" ischosen="true" value="5"/>
		<reward type="LootItem" id="groupQuestSchematics" ischosen="true" value="5"/>
		<reward type="LootItem" id="groupQuestMods" ischosen="true" value="5"/>
	</quest>	
	<quest id="tier4_buried_supplies">
		<property name="name_key" value="quest_tier2_buried_supplies"/>
		<property name="subtitle_key" value="quest_buried_supplies_subtitle"/>
		<property name="description_key" value="quest_buried_supplies_description"/>
		<property name="icon" value="ui_game_symbol_treasure"/>
		<property name="repeatable" value="true"/>
		<property name="category_key" value="quest"/>
		<property name="offer_key" value="quest_tier1_buried_supplies_offer"/>
		<property name="difficulty" value="medium"/>
		<property name="difficulty_tier" value="4"/>
		<property name="statement_key" value="quest_buried_supplies_statement"/>
		<property name="response_key" value="quest_buried_supplies_response"/>
		<property name="completiontype" value="TurnIn"/>
		<property name="completion_key" value="quest_buried_supplies_completion"/>
		<property name="shareable" value="true"/>

		<objective type="TreasureChest">
			<property name="block" value="cntBuriedWeaponChest"/>
			<property name="distance" value="300-350"/>
			<property name="default_radius" value="7"/> <!-- 7 -->
			<property name="container_type" value="Supplies"/>
			<property name="nav_object" value="treasure" />
			<property name="direct_nav_object" value="treasure_direct" />
			<property name="blocks_per_reduction" value="10" />
			<property name="radius_reduction_sound" value="ui_radius_shrink" />
		</objective>

		<objective type="FetchFromTreasure">
			<property name="block" value="cntBuriedWeaponChest"/>
			<property name="quest_item_ID" value="1"/>
			<property name="item_count" value="1"/>
		</objective>

		<action type="SpawnEnemy" id="zombieDemolition" value="10-20" phase="2"/>

		<objective type="ReturnToNPC">
			<property name="phase" value="2"/>
			<property name="nav_object" value="return_to_trader" />
		</objective>

		<objective type="InteractWithNPC">
			<property name="phase" value="2"/>
			<property name="nav_object" value="return_to_trader" />
		</objective>

		<reward type="Exp" value="5500"/>
		<reward type="Item" id="casinoCoin" value="3950"/>

		<reward type="LootItem" id="groupQuestMedical" ischosen="true" isfixed="true" value="5"/>
		<reward type="LootItem" id="groupQuestWeapons,groupQuestArmor" ischosen="true" isfixed="true" value="5"/>
		<reward type="LootItem" id="groupQuestAmmo" ischosen="true" value="5"/>
		<reward type="LootItem" id="groupQuestTools" ischosen="true" value="5"/>
		<reward type="LootItem" id="groupQuestSchematics" ischosen="true" value="5"/>
		<reward type="LootItem" id="groupQuestMods" ischosen="true" value="5"/>
	</quest>	
	<quest id="tier5_buried_supplies">
		<property name="name_key" value="quest_tier2_buried_supplies"/>
		<property name="subtitle_key" value="quest_buried_supplies_subtitle"/>
		<property name="description_key" value="quest_buried_supplies_description"/>
		<property name="icon" value="ui_game_symbol_treasure"/>
		<property name="repeatable" value="true"/>
		<property name="category_key" value="quest"/>
		<property name="offer_key" value="quest_tier1_buried_supplies_offer"/>
		<property name="difficulty" value="medium"/>
		<property name="difficulty_tier" value="5"/>
		<property name="statement_key" value="quest_buried_supplies_statement"/>
		<property name="response_key" value="quest_buried_supplies_response"/>
		<property name="completiontype" value="TurnIn"/>
		<property name="completion_key" value="quest_buried_supplies_completion"/>
		<property name="shareable" value="true"/>

		<objective type="TreasureChest">
			<property name="block" value="cntBuriedWeaponChest"/>
			<property name="distance" value="300-450"/>
			<property name="default_radius" value="7"/> <!-- 7 -->
			<property name="container_type" value="Supplies"/>
			<property name="nav_object" value="treasure" />
			<property name="direct_nav_object" value="treasure_direct" />
			<property name="blocks_per_reduction" value="10" />
			<property name="radius_reduction_sound" value="ui_radius_shrink" />
		</objective>

		<objective type="FetchFromTreasure">
			<property name="block" value="cntBuriedWeaponChest"/>
			<property name="quest_item_ID" value="1"/>
			<property name="item_count" value="1"/>
		</objective>

		<action type="SpawnEnemy" id="zombieWightFeral,zombieBusinessManFeral,zombieFatCopFeral" value="40-50" phase="2"/>

		<objective type="ReturnToNPC">
			<property name="phase" value="2"/>
			<property name="nav_object" value="return_to_trader" />
		</objective>

		<objective type="InteractWithNPC">
			<property name="phase" value="2"/>
			<property name="nav_object" value="return_to_trader" />
		</objective>

		<reward type="Exp" value="5500"/>
		<reward type="Item" id="casinoCoin" value="4950"/>

		<reward type="LootItem" id="groupQuestMedical" ischosen="true" isfixed="true" value="5"/>
		<reward type="LootItem" id="groupQuestWeapons,groupQuestArmor" ischosen="true" isfixed="true" value="5"/>
		<reward type="LootItem" id="groupQuestAmmo" ischosen="true" value="5"/>
		<reward type="LootItem" id="groupQuestTools" ischosen="true" value="5"/>
		<reward type="LootItem" id="groupQuestSchematics" ischosen="true" value="5"/>
		<reward type="LootItem" id="groupQuestMods" ischosen="true" value="5"/>
	</quest>		
Suchen und ersetzen:
search and replace
<quest_list id="trader_quests">

Code: Alles auswählen

	<quest_list id="trader_quests">
			<!-- Tier 1 -->
		<quest id="tier1_clear"/>
		<quest id="tier1_fetch"/>
		<quest id="tier1_buried_supplies"/>

			<!-- Tier 2 -->

		<quest id="tier2_clear"/>
		<quest id="tier2_fetch"/>
		<quest id="tier2_fetch_clear"/>
		<quest id="tier2_buried_supplies"/>
	
			<!-- Tier 3 -->
		<quest id="tier3_clear"/>
		<quest id="tier3_fetch"/>
		<!-- <quest id="tier3_fetch_clear"/> -->
		<quest id="tier3_buried_supplies"/>

			<!-- Tier 4 -->
		<quest id="tier4_clear"/>
		<!-- <quest id="tier4_fetch"/> -->
		<!-- <quest id="tier4_fetch_clear"/> -->
		<quest id="tier4_buried_supplies"/>
		

			<!-- Tier 5 -->
		<quest id="tier5_clear"/>
		<!-- <quest id="tier5_fetch"/> -->
		<!-- <quest id="tier5_fetch_clear"/> -->
		<quest id="tier5_buried_supplies"/>	

		<!-- Tier 6 -->
		<!--	<quest id="tier6_clear"/> -->
		<!--	<quest id="tier6_fetch"/> -->
		<!--	<quest id="tier6_fetch_clear"/> -->

			<!-- Special Quests -->
		<quest id="tier2_nexttrader" />
		<quest id="tier3_nexttrader" />
		<quest id="tier4_nexttrader" />
		<quest id="tier5_nexttrader" />
	</quest_list>



Benutzeravatar
sx_schaddi
Site Admin
Beiträge: 52
Registriert: Dienstag 21. Mai 2019, 11:41

Re: Neue Quests einfügen - add new Quests

#2

Ungelesener Beitrag von sx_schaddi » Donnerstag 14. Januar 2021, 20:54

<quest id="challenge_drunkanddisorderly">
<property name="name_key" value="challenge_drunkanddisorderly"/>
<property name="subtitle_key" value="challenge_drunkanddisorderly_subtitle"/>
<property name="description_key" value="challenge_drunkanddisorderly_offer"/>
<property name="icon" value="ui_game_symbol_zombie"/>
<property name="repeatable" value="true"/> <!-- Wiederholbar true / false -->
<property name="category_key" value="challenge"/> <!-- quest / challenge -->
<property name="offer_key" value="challenge_drunkanddisorderly_offer"/>
<property name="difficulty" value="medium"/> <!-- Schwierigkeit: veryeasy easy, medium, hard -->
<property name="completiontype" value="TurnIn"/> <!-- Erfolgreich nur innerhalb des Bereichs -->

<objective type="ZombieKill" value="2" phase="1"/> <!-- Quest-Erfolg: 2 Zombies töten -->
<requirement type="Holding" id="" phase="1"/> <!-- Mit Fäusten - ohne Waffe -->

<requirement type="Group" value="OR" phase="1" >
<requirement type="Buff" id="buffBeer"/> <!-- Bier trinken.... -->
<requirement type="Buff" id="buffDrunkGrandpasMoonshine"/> <!-- bis zu diesem Buff-->
</requirement>

<objective type="InteractWithNPC"> <!-- Quest abgeben -->
<property name="phase" value="2"/>
</objective>

<reward type="Exp" value="500"/> <!-- Belohnung erhalten -->
<reward type="Item" id="casinoCoin" value="350"/>
</quest>






<quest id="quest_BasicSurvival8">
<property name="group_name_key" value="quest_BasicSurvival"/>
<property name="name_key" value="quest_BasicSurvival8"/>
<property name="subtitle_key" value="quest_BasicSurvival8_subtitle"/>
<property name="description_key" value="quest_BasicSurvival8_description"/>
<property name="icon" value="ui_game_symbol_campfire"/> <!-- Quest-Symbol -->
<property name="category_key" value="quest"/> <!-- Kategorie challenge / quest -->
<property name="difficulty" value="veryeasy"/> <!-- Schwierigkeit: veryeasy easy, medium, hard -->
<property name="shareable" value="false"/> <!--Teilbar true / false -->

<objective type="FetchKeep" id="resourceRockSmall" value="5" phase="1"/> <!-- Items besorgen + Anzahl -->
<objective type="Craft" id="campfire" value="1" phase="2"/> <!-- Dinge wohlmöglich herstellen-->
<objective type="BlockPlace" id="campfire" value="1" phase="2"/> <!-- Hergestelltes platzieren oder nutzen -->


<reward type="Quest" id="quest_whiteRiverCitizen1">
<property name="chainquest" value="false"/>
</reward>
<reward type="SkillPoints" value="4" chainreward="true"/> <!-- Belohnung an XP oder Sonstiges -->
</quest>








<quest id="treasure_raphael">
<property name="name_key" value="treasure_raphael"/>
<property name="subtitle_key" value="treasure_raphael"/>
<property name="description_key" value="treasure_raphael_offer"/>
<property name="icon" value="ui_game_symbol_map"/>
<property name="repeatable" value="true"/>
<property name="category_key" value="treasure"/>
<property name="offer_key" value="treasure_raphael_offer"/>
<property name="difficulty" value="medium"/>
<property name="shareable" value="false"/>

<objective type="TreasureChest">
<property name="block" value="cntBuriedLootStashChest"/>
<property name="alt_block" value="cntBuriedLootStashChestInsecure"/>
<property name="distance" value="500-1250"/>
<property name="default_radius" value="9"/>
<property name="nav_object" value="treasure" />
<property name="direct_nav_object" value="treasure_direct" />
<property name="blocks_per_reduction" value="10" />
<property name="radius_reduction_sound" value="ui_radius_shrink" />
</objective>
</quest>