<?xml version="1.0" encoding="utf-8"?><waypoints>
	<onLoad>
	<!-- here I set the profile of quest mobs-->
	settings.profile.mobs = {"Eingesperrter Feuer-Elementar";"Gefangener Brauntiger"}; 
	
	
	<!-- here check condition for 2 different quest status, complete and incomplete -->
	function checkCondition()
		queststate = getQuestStatus("Demonstration");
		if queststate == "incomplete" then
		__WPL:setWaypointIndex(__WPL:findWaypointTag("incomplete"));
			end
	
	function checkCondition()
		queststate = getQuestStatus("Demonstration");
		if queststate == "complete" then
		__WPL:setWaypointIndex(__WPL:findWaypointTag("complete"));
			end
	
	</onLoad>	
	<!-- #  1 --><waypoint x="-18343" z="-22671" y="469">
	<!-- now I accept the quest, only if the daily counter is < 10 also set foward direction for waypoints or end script and exit -->
	if RoMScript("Daily_count()") == 10 then
		doOption_exitGame()
			else
		if getQuestStatus(Demonstration) == "not accepted" then
			player:target_NPC("Anthony Taz");
			AcceptQuestByName("Demonstration")
			end
		end
	__WPL:setDirection(WPT_FOWARD);
	</waypoint>
	
	<!-- #  2 --><waypoint x="-18291" z="-22617" y="469" tag="incomplete">
	<!-- now I speake with the npg for start the quest-->
	player:target_NPC("Anthony Taz");
		sendMacro("ChoiceOption(1);")yrest(1000);
			end
	</waypoint>
	
	<!-- #  3 --><waypoint x="-18291" z="-22617" y="469" >
	<!--moving in middle at arena and fight with spawn mob and check for condition at the end, if done jump to tag complete way 4 if not start again from way 2-->	
	mob = CPawn(mobaddress)
		if mob.Attackble == true then
		player:target(mob.Address)
		player:fight()
			end
	checkCondition()
	</waypoint>
	<!-- #  4 --><waypoint x="-18398" z="-22863" y="484" tag="complete" type="TRAVEL">
	player:mount()
	</waypoint>

	<!-- #  5 --><waypoint x="-18447" z="-22983" y="484" type="TRAVEL">	</waypoint>
	<!-- #  6 --><waypoint x="-18468" z="-23115" y="450" type="TRAVEL">	</waypoint>
	<!-- #  7 --><waypoint x="-18386" z="-23077" y="449" type="TRAVEL">	</waypoint>
	<!-- #  8 --><waypoint x="-18282" z="-23042" y="450" type="TRAVEL">	</waypoint>
	<!-- #  9 --><waypoint x="-18125" z="-23025" y="485" type="TRAVEL">	</waypoint>
	<!-- # 10 --><waypoint x="-17996" z="-23038" y="495" type="TRAVEL">	</waypoint>
	<!-- # 11 --><waypoint x="-17877" z="-23075" y="494" type="TRAVEL">	</waypoint>
	<!-- # 12 --><waypoint x="-17752" z="-23194" y="507" type="TRAVEL">	</waypoint>
	<!-- # 13 --><waypoint x="-17667" z="-23341" y="567" type="TRAVEL">	</waypoint>
	<!-- # 14 --><waypoint x="-17604" z="-23553" y="577" type="TRAVEL">	</waypoint>
	<!-- # 15 --><waypoint x="-17529" z="-23517" y="587" type="TRAVEL">	</waypoint>
	<!-- # 16 --><waypoint x="-17410" z="-23431" y="644" type="TRAVEL">	</waypoint>
	<!-- # 17 --><waypoint x="-17336" z="-23327" y="644" type="TRAVEL">
	player:mount()
	</waypoint>
	
	<!-- # 18 --><waypoint x="-17220" z="-23504" y="645" type="TRAVEL">
	<!-- here I use class swap for chenge my primary class in both directions-->
	player:target_NPC("John Roger") yrest(1000)
		ChoiceOptionByName("I want to switch my primary and secondary class.")
	</waypoint>
	
	<!-- # 19 --><waypoint x="-17336" z="-23327" y="644" type="TRAVEL">
	player:mount()
	</waypoint>
	<!-- # 20 --><waypoint x="-17410" z="-23431" y="644" type="TRAVEL">	</waypoint>
	<!-- # 21 --><waypoint x="-17529" z="-23517" y="587" type="TRAVEL">	</waypoint>
	<!-- # 22 --><waypoint x="-17604" z="-23553" y="577" type="TRAVEL">	</waypoint>
	<!-- # 23 --><waypoint x="-17667" z="-23341" y="567" type="TRAVEL">	</waypoint>
	<!-- # 24 --><waypoint x="-17752" z="-23194" y="507" type="TRAVEL">	</waypoint>
	<!-- # 25 --><waypoint x="-17877" z="-23075" y="494" type="TRAVEL">	</waypoint>
	<!-- # 26 --><waypoint x="-17996" z="-23038" y="495" type="TRAVEL">	</waypoint>
	<!-- # 27 --><waypoint x="-18125" z="-23025" y="485" type="TRAVEL">	</waypoint>
	<!-- # 28 --><waypoint x="-18282" z="-23042" y="450" type="TRAVEL">	</waypoint>
	<!-- # 29 --><waypoint x="-18386" z="-23077" y="449" type="TRAVEL">	</waypoint>
	<!-- # 30 --><waypoint x="-18468" z="-23115" y="450" type="TRAVEL">	</waypoint>
	<!-- # 31 --><waypoint x="-18447" z="-22983" y="484" type="TRAVEL">	</waypoint>
	<!-- # 32 --><waypoint x="-18398" z="-22863" y="484" type="TRAVEL">	</waypoint>
	<!-- # 33 --><waypoint x="-18343" z="-22671" y="469" type="TRAVEL">
	<!-- complete the quest and return back-->
	player:target_NPC("Anthony Taz");
			CompleteQuestByName("Demonstration");
	__WPL:setDirection(WPT_BACKWARD);
	</waypoint>
</waypoints>
