<Quests>
    <!---->
    <Quest main="true" name="Quest6210" text="g4_Quest_6210_6210questtitle">
        <!--Quest NPC6210-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_6210_6210questtitle" value="STEP1" tracker_text="g4_Quest_32200_s1tt" text="g4_Quest_32200_s1log" actor_trigger="15638" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_6210_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_6210_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_6210_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_6210_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="true" name="Quest19354" text="g4_Quest_19354_19354questtitle">
        <!--Quest Chained19354-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest19354 
	 -> it is triggered when the attached quest 6210 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6210" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6210" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6210" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6210" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest19354" />
            <Action action="ProgressQuest1" variable="Quests.Quest19354" />
            <Trigger param="Quests.Quest6210" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_19354_19354questtitle" value="STEP1" tracker_text="g4_Quest_19356_s1tt" text="g4_Quest_19356_s1log" actor_trigger="13299" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_19354_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_19354_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_19354_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_19354_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6210" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6210" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6210" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6210" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest19354" />
            <Trigger param="Quests.Quest6210" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest6218" text="g4_Quest_6218_6218questtitle">
        <!--Quest Chained6218-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest6218 
	 -> it is triggered when the attached quest 19354 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest19354" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest19354" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest19354" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest19354" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest6218" />
            <Action action="ProgressQuest2" variable="Quests.Quest6218" />
            <Trigger param="Quests.Quest19354" type="VariableChange" />
        </Event>
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest6218" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest6277" />
            <Action action="ProgressQuest2" variable="Quests.Quest6277" />
            <Action action="ActivateQuest" variable="Quests.Quest6279" />
            <Action action="ProgressQuest2" variable="Quests.Quest6279" />
            <Action action="ActivateQuest" variable="Quests.Quest6281" />
            <Action action="ProgressQuest2" variable="Quests.Quest6281" />
            <Trigger param="Quests.Quest6218" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step1-->
        <Step tracker_title="g4_Quest_6218_6218questtitle" value="STEP1" tracker_text="g4_Quest_6275_srtt" text="g4_Quest_6275_srlog">
            <Quest main="false" name="Quest6277" text="g4_Quest_6277_6277questtitle">
                <!--Quest SubQuest6277-->
                <!--step - wait in case of Step=Step1-->
                <Step tracker_title="g4_Quest_6277_6277questtitle" value="STEP1" tracker_text="g4_Quest_6318_s1tt" text="g4_Quest_6318_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_6318_s1tt" />
                </Step>
                <!--Event for the Quest Quest6277 
	 -> it activates the folder-->
                <Event>
                    <Test variable="Quests.Quest6277" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="ActivateFolder" variable="Quests.Quest6277.Folder6389" />
                    <Trigger param="Quests.Quest6277" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest6277 
	 -> it Deactivates the folder-->
                <Event>
                    <Test variable="Quests.Quest6277" type="IN">
                        <Value tag="STEP2" />
                    </Test>
                    <Action action="DeactivateFolder" variable="Quests.Quest6277.Folder6389" />
                    <Trigger param="Quests.Quest6277" type="VariableChange" />
                </Event>
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_6277_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest6279" text="g4_Quest_6279_6279questtitle">
                <!--Quest SubQuest6279-->
                <!--step - wait in case of Step=Step1-->
                <Step tracker_title="g4_Quest_6279_6279questtitle" value="STEP1" tracker_text="g4_Quest_6323_s1tt" text="g4_Quest_6323_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_6323_s1tt" />
                </Step>
                <!--Event for the Quest Quest6279 
	 -> it activates the folder-->
                <Event>
                    <Test variable="Quests.Quest6279" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="ActivateFolder" variable="Quests.Quest6279.Folder6416" />
                    <Trigger param="Quests.Quest6279" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest6279 
	 -> it Deactivates the folder-->
                <Event>
                    <Test variable="Quests.Quest6279" type="IN">
                        <Value tag="STEP2" />
                    </Test>
                    <Action action="DeactivateFolder" variable="Quests.Quest6279.Folder6416" />
                    <Trigger param="Quests.Quest6279" type="VariableChange" />
                </Event>
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_6279_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest6281" text="g4_Quest_6281_6281questtitle">
                <!--Quest SubQuest6281-->
                <!--step - wait in case of Step=Step1-->
                <Step tracker_title="g4_Quest_6281_6281questtitle" value="STEP1" tracker_text="g4_Quest_6328_s1tt" text="g4_Quest_6328_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_6328_s1tt" />
                </Step>
                <!--Event for the Quest Quest6281 
	 -> it activates the folder-->
                <Event>
                    <Test variable="Quests.Quest6281" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="ActivateFolder" variable="Quests.Quest6281.Folder6428" />
                    <Trigger param="Quests.Quest6281" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest6281 
	 -> it Deactivates the folder-->
                <Event>
                    <Test variable="Quests.Quest6281" type="IN">
                        <Value tag="STEP2" />
                    </Test>
                    <Action action="DeactivateFolder" variable="Quests.Quest6281.Folder6428" />
                    <Trigger param="Quests.Quest6281" type="VariableChange" />
                </Event>
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_6281_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_6218_6218questtitle" value="STEP2" tracker_text="g4_Quest_6275_s2tt" text="g4_Quest_6275_s2log" show_log="false" show_tracker="true" actor_trigger="13299">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_6275_s2tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_6218_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_6218_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_6218_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_6218_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest19354" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest19354" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest19354" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest19354" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest6218" />
            <Trigger param="Quests.Quest19354" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest29492" text="g4_Quest_29492_29492questtitle">
        <!--Quest NPC29492-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_29492_29492questtitle" value="STEP1" tracker_text="g4_Quest_29503_s1tt" text="g4_Quest_29503_s1log" actor_trigger="29508" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_29492_29492questtitle" value="STEP2" tracker_text="g4_Quest_29536_s1tt" text="g4_Quest_29536_s1log" actor_trigger="11026" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_29492_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_29492_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_29492_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_29492_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6218" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6218" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6218" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6218" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest29492" />
            <Trigger param="Quests.Quest6218" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest29548" text="g4_Quest_29548_29548questtitle">
        <!--Quest NPC29548-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_29548_29548questtitle" value="STEP1" tracker_text="g4_Quest_29561_s1tt" text="g4_Quest_29561_s1log" actor_trigger="11066" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_29548_29548questtitle" value="STEP2" tracker_text="g4_Quest_29583_s1tt" text="g4_Quest_29583_s1log" actor_trigger="29508" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_29548_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_29548_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_29548_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_29548_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest29492" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest29492" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest29492" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest29492" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest29548" />
            <Trigger param="Quests.Quest29492" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest29595" text="g4_Quest_29595_29595questtitle">
        <!--Quest NPC29595-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_29595_29595questtitle" value="STEP1" tracker_text="g4_Quest_29629_s1tt" text="g4_Quest_29629_s1log" actor_trigger="8900" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_29595_29595questtitle" value="STEP2" tracker_text="g4_Quest_29655_s1tt" text="g4_Quest_29655_s1log" actor_trigger="8542" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step3-->
        <!--Event for each Mob the Quest Quest29595 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="29734" type="Kill" />
            <Action action="Decrease" variable="Quest29595_QE_29725_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="29744" type="Kill" />
            <Action action="Decrease" variable="Quest29595_QE_29725_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="29756" type="Kill" />
            <Action action="Decrease" variable="Quest29595_QE_29725_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest29595 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest29595" type="IN">
                    <Value tag="STEP3" />
                </Operand1>
                <Operand2 variable="Quest29595_QE_29725_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest7" variable="Quests.Quest29595" />
            <Trigger param="Quest29595_QE_29725_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest29595 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest29595" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.29734" />
            <Action action="SpawnEntity" variable="Entities.29744" />
            <Action action="SpawnEntity" variable="Entities.29756" />
            <Trigger param="Quests.Quest29595" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_29595_29595questtitle" value="STEP3" tracker_text="g4_Quest_29725_s1tt" text="g4_Quest_29725_s1log">
            <SubStep variable="Quest29595_QE_29725_RevCounter_1" count="3" tracker_text="g4_Quest_29725_1" actor_trigger="29756">
                <Value tag="3_MORE" />
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step4-->
        <Step tracker_title="g4_Quest_29595_29595questtitle" value="STEP4" tracker_text="g4_Quest_29725_s2tt" text="g4_Quest_29725_s2log" show_log="false" show_tracker="true" actor_trigger="8542">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_29725_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step5-->
        <Step tracker_title="g4_Quest_29595_29595questtitle" value="STEP5" tracker_text="g4_Quest_29815_s1tt" text="g4_Quest_29815_s1log" actor_trigger="8900" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step6-->
        <Step tracker_title="g4_Quest_29595_29595questtitle" value="STEP6" tracker_text="g4_Quest_29827_s1tt" text="g4_Quest_29827_s1log" actor_trigger="29508" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step7-->
        <Step tracker_title="g4_Quest_29595_29595questtitle" value="STEP7" tracker_text="g4_Quest_29841_s1tt" text="g4_Quest_29841_s1log" actor_trigger="8900" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_29595_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_29595_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_29595_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_29595_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest29548" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest29548" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest29548" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest29548" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest29595" />
            <Trigger param="Quests.Quest29548" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest29857" text="g4_Quest_29857_29857questtitle">
        <!--Quest Chained29857-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest29857 
	 -> it is triggered when the attached quest 29595 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest29595" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest29595" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest29595" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest29595" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest29857" />
            <Action action="ProgressQuest6" variable="Quests.Quest29857" />
            <Trigger param="Quests.Quest29595" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_29857_29857questtitle" value="STEP1" tracker_text="g4_Quest_29869_s1tt" text="g4_Quest_29869_s1log" actor_trigger="29508" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_29857_29857questtitle" value="STEP2" tracker_text="g4_Quest_29891_s1tt" text="g4_Quest_29891_s1log" actor_trigger="8900" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_29857_29857questtitle" value="STEP3" tracker_text="g4_Quest_29911_s1tt" text="g4_Quest_29911_s1log" actor_trigger="8912" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step4-->
        <!--Event for each Mob the Quest Quest29857 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="29959" type="Kill" />
            <Action action="Decrease" variable="Quest29857_QE_29950_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="29969" type="Kill" />
            <Action action="Decrease" variable="Quest29857_QE_29950_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="29979" type="Kill" />
            <Action action="Decrease" variable="Quest29857_QE_29950_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="29989" type="Kill" />
            <Action action="Decrease" variable="Quest29857_QE_29950_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest29857 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest29857" type="IN">
                    <Value tag="STEP4" />
                </Operand1>
                <Operand2 variable="Quest29857_QE_29950_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest6" variable="Quests.Quest29857" />
            <Trigger param="Quest29857_QE_29950_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest29857 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest29857" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.29959" />
            <Action action="SpawnEntity" variable="Entities.29969" />
            <Action action="SpawnEntity" variable="Entities.29979" />
            <Action action="SpawnEntity" variable="Entities.29989" />
            <Trigger param="Quests.Quest29857" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_29857_29857questtitle" value="STEP4" tracker_text="g4_Quest_29950_s1tt" text="g4_Quest_29950_s1log">
            <SubStep variable="Quest29857_QE_29950_RevCounter_1" count="4" tracker_text="g4_Quest_29950_1" actor_trigger="29989">
                <Value tag="4_MORE" />
                <Value tag="3_MORE" />
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step5-->
        <Step tracker_title="g4_Quest_29857_29857questtitle" value="STEP5" tracker_text="g4_Quest_29950_s2tt" text="g4_Quest_29950_s2log" show_log="false" show_tracker="true" actor_trigger="8912">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_29950_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step6-->
        <Step tracker_title="g4_Quest_29857_29857questtitle" value="STEP6" tracker_text="g4_Quest_30004_s1tt" text="g4_Quest_30004_s1log" actor_trigger="29508" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_29857_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_29857_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_29857_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_29857_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest29595" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest29595" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest29595" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest29595" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest29857" />
            <Trigger param="Quests.Quest29595" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest4957" text="g4_Quest_4957_4957questtitle">
        <!--Quest NPC4957-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest4957 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="4966" type="Take" />
            <Action action="Decrease" variable="Quest4957_QE_4960_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="11278" type="Take" />
            <Action action="Decrease" variable="Quest4957_QE_4960_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="11279" type="Take" />
            <Action action="Decrease" variable="Quest4957_QE_4960_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="11280" type="Take" />
            <Action action="Decrease" variable="Quest4957_QE_4960_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="11281" type="Take" />
            <Action action="Decrease" variable="Quest4957_QE_4960_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest4957 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest4957" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest4957_QE_4960_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest4957" />
            <Trigger param="Quest4957_QE_4960_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest4957 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest4957" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.4966" />
            <Action action="SpawnEntity" variable="Entities.11278" />
            <Action action="SpawnEntity" variable="Entities.11279" />
            <Action action="SpawnEntity" variable="Entities.11280" />
            <Action action="SpawnEntity" variable="Entities.11281" />
            <Trigger param="Quests.Quest4957" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_4957_4957questtitle" value="STEP1" tracker_text="g4_Quest_4960_s1tt" text="g4_Quest_4960_s1log">
            <SubStep variable="Quest4957_QE_4960_RevCounter_1" count="5" tracker_text="g4_Quest_4960_1" actor_trigger="11281">
                <Value tag="5_MORE" />
                <Value tag="4_MORE" />
                <Value tag="3_MORE" />
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_4957_4957questtitle" value="STEP2" tracker_text="g4_Quest_4960_s2tt" text="g4_Quest_4960_s2log" show_log="false" show_tracker="true" actor_trigger="7667">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_4960_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_4957_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_4957_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_4957_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_4957_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest1243" text="g4_Quest_1243_1243questtitle">
        <!--Quest NPC1243-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_1243_1243questtitle" value="STEP1" tracker_text="g4_Quest_1270_s1tt" text="g4_Quest_1270_s1log" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_1243_1243questtitle" value="STEP2" tracker_text="g4_Quest_1281_s1tt" text="g4_Quest_1281_s1log" actor_trigger="7706" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_1243_1243questtitle" value="STEP3" tracker_text="g4_Quest_1328_s1tt" text="g4_Quest_1328_s1log" actor_trigger="7706" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_1243_1243questtitle" value="STEP4" tracker_text="g4_Quest_1340_s1tt" text="g4_Quest_1340_s1log" actor_trigger="7667" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step5-->
        <Step tracker_title="g4_Quest_1243_1243questtitle" value="STEP5" tracker_text="g4_Quest_1351_s1tt" text="g4_Quest_1351_s1log" actor_trigger="7691" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_1243_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_1243_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_1243_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_1243_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest4957" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest4957" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest4957" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest4957" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest1243" />
            <Trigger param="Quests.Quest4957" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest8574" text="g4_Quest_8574_8574questtitle">
        <!--Quest NPC8574-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_8574_8574questtitle" value="STEP1" tracker_text="g4_Quest_32152_s1tt" text="g4_Quest_32152_s1log" actor_trigger="7604" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_8574_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_8574_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_8574_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_8574_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="true" name="Quest8579" text="g4_Quest_8579_8579questtitle">
        <!--Quest Chained8579-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest8579 
	 -> it is triggered when the attached quest 8574 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8574" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8574" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8574" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8574" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest8579" />
            <Action action="ProgressQuest1" variable="Quests.Quest8579" />
            <Trigger param="Quests.Quest8574" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_8579_8579questtitle" value="STEP1" tracker_text="g4_Quest_8584_s1tt" text="g4_Quest_8584_s1log" actor_trigger="7604" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_8579_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_8579_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_8579_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_8579_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8574" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8574" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8574" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8574" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest8579" />
            <Trigger param="Quests.Quest8574" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest8683" text="g4_Quest_8683_8683questtitle">
        <!--Quest Chained8683-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest8683 
	 -> it is triggered when the attached quest 8579 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8579" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8579" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8579" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8579" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest8683" />
            <Action action="ProgressQuest2" variable="Quests.Quest8683" />
            <Trigger param="Quests.Quest8579" type="VariableChange" />
        </Event>
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest8683" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest8708" />
            <Action action="ProgressQuest2" variable="Quests.Quest8708" />
            <Action action="ActivateQuest" variable="Quests.Quest8710" />
            <Action action="ProgressQuest2" variable="Quests.Quest8710" />
            <Trigger param="Quests.Quest8683" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step1-->
        <Step tracker_title="g4_Quest_8683_8683questtitle" value="STEP1" tracker_text="g4_Quest_8706_srtt" text="g4_Quest_8706_srlog">
            <Quest main="false" name="Quest8708" text="g4_Quest_8708_8708questtitle">
                <!--Quest SubQuest8708-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_8708_8708questtitle" value="STEP1" tracker_text="g4_Quest_8724_s1tt" text="g4_Quest_8724_s1log" />
                <!--Event for the Quest Quest8708 
	 -> it activates the folder-->
                <Event>
                    <Test variable="Quests.Quest8708" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="ActivateFolder" variable="Quests.Quest8708.Folder8750" />
                    <Trigger param="Quests.Quest8708" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest8708 
	 -> it Deactivates the folder-->
                <Event>
                    <Test variable="Quests.Quest8708" type="IN">
                        <Value tag="STEP2" />
                    </Test>
                    <Action action="DeactivateFolder" variable="Quests.Quest8708.Folder8750" />
                    <Trigger param="Quests.Quest8708" type="VariableChange" />
                </Event>
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - collect in case of Step=Step2-->
                <!--Event for each QuestItem the Quest Quest8708 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="8798" type="Take" />
                    <Action action="Decrease" variable="Quest8708_QE_8781_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest8708 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest8708" type="IN">
                            <Value tag="STEP2" />
                        </Operand1>
                        <Operand2 variable="Quest8708_QE_8781_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest4" variable="Quests.Quest8708" />
                    <Action action="ActivateDialog" variable="Dialog_8784" />
                    <Trigger param="Quest8708_QE_8781_RevCounter_1" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_8708_8708questtitle" value="STEP2" tracker_text="g4_Quest_8781_s1tt" text="g4_Quest_8781_s1log">
                    <SubStep variable="Quest8708_QE_8781_RevCounter_1" count="1" tracker_text="g4_Quest_8781_1" actor_trigger="8798">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - return to NPC in case of Step=Step3-->
                <Step tracker_title="g4_Quest_8708_8708questtitle" value="STEP3" tracker_text="g4_Quest_8781_s2tt" text="g4_Quest_8781_s2log" show_log="false" show_tracker="true" actor_trigger="7712">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_8781_s2tt" />
                </Step>
                <!-- event to give the XP reward if XP is not zero-->
                <!-- step - talk to in case of Step=Step4-->
                <Step tracker_title="g4_Quest_8708_8708questtitle" value="STEP4" tracker_text="g4_Quest_8865_s1tt" text="g4_Quest_8865_s1log" actor_trigger="7604" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_8708_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest8710" text="g4_Quest_8710_8710questtitle">
                <!--Quest SubQuest8710-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_8710_8710questtitle" value="STEP1" tracker_text="g4_Quest_8729_s1tt" text="g4_Quest_8729_s1log" actor_trigger="7631" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- step - talk to in case of Step=Step2-->
                <Step tracker_title="g4_Quest_8710_8710questtitle" value="STEP2" tracker_text="g4_Quest_8929_s1tt" text="g4_Quest_8929_s1log" actor_trigger="7610" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - collect in case of Step=Step3-->
                <!--Event for each QuestItem the Quest Quest8710 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="9018" type="Take" />
                    <Action action="Decrease" variable="Quest8710_QE_8937_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest8710 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest8710" type="IN">
                            <Value tag="STEP3" />
                        </Operand1>
                        <Operand2 variable="Quest8710_QE_8937_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest12" variable="Quests.Quest8710" />
                    <Trigger param="Quest8710_QE_8937_RevCounter_1" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest8710 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest8710" type="IN">
                        <Value tag="STEP3" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.9018" />
                    <Trigger param="Quests.Quest8710" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_8710_8710questtitle" value="STEP3" tracker_text="g4_Quest_8937_s1tt" text="g4_Quest_8937_s1log">
                    <SubStep variable="Quest8710_QE_8937_RevCounter_1" count="1" tracker_text="g4_Quest_8937_1" actor_trigger="9018">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - deliver in case of Step=Step4-->
                <Step tracker_title="g4_Quest_8710_8710questtitle" value="STEP4" tracker_text="g4_Quest_8937_s2tt" text="g4_Quest_8937_s2log" />
                <!--Event for the Quest Quest8710 
	 -> it activates the folder-->
                <Event>
                    <Test variable="Quests.Quest8710" type="IN">
                        <Value tag="STEP3" />
                    </Test>
                    <Action action="ActivateFolder" variable="Quests.Quest8710.Folder11122" />
                    <Trigger param="Quests.Quest8710" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest8710 
	 -> it Deactivates the folder-->
                <Event>
                    <Test variable="Quests.Quest8710" type="IN">
                        <Value tag="STEP5" />
                    </Test>
                    <Action action="DeactivateFolder" variable="Quests.Quest8710.Folder11122" />
                    <Trigger param="Quests.Quest8710" type="VariableChange" />
                </Event>
                <!-- event to give the XP reward if XP is not zero-->
                <!-- step - talk to in case of Step=Step5-->
                <Step tracker_title="g4_Quest_8710_8710questtitle" value="STEP5" tracker_text="g4_Quest_9112_s1tt" text="g4_Quest_9112_s1log" actor_trigger="7733" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - wait in case of Step=Step6-->
                <Step tracker_title="g4_Quest_8710_8710questtitle" value="STEP6" tracker_text="g4_Quest_8951_s1tt" text="g4_Quest_8951_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_8951_s1tt" />
                </Step>
                <!-- step - talk to in case of Step=Step7-->
                <Step tracker_title="g4_Quest_8710_8710questtitle" value="STEP7" tracker_text="g4_Quest_8962_s1tt" text="g4_Quest_8962_s1log" actor_trigger="7736" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - collect in case of Step=Step8-->
                <!--Event for each QuestItem the Quest Quest8710 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="9118" type="Take" />
                    <Action action="Decrease" variable="Quest8710_QE_8980_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest8710 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest8710" type="IN">
                            <Value tag="STEP8" />
                        </Operand1>
                        <Operand2 variable="Quest8710_QE_8980_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest12" variable="Quests.Quest8710" />
                    <Trigger param="Quest8710_QE_8980_RevCounter_1" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest8710 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest8710" type="IN">
                        <Value tag="STEP8" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.9118" />
                    <Trigger param="Quests.Quest8710" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_8710_8710questtitle" value="STEP8" tracker_text="g4_Quest_8980_s1tt" text="g4_Quest_8980_s1log">
                    <SubStep variable="Quest8710_QE_8980_RevCounter_1" count="1" tracker_text="g4_Quest_8980_1" actor_trigger="9118">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - deliver in case of Step=Step9-->
                <Step tracker_title="g4_Quest_8710_8710questtitle" value="STEP9" tracker_text="g4_Quest_8980_s2tt" text="g4_Quest_8980_s2log" actor_trigger="7730" />
                <!-- event to give the XP reward if XP is not zero-->
                <!-- step - talk to in case of Step=Step10-->
                <Step tracker_title="g4_Quest_8710_8710questtitle" value="STEP10" tracker_text="g4_Quest_8990_s1tt" text="g4_Quest_8990_s1log" actor_trigger="7727" />
                <!--Event for the Quest Quest8710 
	 -> it activates the folder-->
                <Event>
                    <Test variable="Quests.Quest8710" type="IN">
                        <Value tag="STEP10" />
                    </Test>
                    <Action action="ActivateFolder" variable="Quests.Quest8710.Folder9123" />
                    <Trigger param="Quests.Quest8710" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest8710 
	 -> it Deactivates the folder-->
                <Event>
                    <Test variable="Quests.Quest8710" type="IN">
                        <Value tag="STEP11" />
                    </Test>
                    <Action action="DeactivateFolder" variable="Quests.Quest8710.Folder9123" />
                    <Trigger param="Quests.Quest8710" type="VariableChange" />
                </Event>
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- step - talk to in case of Step=Step11-->
                <Step tracker_title="g4_Quest_8710_8710questtitle" value="STEP11" tracker_text="g4_Quest_8998_s1tt" text="g4_Quest_8998_s1log" actor_trigger="7631" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- step - talk to in case of Step=Step12-->
                <Step tracker_title="g4_Quest_8710_8710questtitle" value="STEP12" tracker_text="g4_Quest_16040_s1tt" text="g4_Quest_16040_s1log" actor_trigger="7604" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_8710_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_8683_8683questtitle" value="STEP2" tracker_text="g4_Quest_8706_s2tt" text="g4_Quest_8706_s2log" show_log="false" show_tracker="true" actor_trigger="7604">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_8706_s2tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_8683_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_8683_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_8683_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_8683_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8579" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8579" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8579" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8579" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest8683" />
            <Trigger param="Quests.Quest8579" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest9213" text="g4_Quest_9213_9213questtitle">
        <!--Quest Chained9213-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest9213 
	 -> it is triggered when the attached quest 8683 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8683" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8683" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8683" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8683" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest9213" />
            <Action action="ProgressQuest1" variable="Quests.Quest9213" />
            <Trigger param="Quests.Quest8683" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_9213_9213questtitle" value="STEP1" tracker_text="g4_Quest_9225_s1tt" text="g4_Quest_9225_s1log" actor_trigger="9266" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_9213_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_9213_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_9213_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_9213_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8683" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8683" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8683" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8683" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest9213" />
            <Trigger param="Quests.Quest8683" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest9348" text="g4_Quest_9348_9348questtitle">
        <!--Quest Chained9348-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest9348 
	 -> it is triggered when the attached quest 9213 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest9213" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest9213" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest9213" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest9213" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest9348" />
            <Action action="ProgressQuest3" variable="Quests.Quest9348" />
            <Trigger param="Quests.Quest9213" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_9348_9348questtitle" value="STEP1" tracker_text="g4_Quest_9350_s1tt" text="g4_Quest_9350_s1log" actor_trigger="7673" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_9348_9348questtitle" value="STEP2" tracker_text="g4_Quest_9371_s1tt" text="g4_Quest_9371_s1log" actor_trigger="9376" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_9348_9348questtitle" value="STEP3" tracker_text="g4_Quest_9519_s1tt" text="g4_Quest_9519_s1log" actor_trigger="7673" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_9348_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_9348_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_9348_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_9348_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest9213" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest9213" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest9213" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest9213" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest9348" />
            <Trigger param="Quests.Quest9213" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest9585" text="g4_Quest_9585_9585questtitle">
        <!--Quest Chained9585-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest9585 
	 -> it is triggered when the attached quest 9348 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest9348" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest9348" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest9348" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest9348" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest9585" />
            <Action action="ProgressQuest1" variable="Quests.Quest9585" />
            <Trigger param="Quests.Quest9348" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_9585_9585questtitle" value="STEP1" tracker_text="g4_Quest_9591_s1tt" text="g4_Quest_9591_s1log" actor_trigger="7739" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_9585_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_9585_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_9585_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_9585_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest9348" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest9348" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest9348" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest9348" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest9585" />
            <Trigger param="Quests.Quest9348" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest25284" text="g4_Quest_25284_25284questtitle">
        <!--Quest NPC25284-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_25284_25284questtitle" value="STEP1" tracker_text="g4_Quest_25289_s1tt" text="g4_Quest_25289_s1log" actor_trigger="18582" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_25284_25284questtitle" value="STEP2" tracker_text="g4_Quest_25294_s1tt" text="g4_Quest_25294_s1log" actor_trigger="18582" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_25284_25284questtitle" value="STEP3" tracker_text="g4_Quest_25299_s1tt" text="g4_Quest_25299_s1log" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_25284_25284questtitle" value="STEP4" tracker_text="g4_Quest_25304_s1tt" text="g4_Quest_25304_s1log" actor_trigger="7691" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_25284_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_25284_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_25284_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_25284_FinishedLog4" />
        <Event>
            <Test type="AND">
                <Operand1 type="OR">
                    <Operand1 variable="Quests.Quest1243" type="IN">
                        <Value tag="FINISHED_1" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest1243" type="IN">
                            <Value tag="FINISHED_2" />
                        </Operand1>
                        <Operand2 type="OR">
                            <Operand1 variable="Quests.Quest1243" type="IN">
                                <Value tag="FINISHED_3" />
                            </Operand1>
                            <Operand2 variable="Quests.Quest1243" type="IN">
                                <Value tag="FINISHED_4" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest9585" type="IN">
                        <Value tag="FINISHED_1" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest9585" type="IN">
                            <Value tag="FINISHED_2" />
                        </Operand1>
                        <Operand2 type="OR">
                            <Operand1 variable="Quests.Quest9585" type="IN">
                                <Value tag="FINISHED_3" />
                            </Operand1>
                            <Operand2 variable="Quests.Quest9585" type="IN">
                                <Value tag="FINISHED_4" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest25284" />
            <Trigger param="Quests.Quest1243" type="VariableChange" />
            <Trigger param="Quests.Quest9585" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest25345" text="g4_Quest_25345_25345questtitle">
        <!--Quest NPC25345-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest25345 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="25364" type="Kill" />
            <Action action="Decrease" variable="Quest25345_QE_25355_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest25345 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest25345" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest25345_QE_25355_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest25345" />
            <Trigger param="Quest25345_QE_25355_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest25345 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest25345" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.25364" />
            <Trigger param="Quests.Quest25345" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_25345_25345questtitle" value="STEP1" tracker_text="g4_Quest_25355_s1tt" text="g4_Quest_25355_s1log">
            <SubStep variable="Quest25345_QE_25355_RevCounter_1" count="1" tracker_text="g4_Quest_25355_1" actor_trigger="25364">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_25345_25345questtitle" value="STEP2" tracker_text="g4_Quest_25355_s2tt" text="g4_Quest_25355_s2log" show_log="false" show_tracker="true" actor_trigger="30783">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_25355_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_25345_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_25345_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_25345_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_25345_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest25284" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest25284" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest25284" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest25284" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest25345" />
            <Trigger param="Quests.Quest25284" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest25383" text="g4_Quest_25383_25383questtitle">
        <!--Quest NPC25383-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest25383 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="25407" type="Kill" />
            <Action action="Decrease" variable="Quest25383_QE_25398_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest25383 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest25383" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest25383_QE_25398_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest25383" />
            <Trigger param="Quest25383_QE_25398_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest25383 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest25383" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.25407" />
            <Trigger param="Quests.Quest25383" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_25383_25383questtitle" value="STEP1" tracker_text="g4_Quest_25398_s1tt" text="g4_Quest_25398_s1log">
            <SubStep variable="Quest25383_QE_25398_RevCounter_1" count="1" tracker_text="g4_Quest_25398_1" actor_trigger="25407">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_25383_25383questtitle" value="STEP2" tracker_text="g4_Quest_25398_s2tt" text="g4_Quest_25398_s2log" show_log="false" show_tracker="true" actor_trigger="7616">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_25398_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_25383_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_25383_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_25383_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_25383_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest25345" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest25345" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest25345" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest25345" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest25383" />
            <Trigger param="Quests.Quest25345" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest30979" text="g4_Quest_30979_30979questtitle">
        <!--Quest NPC30979-->
        <!--step - wait in case of Step=Step1-->
        <Step tracker_title="g4_Quest_30979_30979questtitle" value="STEP1" tracker_text="g4_Quest_30988_s1tt" text="g4_Quest_30988_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_30988_s1tt" />
        </Step>
        <!--Event for the Quest Quest30979 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest30979" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest30979.Folder30993" />
            <Trigger param="Quests.Quest30979" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest30979 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest30979" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest30979.Folder30998" />
            <Trigger param="Quests.Quest30979" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest30979 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest30979" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest30979.Folder30998" />
            <Trigger param="Quests.Quest30979" type="VariableChange" />
        </Event>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_30979_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_30979_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_30979_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_30979_FinishedLog4" />
    </Quest>
    <!--While the people in the crowd cannot be talked to, they will have to 'beckon' text reflecting the situation ('boo', 'burn her!', 'she's innocent', 'hang Frobad', etc)-->
    <Quest main="true" name="Quest11938" text="g4_Quest_11938_11938questtitle">
        <!--Quest NPC11938-->
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest11938" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest12941" />
            <Action action="ProgressQuest18" variable="Quests.Quest12941" />
            <Action action="ActivateQuest" variable="Quests.Quest12943" />
            <Action action="ProgressQuest18" variable="Quests.Quest12943" />
            <Trigger param="Quests.Quest11938" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step1-->
        <Step tracker_title="g4_Quest_11938_11938questtitle" value="STEP1" tracker_text="g4_Quest_12939_srtt" text="g4_Quest_12939_srlog">
            <Quest main="false" name="Quest12941" text="g4_Quest_12941_12941questtitle">
                <!--Quest SubQuest12941-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_12941_12941questtitle" value="STEP1" tracker_text="g4_Quest_12949_s1tt" text="g4_Quest_12949_s1log" actor_trigger="7622" />
                <!--Event for the Quest Quest12941 
	 -> it activates the folder-->
                <Event>
                    <Test variable="Quests.Quest12941" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="ActivateFolder" variable="Quests.Quest12941.Folder18537" />
                    <Trigger param="Quests.Quest12941" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest12941 
	 -> it Deactivates the folder-->
                <Event>
                    <Test variable="Quests.Quest12941" type="IN">
                        <Value tag="STEP2" />
                    </Test>
                    <Action action="DeactivateFolder" variable="Quests.Quest12941.Folder18537" />
                    <Trigger param="Quests.Quest12941" type="VariableChange" />
                </Event>
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_12941_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest12943" text="g4_Quest_12943_12943questtitle">
                <!--Quest SubQuest12943-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_12943_12943questtitle" value="STEP1" tracker_text="g4_Quest_12960_s1tt" text="g4_Quest_12960_s1log" actor_trigger="7637" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_12943_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_11938_11938questtitle" value="STEP2" tracker_text="g4_Quest_12939_s2tt" text="g4_Quest_12939_s2log" show_log="false" show_tracker="true" actor_trigger="12253">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_12939_s2tt" />
        </Step>
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_11938_11938questtitle" value="STEP3" tracker_text="g4_Quest_12020_s1tt" text="g4_Quest_12020_s1log" actor_trigger="7742" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step5-->
        <Step tracker_title="g4_Quest_11938_11938questtitle" value="STEP5" tracker_text="g4_Quest_12066_s1tt" text="g4_Quest_12066_s1log" actor_trigger="12253" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step7-->
        <Step tracker_title="g4_Quest_11938_11938questtitle" value="STEP7" tracker_text="g4_Quest_12082_s1tt" text="g4_Quest_12082_s1log" actor_trigger="7589" />
        <!--Event for the Quest Quest11938 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest11938" type="IN">
                <Value tag="STEP7" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest11938.Folder13102" />
            <Trigger param="Quests.Quest11938" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest11938 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest11938" type="IN">
                <Value tag="STEP8" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest11938.Folder13102" />
            <Trigger param="Quests.Quest11938" type="VariableChange" />
        </Event>
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step9-->
        <!--Event for each Mob the Quest Quest11938 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="12881" type="Kill" />
            <Action action="Decrease" variable="Quest11938_QE_12100_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest11938 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest11938" type="IN">
                    <Value tag="STEP9" />
                </Operand1>
                <Operand2 variable="Quest11938_QE_12100_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest_BranchChoice_12091" variable="Quests.Quest11938" />
            <Action action="ActivateDialog" variable="Dialog_12103" />
            <Trigger param="Quest11938_QE_12100_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_11938_11938questtitle" value="STEP9" tracker_text="g4_Quest_12100_s1tt" text="g4_Quest_12100_s1log">
            <SubStep variable="Quest11938_QE_12100_RevCounter_1" count="1" tracker_text="g4_Quest_12100_1" actor_trigger="12881">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step10-->
        <Step tracker_title="g4_Quest_11938_11938questtitle" value="STEP10" tracker_text="g4_Quest_12100_s2tt" text="g4_Quest_12100_s2log" show_log="false" show_tracker="true" actor_trigger="7589">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_12100_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step11-->
        <Step tracker_title="g4_Quest_11938_11938questtitle" value="STEP11" tracker_text="g4_Quest_12854_s1tt" text="g4_Quest_12854_s1log" actor_trigger="12253" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step13-->
        <Step tracker_title="g4_Quest_11938_11938questtitle" value="STEP13" tracker_text="g4_Quest_12141_s1tt" text="g4_Quest_12141_s1log" actor_trigger="7589" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step14-->
        <!--Event for each Mob the Quest Quest11938 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="13065" type="Kill" />
            <Action action="Decrease" variable="Quest11938_QE_12904_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest11938 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest11938" type="IN">
                    <Value tag="STEP14" />
                </Operand1>
                <Operand2 variable="Quest11938_QE_12904_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest_BranchChoice_12088" variable="Quests.Quest11938" />
            <Action action="ActivateDialog" variable="Dialog_12907" />
            <Trigger param="Quest11938_QE_12904_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_11938_11938questtitle" value="STEP14" tracker_text="g4_Quest_12904_s1tt" text="g4_Quest_12904_s1log">
            <SubStep variable="Quest11938_QE_12904_RevCounter_1" count="1" tracker_text="g4_Quest_12904_1" actor_trigger="13065">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step15-->
        <Step tracker_title="g4_Quest_11938_11938questtitle" value="STEP15" tracker_text="g4_Quest_12904_s2tt" text="g4_Quest_12904_s2log" show_log="false" show_tracker="true" actor_trigger="7589">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_12904_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step16-->
        <Step tracker_title="g4_Quest_11938_11938questtitle" value="STEP16" tracker_text="g4_Quest_12231_s1tt" text="g4_Quest_12231_s1log" actor_trigger="12253" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_11938_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_11938_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_11938_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_11938_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest6205" text="g4_Quest_6205_6205questtitle">
        <!--Quest NPC6205-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_6205_6205questtitle" value="STEP1" tracker_text="g4_Quest_6360_s1tt" text="g4_Quest_6360_s1log" actor_trigger="10821" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_6205_6205questtitle" value="STEP2" tracker_text="g4_Quest_6239_s1tt" text="g4_Quest_6239_s1log" actor_trigger="10801" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_6205_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_6205_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_6205_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_6205_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest16410" text="g4_Quest_16410_16410questtitle">
        <!--Quest NPC16410-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest16410 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="16519" type="Kill" />
            <Action action="Decrease" variable="Quest16410_QE_16480_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="16529" type="Kill" />
            <Action action="Decrease" variable="Quest16410_QE_16480_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest16410 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest16410" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest16410_QE_16480_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest16410" />
            <Action action="ActivateDialog" variable="Dialog_16483" />
            <Trigger param="Quest16410_QE_16480_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_16410_16410questtitle" value="STEP1" tracker_text="g4_Quest_16480_s1tt" text="g4_Quest_16480_s1log">
            <SubStep variable="Quest16410_QE_16480_RevCounter_1" count="1" tracker_text="g4_Quest_16480_1" actor_trigger="16529">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_16410_16410questtitle" value="STEP2" tracker_text="g4_Quest_16480_s2tt" text="g4_Quest_16480_s2log" show_log="false" show_tracker="true" actor_trigger="8316">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_16480_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_16410_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_16410_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_16410_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_16410_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6205" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6205" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6205" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6205" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest16410" />
            <Trigger param="Quests.Quest6205" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest16539" text="g4_Quest_16539_16539questtitle">
        <!--Quest NPC16539-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest16539 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="16555" type="Take" />
            <Action action="Decrease" variable="Quest16539_QE_16543_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="16564" type="Take" />
            <Action action="Decrease" variable="Quest16539_QE_16543_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="16573" type="Take" />
            <Action action="Decrease" variable="Quest16539_QE_16543_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest16539 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest16539" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest16539_QE_16543_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest16539" />
            <Action action="ActivateDialog" variable="Dialog_16546" />
            <Trigger param="Quest16539_QE_16543_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_16539_16539questtitle" value="STEP1" tracker_text="g4_Quest_16543_s1tt" text="g4_Quest_16543_s1log">
            <SubStep variable="Quest16539_QE_16543_RevCounter_1" count="3" tracker_text="g4_Quest_16543_1" actor_trigger="16573">
                <Value tag="3_MORE" />
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_16539_16539questtitle" value="STEP2" tracker_text="g4_Quest_16543_s2tt" text="g4_Quest_16543_s2log" show_log="false" show_tracker="true" actor_trigger="8316">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_16543_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_16539_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_16539_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_16539_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_16539_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest16410" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest16410" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest16410" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest16410" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest16539" />
            <Trigger param="Quests.Quest16410" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest6287" text="g4_Quest_6287_6287questtitle">
        <!--Quest NPC6287-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_6287_6287questtitle" value="STEP1" tracker_text="g4_Quest_6292_s1tt" text="g4_Quest_6292_s1log" actor_trigger="10833" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_6287_6287questtitle" value="STEP2" tracker_text="g4_Quest_6451_s1tt" text="g4_Quest_6451_s1log" actor_trigger="8316" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_6287_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_6287_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_6287_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_6287_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest16539" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest16539" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest16539" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest16539" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest6287" />
            <Trigger param="Quests.Quest16539" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest6465" text="g4_Quest_6465_6465questtitle">
        <!--Quest NPC6465-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_6465_6465questtitle" value="STEP1" tracker_text="g4_Quest_6474_s1tt" text="g4_Quest_6474_s1log" actor_trigger="10855" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_6465_6465questtitle" value="STEP2" tracker_text="g4_Quest_6469_s1tt" text="g4_Quest_6469_s1log" actor_trigger="10833" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step3-->
        <!--Event for each Mob the Quest Quest6465 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="6558" type="Kill" />
            <Action action="Decrease" variable="Quest6465_QE_6479_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="6559" type="Kill" />
            <Action action="Decrease" variable="Quest6465_QE_6479_RevCounter_2" />
        </Event>
        <Event>
            <Trigger param="6560" type="Kill" />
            <Action action="Decrease" variable="Quest6465_QE_6479_RevCounter_2" />
        </Event>
        <Event>
            <Trigger param="6561" type="Kill" />
            <Action action="Decrease" variable="Quest6465_QE_6479_RevCounter_2" />
        </Event>
        <Event>
            <Trigger param="6562" type="Kill" />
            <Action action="Decrease" variable="Quest6465_QE_6479_RevCounter_2" />
        </Event>
        <!--Event for the Quest Quest6465 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest6465" type="IN">
                    <Value tag="STEP3" />
                </Operand1>
                <Operand2 type="AND">
                    <Operand1 variable="Quest6465_QE_6479_RevCounter_1" type="IN">
                        <Value tag="0_MORE" />
                    </Operand1>
                    <Operand2 variable="Quest6465_QE_6479_RevCounter_2" type="IN">
                        <Value tag="0_MORE" />
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ProgressQuest4" variable="Quests.Quest6465" />
            <Trigger param="Quest6465_QE_6479_RevCounter_1" type="VariableChange" />
            <Trigger param="Quest6465_QE_6479_RevCounter_2" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_6465_6465questtitle" value="STEP3" tracker_text="g4_Quest_6479_s1tt" text="g4_Quest_6479_s1log">
            <SubStep variable="Quest6465_QE_6479_RevCounter_1" count="1" tracker_text="g4_Quest_6479_1" actor_trigger="6558">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest6465_QE_6479_RevCounter_2" count="4" tracker_text="g4_Quest_6479_2" actor_trigger="6562">
                <Value tag="4_MORE" />
                <Value tag="3_MORE" />
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step4-->
        <Step tracker_title="g4_Quest_6465_6465questtitle" value="STEP4" tracker_text="g4_Quest_6479_s2tt" text="g4_Quest_6479_s2log" actor_trigger="10845" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_6465_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_6465_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_6465_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_6465_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6287" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6287" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6287" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6287" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest6465" />
            <Trigger param="Quests.Quest6287" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest16835" text="g4_Quest_16835_16835questtitle">
        <!--Quest NPC16835-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest16835 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="16884" type="Take" />
            <Action action="Decrease" variable="Quest16835_QE_16858_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest16835 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest16835" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest16835_QE_16858_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest16835" />
            <Action action="ActivateDialog" variable="Dialog_16861" />
            <Trigger param="Quest16835_QE_16858_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_16835_16835questtitle" value="STEP1" tracker_text="g4_Quest_16858_s1tt" text="g4_Quest_16858_s1log">
            <SubStep variable="Quest16835_QE_16858_RevCounter_1" count="1" tracker_text="g4_Quest_16858_1" actor_trigger="16884">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_16835_16835questtitle" value="STEP2" tracker_text="g4_Quest_16858_s2tt" text="g4_Quest_16858_s2log" show_log="false" show_tracker="true" actor_trigger="10845">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_16858_s2tt" />
        </Step>
        <!--Event for the Quest Quest16835 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest16835" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest16835.Folder16935" />
            <Trigger param="Quests.Quest16835" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest16835 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest16835" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest16835.Folder16935" />
            <Trigger param="Quests.Quest16835" type="VariableChange" />
        </Event>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_16835_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_16835_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_16835_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_16835_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6465" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6465" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6465" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6465" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest16835" />
            <Trigger param="Quests.Quest6465" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest16788" text="g4_Quest_16788_16788questtitle">
        <!--Quest NPC16788-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest16788 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="16817" type="Take" />
            <Action action="Decrease" variable="Quest16788_QE_16808_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest16788 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest16788" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest16788_QE_16808_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest16788" />
            <Trigger param="Quest16788_QE_16808_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest16788 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest16788" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.16817" />
            <Trigger param="Quests.Quest16788" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_16788_16788questtitle" value="STEP1" tracker_text="g4_Quest_16808_s1tt" text="g4_Quest_16808_s1log">
            <SubStep variable="Quest16788_QE_16808_RevCounter_1" count="1" tracker_text="g4_Quest_16808_1" actor_trigger="16817">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_16788_16788questtitle" value="STEP2" tracker_text="g4_Quest_16808_s2tt" text="g4_Quest_16808_s2log" show_log="false" show_tracker="true" actor_trigger="8316">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_16808_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_16788_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_16788_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_16788_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_16788_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6287" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6287" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6287" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6287" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest16788" />
            <Trigger param="Quests.Quest6287" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest16955" text="g4_Quest_16955_16955questtitle">
        <!--Quest NPC16955-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest16955 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="17017" type="Kill" />
            <Action action="Decrease" variable="Quest16955_QE_16988_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest16955 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest16955" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest16955_QE_16988_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest16955" />
            <Action action="ActivateDialog" variable="Dialog_16991" />
            <Trigger param="Quest16955_QE_16988_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_16955_16955questtitle" value="STEP1" tracker_text="g4_Quest_16988_s1tt" text="g4_Quest_16988_s1log">
            <SubStep variable="Quest16955_QE_16988_RevCounter_1" count="1" tracker_text="g4_Quest_16988_1" actor_trigger="17017">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_16955_16955questtitle" value="STEP2" tracker_text="g4_Quest_16988_s2tt" text="g4_Quest_16988_s2log" show_log="false" show_tracker="true" actor_trigger="10845">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_16988_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_16955_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_16955_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_16955_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_16955_FinishedLog4" />
        <Event>
            <Test type="AND">
                <Operand1 type="OR">
                    <Operand1 variable="Quests.Quest16835" type="IN">
                        <Value tag="FINISHED_1" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest16835" type="IN">
                            <Value tag="FINISHED_2" />
                        </Operand1>
                        <Operand2 type="OR">
                            <Operand1 variable="Quests.Quest16835" type="IN">
                                <Value tag="FINISHED_3" />
                            </Operand1>
                            <Operand2 variable="Quests.Quest16835" type="IN">
                                <Value tag="FINISHED_4" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest16788" type="IN">
                        <Value tag="FINISHED_1" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest16788" type="IN">
                            <Value tag="FINISHED_2" />
                        </Operand1>
                        <Operand2 type="OR">
                            <Operand1 variable="Quests.Quest16788" type="IN">
                                <Value tag="FINISHED_3" />
                            </Operand1>
                            <Operand2 variable="Quests.Quest16788" type="IN">
                                <Value tag="FINISHED_4" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest16955" />
            <Trigger param="Quests.Quest16835" type="VariableChange" />
            <Trigger param="Quests.Quest16788" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest16599" text="g4_Quest_16599_16599questtitle">
        <!--Quest NPC16599-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest16599 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="16637" type="Take" />
            <Action action="Decrease" variable="Quest16599_QE_16603_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest16599 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest16599" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest16599_QE_16603_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest16599" />
            <Action action="ActivateDialog" variable="Dialog_16606" />
            <Trigger param="Quest16599_QE_16603_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_16599_16599questtitle" value="STEP1" tracker_text="g4_Quest_16603_s1tt" text="g4_Quest_16603_s1log">
            <SubStep variable="Quest16599_QE_16603_RevCounter_1" count="1" tracker_text="g4_Quest_16603_1">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_16599_16599questtitle" value="STEP2" tracker_text="g4_Quest_16603_s2tt" text="g4_Quest_16603_s2log" show_log="false" show_tracker="true" actor_trigger="10801">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_16603_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_16599_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_16599_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_16599_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_16599_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6205" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6205" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6205" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6205" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest16599" />
            <Trigger param="Quests.Quest6205" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest16646" text="g4_Quest_16646_16646questtitle">
        <!--Quest NPC16646-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest16646 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="16659" type="Kill" />
            <Action action="Decrease" variable="Quest16646_QE_16650_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest16646 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest16646" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest16646_QE_16650_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest16646" />
            <Trigger param="Quest16646_QE_16650_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest16646 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest16646" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.16659" />
            <Trigger param="Quests.Quest16646" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_16646_16646questtitle" value="STEP1" tracker_text="g4_Quest_16650_s1tt" text="g4_Quest_16650_s1log">
            <SubStep variable="Quest16646_QE_16650_RevCounter_1" count="1" tracker_text="g4_Quest_16650_1" actor_trigger="16659">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_16646_16646questtitle" value="STEP2" tracker_text="g4_Quest_16650_s2tt" text="g4_Quest_16650_s2log" show_log="false" show_tracker="true" actor_trigger="10801">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_16650_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_16646_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_16646_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_16646_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_16646_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest16599" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest16599" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest16599" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest16599" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest16646" />
            <Trigger param="Quests.Quest16599" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest17027" text="g4_Quest_17027_17027questtitle">
        <!--Quest NPC17027-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest17027 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="17072" type="Kill" />
            <Action action="Decrease" variable="Quest17027_QE_17056_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest17027 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest17027" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest17027_QE_17056_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest17027" />
            <Trigger param="Quest17027_QE_17056_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest17027 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest17027" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.17072" />
            <Trigger param="Quests.Quest17027" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_17027_17027questtitle" value="STEP1" tracker_text="g4_Quest_17056_s1tt" text="g4_Quest_17056_s1log">
            <SubStep variable="Quest17027_QE_17056_RevCounter_1" count="1" tracker_text="g4_Quest_17056_1" actor_trigger="17072">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_17027_17027questtitle" value="STEP2" tracker_text="g4_Quest_17056_s2tt" text="g4_Quest_17056_s2log" show_log="false" show_tracker="true" actor_trigger="8316">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_17056_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_17027_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_17027_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_17027_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_17027_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest16788" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest16788" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest16788" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest16788" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest17027" />
            <Trigger param="Quests.Quest16788" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest6751" text="g4_Quest_6751_6751questtitle">
        <!--Quest NPC6751-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest6751 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="16184" type="Kill" />
            <Action action="Decrease" variable="Quest6751_QE_16172_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest6751 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest6751" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest6751_QE_16172_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest3" variable="Quests.Quest6751" />
            <Trigger param="Quest6751_QE_16172_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest6751 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest6751" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.16184" />
            <Trigger param="Quests.Quest6751" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_6751_6751questtitle" value="STEP1" tracker_text="g4_Quest_16172_s1tt" text="g4_Quest_16172_s1log">
            <SubStep variable="Quest6751_QE_16172_RevCounter_1" count="1" tracker_text="g4_Quest_16172_1">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_6751_6751questtitle" value="STEP2" tracker_text="g4_Quest_16172_s2tt" text="g4_Quest_16172_s2log" actor_trigger="10821" />
        <!--Event for the Quest Quest6751 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest6751" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest6751.Folder17419" />
            <Trigger param="Quests.Quest6751" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest6751 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest6751" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest6751.Folder17419" />
            <Trigger param="Quests.Quest6751" type="VariableChange" />
        </Event>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_6751_6751questtitle" value="STEP3" tracker_text="g4_Quest_6855_s1tt" text="g4_Quest_6855_s1log" actor_trigger="8316" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_6751_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_6751_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_6751_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_6751_FinishedLog4" />
        <Event>
            <Test type="AND">
                <Operand1 type="OR">
                    <Operand1 variable="Quests.Quest17027" type="IN">
                        <Value tag="FINISHED_1" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest17027" type="IN">
                            <Value tag="FINISHED_2" />
                        </Operand1>
                        <Operand2 type="OR">
                            <Operand1 variable="Quests.Quest17027" type="IN">
                                <Value tag="FINISHED_3" />
                            </Operand1>
                            <Operand2 variable="Quests.Quest17027" type="IN">
                                <Value tag="FINISHED_4" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6465" type="IN">
                        <Value tag="FINISHED_1" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6465" type="IN">
                            <Value tag="FINISHED_2" />
                        </Operand1>
                        <Operand2 type="OR">
                            <Operand1 variable="Quests.Quest6465" type="IN">
                                <Value tag="FINISHED_3" />
                            </Operand1>
                            <Operand2 variable="Quests.Quest6465" type="IN">
                                <Value tag="FINISHED_4" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest6751" />
            <Trigger param="Quests.Quest17027" type="VariableChange" />
            <Trigger param="Quests.Quest6465" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest6996" text="g4_Quest_6996_6996questtitle">
        <!--Quest NPC6996-->
        <!--step - deliver in case of Step=Step1-->
        <Step tracker_title="g4_Quest_6996_6996questtitle" value="STEP1" tracker_text="g4_Quest_7017_s1tt" text="g4_Quest_7017_s1log" actor_trigger="10877" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_6996_6996questtitle" value="STEP2" tracker_text="g4_Quest_16100_s1tt" text="g4_Quest_16100_s1log" actor_trigger="10801" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_6996_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_6996_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_6996_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_6996_FinishedLog4" />
        <Event>
            <Test type="AND">
                <Operand1 type="OR">
                    <Operand1 variable="Quests.Quest16646" type="IN">
                        <Value tag="FINISHED_1" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest16646" type="IN">
                            <Value tag="FINISHED_2" />
                        </Operand1>
                        <Operand2 type="OR">
                            <Operand1 variable="Quests.Quest16646" type="IN">
                                <Value tag="FINISHED_3" />
                            </Operand1>
                            <Operand2 variable="Quests.Quest16646" type="IN">
                                <Value tag="FINISHED_4" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6751" type="IN">
                        <Value tag="FINISHED_1" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6751" type="IN">
                            <Value tag="FINISHED_2" />
                        </Operand1>
                        <Operand2 type="OR">
                            <Operand1 variable="Quests.Quest6751" type="IN">
                                <Value tag="FINISHED_3" />
                            </Operand1>
                            <Operand2 variable="Quests.Quest6751" type="IN">
                                <Value tag="FINISHED_4" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest6996" />
            <Trigger param="Quests.Quest16646" type="VariableChange" />
            <Trigger param="Quests.Quest6751" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest7109" text="g4_Quest_7109_7109questtitle">
        <!--Quest NPC7109-->
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest7109" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest7115" />
            <Action action="ProgressQuest6" variable="Quests.Quest7115" />
            <Action action="ActivateQuest" variable="Quests.Quest7117" />
            <Action action="ProgressQuest6" variable="Quests.Quest7117" />
            <Action action="ActivateQuest" variable="Quests.Quest7119" />
            <Action action="ProgressQuest6" variable="Quests.Quest7119" />
            <Trigger param="Quests.Quest7109" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step1-->
        <Step tracker_title="g4_Quest_7109_7109questtitle" value="STEP1" tracker_text="g4_Quest_7113_srtt" text="g4_Quest_7113_srlog">
            <Quest main="false" name="Quest7115" text="g4_Quest_7115_7115questtitle">
                <!--Quest SubQuest7115-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_7115_7115questtitle" value="STEP1" tracker_text="g4_Quest_7138_s1tt" text="g4_Quest_7138_s1log" actor_trigger="10801" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_7115_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest7117" text="g4_Quest_7117_7117questtitle">
                <!--Quest SubQuest7117-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_7117_7117questtitle" value="STEP1" tracker_text="g4_Quest_7133_s1tt" text="g4_Quest_7133_s1log" actor_trigger="10821" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_7117_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest7119" text="g4_Quest_7119_7119questtitle">
                <!--Quest SubQuest7119-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_7119_7119questtitle" value="STEP1" tracker_text="g4_Quest_7128_s1tt" text="g4_Quest_7128_s1log" actor_trigger="8316" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_7119_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_7109_7109questtitle" value="STEP2" tracker_text="g4_Quest_7113_s2tt" text="g4_Quest_7113_s2log" show_log="false" show_tracker="true" actor_trigger="10845">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_7113_s2tt" />
        </Step>
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_7109_7109questtitle" value="STEP3" tracker_text="g4_Quest_7416_s1tt" text="g4_Quest_7416_s1log" actor_trigger="10801" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_7109_7109questtitle" value="STEP4" tracker_text="g4_Quest_7434_s1tt" text="g4_Quest_7434_s1log" actor_trigger="10821" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step5-->
        <!--Event for each Mob the Quest Quest7109 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="7517" type="Kill" />
            <Action action="Decrease" variable="Quest7109_QE_7508_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest7109 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest7109" type="IN">
                    <Value tag="STEP5" />
                </Operand1>
                <Operand2 variable="Quest7109_QE_7508_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest6" variable="Quests.Quest7109" />
            <Trigger param="Quest7109_QE_7508_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest7109 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest7109" type="IN">
                <Value tag="STEP5" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.7517" />
            <Trigger param="Quests.Quest7109" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_7109_7109questtitle" value="STEP5" tracker_text="g4_Quest_7508_s1tt" text="g4_Quest_7508_s1log">
            <SubStep variable="Quest7109_QE_7508_RevCounter_1" count="1" tracker_text="g4_Quest_7508_1" actor_trigger="7517">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step6-->
        <Step tracker_title="g4_Quest_7109_7109questtitle" value="STEP6" tracker_text="g4_Quest_7508_s2tt" text="g4_Quest_7508_s2log" show_log="false" show_tracker="true" actor_trigger="10821">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_7508_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_7109_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_7109_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_7109_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_7109_FinishedLog4" />
        <Event>
            <Test type="AND">
                <Operand1 type="OR">
                    <Operand1 variable="Quests.Quest16955" type="IN">
                        <Value tag="FINISHED_1" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest16955" type="IN">
                            <Value tag="FINISHED_2" />
                        </Operand1>
                        <Operand2 type="OR">
                            <Operand1 variable="Quests.Quest16955" type="IN">
                                <Value tag="FINISHED_3" />
                            </Operand1>
                            <Operand2 variable="Quests.Quest16955" type="IN">
                                <Value tag="FINISHED_4" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6996" type="IN">
                        <Value tag="FINISHED_1" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6996" type="IN">
                            <Value tag="FINISHED_2" />
                        </Operand1>
                        <Operand2 type="OR">
                            <Operand1 variable="Quests.Quest6996" type="IN">
                                <Value tag="FINISHED_3" />
                            </Operand1>
                            <Operand2 variable="Quests.Quest6996" type="IN">
                                <Value tag="FINISHED_4" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest7109" />
            <Trigger param="Quests.Quest16955" type="VariableChange" />
            <Trigger param="Quests.Quest6996" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest8303" text="g4_Quest_8303_8303questtitle">
        <!--Quest NPC8303-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest8303 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="8353" type="Kill" />
            <Action action="Decrease" variable="Quest8303_QE_8307_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="8354" type="Kill" />
            <Action action="Decrease" variable="Quest8303_QE_8307_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="8355" type="Kill" />
            <Action action="Decrease" variable="Quest8303_QE_8307_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="8356" type="Kill" />
            <Action action="Decrease" variable="Quest8303_QE_8307_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="8357" type="Kill" />
            <Action action="Decrease" variable="Quest8303_QE_8307_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="8364" type="Kill" />
            <Action action="Decrease" variable="Quest8303_QE_8307_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest8303 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest8303" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest8303_QE_8307_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest8303" />
            <Trigger param="Quest8303_QE_8307_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest8303 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest8303" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.8353" />
            <Action action="SpawnEntity" variable="Entities.8354" />
            <Action action="SpawnEntity" variable="Entities.8355" />
            <Action action="SpawnEntity" variable="Entities.8356" />
            <Action action="SpawnEntity" variable="Entities.8357" />
            <Action action="SpawnEntity" variable="Entities.8364" />
            <Trigger param="Quests.Quest8303" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_8303_8303questtitle" value="STEP1" tracker_text="g4_Quest_8307_s1tt" text="g4_Quest_8307_s1log">
            <SubStep variable="Quest8303_QE_8307_RevCounter_1" count="6" tracker_text="g4_Quest_8307_1" actor_trigger="8364">
                <Value tag="6_MORE" />
                <Value tag="5_MORE" />
                <Value tag="4_MORE" />
                <Value tag="3_MORE" />
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_8303_8303questtitle" value="STEP2" tracker_text="g4_Quest_8307_s2tt" text="g4_Quest_8307_s2log" show_log="false" show_tracker="true" actor_trigger="8316">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_8307_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_8303_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_8303_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_8303_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_8303_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest7109" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest7109" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest7109" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest7109" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest8303" />
            <Trigger param="Quests.Quest7109" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest8406" text="g4_Quest_8406_8406questtitle">
        <!--Quest NPC8406-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_8406_8406questtitle" value="STEP1" tracker_text="g4_Quest_8515_s1tt" text="g4_Quest_8515_s1log" actor_trigger="8525" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_8406_8406questtitle" value="STEP2" tracker_text="g4_Quest_26027_s1tt" text="g4_Quest_26027_s1log" actor_trigger="8525" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_8406_8406questtitle" value="STEP3" tracker_text="g4_Quest_26032_s1tt" text="g4_Quest_26032_s1log" actor_trigger="8525" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_8406_8406questtitle" value="STEP4" tracker_text="g4_Quest_26045_s1tt" text="g4_Quest_26045_s1log" actor_trigger="8316" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_8406_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_8406_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_8406_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_8406_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8303" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8303" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8303" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8303" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest8406" />
            <Trigger param="Quests.Quest8303" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest19623" text="g4_Quest_19623_19623questtitle">
        <!--Quest Chained19623-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest19623 
	 -> it is triggered when the attached quest 11938 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest11938" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest11938" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest11938" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest11938" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest19623" />
            <Action action="ProgressQuest6" variable="Quests.Quest19623" />
            <Trigger param="Quests.Quest11938" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_19623_19623questtitle" value="STEP1" tracker_text="g4_Quest_19729_s1tt" text="g4_Quest_19729_s1log" actor_trigger="18593" />
        <!--Event for the Quest Quest19623 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest19623" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest19623.Folder21706" />
            <Trigger param="Quests.Quest19623" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest19623 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest19623" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest19623.Folder21706" />
            <Trigger param="Quests.Quest19623" type="VariableChange" />
        </Event>
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step2-->
        <!--Event for each Mob the Quest Quest19623 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="19798" type="Kill" />
            <Action action="Decrease" variable="Quest19623_QE_19734_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest19623 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest19623" type="IN">
                    <Value tag="STEP2" />
                </Operand1>
                <Operand2 variable="Quest19623_QE_19734_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest6" variable="Quests.Quest19623" />
            <Trigger param="Quest19623_QE_19734_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest19623 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest19623" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.19798" />
            <Trigger param="Quests.Quest19623" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_19623_19623questtitle" value="STEP2" tracker_text="g4_Quest_19734_s1tt" text="g4_Quest_19734_s1log">
            <SubStep variable="Quest19623_QE_19734_RevCounter_1" count="1" tracker_text="g4_Quest_19734_1" actor_trigger="19798">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step3-->
        <Step tracker_title="g4_Quest_19623_19623questtitle" value="STEP3" tracker_text="g4_Quest_19734_s2tt" text="g4_Quest_19734_s2log" show_log="false" show_tracker="true" actor_trigger="18593">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_19734_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step4-->
        <!--Event for each QuestItem the Quest Quest19623 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="19884" type="Take" />
            <Action action="Decrease" variable="Quest19623_QE_19767_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest19623 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest19623" type="IN">
                    <Value tag="STEP4" />
                </Operand1>
                <Operand2 variable="Quest19623_QE_19767_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest6" variable="Quests.Quest19623" />
            <Trigger param="Quest19623_QE_19767_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_19623_19623questtitle" value="STEP4" tracker_text="g4_Quest_19767_s1tt" text="g4_Quest_19767_s1log">
            <SubStep variable="Quest19623_QE_19767_RevCounter_1" count="1" tracker_text="g4_Quest_19767_1" actor_trigger="19884">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step5-->
        <Step tracker_title="g4_Quest_19623_19623questtitle" value="STEP5" tracker_text="g4_Quest_19767_s2tt" text="g4_Quest_19767_s2log" actor_trigger="19816" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step6-->
        <Step tracker_title="g4_Quest_19623_19623questtitle" value="STEP6" tracker_text="g4_Quest_19784_s1tt" text="g4_Quest_19784_s1log" actor_trigger="18593" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_19623_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_19623_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_19623_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_19623_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest11938" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest11938" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest11938" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest11938" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest19623" />
            <Trigger param="Quests.Quest11938" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest21170" text="g4_Quest_21170_21170questtitle">
        <!--Quest Chained21170-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest21170 
	 -> it is triggered when the attached quest 19623 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest19623" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest19623" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest19623" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest19623" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest21170" />
            <Action action="ProgressQuest2" variable="Quests.Quest21170" />
            <Trigger param="Quests.Quest19623" type="VariableChange" />
        </Event>
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest21170 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="21508" type="Kill" />
            <Action action="Decrease" variable="Quest21170_QE_21490_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest21170 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest21170" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest21170_QE_21490_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest21170" />
            <Trigger param="Quest21170_QE_21490_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest21170 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest21170" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.21508" />
            <Trigger param="Quests.Quest21170" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_21170_21170questtitle" value="STEP1" tracker_text="g4_Quest_21490_s1tt" text="g4_Quest_21490_s1log">
            <SubStep variable="Quest21170_QE_21490_RevCounter_1" count="1" tracker_text="g4_Quest_21490_1" actor_trigger="21508">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_21170_21170questtitle" value="STEP2" tracker_text="g4_Quest_21490_s2tt" text="g4_Quest_21490_s2log" show_log="false" show_tracker="true" actor_trigger="18593">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_21490_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_21170_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_21170_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_21170_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_21170_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest19623" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest19623" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest19623" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest19623" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest21170" />
            <Trigger param="Quests.Quest19623" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest21619" text="g4_Quest_21619_21619questtitle">
        <!--Quest Chained21619-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest21619 
	 -> it is triggered when the attached quest 21170 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest21170" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest21170" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest21170" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest21170" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest21619" />
            <Action action="ProgressQuest2" variable="Quests.Quest21619" />
            <Trigger param="Quests.Quest21170" type="VariableChange" />
        </Event>
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest21619 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="21648" type="Kill" />
            <Action action="Decrease" variable="Quest21619_QE_21626_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest21619 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest21619" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest21619_QE_21626_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest21619" />
            <Trigger param="Quest21619_QE_21626_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest21619 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest21619" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.21648" />
            <Trigger param="Quests.Quest21619" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_21619_21619questtitle" value="STEP1" tracker_text="g4_Quest_21626_s1tt" text="g4_Quest_21626_s1log">
            <SubStep variable="Quest21619_QE_21626_RevCounter_1" count="1" tracker_text="g4_Quest_21626_1" actor_trigger="21648">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_21619_21619questtitle" value="STEP2" tracker_text="g4_Quest_21626_s2tt" text="g4_Quest_21626_s2log" show_log="false" show_tracker="true" actor_trigger="18593">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_21626_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_21619_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_21619_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_21619_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_21619_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest21170" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest21170" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest21170" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest21170" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest21619" />
            <Trigger param="Quests.Quest21170" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest21835" text="g4_Quest_21835_21835questtitle">
        <!--Quest Chained21835-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest21835 
	 -> it is triggered when the attached quest 21619 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest21619" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest21619" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest21619" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest21619" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest21835" />
            <Action action="ProgressQuest4" variable="Quests.Quest21835" />
            <Trigger param="Quests.Quest21619" type="VariableChange" />
        </Event>
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest21835 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="21888" type="Kill" />
            <Action action="Decrease" variable="Quest21835_QE_21849_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest21835 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest21835" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest21835_QE_21849_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest4" variable="Quests.Quest21835" />
            <Trigger param="Quest21835_QE_21849_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest21835 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest21835" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.21888" />
            <Trigger param="Quests.Quest21835" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_21835_21835questtitle" value="STEP1" tracker_text="g4_Quest_21849_s1tt" text="g4_Quest_21849_s1log">
            <SubStep variable="Quest21835_QE_21849_RevCounter_1" count="1" tracker_text="g4_Quest_21849_1" actor_trigger="21888">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_21835_21835questtitle" value="STEP2" tracker_text="g4_Quest_21849_s2tt" text="g4_Quest_21849_s2log" show_log="false" show_tracker="true" actor_trigger="18593">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_21849_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest21835" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest21860" />
            <Action action="ProgressQuest4" variable="Quests.Quest21860" />
            <Action action="ActivateQuest" variable="Quests.Quest21862" />
            <Action action="ProgressQuest4" variable="Quests.Quest21862" />
            <Trigger param="Quests.Quest21835" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step3-->
        <Step tracker_title="g4_Quest_21835_21835questtitle" value="STEP3" tracker_text="g4_Quest_21858_srtt" text="g4_Quest_21858_srlog">
            <Quest main="false" name="Quest21860" text="g4_Quest_21860_21860questtitle">
                <!--Quest SubQuest21860-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_21860_21860questtitle" value="STEP1" tracker_text="g4_Quest_21868_s1tt" text="g4_Quest_21868_s1log" actor_trigger="22255" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_21860_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest21862" text="g4_Quest_21862_21862questtitle">
                <!--Quest SubQuest21862-->
                <!--step - kill in case of Step=Step1-->
                <!--Event for each Mob the Quest Quest21862 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="21916" type="Kill" />
                    <Action action="Decrease" variable="Quest21862_QE_21873_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest21862 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest21862" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 variable="Quest21862_QE_21873_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest2" variable="Quests.Quest21862" />
                    <Trigger param="Quest21862_QE_21873_RevCounter_1" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest21862 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest21862" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.21916" />
                    <Trigger param="Quests.Quest21862" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_21862_21862questtitle" value="STEP1" tracker_text="g4_Quest_21873_s1tt" text="g4_Quest_21873_s1log">
                    <SubStep variable="Quest21862_QE_21873_RevCounter_1" count="1" tracker_text="g4_Quest_21873_1" actor_trigger="21916">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - talk to in case of Step=Step2-->
                <Step tracker_title="g4_Quest_21862_21862questtitle" value="STEP2" tracker_text="g4_Quest_21873_s2tt" text="g4_Quest_21873_s2log" actor_trigger="18603" />
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_21862_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_21835_21835questtitle" value="STEP4" tracker_text="g4_Quest_21858_s2tt" text="g4_Quest_21858_s2log" show_log="false" show_tracker="true" actor_trigger="18603">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_21858_s2tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_21835_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_21835_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_21835_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_21835_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest21619" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest21619" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest21619" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest21619" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest21835" />
            <Trigger param="Quests.Quest21619" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest22190" text="g4_Quest_22190_22190questtitle">
        <!--Quest Chained22190-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest22190 
	 -> it is triggered when the attached quest 21835 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest21835" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest21835" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest21835" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest21835" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest22190" />
            <Action action="ProgressQuest2" variable="Quests.Quest22190" />
            <Trigger param="Quests.Quest21835" type="VariableChange" />
        </Event>
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest22190 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="22275" type="Take" />
            <Action action="Decrease" variable="Quest22190_QE_22230_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest22190 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest22190" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest22190_QE_22230_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest22190" />
            <Trigger param="Quest22190_QE_22230_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest22190 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest22190" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.22275" />
            <Trigger param="Quests.Quest22190" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_22190_22190questtitle" value="STEP1" tracker_text="g4_Quest_22230_s1tt" text="g4_Quest_22230_s1log">
            <SubStep variable="Quest22190_QE_22230_RevCounter_1" count="1" tracker_text="g4_Quest_22230_1">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_22190_22190questtitle" value="STEP2" tracker_text="g4_Quest_22230_s2tt" text="g4_Quest_22230_s2log" show_log="false" show_tracker="true" actor_trigger="18603">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_22230_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_22190_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_22190_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_22190_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_22190_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest21835" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest21835" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest21835" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest21835" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest22190" />
            <Trigger param="Quests.Quest21835" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest22500" text="g4_Quest_22500_22500questtitle">
        <!--Quest Chained22500-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest22500 
	 -> it is triggered when the attached quest 22190 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest22190" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest22190" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest22190" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest22190" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest22500" />
            <Action action="ProgressQuest2" variable="Quests.Quest22500" />
            <Trigger param="Quests.Quest22190" type="VariableChange" />
        </Event>
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest22500" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest22519" />
            <Action action="ProgressQuest2" variable="Quests.Quest22519" />
            <Action action="ActivateQuest" variable="Quests.Quest22521" />
            <Action action="ProgressQuest2" variable="Quests.Quest22521" />
            <Trigger param="Quests.Quest22500" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step1-->
        <Step tracker_title="g4_Quest_22500_22500questtitle" value="STEP1" tracker_text="g4_Quest_22517_srtt" text="g4_Quest_22517_srlog">
            <Quest main="false" name="Quest22519" text="g4_Quest_22519_22519questtitle">
                <!--Quest SubQuest22519-->
                <!--step - kill in case of Step=Step1-->
                <!--Event for each Mob the Quest Quest22519 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="22560" type="Kill" />
                    <Action action="Decrease" variable="Quest22519_QE_22527_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest22519 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest22519" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 variable="Quest22519_QE_22527_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest2" variable="Quests.Quest22519" />
                    <Trigger param="Quest22519_QE_22527_RevCounter_1" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest22519 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest22519" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.22560" />
                    <Trigger param="Quests.Quest22519" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_22519_22519questtitle" value="STEP1" tracker_text="g4_Quest_22527_s1tt" text="g4_Quest_22527_s1log">
                    <SubStep variable="Quest22519_QE_22527_RevCounter_1" count="1" tracker_text="g4_Quest_22527_1" actor_trigger="22560">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - return to NPC in case of Step=Step2-->
                <Step tracker_title="g4_Quest_22519_22519questtitle" value="STEP2" tracker_text="g4_Quest_22527_s2tt" text="g4_Quest_22527_s2log" show_log="false" show_tracker="true" actor_trigger="18603">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_22527_s2tt" />
                </Step>
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_22519_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest22521" text="g4_Quest_22521_22521questtitle">
                <!--Quest SubQuest22521-->
                <!--step - collect in case of Step=Step1-->
                <!--Event for each QuestItem the Quest Quest22521 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="22616" type="Take" />
                    <Action action="Decrease" variable="Quest22521_QE_22536_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest22521 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest22521" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 variable="Quest22521_QE_22536_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest2" variable="Quests.Quest22521" />
                    <Trigger param="Quest22521_QE_22536_RevCounter_1" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest22521 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest22521" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.22616" />
                    <Trigger param="Quests.Quest22521" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_22521_22521questtitle" value="STEP1" tracker_text="g4_Quest_22536_s1tt" text="g4_Quest_22536_s1log">
                    <SubStep variable="Quest22521_QE_22536_RevCounter_1" count="1" tracker_text="g4_Quest_22536_1" actor_trigger="22616">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - return to NPC in case of Step=Step2-->
                <Step tracker_title="g4_Quest_22521_22521questtitle" value="STEP2" tracker_text="g4_Quest_22536_s2tt" text="g4_Quest_22536_s2log" show_log="false" show_tracker="true" actor_trigger="18603">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_22536_s2tt" />
                </Step>
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_22521_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_22500_22500questtitle" value="STEP2" tracker_text="g4_Quest_22517_s2tt" text="g4_Quest_22517_s2log" show_log="false" show_tracker="true" actor_trigger="18603">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_22517_s2tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_22500_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_22500_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_22500_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_22500_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest22190" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest22190" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest22190" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest22190" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest22500" />
            <Trigger param="Quests.Quest22190" type="VariableChange" />
        </Event>
    </Quest>
    <!--The quest briefing should auto-start after the FMV-->
    <Quest main="true" name="Quest8679" text="g4_Quest_8679_8679questtitle">
        <!--Quest NPC8679-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_8679_8679questtitle" value="STEP1" tracker_text="g4_Quest_8742_s1tt" text="g4_Quest_8742_s1log" actor_trigger="7691" />
        <!--Event for the Quest Quest8679 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest8679" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest8679.Folder8934" />
            <Trigger param="Quests.Quest8679" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest8679 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest8679" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest8679.Folder8934" />
            <Trigger param="Quests.Quest8679" type="VariableChange" />
        </Event>
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_8679_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_8679_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_8679_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_8679_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="true" name="Quest30799" text="g4_Quest_30799_30799questtitle">
        <!--Quest Chained30799-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest30799 
	 -> it is triggered when the attached quest 8679 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8679" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8679" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8679" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8679" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest30799" />
            <Action action="ProgressQuest2" variable="Quests.Quest30799" />
            <Trigger param="Quests.Quest8679" type="VariableChange" />
        </Event>
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest30799 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="30831" type="Kill" />
            <Action action="Decrease" variable="Quest30799_QE_30803_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="30842" type="Kill" />
            <Action action="Decrease" variable="Quest30799_QE_30803_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest30799 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest30799" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest30799_QE_30803_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest30799" />
            <Action action="ActivateDialog" variable="Dialog_30806" />
            <Trigger param="Quest30799_QE_30803_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_30799_30799questtitle" value="STEP1" tracker_text="g4_Quest_30803_s1tt" text="g4_Quest_30803_s1log">
            <SubStep variable="Quest30799_QE_30803_RevCounter_1" count="2" tracker_text="g4_Quest_30803_1" actor_trigger="30842">
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_30799_30799questtitle" value="STEP2" tracker_text="g4_Quest_30803_s2tt" text="g4_Quest_30803_s2log" show_log="false" show_tracker="true" actor_trigger="7691">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_30803_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_30799_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_30799_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_30799_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_30799_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8679" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8679" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8679" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8679" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest30799" />
            <Trigger param="Quests.Quest8679" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest30853" text="g4_Quest_30853_30853questtitle">
        <!--Quest Chained30853-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest30853 
	 -> it is triggered when the attached quest 30799 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest30799" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest30799" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest30799" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest30799" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest30853" />
            <Action action="ProgressQuest2" variable="Quests.Quest30853" />
            <Trigger param="Quests.Quest30799" type="VariableChange" />
        </Event>
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest30853 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="30867" type="Take" />
            <Action action="Decrease" variable="Quest30853_QE_30855_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="30878" type="Take" />
            <Action action="Decrease" variable="Quest30853_QE_30855_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="30889" type="Take" />
            <Action action="Decrease" variable="Quest30853_QE_30855_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="30900" type="Take" />
            <Action action="Decrease" variable="Quest30853_QE_30855_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="30911" type="Take" />
            <Action action="Decrease" variable="Quest30853_QE_30855_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="30922" type="Take" />
            <Action action="Decrease" variable="Quest30853_QE_30855_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="30933" type="Take" />
            <Action action="Decrease" variable="Quest30853_QE_30855_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="30944" type="Take" />
            <Action action="Decrease" variable="Quest30853_QE_30855_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="32545" type="Take" />
            <Action action="Decrease" variable="Quest30853_QE_30855_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest30853 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest30853" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest30853_QE_30855_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest30853" />
            <Action action="ActivateDialog" variable="Dialog_30858" />
            <Trigger param="Quest30853_QE_30855_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_30853_30853questtitle" value="STEP1" tracker_text="g4_Quest_30855_s1tt" text="g4_Quest_30855_s1log">
            <SubStep variable="Quest30853_QE_30855_RevCounter_1" count="5" tracker_text="g4_Quest_30855_1">
                <Value tag="5_MORE" />
                <Value tag="4_MORE" />
                <Value tag="3_MORE" />
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_30853_30853questtitle" value="STEP2" tracker_text="g4_Quest_30855_s2tt" text="g4_Quest_30855_s2log" show_log="false" show_tracker="true" actor_trigger="7691">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_30855_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_30853_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_30853_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_30853_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_30853_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest30799" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest30799" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest30799" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest30799" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest30853" />
            <Trigger param="Quests.Quest30799" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest30967" text="g4_Quest_30967_30967questtitle">
        <!--Quest Chained30967-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest30967 
	 -> it is triggered when the attached quest 30853 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest30853" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest30853" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest30853" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest30853" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest30967" />
            <Action action="ProgressQuest1" variable="Quests.Quest30967" />
            <Trigger param="Quests.Quest30853" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_30967_30967questtitle" value="STEP1" tracker_text="g4_Quest_30969_s1tt" text="g4_Quest_30969_s1log" actor_trigger="15495" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_30967_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_30967_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_30967_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_30967_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest30853" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest30853" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest30853" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest30853" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest30967" />
            <Trigger param="Quests.Quest30853" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest4931" text="g4_Quest_4931_4931questtitle">
        <!--Quest NPC4931-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest4931 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="4953" type="Kill" />
            <Action action="Decrease" variable="Quest4931_QE_4939_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest4931 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest4931" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest4931_QE_4939_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest4931" />
            <Action action="ActivateDialog" variable="Dialog_4942" />
            <Trigger param="Quest4931_QE_4939_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_4931_4931questtitle" value="STEP1" tracker_text="g4_Quest_4939_s1tt" text="g4_Quest_4939_s1log">
            <SubStep variable="Quest4931_QE_4939_RevCounter_1" count="1" tracker_text="g4_Quest_4939_1" actor_trigger="4953">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_4931_4931questtitle" value="STEP2" tracker_text="g4_Quest_4939_s2tt" text="g4_Quest_4939_s2log" show_log="false" show_tracker="true" actor_trigger="7715">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_4939_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_4931_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_4931_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_4931_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_4931_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest30967" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest30967" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest30967" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest30967" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest4931" />
            <Trigger param="Quests.Quest30967" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest5114" text="g4_Quest_5114_5114questtitle">
        <!--Quest NPC5114-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest5114 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="5123" type="Take" />
            <Action action="Decrease" variable="Quest5114_QE_5117_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest5114 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest5114" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest5114_QE_5117_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest5114" />
            <Trigger param="Quest5114_QE_5117_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest5114 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest5114" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.5123" />
            <Trigger param="Quests.Quest5114" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_5114_5114questtitle" value="STEP1" tracker_text="g4_Quest_5117_s1tt" text="g4_Quest_5117_s1log">
            <SubStep variable="Quest5114_QE_5117_RevCounter_1" count="1" tracker_text="g4_Quest_5117_1">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_5114_5114questtitle" value="STEP2" tracker_text="g4_Quest_5117_s2tt" text="g4_Quest_5117_s2log" show_log="false" show_tracker="true" actor_trigger="7697">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_5117_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_5114_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_5114_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_5114_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_5114_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest4931" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest4931" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest4931" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest4931" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest5114" />
            <Trigger param="Quests.Quest4931" type="VariableChange" />
        </Event>
    </Quest>
    <!--Fetching Digger's diary serves two purposes: 1) The player can read the diary to learn more about Digger's past and 2) the player stumbles upon Ulfrich's new hideout, all clues pointing towards him-->
    <Quest main="false" name="Quest5143" text="g4_Quest_5143_5143questtitle">
        <!--Quest NPC5143-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest5143 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="5185" type="Take" />
            <Action action="Decrease" variable="Quest5143_QE_5156_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest5143 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest5143" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest5143_QE_5156_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest5143" />
            <Trigger param="Quest5143_QE_5156_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest5143 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest5143" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.5185" />
            <Trigger param="Quests.Quest5143" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_5143_5143questtitle" value="STEP1" tracker_text="g4_Quest_5156_s1tt" text="g4_Quest_5156_s1log">
            <SubStep variable="Quest5143_QE_5156_RevCounter_1" count="1" tracker_text="g4_Quest_5156_1" actor_trigger="5185">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_5143_5143questtitle" value="STEP2" tracker_text="g4_Quest_5156_s2tt" text="g4_Quest_5156_s2log" show_log="false" show_tracker="true" actor_trigger="7616">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_5156_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_5143_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_5143_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_5143_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_5143_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest5114" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest5114" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest5114" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest5114" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest5143" />
            <Trigger param="Quests.Quest5114" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest5232" text="g4_Quest_5232_5232questtitle">
        <!--Quest NPC5232-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest5232 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="5297" type="Kill" />
            <Action action="Decrease" variable="Quest5232_QE_5286_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="10802" type="Kill" />
            <Action action="Decrease" variable="Quest5232_QE_5286_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest5232 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest5232" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest5232_QE_5286_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest5232" />
            <Action action="ActivateDialog" variable="Dialog_5289" />
            <Trigger param="Quest5232_QE_5286_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_5232_5232questtitle" value="STEP1" tracker_text="g4_Quest_5286_s1tt" text="g4_Quest_5286_s1log">
            <SubStep variable="Quest5232_QE_5286_RevCounter_1" count="2" tracker_text="g4_Quest_5286_1" actor_trigger="10802">
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_5232_5232questtitle" value="STEP2" tracker_text="g4_Quest_5286_s2tt" text="g4_Quest_5286_s2log" show_log="false" show_tracker="true" actor_trigger="30783">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_5286_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_5232_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_5232_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_5232_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_5232_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest5143" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest5143" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest5143" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest5143" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest5232" />
            <Trigger param="Quests.Quest5143" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest8536" text="g4_Quest_8536_8536questtitle">
        <!--Quest NPC8536-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest8536 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="10757" type="Take" />
            <Action action="Decrease" variable="Quest8536_QE_8553_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest8536 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest8536" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest8536_QE_8553_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest8536" />
            <Trigger param="Quest8536_QE_8553_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest8536 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest8536" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.10757" />
            <Trigger param="Quests.Quest8536" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_8536_8536questtitle" value="STEP1" tracker_text="g4_Quest_8553_s1tt" text="g4_Quest_8553_s1log">
            <SubStep variable="Quest8536_QE_8553_RevCounter_1" count="1" tracker_text="g4_Quest_8553_1" actor_trigger="10757">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_8536_8536questtitle" value="STEP2" tracker_text="g4_Quest_8553_s2tt" text="g4_Quest_8553_s2log" show_log="false" show_tracker="true" actor_trigger="8542">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_8553_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_8536_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_8536_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_8536_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_8536_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6210" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6210" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6210" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6210" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest8536" />
            <Trigger param="Quests.Quest6210" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest8645" text="g4_Quest_8645_8645questtitle">
        <!--Quest Chained8645-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest8645 
	 -> it is triggered when the attached quest 8536 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8536" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8536" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8536" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8536" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest8645" />
            <Action action="ProgressQuest2" variable="Quests.Quest8645" />
            <Trigger param="Quests.Quest8536" type="VariableChange" />
        </Event>
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest8645 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="8656" type="Take" />
            <Action action="Decrease" variable="Quest8645_QE_8647_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest8645 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest8645" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest8645_QE_8647_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest8645" />
            <Trigger param="Quest8645_QE_8647_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest8645 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest8645" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.8656" />
            <Trigger param="Quests.Quest8645" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_8645_8645questtitle" value="STEP1" tracker_text="g4_Quest_8647_s1tt" text="g4_Quest_8647_s1log">
            <SubStep variable="Quest8645_QE_8647_RevCounter_1" count="1" tracker_text="g4_Quest_8647_1" actor_trigger="8656">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_8645_8645questtitle" value="STEP2" tracker_text="g4_Quest_8647_s2tt" text="g4_Quest_8647_s2log" show_log="false" show_tracker="true" actor_trigger="8542">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_8647_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_8645_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_8645_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_8645_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_8645_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8536" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8536" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8536" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8536" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest8645" />
            <Trigger param="Quests.Quest8536" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest8858" text="g4_Quest_8858_8858questtitle">
        <!--Quest Chained8858-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest8858 
	 -> it is triggered when the attached quest 8645 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8645" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8645" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8645" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8645" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest8858" />
            <Action action="Progress_Quests.Quest8858" variable="Quests.Quest8858" />
            <Trigger param="Quests.Quest8645" type="VariableChange" />
        </Event>
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest8858" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest8872" />
            <Action action="ProgressQuest2" variable="Quests.Quest8872" />
            <Action action="ActivateQuest" variable="Quests.Quest8874" />
            <Action action="ProgressQuest2" variable="Quests.Quest8874" />
            <Trigger param="Quests.Quest8858" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step1-->
        <Step tracker_title="g4_Quest_8858_8858questtitle" value="STEP1" tracker_text="g4_Quest_8870_srtt" text="g4_Quest_8870_srlog">
            <Quest main="false" name="Quest8872" text="g4_Quest_8872_8872questtitle">
                <!--Quest SubQuest8872-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_8872_8872questtitle" value="STEP1" tracker_text="g4_Quest_11696_s1tt" text="g4_Quest_11696_s1log" actor_trigger="8912" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- step - talk to in case of Step=Step3-->
                <Step tracker_title="g4_Quest_8872_8872questtitle" value="STEP3" tracker_text="g4_Quest_11708_s1tt" text="g4_Quest_11708_s1log" actor_trigger="8912" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- step - talk to in case of Step=Step5-->
                <Step tracker_title="g4_Quest_8872_8872questtitle" value="STEP5" tracker_text="g4_Quest_9183_s1tt" text="g4_Quest_9183_s1log" actor_trigger="8912" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - buy in case of Step=Step6-->
                <Step tracker_title="g4_Quest_8872_8872questtitle" value="STEP6" tracker_text="g4_Quest_9188_s1tt" text="g4_Quest_9188_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_9188_s1tt" />
                </Step>
                <!-- step - talk to in case of Step=Step8-->
                <Step tracker_title="g4_Quest_8872_8872questtitle" value="STEP8" tracker_text="g4_Quest_9153_s1tt" text="g4_Quest_9153_s1log" actor_trigger="8912" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - buy in case of Step=Step9-->
                <Step tracker_title="g4_Quest_8872_8872questtitle" value="STEP9" tracker_text="g4_Quest_9158_s1tt" text="g4_Quest_9158_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_9158_s1tt" />
                </Step>
                <!-- step - talk to in case of Step=Step12-->
                <Step tracker_title="g4_Quest_8872_8872questtitle" value="STEP12" tracker_text="g4_Quest_11714_s1tt" text="g4_Quest_11714_s1log" actor_trigger="8912" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- step - talk to in case of Step=Step14-->
                <Step tracker_title="g4_Quest_8872_8872questtitle" value="STEP14" tracker_text="g4_Quest_9163_s1tt" text="g4_Quest_9163_s1log" actor_trigger="8912" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - buy in case of Step=Step15-->
                <Step tracker_title="g4_Quest_8872_8872questtitle" value="STEP15" tracker_text="g4_Quest_9168_s1tt" text="g4_Quest_9168_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_9168_s1tt" />
                </Step>
                <!-- step - talk to in case of Step=Step17-->
                <Step tracker_title="g4_Quest_8872_8872questtitle" value="STEP17" tracker_text="g4_Quest_9173_s1tt" text="g4_Quest_9173_s1log" actor_trigger="8912" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - buy in case of Step=Step18-->
                <Step tracker_title="g4_Quest_8872_8872questtitle" value="STEP18" tracker_text="g4_Quest_9178_s1tt" text="g4_Quest_9178_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_9178_s1tt" />
                </Step>
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_8872_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest8874" text="g4_Quest_8874_8874questtitle">
                <!--Quest SubQuest8874-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_8874_8874questtitle" value="STEP1" tracker_text="g4_Quest_11702_s1tt" text="g4_Quest_11702_s1log" actor_trigger="8900" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- step - talk to in case of Step=Step3-->
                <Step tracker_title="g4_Quest_8874_8874questtitle" value="STEP3" tracker_text="g4_Quest_11732_s1tt" text="g4_Quest_11732_s1log" actor_trigger="8900" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- step - talk to in case of Step=Step5-->
                <Step tracker_title="g4_Quest_8874_8874questtitle" value="STEP5" tracker_text="g4_Quest_9295_s1tt" text="g4_Quest_9295_s1log" actor_trigger="8900" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - buy in case of Step=Step6-->
                <Step tracker_title="g4_Quest_8874_8874questtitle" value="STEP6" tracker_text="g4_Quest_9300_s1tt" text="g4_Quest_9300_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_9300_s1tt" />
                </Step>
                <!-- step - talk to in case of Step=Step8-->
                <Step tracker_title="g4_Quest_8874_8874questtitle" value="STEP8" tracker_text="g4_Quest_9305_s1tt" text="g4_Quest_9305_s1log" actor_trigger="8900" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - buy in case of Step=Step9-->
                <Step tracker_title="g4_Quest_8874_8874questtitle" value="STEP9" tracker_text="g4_Quest_9310_s1tt" text="g4_Quest_9310_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_9310_s1tt" />
                </Step>
                <!-- step - talk to in case of Step=Step12-->
                <Step tracker_title="g4_Quest_8874_8874questtitle" value="STEP12" tracker_text="g4_Quest_11737_s1tt" text="g4_Quest_11737_s1log" actor_trigger="8900" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- step - talk to in case of Step=Step14-->
                <Step tracker_title="g4_Quest_8874_8874questtitle" value="STEP14" tracker_text="g4_Quest_9315_s1tt" text="g4_Quest_9315_s1log" actor_trigger="8900" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - buy in case of Step=Step15-->
                <Step tracker_title="g4_Quest_8874_8874questtitle" value="STEP15" tracker_text="g4_Quest_9320_s1tt" text="g4_Quest_9320_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_9320_s1tt" />
                </Step>
                <!-- step - talk to in case of Step=Step17-->
                <Step tracker_title="g4_Quest_8874_8874questtitle" value="STEP17" tracker_text="g4_Quest_9325_s1tt" text="g4_Quest_9325_s1log" actor_trigger="8900" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - buy in case of Step=Step18-->
                <Step tracker_title="g4_Quest_8874_8874questtitle" value="STEP18" tracker_text="g4_Quest_9330_s1tt" text="g4_Quest_9330_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_9330_s1tt" />
                </Step>
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_8874_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_8858_8858questtitle" value="STEP2" tracker_text="g4_Quest_8870_s2tt" text="g4_Quest_8870_s2log" show_log="false" show_tracker="true" actor_trigger="8542">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_8870_s2tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_8858_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_8858_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_8858_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_8858_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8645" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8645" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8645" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8645" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest8858" />
            <Trigger param="Quests.Quest8645" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest19015" text="g4_Quest_19015_19015questtitle">
        <!--Quest Chained19015-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest19015 
	 -> it is triggered when the attached quest 8858 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8858" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8858" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8858" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8858" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest19015" />
            <Action action="ProgressQuest2" variable="Quests.Quest19015" />
            <Trigger param="Quests.Quest8858" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_19015_19015questtitle" value="STEP1" tracker_text="g4_Quest_19027_s1tt" text="g4_Quest_19027_s1log" actor_trigger="11066" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_19015_19015questtitle" value="STEP2" tracker_text="g4_Quest_19063_s1tt" text="g4_Quest_19063_s1log" actor_trigger="8542" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_19015_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_19015_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_19015_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_19015_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8858" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8858" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8858" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8858" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest19015" />
            <Trigger param="Quests.Quest8858" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest19074" text="g4_Quest_19074_19074questtitle">
        <!--Quest Chained19074-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest19074 
	 -> it is triggered when the attached quest 19015 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest19015" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest19015" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest19015" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest19015" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest19074" />
            <Action action="ProgressQuest8" variable="Quests.Quest19074" />
            <Trigger param="Quests.Quest19015" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_19074_19074questtitle" value="STEP1" tracker_text="g4_Quest_19076_s1tt" text="g4_Quest_19076_s1log" actor_trigger="12004" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_19074_19074questtitle" value="STEP2" tracker_text="g4_Quest_19122_s1tt" text="g4_Quest_19122_s1log" actor_trigger="9446" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - buy in case of Step=Step3-->
        <Step tracker_title="g4_Quest_19074_19074questtitle" value="STEP3" tracker_text="g4_Quest_19134_s1tt" text="g4_Quest_19134_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_19134_s1tt" />
        </Step>
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_19074_19074questtitle" value="STEP4" tracker_text="g4_Quest_19144_s1tt" text="g4_Quest_19144_s1log" actor_trigger="9467" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step5-->
        <Step tracker_title="g4_Quest_19074_19074questtitle" value="STEP5" tracker_text="g4_Quest_19156_s1tt" text="g4_Quest_19156_s1log" actor_trigger="12004" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step6-->
        <Step tracker_title="g4_Quest_19074_19074questtitle" value="STEP6" tracker_text="g4_Quest_19171_s1tt" text="g4_Quest_19171_s1log" actor_trigger="9477" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step7-->
        <Step tracker_title="g4_Quest_19074_19074questtitle" value="STEP7" tracker_text="g4_Quest_19188_s1tt" text="g4_Quest_19188_s1log" actor_trigger="19193" />
        <!--Event for the Quest Quest19074 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest19074" type="IN">
                <Value tag="STEP7" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest19074.Folder19205" />
            <Trigger param="Quests.Quest19074" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest19074 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest19074" type="IN">
                <Value tag="STEP8" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest19074.Folder19205" />
            <Trigger param="Quests.Quest19074" type="VariableChange" />
        </Event>
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step8-->
        <Step tracker_title="g4_Quest_19074_19074questtitle" value="STEP8" tracker_text="g4_Quest_19212_s1tt" text="g4_Quest_19212_s1log" actor_trigger="12004" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_19074_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_19074_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_19074_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_19074_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest19015" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest19015" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest19015" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest19015" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest19074" />
            <Trigger param="Quests.Quest19015" type="VariableChange" />
        </Event>
    </Quest>
    <!--Will be placed infront of Q045
-->
    <Quest main="false" name="Quest22667" text="g4_Quest_22667_22667questtitle">
        <!--Quest Scroll22667-->
        <!--Event for the Quest Quest22667 
	 -> it is triggered when the scroll is picked up 
	 -> it tests if the quest is available 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test variable="Quests.Quest22667" type="IN">
                <Value tag="AVAILABLE" />
            </Test>
            <Action action="Progress_Quests.Quest22667" variable="Quests.Quest22667" />
            <Trigger param="22667" type="Take" />
        </Event>
        <!--step - collect in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest22667 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="23377" type="Kill" />
            <Action action="Decrease" variable="Quest22667_QE_23321_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="23378" type="Kill" />
            <Action action="Decrease" variable="Quest22667_QE_23321_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="23379" type="Kill" />
            <Action action="Decrease" variable="Quest22667_QE_23321_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest22667 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest22667" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest22667_QE_23321_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="Progress_Quests.Quest22667" variable="Quests.Quest22667" />
            <Trigger param="Quest22667_QE_23321_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_22667_22667questtitle" value="STEP1" tracker_text="g4_Quest_23321_s1tt" text="g4_Quest_23321_s1log">
            <SubStep variable="Quest22667_QE_23321_RevCounter_1" count="1" tracker_text="g4_Quest_23321_1" actor_trigger="23379">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_22667_22667questtitle" value="STEP2" tracker_text="g4_Quest_23321_s2tt" text="g4_Quest_23321_s2log" actor_trigger="7724" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_22667_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_22667_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_22667_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_22667_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest19944" text="g4_Quest_19944_19944questtitle">
        <!--Quest NPC19944-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest19944 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="20036" type="Take" />
            <Action action="Decrease" variable="Quest19944_QE_19964_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest19944 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest19944" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest19944_QE_19964_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest5" variable="Quests.Quest19944" />
            <Action action="ActivateDialog" variable="Dialog_19967" />
            <Trigger param="Quest19944_QE_19964_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_19944_19944questtitle" value="STEP1" tracker_text="g4_Quest_19964_s1tt" text="g4_Quest_19964_s1log">
            <SubStep variable="Quest19944_QE_19964_RevCounter_1" count="1" tracker_text="g4_Quest_19964_1" actor_trigger="20036">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_19944_19944questtitle" value="STEP2" tracker_text="g4_Quest_19964_s2tt" text="g4_Quest_19964_s2log" show_log="false" show_tracker="true" actor_trigger="7706">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_19964_s2tt" />
        </Step>
        <!--Event for the Quest Quest19944 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest19944" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest19944.Folder20068" />
            <Trigger param="Quests.Quest19944" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest19944 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest19944" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest19944.Folder20068" />
            <Trigger param="Quests.Quest19944" type="VariableChange" />
        </Event>
        <!-- event to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step3-->
        <Step tracker_title="g4_Quest_19944_19944questtitle" value="STEP3" tracker_text="g4_Quest_19989_s1tt" text="g4_Quest_19989_s1log" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step4-->
        <!--Event for each QuestItem the Quest Quest19944 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="20058" type="Take" />
            <Action action="Decrease" variable="Quest19944_QE_19980_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest19944 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest19944" type="IN">
                    <Value tag="STEP4" />
                </Operand1>
                <Operand2 variable="Quest19944_QE_19980_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest5" variable="Quests.Quest19944" />
            <Trigger param="Quest19944_QE_19980_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest19944 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest19944" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.20058" />
            <Trigger param="Quests.Quest19944" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_19944_19944questtitle" value="STEP4" tracker_text="g4_Quest_19980_s1tt" text="g4_Quest_19980_s1log">
            <SubStep variable="Quest19944_QE_19980_RevCounter_1" count="1" tracker_text="g4_Quest_19980_1">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step5-->
        <Step tracker_title="g4_Quest_19944_19944questtitle" value="STEP5" tracker_text="g4_Quest_19980_s2tt" text="g4_Quest_19980_s2log" show_log="false" show_tracker="true" actor_trigger="7598">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_19980_s2tt" />
        </Step>
        <!--Event for the Quest Quest19944 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest19944" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest19944.Folder20103" />
            <Trigger param="Quests.Quest19944" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest19944 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest19944" type="IN">
                <Value tag="STEP6" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest19944.Folder20103" />
            <Trigger param="Quests.Quest19944" type="VariableChange" />
        </Event>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_19944_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_19944_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_19944_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_19944_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8683" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8683" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8683" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8683" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest19944" />
            <Trigger param="Quests.Quest8683" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest32087" text="g4_Quest_32087_32087questtitle">
        <!--Quest NPC32087-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_32087_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_32087_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_32087_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_32087_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="true" name="Quest17456" text="g4_Quest_17456_17456questtitle">
        <!--Quest NPC17456-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest17456 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="17611" type="Take" />
            <Action action="Decrease" variable="Quest17456_QE_17591_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest17456 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest17456" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest17456_QE_17591_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest17456" />
            <Action action="ActivateDialog" variable="Dialog_17594" />
            <Trigger param="Quest17456_QE_17591_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_17456_17456questtitle" value="STEP1" tracker_text="g4_Quest_17591_s1tt" text="g4_Quest_17591_s1log">
            <SubStep variable="Quest17456_QE_17591_RevCounter_1" count="1" tracker_text="g4_Quest_17591_1" actor_trigger="17611">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_17456_17456questtitle" value="STEP2" tracker_text="g4_Quest_17591_s2tt" text="g4_Quest_17591_s2log" show_log="false" show_tracker="true" actor_trigger="17953">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_17591_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_17456_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_17456_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_17456_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_17456_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="true" name="Quest6575" text="g4_Quest_6575_6575questtitle">
        <!--Quest NPC6575-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_6575_6575questtitle" value="STEP1" tracker_text="g4_Quest_6617_s1tt" text="g4_Quest_6617_s1log" actor_trigger="9386" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_6575_6575questtitle" value="STEP2" tracker_text="g4_Quest_6607_s1tt" text="g4_Quest_6607_s1log" actor_trigger="8292" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_6575_6575questtitle" value="STEP3" tracker_text="g4_Quest_6612_s1tt" text="g4_Quest_6612_s1log" actor_trigger="9396" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step4-->
        <!--Event for each Mob the Quest Quest6575 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="6708" type="Kill" />
            <Action action="Decrease" variable="Quest6575_QE_6696_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest6575 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest6575" type="IN">
                    <Value tag="STEP4" />
                </Operand1>
                <Operand2 variable="Quest6575_QE_6696_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest12" variable="Quests.Quest6575" />
            <Trigger param="Quest6575_QE_6696_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest6575 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest6575" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.6708" />
            <Trigger param="Quests.Quest6575" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_6575_6575questtitle" value="STEP4" tracker_text="g4_Quest_6696_s1tt" text="g4_Quest_6696_s1log">
            <SubStep variable="Quest6575_QE_6696_RevCounter_1" count="1" tracker_text="g4_Quest_6696_1" actor_trigger="6708">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - talk to in case of Step=Step5-->
        <Step tracker_title="g4_Quest_6575_6575questtitle" value="STEP5" tracker_text="g4_Quest_6696_s2tt" text="g4_Quest_6696_s2log" actor_trigger="8292" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step6-->
        <Step tracker_title="g4_Quest_6575_6575questtitle" value="STEP6" tracker_text="g4_Quest_6636_s1tt" text="g4_Quest_6636_s1log" actor_trigger="9406" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step7-->
        <Step tracker_title="g4_Quest_6575_6575questtitle" value="STEP7" tracker_text="g4_Quest_6641_s1tt" text="g4_Quest_6641_s1log" actor_trigger="8292" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step8-->
        <Step tracker_title="g4_Quest_6575_6575questtitle" value="STEP8" tracker_text="g4_Quest_6646_s1tt" text="g4_Quest_6646_s1log" actor_trigger="9416" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step9-->
        <Step tracker_title="g4_Quest_6575_6575questtitle" value="STEP9" tracker_text="g4_Quest_6651_s1tt" text="g4_Quest_6651_s1log" actor_trigger="8292" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step10-->
        <Step tracker_title="g4_Quest_6575_6575questtitle" value="STEP10" tracker_text="g4_Quest_13756_s1tt" text="g4_Quest_13756_s1log" actor_trigger="9426" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step11-->
        <!--Event for each Mob the Quest Quest6575 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="6738" type="Kill" />
            <Action action="Decrease" variable="Quest6575_QE_6664_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="6739" type="Kill" />
            <Action action="Decrease" variable="Quest6575_QE_6664_RevCounter_2" />
        </Event>
        <!--Event for the Quest Quest6575 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest6575" type="IN">
                    <Value tag="STEP11" />
                </Operand1>
                <Operand2 type="AND">
                    <Operand1 variable="Quest6575_QE_6664_RevCounter_1" type="IN">
                        <Value tag="0_MORE" />
                    </Operand1>
                    <Operand2 variable="Quest6575_QE_6664_RevCounter_2" type="IN">
                        <Value tag="0_MORE" />
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ProgressQuest12" variable="Quests.Quest6575" />
            <Trigger param="Quest6575_QE_6664_RevCounter_1" type="VariableChange" />
            <Trigger param="Quest6575_QE_6664_RevCounter_2" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_6575_6575questtitle" value="STEP11" tracker_text="g4_Quest_6664_s1tt" text="g4_Quest_6664_s1log">
            <SubStep variable="Quest6575_QE_6664_RevCounter_1" count="1" tracker_text="g4_Quest_6664_1" actor_trigger="6738">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest6575_QE_6664_RevCounter_2" count="1" tracker_text="g4_Quest_6664_2" actor_trigger="6739">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step12-->
        <Step tracker_title="g4_Quest_6575_6575questtitle" value="STEP12" tracker_text="g4_Quest_6664_s2tt" text="g4_Quest_6664_s2log" actor_trigger="8292" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_6575_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_6575_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_6575_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_6575_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6210" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6210" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6210" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6210" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest6575" />
            <Trigger param="Quests.Quest6210" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest6836" text="g4_Quest_6836_6836questtitle">
        <!--Quest Chained6836-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest6836 
	 -> it is triggered when the attached quest 6575 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6575" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6575" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6575" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6575" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest6836" />
            <Action action="ProgressQuest3" variable="Quests.Quest6836" />
            <Trigger param="Quests.Quest6575" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_6836_6836questtitle" value="STEP1" tracker_text="g4_Quest_6849_s1tt" text="g4_Quest_6849_s1log" actor_trigger="9436" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest6836" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest6841" />
            <Action action="ProgressQuest3" variable="Quests.Quest6841" />
            <Action action="ActivateQuest" variable="Quests.Quest6843" />
            <Action action="ProgressQuest3" variable="Quests.Quest6843" />
            <Action action="ActivateQuest" variable="Quests.Quest6845" />
            <Action action="ProgressQuest3" variable="Quests.Quest6845" />
            <Trigger param="Quests.Quest6836" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step2-->
        <Step tracker_title="g4_Quest_6836_6836questtitle" value="STEP2" tracker_text="g4_Quest_6839_srtt" text="g4_Quest_6839_srlog">
            <Quest main="false" name="Quest6841" text="g4_Quest_6841_6841questtitle">
                <!--Quest SubQuest6841-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_6841_6841questtitle" value="STEP1" tracker_text="g4_Quest_6878_s1tt" text="g4_Quest_6878_s1log" />
                <!--Event for the Quest Quest6841 
	 -> it activates the folder-->
                <Event>
                    <Test variable="Quests.Quest6841" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="ActivateFolder" variable="Quests.Quest6841.Folder6893" />
                    <Trigger param="Quests.Quest6841" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest6841 
	 -> it Deactivates the folder-->
                <Event>
                    <Test variable="Quests.Quest6841" type="IN">
                        <Value tag="STEP2" />
                    </Test>
                    <Action action="DeactivateFolder" variable="Quests.Quest6841.Folder6893" />
                    <Trigger param="Quests.Quest6841" type="VariableChange" />
                </Event>
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_6841_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest6843" text="g4_Quest_6843_6843questtitle">
                <!--Quest SubQuest6843-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_6843_6843questtitle" value="STEP1" tracker_text="g4_Quest_6883_s1tt" text="g4_Quest_6883_s1log" />
                <!--Event for the Quest Quest6843 
	 -> it activates the folder-->
                <Event>
                    <Test variable="Quests.Quest6843" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="ActivateFolder" variable="Quests.Quest6843.Folder6907" />
                    <Trigger param="Quests.Quest6843" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest6843 
	 -> it Deactivates the folder-->
                <Event>
                    <Test variable="Quests.Quest6843" type="IN">
                        <Value tag="STEP2" />
                    </Test>
                    <Action action="DeactivateFolder" variable="Quests.Quest6843.Folder6907" />
                    <Trigger param="Quests.Quest6843" type="VariableChange" />
                </Event>
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_6843_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest6845" text="g4_Quest_6845_6845questtitle">
                <!--Quest SubQuest6845-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_6845_6845questtitle" value="STEP1" tracker_text="g4_Quest_6888_s1tt" text="g4_Quest_6888_s1log" />
                <!--Event for the Quest Quest6845 
	 -> it activates the folder-->
                <Event>
                    <Test variable="Quests.Quest6845" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="ActivateFolder" variable="Quests.Quest6845.Folder6910" />
                    <Trigger param="Quests.Quest6845" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest6845 
	 -> it Deactivates the folder-->
                <Event>
                    <Test variable="Quests.Quest6845" type="IN">
                        <Value tag="STEP2" />
                    </Test>
                    <Action action="DeactivateFolder" variable="Quests.Quest6845.Folder6910" />
                    <Trigger param="Quests.Quest6845" type="VariableChange" />
                </Event>
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_6845_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_6836_6836questtitle" value="STEP3" tracker_text="g4_Quest_6839_s2tt" text="g4_Quest_6839_s2log" show_log="false" show_tracker="true" actor_trigger="9436">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_6839_s2tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_6836_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_6836_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_6836_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_6836_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6575" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6575" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6575" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6575" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest6836" />
            <Trigger param="Quests.Quest6575" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest7060" text="g4_Quest_7060_7060questtitle">
        <!--Quest Chained7060-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest7060 
	 -> it is triggered when the attached quest 6836 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6836" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6836" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6836" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6836" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest7060" />
            <Action action="ProgressQuest3" variable="Quests.Quest7060" />
            <Trigger param="Quests.Quest6836" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_7060_7060questtitle" value="STEP1" tracker_text="g4_Quest_7062_s1tt" text="g4_Quest_7062_s1log" actor_trigger="9487" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step2-->
        <!--Event for each QuestItem the Quest Quest7060 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="7127" type="Take" />
            <Action action="Decrease" variable="Quest7060_QE_7097_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest7060 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest7060" type="IN">
                    <Value tag="STEP2" />
                </Operand1>
                <Operand2 variable="Quest7060_QE_7097_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest3" variable="Quests.Quest7060" />
            <Action action="ActivateDialog" variable="Dialog_7100" />
            <Trigger param="Quest7060_QE_7097_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_7060_7060questtitle" value="STEP2" tracker_text="g4_Quest_7097_s1tt" text="g4_Quest_7097_s1log">
            <SubStep variable="Quest7060_QE_7097_RevCounter_1" count="1" tracker_text="g4_Quest_7097_1" actor_trigger="7127">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step3-->
        <Step tracker_title="g4_Quest_7060_7060questtitle" value="STEP3" tracker_text="g4_Quest_7097_s2tt" text="g4_Quest_7097_s2log" show_log="false" show_tracker="true" actor_trigger="9487">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_7097_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_7060_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_7060_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_7060_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_7060_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6836" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6836" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6836" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6836" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest7060" />
            <Trigger param="Quests.Quest6836" type="VariableChange" />
        </Event>
    </Quest>
    <!--Norman's Promotion-->
    <Quest main="false" name="Quest2919" text="g4_Quest_2919_2919questtitle">
        <!--Quest NPC2919-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_2919_2919questtitle" value="STEP1" tracker_text="g4_Quest_2922_s1tt" text="g4_Quest_2922_s1log" actor_trigger="7640" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step2-->
        <!--Event for each Mob the Quest Quest2919 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="2945" type="Kill" />
            <Action action="Decrease" variable="Quest2919_QE_2935_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="7047" type="Kill" />
            <Action action="Decrease" variable="Quest2919_QE_2935_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="7048" type="Kill" />
            <Action action="Decrease" variable="Quest2919_QE_2935_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="7049" type="Kill" />
            <Action action="Decrease" variable="Quest2919_QE_2935_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="7050" type="Kill" />
            <Action action="Decrease" variable="Quest2919_QE_2935_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest2919 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest2919" type="IN">
                    <Value tag="STEP2" />
                </Operand1>
                <Operand2 variable="Quest2919_QE_2935_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest4" variable="Quests.Quest2919" />
            <Action action="ActivateDialog" variable="Dialog_2938" />
            <Trigger param="Quest2919_QE_2935_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_2919_2919questtitle" value="STEP2" tracker_text="g4_Quest_2935_s1tt" text="g4_Quest_2935_s1log">
            <SubStep variable="Quest2919_QE_2935_RevCounter_1" count="5" tracker_text="g4_Quest_2935_1" actor_trigger="7050">
                <Value tag="5_MORE" />
                <Value tag="4_MORE" />
                <Value tag="3_MORE" />
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step3-->
        <Step tracker_title="g4_Quest_2919_2919questtitle" value="STEP3" tracker_text="g4_Quest_2935_s2tt" text="g4_Quest_2935_s2log" show_log="false" show_tracker="true" actor_trigger="7640">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_2935_s2tt" />
        </Step>
        <!--Event for the Quest Quest2919 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest2919" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest2919.Folder19035" />
            <Trigger param="Quests.Quest2919" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest2919 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest2919" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest2919.Folder19035" />
            <Trigger param="Quests.Quest2919" type="VariableChange" />
        </Event>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- add experience for the collect element-->
        <Event>
            <Test variable="Quests.Quest2919" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Script statement="actor:AddExperience( 100 )" actor="Hero" />
            <Trigger param="Quests.Quest2919" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_2919_2919questtitle" value="STEP4" tracker_text="g4_Quest_19044_s1tt" text="g4_Quest_19044_s1log" actor_trigger="7694" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_2919_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_2919_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_2919_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_2919_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="true" name="Quest17127" text="g4_Quest_17127_17127questtitle">
        <!--Quest NPC17127-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_17127_17127questtitle" value="STEP1" tracker_text="g4_Quest_17182_s1tt" text="g4_Quest_17182_s1log" actor_trigger="17943" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_17127_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_17127_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_17127_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_17127_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="true" name="Quest17189" text="g4_Quest_17189_17189questtitle">
        <!--Quest Chained17189-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest17189 
	 -> it is triggered when the attached quest 17127 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest17127" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest17127" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest17127" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest17127" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest17189" />
            <Action action="ProgressQuest1" variable="Quests.Quest17189" />
            <Trigger param="Quests.Quest17127" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_17189_17189questtitle" value="STEP1" tracker_text="g4_Quest_17199_s1tt" text="g4_Quest_17199_s1log" actor_trigger="17933" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_17189_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_17189_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_17189_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_17189_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest17127" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest17127" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest17127" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest17127" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest17189" />
            <Trigger param="Quests.Quest17127" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest17435" text="g4_Quest_17435_17435questtitle">
        <!--Quest Chained17435-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest17435 
	 -> it is triggered when the attached quest 17189 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest17189" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest17189" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest17189" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest17189" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest17435" />
            <Action action="ProgressQuest3" variable="Quests.Quest17435" />
            <Trigger param="Quests.Quest17189" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_17435_17435questtitle" value="STEP1" tracker_text="g4_Quest_18529_s1tt" text="g4_Quest_18529_s1log" actor_trigger="17943" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - wait in case of Step=Step2-->
        <Step tracker_title="g4_Quest_17435_17435questtitle" value="STEP2" tracker_text="g4_Quest_17438_s1tt" text="g4_Quest_17438_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_17438_s1tt" />
        </Step>
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_17435_17435questtitle" value="STEP3" tracker_text="g4_Quest_17448_s1tt" text="g4_Quest_17448_s1log" actor_trigger="17943" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_17435_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_17435_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_17435_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_17435_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest17189" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest17189" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest17189" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest17189" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest17435" />
            <Trigger param="Quests.Quest17189" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest17963" text="g4_Quest_17963_17963questtitle">
        <!--Quest NPC17963-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest17963 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="18084" type="Take" />
            <Action action="Decrease" variable="Quest17963_QE_18038_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest17963 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest17963" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest17963_QE_18038_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest17963" />
            <Action action="ActivateDialog" variable="Dialog_18042" />
            <Trigger param="Quest17963_QE_18038_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_17963_17963questtitle" value="STEP1" tracker_text="g4_Quest_18038_s1tt" text="g4_Quest_18038_s1log">
            <SubStep variable="Quest17963_QE_18038_RevCounter_1" count="1" tracker_text="g4_Quest_18038_1">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_17963_17963questtitle" value="STEP2" tracker_text="g4_Quest_18038_s2tt" text="g4_Quest_18038_s2log" show_log="false" show_tracker="true" actor_trigger="17953">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_18038_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_17963_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_17963_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_17963_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_17963_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest17435" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest17435" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest17435" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest17435" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest17963" />
            <Trigger param="Quests.Quest17435" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest18102" text="g4_Quest_18102_18102questtitle">
        <!--Quest NPC18102-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest18102 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="18144" type="Take" />
            <Action action="Decrease" variable="Quest18102_QE_18127_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="18313" type="Take" />
            <Action action="Decrease" variable="Quest18102_QE_18127_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest18102 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest18102" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest18102_QE_18127_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest18102" />
            <Trigger param="Quest18102_QE_18127_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest18102 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest18102" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.18144" />
            <Action action="SpawnEntity" variable="Entities.18313" />
            <Trigger param="Quests.Quest18102" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_18102_18102questtitle" value="STEP1" tracker_text="g4_Quest_18127_s1tt" text="g4_Quest_18127_s1log">
            <SubStep variable="Quest18102_QE_18127_RevCounter_1" count="2" tracker_text="g4_Quest_18127_1" actor_trigger="18313">
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_18102_18102questtitle" value="STEP2" tracker_text="g4_Quest_18127_s2tt" text="g4_Quest_18127_s2log" show_log="false" show_tracker="true" actor_trigger="17943">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_18127_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_18102_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_18102_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_18102_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_18102_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest17963" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest17963" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest17963" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest17963" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18102" />
            <Trigger param="Quests.Quest17963" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest17328" text="g4_Quest_17328_17328questtitle">
        <!--Quest NPC17328-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest17328 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="17379" type="Kill" />
            <Action action="Decrease" variable="Quest17328_QE_17346_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="17380" type="Kill" />
            <Action action="Decrease" variable="Quest17328_QE_17346_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest17328 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest17328" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest17328_QE_17346_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest17328" />
            <Action action="ActivateDialog" variable="Dialog_17349" />
            <Trigger param="Quest17328_QE_17346_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_17328_17328questtitle" value="STEP1" tracker_text="g4_Quest_17346_s1tt" text="g4_Quest_17346_s1log">
            <SubStep variable="Quest17328_QE_17346_RevCounter_1" count="2" tracker_text="g4_Quest_17346_1" actor_trigger="17380">
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_17328_17328questtitle" value="STEP2" tracker_text="g4_Quest_17346_s2tt" text="g4_Quest_17346_s2log" show_log="false" show_tracker="true" actor_trigger="17318">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_17346_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_17328_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_17328_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_17328_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_17328_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest17407" text="g4_Quest_17407_17407questtitle">
        <!--Quest NPC17407-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_17407_17407questtitle" value="STEP1" tracker_text="g4_Quest_17420_s1tt" text="g4_Quest_17420_s1log" actor_trigger="17464" />
        <!--Event for the Quest Quest17407 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest17407" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest17407.Folder19667" />
            <Trigger param="Quests.Quest17407" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest17407 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest17407" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest17407.Folder19667" />
            <Trigger param="Quests.Quest17407" type="VariableChange" />
        </Event>
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_17407_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_17407_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_17407_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_17407_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest17328" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest17328" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest17328" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest17328" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest17407" />
            <Trigger param="Quests.Quest17328" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest17559" text="g4_Quest_17559_17559questtitle">
        <!--Quest NPC17559-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_17559_17559questtitle" value="STEP1" tracker_text="g4_Quest_17569_s1tt" text="g4_Quest_17569_s1log" actor_trigger="17474" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_17559_17559questtitle" value="STEP2" tracker_text="g4_Quest_17690_s1tt" text="g4_Quest_17690_s1log" actor_trigger="17318" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_17559_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_17559_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_17559_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_17559_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest17407" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest17407" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest17407" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest17407" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest17559" />
            <Trigger param="Quests.Quest17407" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest17332" text="g4_Quest_17332_17332questtitle">
        <!--Quest NPC17332-->
        <!--step - wait in case of Step=Step1-->
        <Step tracker_title="g4_Quest_17332_17332questtitle" value="STEP1" tracker_text="g4_Quest_17729_s1tt" text="g4_Quest_17729_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_17729_s1tt" />
        </Step>
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_17332_17332questtitle" value="STEP2" tracker_text="g4_Quest_17748_s1tt" text="g4_Quest_17748_s1log" actor_trigger="17359" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_17332_17332questtitle" value="STEP3" tracker_text="g4_Quest_17762_s1tt" text="g4_Quest_17762_s1log" actor_trigger="17359" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_17332_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_17332_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_17332_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_17332_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest17559" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest17559" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest17559" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest17559" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest17332" />
            <Trigger param="Quests.Quest17559" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest17785" text="g4_Quest_17785_17785questtitle">
        <!--Quest NPC17785-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_17785_17785questtitle" value="STEP1" tracker_text="g4_Quest_17797_s1tt" text="g4_Quest_17797_s1log" actor_trigger="17487" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_17785_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_17785_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_17785_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_17785_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest17332" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest17332" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest17332" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest17332" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest17785" />
            <Trigger param="Quests.Quest17332" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest17789" text="g4_Quest_17789_17789questtitle">
        <!--Quest NPC17789-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_17789_17789questtitle" value="STEP1" tracker_text="g4_Quest_17818_s1tt" text="g4_Quest_17818_s1log" actor_trigger="17497" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_17789_17789questtitle" value="STEP2" tracker_text="g4_Quest_17835_s1tt" text="g4_Quest_17835_s1log" actor_trigger="17359" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_17789_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_17789_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_17789_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_17789_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest17785" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest17785" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest17785" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest17785" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest17789" />
            <Trigger param="Quests.Quest17785" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest17336" text="g4_Quest_17336_17336questtitle">
        <!--Quest NPC17336-->
        <!--step - wait in case of Step=Step1-->
        <Step tracker_title="g4_Quest_17336_17336questtitle" value="STEP1" tracker_text="g4_Quest_17860_s1tt" text="g4_Quest_17860_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_17860_s1tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_17336_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_17336_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_17336_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_17336_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest17789" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest17789" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest17789" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest17789" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest17336" />
            <Trigger param="Quests.Quest17789" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest22489" text="g4_Quest_22489_22489questtitle">
        <!--Quest Chained22489-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest22489 
	 -> it is triggered when the attached quest 19074 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest19074" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest19074" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest19074" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest19074" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest22489" />
            <Action action="ProgressQuest3" variable="Quests.Quest22489" />
            <Trigger param="Quests.Quest19074" type="VariableChange" />
        </Event>
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest22489 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="22636" type="Take" />
            <Action action="Decrease" variable="Quest22489_QE_22589_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest22489 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest22489" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest22489_QE_22589_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest3" variable="Quests.Quest22489" />
            <Trigger param="Quest22489_QE_22589_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_22489_22489questtitle" value="STEP1" tracker_text="g4_Quest_22589_s1tt" text="g4_Quest_22589_s1log">
            <SubStep variable="Quest22489_QE_22589_RevCounter_1" count="1" tracker_text="g4_Quest_22589_1" actor_trigger="22636">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_22489_22489questtitle" value="STEP2" tracker_text="g4_Quest_22589_s2tt" text="g4_Quest_22589_s2log" actor_trigger="21975" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_22489_22489questtitle" value="STEP3" tracker_text="g4_Quest_22577_s1tt" text="g4_Quest_22577_s1log" actor_trigger="12004" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_22489_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_22489_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_22489_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_22489_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest19074" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest19074" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest19074" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest19074" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest22489" />
            <Trigger param="Quests.Quest19074" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest19257" text="g4_Quest_19257_19257questtitle">
        <!--Quest Chained19257-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest19257 
	 -> it is triggered when the attached quest 22489 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest22489" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest22489" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest22489" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest22489" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest19257" />
            <Action action="ProgressQuest2" variable="Quests.Quest19257" />
            <Trigger param="Quests.Quest22489" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_19257_19257questtitle" value="STEP1" tracker_text="g4_Quest_19259_s1tt" text="g4_Quest_19259_s1log" actor_trigger="19247" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - buy in case of Step=Step2-->
        <Step tracker_title="g4_Quest_19257_19257questtitle" value="STEP2" tracker_text="g4_Quest_19299_s1tt" text="g4_Quest_19299_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_19299_s1tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_19257_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_19257_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_19257_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_19257_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest22489" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest22489" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest22489" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest22489" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest19257" />
            <Trigger param="Quests.Quest22489" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest18512" text="g4_Quest_18512_18512questtitle">
        <!--Quest Chained18512-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest18512 
	 -> it is triggered when the attached quest 30967 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest30967" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest30967" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest30967" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest30967" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18512" />
            <Action action="ProgressQuest2" variable="Quests.Quest18512" />
            <Trigger param="Quests.Quest30967" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_18512_18512questtitle" value="STEP1" tracker_text="g4_Quest_18518_s1tt" text="g4_Quest_18518_s1log" actor_trigger="10781" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_18512_18512questtitle" value="STEP2" tracker_text="g4_Quest_18549_s1tt" text="g4_Quest_18549_s1log" actor_trigger="7640" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_18512_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_18512_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_18512_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_18512_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest30967" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest30967" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest30967" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest30967" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18512" />
            <Trigger param="Quests.Quest30967" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest8855" text="g4_Quest_8855_8855questtitle">
        <!--Quest Chained8855-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest8855 
	 -> it is triggered when the attached quest 18512 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest18512" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest18512" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest18512" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest18512" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest8855" />
            <Action action="ProgressQuest1" variable="Quests.Quest8855" />
            <Trigger param="Quests.Quest18512" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_8855_8855questtitle" value="STEP1" tracker_text="g4_Quest_8880_s1tt" text="g4_Quest_8880_s1log" actor_trigger="7634" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_8855_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_8855_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_8855_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_8855_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest18512" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest18512" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest18512" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest18512" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest8855" />
            <Trigger param="Quests.Quest18512" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest16349" text="g4_Quest_16349_16349questtitle">
        <!--Quest Chained16349-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest16349 
	 -> it is triggered when the attached quest 8855 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8855" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8855" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8855" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8855" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest16349" />
            <Action action="Progress_Quests.Quest16349" variable="Quests.Quest16349" />
            <Trigger param="Quests.Quest8855" type="VariableChange" />
        </Event>
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest16349" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest16353" />
            <Action action="ProgressQuest3" variable="Quests.Quest16353" />
            <Action action="ActivateQuest" variable="Quests.Quest16355" />
            <Action action="ProgressQuest3" variable="Quests.Quest16355" />
            <Trigger param="Quests.Quest16349" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step1-->
        <Step tracker_title="g4_Quest_16349_16349questtitle" value="STEP1" tracker_text="g4_Quest_16351_srtt" text="g4_Quest_16351_srlog">
            <Quest main="false" name="Quest16353" text="g4_Quest_16353_16353questtitle">
                <!--Quest SubQuest16353-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_16353_16353questtitle" value="STEP1" tracker_text="g4_Quest_16370_s1tt" text="g4_Quest_16370_s1log" actor_trigger="7682" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - buy in case of Step=Step3-->
                <Step tracker_title="g4_Quest_16353_16353questtitle" value="STEP3" tracker_text="g4_Quest_32592_s1tt" text="g4_Quest_32592_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_32592_s1tt" />
                </Step>
                <!--step - deliver in case of Step=Step6-->
                <Step tracker_title="g4_Quest_16353_16353questtitle" value="STEP6" tracker_text="g4_Quest_16402_s1tt" text="g4_Quest_16402_s1log" actor_trigger="7634" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- step - talk to in case of Step=Step7-->
                <Step tracker_title="g4_Quest_16353_16353questtitle" value="STEP7" tracker_text="g4_Quest_16421_s1tt" text="g4_Quest_16421_s1log" actor_trigger="7703" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- step - talk to in case of Step=Step8-->
                <Step tracker_title="g4_Quest_16353_16353questtitle" value="STEP8" tracker_text="g4_Quest_16428_s1tt" text="g4_Quest_16428_s1log" actor_trigger="7634" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- step - talk to in case of Step=Step9-->
                <Step tracker_title="g4_Quest_16353_16353questtitle" value="STEP9" tracker_text="g4_Quest_16433_s1tt" text="g4_Quest_16433_s1log" actor_trigger="7703" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- step - talk to in case of Step=Step10-->
                <Step tracker_title="g4_Quest_16353_16353questtitle" value="STEP10" tracker_text="g4_Quest_16470_s1tt" text="g4_Quest_16470_s1log" actor_trigger="7634" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_16353_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest16355" text="g4_Quest_16355_16355questtitle">
                <!--Quest SubQuest16355-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_16355_16355questtitle" value="STEP1" tracker_text="g4_Quest_16363_s1tt" text="g4_Quest_16363_s1log" actor_trigger="7634" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_16355_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_16349_16349questtitle" value="STEP2" tracker_text="g4_Quest_16351_s2tt" text="g4_Quest_16351_s2log" show_log="false" show_tracker="true" actor_trigger="7634">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_16351_s2tt" />
        </Step>
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_16349_16349questtitle" value="STEP3" tracker_text="g4_Quest_18577_s1tt" text="g4_Quest_18577_s1log" actor_trigger="18582" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_16349_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_16349_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_16349_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_16349_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8855" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8855" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8855" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8855" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest16349" />
            <Trigger param="Quests.Quest8855" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest22944" text="g4_Quest_22944_22944questtitle">
        <!--Quest Chained22944-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest22944 
	 -> it is triggered when the attached quest 6218 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6218" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6218" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6218" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6218" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest22944" />
            <Action action="ProgressQuest2" variable="Quests.Quest22944" />
            <Trigger param="Quests.Quest6218" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_22944_22944questtitle" value="STEP1" tracker_text="g4_Quest_22961_s1tt" text="g4_Quest_22961_s1log" actor_trigger="8463" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_22944_22944questtitle" value="STEP2" tracker_text="g4_Quest_22946_s1tt" text="g4_Quest_22946_s1log" actor_trigger="22951" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_22944_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_22944_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_22944_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_22944_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6218" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6218" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6218" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6218" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest22944" />
            <Trigger param="Quests.Quest6218" type="VariableChange" />
        </Event>
    </Quest>
    <!--The Lost Soldier-->
    <Quest main="false" name="Quest2735" text="g4_Quest_2735_2735questtitle">
        <!--Quest NPC2735-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_2735_2735questtitle" value="STEP1" tracker_text="g4_Quest_2738_s1tt" text="g4_Quest_2738_s1log" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step2-->
        <!--Event for each QuestItem the Quest Quest2735 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="2754" type="Take" />
            <Action action="Decrease" variable="Quest2735_QE_2741_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest2735 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest2735" type="IN">
                    <Value tag="STEP2" />
                </Operand1>
                <Operand2 variable="Quest2735_QE_2741_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest3" variable="Quests.Quest2735" />
            <Action action="ActivateDialog" variable="Dialog_2744" />
            <Trigger param="Quest2735_QE_2741_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_2735_2735questtitle" value="STEP2" tracker_text="g4_Quest_2741_s1tt" text="g4_Quest_2741_s1log">
            <SubStep variable="Quest2735_QE_2741_RevCounter_1" count="1" tracker_text="g4_Quest_2741_1">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step3-->
        <Step tracker_title="g4_Quest_2735_2735questtitle" value="STEP3" tracker_text="g4_Quest_2741_s2tt" text="g4_Quest_2741_s2log" show_log="false" show_tracker="true" actor_trigger="7664">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_2741_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_2735_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_2735_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_2735_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_2735_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="true" name="Quest18658" text="g4_Quest_18658_18658questtitle">
        <!--Quest Chained18658-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest18658 
	 -> it is triggered when the attached quest 16349 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest16349" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest16349" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest16349" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest16349" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18658" />
            <Action action="ProgressQuest2" variable="Quests.Quest18658" />
            <Trigger param="Quests.Quest16349" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_18658_18658questtitle" value="STEP1" tracker_text="g4_Quest_18665_s1tt" text="g4_Quest_18665_s1log" actor_trigger="7682" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - wait in case of Step=Step2-->
        <Step tracker_title="g4_Quest_18658_18658questtitle" value="STEP2" tracker_text="g4_Quest_18670_s1tt" text="g4_Quest_18670_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_18670_s1tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_18658_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_18658_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_18658_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_18658_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest16349" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest16349" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest16349" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest16349" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18658" />
            <Trigger param="Quests.Quest16349" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest18688" text="g4_Quest_18688_18688questtitle">
        <!--Quest Chained18688-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest18688 
	 -> it is triggered when the attached quest 18658 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest18658" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest18658" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest18658" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest18658" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18688" />
            <Action action="ProgressQuest5" variable="Quests.Quest18688" />
            <Trigger param="Quests.Quest18658" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_18688_18688questtitle" value="STEP1" tracker_text="g4_Quest_18692_s1tt" text="g4_Quest_18692_s1log" actor_trigger="7703" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_18688_18688questtitle" value="STEP2" tracker_text="g4_Quest_18703_s1tt" text="g4_Quest_18703_s1log" actor_trigger="7634" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest18688" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18722" />
            <Action action="ProgressQuest5" variable="Quests.Quest18722" />
            <Action action="ActivateQuest" variable="Quests.Quest18724" />
            <Action action="ProgressQuest5" variable="Quests.Quest18724" />
            <Trigger param="Quests.Quest18688" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step3-->
        <Step tracker_title="g4_Quest_18688_18688questtitle" value="STEP3" tracker_text="g4_Quest_18720_srtt" text="g4_Quest_18720_srlog">
            <Quest main="false" name="Quest18722" text="g4_Quest_18722_18722questtitle">
                <!--Quest SubQuest18722-->
                <!--step - buy in case of Step=Step1-->
                <Step tracker_title="g4_Quest_18722_18722questtitle" value="STEP1" tracker_text="g4_Quest_18733_s1tt" text="g4_Quest_18733_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_18733_s1tt" />
                </Step>
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_18722_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest18724" text="g4_Quest_18724_18724questtitle">
                <!--Quest SubQuest18724-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_18724_18724questtitle" value="STEP1" tracker_text="g4_Quest_18741_s1tt" text="g4_Quest_18741_s1log" actor_trigger="7634" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_18724_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_18688_18688questtitle" value="STEP4" tracker_text="g4_Quest_18720_s2tt" text="g4_Quest_18720_s2log" show_log="false" show_tracker="true" actor_trigger="7703">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_18720_s2tt" />
        </Step>
        <!-- step - talk to in case of Step=Step5-->
        <Step tracker_title="g4_Quest_18688_18688questtitle" value="STEP5" tracker_text="g4_Quest_18756_s1tt" text="g4_Quest_18756_s1log" actor_trigger="7655" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_18688_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_18688_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_18688_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_18688_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest18658" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest18658" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest18658" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest18658" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18688" />
            <Trigger param="Quests.Quest18658" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest18796" text="g4_Quest_18796_18796questtitle">
        <!--Quest Chained18796-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest18796 
	 -> it is triggered when the attached quest 18688 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest18688" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest18688" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest18688" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest18688" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18796" />
            <Action action="ProgressQuest4" variable="Quests.Quest18796" />
            <Trigger param="Quests.Quest18688" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_18796_18796questtitle" value="STEP1" tracker_text="g4_Quest_18798_s1tt" text="g4_Quest_18798_s1log" actor_trigger="18582" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_18796_18796questtitle" value="STEP2" tracker_text="g4_Quest_18809_s1tt" text="g4_Quest_18809_s1log" actor_trigger="18582" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_18796_18796questtitle" value="STEP3" tracker_text="g4_Quest_18814_s1tt" text="g4_Quest_18814_s1log" actor_trigger="18582" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_18796_18796questtitle" value="STEP4" tracker_text="g4_Quest_18823_s1tt" text="g4_Quest_18823_s1log" actor_trigger="18828" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_18796_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_18796_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_18796_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_18796_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest18688" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest18688" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest18688" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest18688" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18796" />
            <Trigger param="Quests.Quest18688" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest24820" text="g4_Quest_24820_24820questtitle">
        <!--Quest NPC24820-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest24820 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="24854" type="Take" />
            <Action action="Decrease" variable="Quest24820_QE_24844_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest24820 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest24820" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest24820_QE_24844_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest5" variable="Quests.Quest24820" />
            <Trigger param="Quest24820_QE_24844_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest24820 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest24820" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.24854" />
            <Trigger param="Quests.Quest24820" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_24820_24820questtitle" value="STEP1" tracker_text="g4_Quest_24844_s1tt" text="g4_Quest_24844_s1log">
            <SubStep variable="Quest24820_QE_24844_RevCounter_1" count="1" tracker_text="g4_Quest_24844_1" actor_trigger="24854">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_24820_24820questtitle" value="STEP2" tracker_text="g4_Quest_24844_s2tt" text="g4_Quest_24844_s2log" actor_trigger="24899" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_24820_24820questtitle" value="STEP3" tracker_text="g4_Quest_25266_s1tt" text="g4_Quest_25266_s1log" actor_trigger="25271" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step4-->
        <!--Event for each QuestItem the Quest Quest24820 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="24913" type="Take" />
            <Action action="Decrease" variable="Quest24820_QE_24883_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest24820 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest24820" type="IN">
                    <Value tag="STEP4" />
                </Operand1>
                <Operand2 variable="Quest24820_QE_24883_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest5" variable="Quests.Quest24820" />
            <Trigger param="Quest24820_QE_24883_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest24820 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest24820" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.24913" />
            <Trigger param="Quests.Quest24820" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_24820_24820questtitle" value="STEP4" tracker_text="g4_Quest_24883_s1tt" text="g4_Quest_24883_s1log">
            <SubStep variable="Quest24820_QE_24883_RevCounter_1" count="1" tracker_text="g4_Quest_24883_1" actor_trigger="24913">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step5-->
        <Step tracker_title="g4_Quest_24820_24820questtitle" value="STEP5" tracker_text="g4_Quest_24883_s2tt" text="g4_Quest_24883_s2log" actor_trigger="7682" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_24820_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_24820_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_24820_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_24820_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest18796" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest18796" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest18796" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest18796" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest24820" />
            <Trigger param="Quests.Quest18796" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest4775" text="g4_Quest_4775_4775questtitle">
        <!--Quest NPC4775-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_4775_4775questtitle" value="STEP1" tracker_text="g4_Quest_4788_s1tt" text="g4_Quest_4788_s1log" actor_trigger="7745" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step2-->
        <!--Event for each Mob the Quest Quest4775 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="4812" type="Kill" />
            <Action action="Decrease" variable="Quest4775_QE_4803_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="11211" type="Kill" />
            <Action action="Decrease" variable="Quest4775_QE_4803_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest4775 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest4775" type="IN">
                    <Value tag="STEP2" />
                </Operand1>
                <Operand2 variable="Quest4775_QE_4803_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest3" variable="Quests.Quest4775" />
            <Trigger param="Quest4775_QE_4803_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest4775 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest4775" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.4812" />
            <Action action="SpawnEntity" variable="Entities.11211" />
            <Trigger param="Quests.Quest4775" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_4775_4775questtitle" value="STEP2" tracker_text="g4_Quest_4803_s1tt" text="g4_Quest_4803_s1log">
            <SubStep variable="Quest4775_QE_4803_RevCounter_1" count="2" tracker_text="g4_Quest_4803_1" actor_trigger="11211">
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step3-->
        <Step tracker_title="g4_Quest_4775_4775questtitle" value="STEP3" tracker_text="g4_Quest_4803_s2tt" text="g4_Quest_4803_s2log" show_log="false" show_tracker="true" actor_trigger="7745">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_4803_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_4775_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_4775_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_4775_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_4775_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest4813" text="g4_Quest_4813_4813questtitle">
        <!--Quest NPC4813-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest4813 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="4860" type="Take" />
            <Action action="Decrease" variable="Quest4813_QE_4820_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="11222" type="Take" />
            <Action action="Decrease" variable="Quest4813_QE_4820_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="11223" type="Take" />
            <Action action="Decrease" variable="Quest4813_QE_4820_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest4813 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest4813" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest4813_QE_4820_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest6" variable="Quests.Quest4813" />
            <Action action="ActivateDialog" variable="Dialog_4823" />
            <Trigger param="Quest4813_QE_4820_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_4813_4813questtitle" value="STEP1" tracker_text="g4_Quest_4820_s1tt" text="g4_Quest_4820_s1log">
            <SubStep variable="Quest4813_QE_4820_RevCounter_1" count="1" tracker_text="g4_Quest_4820_1">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_4813_4813questtitle" value="STEP2" tracker_text="g4_Quest_4820_s2tt" text="g4_Quest_4820_s2log" show_log="false" show_tracker="true" actor_trigger="7730">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_4820_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step3-->
        <!--Event for each QuestItem the Quest Quest4813 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="4867" type="Take" />
            <Action action="Decrease" variable="Quest4813_QE_4850_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="11240" type="Take" />
            <Action action="Decrease" variable="Quest4813_QE_4850_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="11241" type="Take" />
            <Action action="Decrease" variable="Quest4813_QE_4850_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest4813 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest4813" type="IN">
                    <Value tag="STEP3" />
                </Operand1>
                <Operand2 variable="Quest4813_QE_4850_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest6" variable="Quests.Quest4813" />
            <Action action="ActivateDialog" variable="Dialog_4853" />
            <Trigger param="Quest4813_QE_4850_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_4813_4813questtitle" value="STEP3" tracker_text="g4_Quest_4850_s1tt" text="g4_Quest_4850_s1log">
            <SubStep variable="Quest4813_QE_4850_RevCounter_1" count="1" tracker_text="g4_Quest_4850_1">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step4-->
        <Step tracker_title="g4_Quest_4813_4813questtitle" value="STEP4" tracker_text="g4_Quest_4850_s2tt" text="g4_Quest_4850_s2log" show_log="false" show_tracker="true" actor_trigger="7730">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_4850_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step5-->
        <!--Event for each QuestItem the Quest Quest4813 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="4882" type="Take" />
            <Action action="Decrease" variable="Quest4813_QE_4868_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="11258" type="Take" />
            <Action action="Decrease" variable="Quest4813_QE_4868_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="11259" type="Take" />
            <Action action="Decrease" variable="Quest4813_QE_4868_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest4813 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest4813" type="IN">
                    <Value tag="STEP5" />
                </Operand1>
                <Operand2 variable="Quest4813_QE_4868_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest6" variable="Quests.Quest4813" />
            <Action action="ActivateDialog" variable="Dialog_4871" />
            <Trigger param="Quest4813_QE_4868_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_4813_4813questtitle" value="STEP5" tracker_text="g4_Quest_4868_s1tt" text="g4_Quest_4868_s1log">
            <SubStep variable="Quest4813_QE_4868_RevCounter_1" count="3" tracker_text="g4_Quest_4868_1">
                <Value tag="3_MORE" />
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step6-->
        <Step tracker_title="g4_Quest_4813_4813questtitle" value="STEP6" tracker_text="g4_Quest_4868_s2tt" text="g4_Quest_4868_s2log" show_log="false" show_tracker="true" actor_trigger="7730">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_4868_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_4813_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_4813_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_4813_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_4813_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8683" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8683" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8683" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8683" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest4813" />
            <Trigger param="Quests.Quest8683" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest3680" text="g4_Quest_3680_3680questtitle">
        <!--Quest NPC3680-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest3680 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="18422" type="Take" />
            <Action action="Decrease" variable="Quest3680_QE_18388_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest3680 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest3680" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest3680_QE_18388_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest3680" />
            <Action action="ActivateDialog" variable="Dialog_18391" />
            <Trigger param="Quest3680_QE_18388_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_3680_3680questtitle" value="STEP1" tracker_text="g4_Quest_18388_s1tt" text="g4_Quest_18388_s1log">
            <SubStep variable="Quest3680_QE_18388_RevCounter_1" count="1" tracker_text="g4_Quest_18388_1" actor_trigger="18422">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_3680_3680questtitle" value="STEP2" tracker_text="g4_Quest_18388_s2tt" text="g4_Quest_18388_s2log" show_log="false" show_tracker="true" actor_trigger="10781">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_18388_s2tt" />
        </Step>
        <!--Event for the Quest Quest3680 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest3680" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest3680.Folder18432" />
            <Trigger param="Quests.Quest3680" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest3680 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest3680" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest3680.Folder18433" />
            <Trigger param="Quests.Quest3680" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest3680 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest3680" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest3680.Folder18434" />
            <Trigger param="Quests.Quest3680" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest3680 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest3680" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest3680.Folder18434" />
            <Trigger param="Quests.Quest3680" type="VariableChange" />
        </Event>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- add experience for the collect element-->
        <Event>
            <Test variable="Quests.Quest3680" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Script statement="actor:AddExperience( 100 )" actor="Hero" />
            <Trigger param="Quests.Quest3680" type="VariableChange" />
        </Event>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_3680_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_3680_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_3680_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_3680_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest30967" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest30967" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest30967" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest30967" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest3680" />
            <Trigger param="Quests.Quest30967" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest3747" text="g4_Quest_3747_3747questtitle">
        <!--Quest NPC3747-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_3747_3747questtitle" value="STEP1" tracker_text="g4_Quest_3757_s1tt" text="g4_Quest_3757_s1log" actor_trigger="7691" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_3747_3747questtitle" value="STEP2" tracker_text="g4_Quest_3767_s1tt" text="g4_Quest_3767_s1log" actor_trigger="7697" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step3-->
        <Step tracker_title="g4_Quest_3747_3747questtitle" value="STEP3" tracker_text="g4_Quest_3778_s1tt" text="g4_Quest_3778_s1log" actor_trigger="7661" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_3747_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_3747_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_3747_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_3747_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest3680" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest3680" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest3680" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest3680" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest3747" />
            <Trigger param="Quests.Quest3680" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest6234" text="g4_Quest_6234_6234questtitle">
        <!--Quest NPC6234-->
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest6234" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest6246" />
            <Action action="ProgressQuest2" variable="Quests.Quest6246" />
            <Action action="ActivateQuest" variable="Quests.Quest6248" />
            <Action action="ProgressQuest2" variable="Quests.Quest6248" />
            <Trigger param="Quests.Quest6234" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step1-->
        <Step tracker_title="g4_Quest_6234_6234questtitle" value="STEP1" tracker_text="g4_Quest_6244_srtt" text="g4_Quest_6244_srlog">
            <Quest main="false" name="Quest6246" text="g4_Quest_6246_6246questtitle">
                <!--Quest SubQuest6246-->
                <!--step - wait in case of Step=Step1-->
                <Step tracker_title="g4_Quest_6246_6246questtitle" value="STEP1" tracker_text="g4_Quest_6262_s1tt" text="g4_Quest_6262_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_6262_s1tt" />
                </Step>
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_6246_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest6248" text="g4_Quest_6248_6248questtitle">
                <!--Quest SubQuest6248-->
                <!--step - wait in case of Step=Step1-->
                <Step tracker_title="g4_Quest_6248_6248questtitle" value="STEP1" tracker_text="g4_Quest_6267_s1tt" text="g4_Quest_6267_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_6267_s1tt" />
                </Step>
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_6248_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_6234_6234questtitle" value="STEP2" tracker_text="g4_Quest_6244_s2tt" text="g4_Quest_6244_s2log" show_log="false" show_tracker="true" actor_trigger="7661">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_6244_s2tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_6234_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_6234_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_6234_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_6234_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest3747" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest3747" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest3747" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest3747" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest6234" />
            <Trigger param="Quests.Quest3747" type="VariableChange" />
        </Event>
    </Quest>
    <!--'Kill and tell'-Element needed!-->
    <Quest main="false" name="Quest1414" text="g4_Quest_1414_1414questtitle">
        <!--Quest NPC1414-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_1414_1414questtitle" value="STEP1" tracker_text="g4_Quest_1417_s1tt" text="g4_Quest_1417_s1log" actor_trigger="7691" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step2-->
        <!--Event for each Mob the Quest Quest1414 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="3840" type="Kill" />
            <Action action="Decrease" variable="Quest1414_QE_3823_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest1414 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest1414" type="IN">
                    <Value tag="STEP2" />
                </Operand1>
                <Operand2 variable="Quest1414_QE_3823_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest3" variable="Quests.Quest1414" />
            <Trigger param="Quest1414_QE_3823_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest1414 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest1414" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.3840" />
            <Trigger param="Quests.Quest1414" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_1414_1414questtitle" value="STEP2" tracker_text="g4_Quest_3823_s1tt" text="g4_Quest_3823_s1log">
            <SubStep variable="Quest1414_QE_3823_RevCounter_1" count="1" tracker_text="g4_Quest_3823_1" actor_trigger="3840">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step3-->
        <Step tracker_title="g4_Quest_1414_1414questtitle" value="STEP3" tracker_text="g4_Quest_3823_s2tt" text="g4_Quest_3823_s2log" show_log="false" show_tracker="true" actor_trigger="7691">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_3823_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_1414_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_1414_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_1414_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_1414_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6234" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6234" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6234" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6234" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest1414" />
            <Trigger param="Quests.Quest6234" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest7260" text="g4_Quest_7260_7260questtitle">
        <!--Quest NPC7260-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_7260_7260questtitle" value="STEP1" tracker_text="g4_Quest_7264_s1tt" text="g4_Quest_7264_s1log" actor_trigger="7697" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_7260_7260questtitle" value="STEP2" tracker_text="g4_Quest_7269_s1tt" text="g4_Quest_7269_s1log" actor_trigger="10781" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_7260_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_7260_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_7260_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_7260_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest1414" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest1414" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest1414" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest1414" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest7260" />
            <Trigger param="Quests.Quest1414" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest7195" text="g4_Quest_7195_7195questtitle">
        <!--Quest NPC7195-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_7195_7195questtitle" value="STEP1" tracker_text="g4_Quest_7211_s1tt" text="g4_Quest_7211_s1log" actor_trigger="7604" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_7195_7195questtitle" value="STEP2" tracker_text="g4_Quest_7216_s1tt" text="g4_Quest_7216_s1log" actor_trigger="7679" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - buy in case of Step=Step3-->
        <Step tracker_title="g4_Quest_7195_7195questtitle" value="STEP3" tracker_text="g4_Quest_7222_s1tt" text="g4_Quest_7222_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_7222_s1tt" />
        </Step>
        <!--step - deliver in case of Step=Step4-->
        <Step tracker_title="g4_Quest_7195_7195questtitle" value="STEP4" tracker_text="g4_Quest_7228_s1tt" text="g4_Quest_7228_s1log" actor_trigger="7604" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step5-->
        <Step tracker_title="g4_Quest_7195_7195questtitle" value="STEP5" tracker_text="g4_Quest_7234_s1tt" text="g4_Quest_7234_s1log" actor_trigger="7661" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_7195_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_7195_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_7195_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_7195_FinishedLog4" />
        <Event>
            <Test type="AND">
                <Operand1 type="OR">
                    <Operand1 variable="Quests.Quest8579" type="IN">
                        <Value tag="FINISHED_1" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8579" type="IN">
                            <Value tag="FINISHED_2" />
                        </Operand1>
                        <Operand2 type="OR">
                            <Operand1 variable="Quests.Quest8579" type="IN">
                                <Value tag="FINISHED_3" />
                            </Operand1>
                            <Operand2 variable="Quests.Quest8579" type="IN">
                                <Value tag="FINISHED_4" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest1414" type="IN">
                        <Value tag="FINISHED_1" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest1414" type="IN">
                            <Value tag="FINISHED_2" />
                        </Operand1>
                        <Operand2 type="OR">
                            <Operand1 variable="Quests.Quest1414" type="IN">
                                <Value tag="FINISHED_3" />
                            </Operand1>
                            <Operand2 variable="Quests.Quest1414" type="IN">
                                <Value tag="FINISHED_4" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest7195" />
            <Trigger param="Quests.Quest8579" type="VariableChange" />
            <Trigger param="Quests.Quest1414" type="VariableChange" />
        </Event>
    </Quest>
    <!--TODO: implement different finished steps-->
    <Quest main="false" name="Quest7439" text="g4_Quest_7439_7439questtitle">
        <!--Quest NPC7439-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_7439_7439questtitle" value="STEP3" tracker_text="g4_Quest_7470_s1tt" text="g4_Quest_7470_s1log" actor_trigger="10781" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_7439_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_7439_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_7439_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_7439_FinishedLog4" />
        <Event>
            <Test type="AND">
                <Operand1 type="OR">
                    <Operand1 variable="Quests.Quest7260" type="IN">
                        <Value tag="FINISHED_1" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest7260" type="IN">
                            <Value tag="FINISHED_2" />
                        </Operand1>
                        <Operand2 type="OR">
                            <Operand1 variable="Quests.Quest7260" type="IN">
                                <Value tag="FINISHED_3" />
                            </Operand1>
                            <Operand2 variable="Quests.Quest7260" type="IN">
                                <Value tag="FINISHED_4" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest7195" type="IN">
                        <Value tag="FINISHED_1" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest7195" type="IN">
                            <Value tag="FINISHED_2" />
                        </Operand1>
                        <Operand2 type="OR">
                            <Operand1 variable="Quests.Quest7195" type="IN">
                                <Value tag="FINISHED_3" />
                            </Operand1>
                            <Operand2 variable="Quests.Quest7195" type="IN">
                                <Value tag="FINISHED_4" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest7439" />
            <Trigger param="Quests.Quest7260" type="VariableChange" />
            <Trigger param="Quests.Quest7195" type="VariableChange" />
        </Event>
    </Quest>
    <!--Ivy: hunt some molerats-->
    <Quest main="true" name="Quest1900" text="g4_Quest_1900_1900questtitle">
        <!--Quest NPC1900-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest1900 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="1924" type="Kill" />
            <Action action="Decrease" variable="Quest1900_QE_1905_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest1900 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest1900" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest1900_QE_1905_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest1900" />
            <Action action="ActivateDialog" variable="Dialog_1908" />
            <Trigger param="Quest1900_QE_1905_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_1900_1900questtitle" value="STEP1" tracker_text="g4_Quest_1905_s1tt" text="g4_Quest_1905_s1log">
            <SubStep variable="Quest1900_QE_1905_RevCounter_1" count="1" tracker_text="g4_Quest_1905_1" actor_trigger="1924">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_1900_1900questtitle" value="STEP2" tracker_text="g4_Quest_1905_s2tt" text="g4_Quest_1905_s2log" show_log="false" show_tracker="true" actor_trigger="7658">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_1905_s2tt" />
        </Step>
        <!--Event for the Quest Quest1900 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest1900" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest1900.Folder5805" />
            <Trigger param="Quests.Quest1900" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest1900 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest1900" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest1900.Folder5805" />
            <Trigger param="Quests.Quest1900" type="VariableChange" />
        </Event>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- add experience for the collect element-->
        <Event>
            <Test variable="Quests.Quest1900" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Script statement="actor:AddExperience( 300 )" actor="Hero" />
            <Trigger param="Quests.Quest1900" type="VariableChange" />
        </Event>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_1900_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_1900_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_1900_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_1900_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="true" name="Quest27737" text="g4_Quest_27737_27737questtitle">
        <!--Quest Chained27737-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest27737 
	 -> it is triggered when the attached quest 1900 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest1900" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest1900" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest1900" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest1900" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest27737" />
            <Action action="ProgressQuest1" variable="Quests.Quest27737" />
            <Trigger param="Quests.Quest1900" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_27737_27737questtitle" value="STEP1" tracker_text="g4_Quest_27739_s1tt" text="g4_Quest_27739_s1log" actor_trigger="7646" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_27737_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_27737_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_27737_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_27737_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest1900" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest1900" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest1900" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest1900" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest27737" />
            <Trigger param="Quests.Quest1900" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest2172" text="g4_Quest_2172_2172questtitle">
        <!--Quest Chained2172-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest2172 
	 -> it is triggered when the attached quest 27737 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest27737" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest27737" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest27737" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest27737" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest2172" />
            <Action action="ProgressQuest3" variable="Quests.Quest2172" />
            <Trigger param="Quests.Quest27737" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_2172_2172questtitle" value="STEP1" tracker_text="g4_Quest_2196_s1tt" text="g4_Quest_2196_s1log" actor_trigger="7649" />
        <!--Event for the Quest Quest2172 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest2172" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest2172.Folder27759" />
            <Trigger param="Quests.Quest2172" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest2172 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest2172" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest2172.Folder27759" />
            <Trigger param="Quests.Quest2172" type="VariableChange" />
        </Event>
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - wait in case of Step=Step2-->
        <Step tracker_title="g4_Quest_2172_2172questtitle" value="STEP2" tracker_text="g4_Quest_27767_s1tt" text="g4_Quest_27767_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_27767_s1tt" />
        </Step>
        <!--step - deliver in case of Step=Step3-->
        <Step tracker_title="g4_Quest_2172_2172questtitle" value="STEP3" tracker_text="g4_Quest_27775_s1tt" text="g4_Quest_27775_s1log" actor_trigger="7646" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_2172_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_2172_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_2172_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_2172_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest27737" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest27737" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest27737" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest27737" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest2172" />
            <Trigger param="Quests.Quest27737" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest27792" text="g4_Quest_27792_27792questtitle">
        <!--Quest Chained27792-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest27792 
	 -> it is triggered when the attached quest 2172 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest2172" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest2172" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest2172" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest2172" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest27792" />
            <Action action="ProgressQuest3" variable="Quests.Quest27792" />
            <Trigger param="Quests.Quest2172" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_27792_27792questtitle" value="STEP1" tracker_text="g4_Quest_27794_s1tt" text="g4_Quest_27794_s1log" actor_trigger="7592" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - wait in case of Step=Step2-->
        <Step tracker_title="g4_Quest_27792_27792questtitle" value="STEP2" tracker_text="g4_Quest_27805_s1tt" text="g4_Quest_27805_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_27805_s1tt" />
        </Step>
        <!--step - deliver in case of Step=Step3-->
        <Step tracker_title="g4_Quest_27792_27792questtitle" value="STEP3" tracker_text="g4_Quest_27817_s1tt" text="g4_Quest_27817_s1log" actor_trigger="7658" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_27792_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_27792_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_27792_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_27792_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest2172" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest2172" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest2172" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest2172" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest27792" />
            <Trigger param="Quests.Quest2172" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest27832" text="g4_Quest_27832_27832questtitle">
        <!--Quest Chained27832-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest27832 
	 -> it is triggered when the attached quest 27792 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest27792" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest27792" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest27792" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest27792" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest27832" />
            <Action action="ProgressQuest3" variable="Quests.Quest27832" />
            <Trigger param="Quests.Quest27792" type="VariableChange" />
        </Event>
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest27832 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="27850" type="Take" />
            <Action action="Decrease" variable="Quest27832_QE_27834_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest27832 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest27832" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest27832_QE_27834_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest3" variable="Quests.Quest27832" />
            <Trigger param="Quest27832_QE_27834_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest27832 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest27832" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.27850" />
            <Trigger param="Quests.Quest27832" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_27832_27832questtitle" value="STEP1" tracker_text="g4_Quest_27834_s1tt" text="g4_Quest_27834_s1log">
            <SubStep variable="Quest27832_QE_27834_RevCounter_1" count="1" tracker_text="g4_Quest_27834_1" actor_trigger="27850">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_27832_27832questtitle" value="STEP2" tracker_text="g4_Quest_27834_s2tt" text="g4_Quest_27834_s2log" show_log="false" show_tracker="true" actor_trigger="7658">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_27834_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step3-->
        <Step tracker_title="g4_Quest_27832_27832questtitle" value="STEP3" tracker_text="g4_Quest_27871_s1tt" text="g4_Quest_27871_s1log" actor_trigger="7613" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_27832_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_27832_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_27832_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_27832_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest27792" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest27792" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest27792" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest27792" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest27832" />
            <Trigger param="Quests.Quest27792" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest2286" text="g4_Quest_2286_2286questtitle">
        <!--Quest Chained2286-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest2286 
	 -> it is triggered when the attached quest 27832 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest27832" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest27832" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest27832" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest27832" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest2286" />
            <Action action="ProgressQuest1" variable="Quests.Quest2286" />
            <Trigger param="Quests.Quest27832" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_2286_2286questtitle" value="STEP1" tracker_text="g4_Quest_2288_s1tt" text="g4_Quest_2288_s1log" actor_trigger="7676" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_2286_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_2286_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_2286_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_2286_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest27832" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest27832" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest27832" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest27832" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest2286" />
            <Trigger param="Quests.Quest27832" type="VariableChange" />
        </Event>
    </Quest>
    <!--TODO: add quest dependency: q029 Muckslinger Eggs must be done-->
    <Quest main="false" name="Quest4624" text="g4_Quest_4624_4624questtitle">
        <!--Quest NPC4624-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_4624_4624questtitle" value="STEP1" tracker_text="g4_Quest_4629_s1tt" text="g4_Quest_4629_s1log" actor_trigger="7604" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_4624_4624questtitle" value="STEP2" tracker_text="g4_Quest_4634_s1tt" text="g4_Quest_4634_s1log" actor_trigger="7667" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_4624_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_4624_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_4624_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_4624_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest4957" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest4957" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest4957" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest4957" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest4624" />
            <Trigger param="Quests.Quest4957" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest18843" text="g4_Quest_18843_18843questtitle">
        <!--Quest Chained18843-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest18843 
	 -> it is triggered when the attached quest 18796 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest18796" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest18796" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest18796" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest18796" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18843" />
            <Action action="ProgressQuest2" variable="Quests.Quest18843" />
            <Trigger param="Quests.Quest18796" type="VariableChange" />
        </Event>
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest18843 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="18881" type="Take" />
            <Action action="Decrease" variable="Quest18843_QE_18857_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest18843 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest18843" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest18843_QE_18857_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest18843" />
            <Trigger param="Quest18843_QE_18857_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest18843 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest18843" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.18881" />
            <Trigger param="Quests.Quest18843" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_18843_18843questtitle" value="STEP1" tracker_text="g4_Quest_18857_s1tt" text="g4_Quest_18857_s1log">
            <SubStep variable="Quest18843_QE_18857_RevCounter_1" count="1" tracker_text="g4_Quest_18857_1" actor_trigger="18881">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_18843_18843questtitle" value="STEP2" tracker_text="g4_Quest_18857_s2tt" text="g4_Quest_18857_s2log" actor_trigger="18828" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- add experience for the collect element-->
        <Event>
            <Test variable="Quests.Quest18843" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Script statement="actor:AddExperience( 200 )" actor="Hero" />
            <Trigger param="Quests.Quest18843" type="VariableChange" />
        </Event>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_18843_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_18843_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_18843_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_18843_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest18796" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest18796" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest18796" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest18796" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18843" />
            <Trigger param="Quests.Quest18796" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest18890" text="g4_Quest_18890_18890questtitle">
        <!--Quest Chained18890-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest18890 
	 -> it is triggered when the attached quest 18843 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest18843" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest18843" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest18843" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest18843" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18890" />
            <Action action="ProgressQuest2" variable="Quests.Quest18890" />
            <Trigger param="Quests.Quest18843" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_18890_18890questtitle" value="STEP1" tracker_text="g4_Quest_18892_s1tt" text="g4_Quest_18892_s1log" actor_trigger="7655" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_18890_18890questtitle" value="STEP2" tracker_text="g4_Quest_18901_s1tt" text="g4_Quest_18901_s1log" actor_trigger="18582" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_18890_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_18890_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_18890_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_18890_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest18843" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest18843" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest18843" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest18843" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18890" />
            <Trigger param="Quests.Quest18843" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest19011" text="g4_Quest_19011_19011questtitle">
        <!--Quest NPC19011-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest19011 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="19318" type="Take" />
            <Action action="Decrease" variable="Quest19011_QE_19093_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="21780" type="Take" />
            <Action action="Decrease" variable="Quest19011_QE_19093_RevCounter_2" />
        </Event>
        <Event>
            <Trigger param="21781" type="Take" />
            <Action action="Decrease" variable="Quest19011_QE_19093_RevCounter_3" />
        </Event>
        <Event>
            <Trigger param="21782" type="Take" />
            <Action action="Decrease" variable="Quest19011_QE_19093_RevCounter_4" />
        </Event>
        <!--Event for the Quest Quest19011 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest19011" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 type="AND">
                    <Operand1 variable="Quest19011_QE_19093_RevCounter_1" type="IN">
                        <Value tag="0_MORE" />
                    </Operand1>
                    <Operand2 type="AND">
                        <Operand1 variable="Quest19011_QE_19093_RevCounter_2" type="IN">
                            <Value tag="0_MORE" />
                        </Operand1>
                        <Operand2 type="AND">
                            <Operand1 variable="Quest19011_QE_19093_RevCounter_3" type="IN">
                                <Value tag="0_MORE" />
                            </Operand1>
                            <Operand2 variable="Quest19011_QE_19093_RevCounter_4" type="IN">
                                <Value tag="0_MORE" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest19011" />
            <Action action="ActivateDialog" variable="Dialog_19096" />
            <Trigger param="Quest19011_QE_19093_RevCounter_1" type="VariableChange" />
            <Trigger param="Quest19011_QE_19093_RevCounter_2" type="VariableChange" />
            <Trigger param="Quest19011_QE_19093_RevCounter_3" type="VariableChange" />
            <Trigger param="Quest19011_QE_19093_RevCounter_4" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_19011_19011questtitle" value="STEP1" tracker_text="g4_Quest_19093_s1tt" text="g4_Quest_19093_s1log">
            <SubStep variable="Quest19011_QE_19093_RevCounter_1" count="1" tracker_text="g4_Quest_19093_1" actor_trigger="19318">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest19011_QE_19093_RevCounter_2" count="1" tracker_text="g4_Quest_19093_2" actor_trigger="21780">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest19011_QE_19093_RevCounter_3" count="1" tracker_text="g4_Quest_19093_3" actor_trigger="21781">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest19011_QE_19093_RevCounter_4" count="1" tracker_text="g4_Quest_19093_4" actor_trigger="21782">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_19011_19011questtitle" value="STEP2" tracker_text="g4_Quest_19093_s2tt" text="g4_Quest_19093_s2log" show_log="false" show_tracker="true" actor_trigger="7667">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_19093_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_19011_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_19011_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_19011_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_19011_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest4624" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest4624" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest4624" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest4624" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest19011" />
            <Trigger param="Quests.Quest4624" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest19645" text="g4_Quest_19645_19645questtitle">
        <!--Quest NPC19645-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_19645_19645questtitle" value="STEP1" tracker_text="g4_Quest_19655_s1tt" text="g4_Quest_19655_s1log" actor_trigger="7604" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_19645_19645questtitle" value="STEP2" tracker_text="g4_Quest_19695_s1tt" text="g4_Quest_19695_s1log" actor_trigger="19701" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_19645_19645questtitle" value="STEP3" tracker_text="g4_Quest_19714_s1tt" text="g4_Quest_19714_s1log" actor_trigger="7667" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_19645_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_19645_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_19645_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_19645_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest19011" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest19011" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest19011" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest19011" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest19645" />
            <Trigger param="Quests.Quest19011" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest19427" text="g4_Quest_19427_19427questtitle">
        <!--Quest NPC19427-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest19427 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="19454" type="Take" />
            <Action action="Decrease" variable="Quest19427_QE_19434_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="21807" type="Take" />
            <Action action="Decrease" variable="Quest19427_QE_19434_RevCounter_2" />
        </Event>
        <Event>
            <Trigger param="21808" type="Take" />
            <Action action="Decrease" variable="Quest19427_QE_19434_RevCounter_3" />
        </Event>
        <!--Event for the Quest Quest19427 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest19427" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 type="AND">
                    <Operand1 variable="Quest19427_QE_19434_RevCounter_1" type="IN">
                        <Value tag="0_MORE" />
                    </Operand1>
                    <Operand2 type="AND">
                        <Operand1 variable="Quest19427_QE_19434_RevCounter_2" type="IN">
                            <Value tag="0_MORE" />
                        </Operand1>
                        <Operand2 variable="Quest19427_QE_19434_RevCounter_3" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ProgressQuest9" variable="Quests.Quest19427" />
            <Trigger param="Quest19427_QE_19434_RevCounter_1" type="VariableChange" />
            <Trigger param="Quest19427_QE_19434_RevCounter_2" type="VariableChange" />
            <Trigger param="Quest19427_QE_19434_RevCounter_3" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest19427 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest19427" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.19454" />
            <Action action="SpawnEntity" variable="Entities.21807" />
            <Action action="SpawnEntity" variable="Entities.21808" />
            <Trigger param="Quests.Quest19427" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_19427_19427questtitle" value="STEP1" tracker_text="g4_Quest_19434_s1tt" text="g4_Quest_19434_s1log">
            <SubStep variable="Quest19427_QE_19434_RevCounter_1" count="1" tracker_text="g4_Quest_19434_1" actor_trigger="19454">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest19427_QE_19434_RevCounter_2" count="1" tracker_text="g4_Quest_19434_2" actor_trigger="21807">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest19427_QE_19434_RevCounter_3" count="1" tracker_text="g4_Quest_19434_3" actor_trigger="21808">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_19427_19427questtitle" value="STEP2" tracker_text="g4_Quest_19434_s2tt" text="g4_Quest_19434_s2log" actor_trigger="19444" />
        <!-- event to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step3-->
        <!--Event for each QuestItem the Quest Quest19427 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="19520" type="Take" />
            <Action action="Decrease" variable="Quest19427_QE_19500_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest19427 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest19427" type="IN">
                    <Value tag="STEP3" />
                </Operand1>
                <Operand2 variable="Quest19427_QE_19500_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest9" variable="Quests.Quest19427" />
            <Trigger param="Quest19427_QE_19500_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest19427 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest19427" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.19520" />
            <Trigger param="Quests.Quest19427" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_19427_19427questtitle" value="STEP3" tracker_text="g4_Quest_19500_s1tt" text="g4_Quest_19500_s1log">
            <SubStep variable="Quest19427_QE_19500_RevCounter_1" count="1" tracker_text="g4_Quest_19500_1" actor_trigger="19520">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step4-->
        <Step tracker_title="g4_Quest_19427_19427questtitle" value="STEP4" tracker_text="g4_Quest_19500_s2tt" text="g4_Quest_19500_s2log" actor_trigger="19510" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step5-->
        <Step tracker_title="g4_Quest_19427_19427questtitle" value="STEP5" tracker_text="g4_Quest_19537_s1tt" text="g4_Quest_19537_s1log" actor_trigger="7667" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step6-->
        <!--Event for each QuestItem the Quest Quest19427 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="19566" type="Take" />
            <Action action="Decrease" variable="Quest19427_QE_19556_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest19427 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest19427" type="IN">
                    <Value tag="STEP6" />
                </Operand1>
                <Operand2 variable="Quest19427_QE_19556_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest9" variable="Quests.Quest19427" />
            <Trigger param="Quest19427_QE_19556_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest19427 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest19427" type="IN">
                <Value tag="STEP6" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.19566" />
            <Trigger param="Quests.Quest19427" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_19427_19427questtitle" value="STEP6" tracker_text="g4_Quest_19556_s1tt" text="g4_Quest_19556_s1log">
            <SubStep variable="Quest19427_QE_19556_RevCounter_1" count="1" tracker_text="g4_Quest_19556_1" actor_trigger="19566">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step7-->
        <Step tracker_title="g4_Quest_19427_19427questtitle" value="STEP7" tracker_text="g4_Quest_19556_s2tt" text="g4_Quest_19556_s2log" actor_trigger="19510" />
        <!-- event to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step8-->
        <!--Event for each QuestItem the Quest Quest19427 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="19603" type="Take" />
            <Action action="Decrease" variable="Quest19427_QE_19593_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest19427 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest19427" type="IN">
                    <Value tag="STEP8" />
                </Operand1>
                <Operand2 variable="Quest19427_QE_19593_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest9" variable="Quests.Quest19427" />
            <Trigger param="Quest19427_QE_19593_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest19427 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest19427" type="IN">
                <Value tag="STEP8" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.19603" />
            <Trigger param="Quests.Quest19427" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_19427_19427questtitle" value="STEP8" tracker_text="g4_Quest_19593_s1tt" text="g4_Quest_19593_s1log">
            <SubStep variable="Quest19427_QE_19593_RevCounter_1" count="1" tracker_text="g4_Quest_19593_1" actor_trigger="19603">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step9-->
        <Step tracker_title="g4_Quest_19427_19427questtitle" value="STEP9" tracker_text="g4_Quest_19593_s2tt" text="g4_Quest_19593_s2log" actor_trigger="7667" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_19427_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_19427_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_19427_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_19427_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest19645" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest19645" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest19645" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest19645" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest19427" />
            <Trigger param="Quests.Quest19645" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest19893" text="g4_Quest_19893_19893questtitle">
        <!--Quest NPC19893-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_19893_19893questtitle" value="STEP1" tracker_text="g4_Quest_19900_s1tt" text="g4_Quest_19900_s1log" actor_trigger="19833" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_19893_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_19893_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_19893_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_19893_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest19427" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest19427" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest19427" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest19427" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest19893" />
            <Trigger param="Quests.Quest19427" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest20708" text="g4_Quest_20708_20708questtitle">
        <!--Quest NPC20708-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest20708 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="20850" type="Take" />
            <Action action="Decrease" variable="Quest20708_QE_20818_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest20708 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest20708" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest20708_QE_20818_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest4" variable="Quests.Quest20708" />
            <Action action="ActivateDialog" variable="Dialog_20821" />
            <Trigger param="Quest20708_QE_20818_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_20708_20708questtitle" value="STEP1" tracker_text="g4_Quest_20818_s1tt" text="g4_Quest_20818_s1log">
            <SubStep variable="Quest20708_QE_20818_RevCounter_1" count="1" tracker_text="g4_Quest_20818_1" actor_trigger="20850">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_20708_20708questtitle" value="STEP2" tracker_text="g4_Quest_20818_s2tt" text="g4_Quest_20818_s2log" show_log="false" show_tracker="true" actor_trigger="7589">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_20818_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_20708_20708questtitle" value="STEP3" tracker_text="g4_Quest_20851_s1tt" text="g4_Quest_20851_s1log" actor_trigger="21709" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_20708_20708questtitle" value="STEP4" tracker_text="g4_Quest_20880_s1tt" text="g4_Quest_20880_s1log" actor_trigger="7589" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_20708_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_20708_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_20708_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_20708_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest19893" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest19893" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest19893" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest19893" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest20708" />
            <Trigger param="Quests.Quest19893" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest19914" text="g4_Quest_19914_19914questtitle">
        <!--Quest NPC19914-->
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest19914" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest21581" />
            <Action action="ProgressQuest2" variable="Quests.Quest21581" />
            <Action action="ActivateQuest" variable="Quests.Quest21583" />
            <Action action="ProgressQuest2" variable="Quests.Quest21583" />
            <Action action="ActivateQuest" variable="Quests.Quest21585" />
            <Action action="ProgressQuest2" variable="Quests.Quest21585" />
            <Trigger param="Quests.Quest19914" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step1-->
        <Step tracker_title="g4_Quest_19914_19914questtitle" value="STEP1" tracker_text="g4_Quest_21579_srtt" text="g4_Quest_21579_srlog">
            <Quest main="false" name="Quest21581" text="g4_Quest_21581_21581questtitle">
                <!--Quest SubQuest21581-->
                <!--step - wait in case of Step=Step1-->
                <Step tracker_title="g4_Quest_21581_21581questtitle" value="STEP1" tracker_text="g4_Quest_21589_s1tt" text="g4_Quest_21589_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_21589_s1tt" />
                </Step>
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_21581_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest21583" text="g4_Quest_21583_21583questtitle">
                <!--Quest SubQuest21583-->
                <!--step - wait in case of Step=Step1-->
                <Step tracker_title="g4_Quest_21583_21583questtitle" value="STEP1" tracker_text="g4_Quest_21594_s1tt" text="g4_Quest_21594_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_21594_s1tt" />
                </Step>
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_21583_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest21585" text="g4_Quest_21585_21585questtitle">
                <!--Quest SubQuest21585-->
                <!--step - wait in case of Step=Step1-->
                <Step tracker_title="g4_Quest_21585_21585questtitle" value="STEP1" tracker_text="g4_Quest_21599_s1tt" text="g4_Quest_21599_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_21599_s1tt" />
                </Step>
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_21585_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_19914_19914questtitle" value="STEP2" tracker_text="g4_Quest_21579_s2tt" text="g4_Quest_21579_s2log" show_log="false" show_tracker="true" actor_trigger="19833">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_21579_s2tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_19914_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_19914_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_19914_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_19914_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest19893" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest19893" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest19893" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest19893" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest19914" />
            <Trigger param="Quests.Quest19893" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest22983" text="g4_Quest_22983_22983questtitle">
        <!--Quest NPC22983-->
        <!--step - deliver in case of Step=Step1-->
        <Step tracker_title="g4_Quest_22983_22983questtitle" value="STEP1" tracker_text="g4_Quest_22996_s1tt" text="g4_Quest_22996_s1log" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_22983_22983questtitle" value="STEP2" tracker_text="g4_Quest_23055_s1tt" text="g4_Quest_23055_s1log" actor_trigger="9467" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_22983_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_22983_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_22983_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_22983_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest19914" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest19914" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest19914" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest19914" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest22983" />
            <Trigger param="Quests.Quest19914" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest23088" text="g4_Quest_23088_23088questtitle">
        <!--Quest NPC23088-->
        <!--step - deliver in case of Step=Step1-->
        <Step tracker_title="g4_Quest_23088_23088questtitle" value="STEP1" tracker_text="g4_Quest_23107_s1tt" text="g4_Quest_23107_s1log" actor_trigger="23156" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step2-->
        <!--Event for each Mob the Quest Quest23088 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="23126" type="Kill" />
            <Action action="Decrease" variable="Quest23088_QE_23117_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="23136" type="Kill" />
            <Action action="Decrease" variable="Quest23088_QE_23117_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="23146" type="Kill" />
            <Action action="Decrease" variable="Quest23088_QE_23117_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest23088 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest23088" type="IN">
                    <Value tag="STEP2" />
                </Operand1>
                <Operand2 variable="Quest23088_QE_23117_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest4" variable="Quests.Quest23088" />
            <Trigger param="Quest23088_QE_23117_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest23088 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest23088" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.23126" />
            <Action action="SpawnEntity" variable="Entities.23136" />
            <Action action="SpawnEntity" variable="Entities.23146" />
            <Trigger param="Quests.Quest23088" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_23088_23088questtitle" value="STEP2" tracker_text="g4_Quest_23117_s1tt" text="g4_Quest_23117_s1log">
            <SubStep variable="Quest23088_QE_23117_RevCounter_1" count="3" tracker_text="g4_Quest_23117_1" actor_trigger="23146">
                <Value tag="3_MORE" />
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step3-->
        <Step tracker_title="g4_Quest_23088_23088questtitle" value="STEP3" tracker_text="g4_Quest_23117_s2tt" text="g4_Quest_23117_s2log" show_log="false" show_tracker="true" actor_trigger="23156">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_23117_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_23088_23088questtitle" value="STEP4" tracker_text="g4_Quest_23201_s1tt" text="g4_Quest_23201_s1log" actor_trigger="9467" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_23088_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_23088_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_23088_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_23088_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest22983" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest22983" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest22983" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest22983" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest23088" />
            <Trigger param="Quests.Quest22983" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest23216" text="g4_Quest_23216_23216questtitle">
        <!--Quest NPC23216-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_23216_23216questtitle" value="STEP1" tracker_text="g4_Quest_23237_s1tt" text="g4_Quest_23237_s1log" actor_trigger="23279" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest23216" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest23271" />
            <Action action="ProgressQuest5" variable="Quests.Quest23271" />
            <Action action="ActivateQuest" variable="Quests.Quest23273" />
            <Action action="ProgressQuest5" variable="Quests.Quest23273" />
            <Trigger param="Quests.Quest23216" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step2-->
        <Step tracker_title="g4_Quest_23216_23216questtitle" value="STEP2" tracker_text="g4_Quest_23269_srtt" text="g4_Quest_23269_srlog">
            <Quest main="false" name="Quest23271" text="g4_Quest_23271_23271questtitle">
                <!--Quest SubQuest23271-->
                <!--step - collect in case of Step=Step1-->
                <!--Event for each QuestItem the Quest Quest23271 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="23440" type="Take" />
                    <Action action="Decrease" variable="Quest23271_QE_23430_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="23441" type="Take" />
                    <Action action="Decrease" variable="Quest23271_QE_23430_RevCounter_2" />
                </Event>
                <!--Event for the Quest Quest23271 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest23271" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 type="AND">
                            <Operand1 variable="Quest23271_QE_23430_RevCounter_1" type="IN">
                                <Value tag="0_MORE" />
                            </Operand1>
                            <Operand2 variable="Quest23271_QE_23430_RevCounter_2" type="IN">
                                <Value tag="0_MORE" />
                            </Operand2>
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest4" variable="Quests.Quest23271" />
                    <Trigger param="Quest23271_QE_23430_RevCounter_1" type="VariableChange" />
                    <Trigger param="Quest23271_QE_23430_RevCounter_2" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest23271 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest23271" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.23440" />
                    <Action action="SpawnEntity" variable="Entities.23441" />
                    <Trigger param="Quests.Quest23271" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_23271_23271questtitle" value="STEP1" tracker_text="g4_Quest_23430_s1tt" text="g4_Quest_23430_s1log">
                    <SubStep variable="Quest23271_QE_23430_RevCounter_1" count="1" tracker_text="g4_Quest_23430_1" actor_trigger="23440">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                    <SubStep variable="Quest23271_QE_23430_RevCounter_2" count="1" tracker_text="g4_Quest_23430_2" actor_trigger="23441">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - deliver in case of Step=Step2-->
                <Step tracker_title="g4_Quest_23271_23271questtitle" value="STEP2" tracker_text="g4_Quest_23430_s2tt" text="g4_Quest_23430_s2log" actor_trigger="23357" />
                <!-- event to give the XP reward if XP is not zero-->
                <!--step - collect in case of Step=Step3-->
                <!--Event for each QuestItem the Quest Quest23271 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="23582" type="Take" />
                    <Action action="Decrease" variable="Quest23271_QE_23468_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest23271 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest23271" type="IN">
                            <Value tag="STEP3" />
                        </Operand1>
                        <Operand2 variable="Quest23271_QE_23468_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest4" variable="Quests.Quest23271" />
                    <Trigger param="Quest23271_QE_23468_RevCounter_1" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest23271 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest23271" type="IN">
                        <Value tag="STEP3" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.23582" />
                    <Trigger param="Quests.Quest23271" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_23271_23271questtitle" value="STEP3" tracker_text="g4_Quest_23468_s1tt" text="g4_Quest_23468_s1log">
                    <SubStep variable="Quest23271_QE_23468_RevCounter_1" count="1" tracker_text="g4_Quest_23468_1" actor_trigger="23582">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - deliver in case of Step=Step4-->
                <Step tracker_title="g4_Quest_23271_23271questtitle" value="STEP4" tracker_text="g4_Quest_23468_s2tt" text="g4_Quest_23468_s2log" actor_trigger="23488" />
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_23271_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest23273" text="g4_Quest_23273_23273questtitle">
                <!--Quest SubQuest23273-->
                <!--step - collect in case of Step=Step1-->
                <!--Event for each QuestItem the Quest Quest23273 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="23546" type="Take" />
                    <Action action="Decrease" variable="Quest23273_QE_23513_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="23547" type="Take" />
                    <Action action="Decrease" variable="Quest23273_QE_23513_RevCounter_2" />
                </Event>
                <!--Event for the Quest Quest23273 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest23273" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 type="AND">
                            <Operand1 variable="Quest23273_QE_23513_RevCounter_1" type="IN">
                                <Value tag="0_MORE" />
                            </Operand1>
                            <Operand2 variable="Quest23273_QE_23513_RevCounter_2" type="IN">
                                <Value tag="0_MORE" />
                            </Operand2>
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest4" variable="Quests.Quest23273" />
                    <Trigger param="Quest23273_QE_23513_RevCounter_1" type="VariableChange" />
                    <Trigger param="Quest23273_QE_23513_RevCounter_2" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest23273 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest23273" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.23546" />
                    <Action action="SpawnEntity" variable="Entities.23547" />
                    <Trigger param="Quests.Quest23273" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_23273_23273questtitle" value="STEP1" tracker_text="g4_Quest_23513_s1tt" text="g4_Quest_23513_s1log">
                    <SubStep variable="Quest23273_QE_23513_RevCounter_1" count="1" tracker_text="g4_Quest_23513_1" actor_trigger="23546">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                    <SubStep variable="Quest23273_QE_23513_RevCounter_2" count="1" tracker_text="g4_Quest_23513_2" actor_trigger="23547">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - deliver in case of Step=Step2-->
                <Step tracker_title="g4_Quest_23273_23273questtitle" value="STEP2" tracker_text="g4_Quest_23513_s2tt" text="g4_Quest_23513_s2log" actor_trigger="23367" />
                <!-- event to give the XP reward if XP is not zero-->
                <!--step - collect in case of Step=Step3-->
                <!--Event for each QuestItem the Quest Quest23273 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="23601" type="Take" />
                    <Action action="Decrease" variable="Quest23273_QE_23591_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest23273 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest23273" type="IN">
                            <Value tag="STEP3" />
                        </Operand1>
                        <Operand2 variable="Quest23273_QE_23591_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest4" variable="Quests.Quest23273" />
                    <Trigger param="Quest23273_QE_23591_RevCounter_1" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest23273 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest23273" type="IN">
                        <Value tag="STEP3" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.23601" />
                    <Trigger param="Quests.Quest23273" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_23273_23273questtitle" value="STEP3" tracker_text="g4_Quest_23591_s1tt" text="g4_Quest_23591_s1log">
                    <SubStep variable="Quest23273_QE_23591_RevCounter_1" count="1" tracker_text="g4_Quest_23591_1" actor_trigger="23601">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - deliver in case of Step=Step4-->
                <Step tracker_title="g4_Quest_23273_23273questtitle" value="STEP4" tracker_text="g4_Quest_23591_s2tt" text="g4_Quest_23591_s2log" actor_trigger="23488" />
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_23273_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_23216_23216questtitle" value="STEP3" tracker_text="g4_Quest_23269_s2tt" text="g4_Quest_23269_s2log" show_log="false" show_tracker="true" actor_trigger="23488">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_23269_s2tt" />
        </Step>
        <!--step - collect in case of Step=Step4-->
        <!--Event for each QuestItem the Quest Quest23216 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="23678" type="Take" />
            <Action action="Decrease" variable="Quest23216_QE_23668_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest23216 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest23216" type="IN">
                    <Value tag="STEP4" />
                </Operand1>
                <Operand2 variable="Quest23216_QE_23668_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest5" variable="Quests.Quest23216" />
            <Trigger param="Quest23216_QE_23668_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest23216 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest23216" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.23678" />
            <Trigger param="Quests.Quest23216" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_23216_23216questtitle" value="STEP4" tracker_text="g4_Quest_23668_s1tt" text="g4_Quest_23668_s1log">
            <SubStep variable="Quest23216_QE_23668_RevCounter_1" count="1" tracker_text="g4_Quest_23668_1" actor_trigger="23678">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step5-->
        <Step tracker_title="g4_Quest_23216_23216questtitle" value="STEP5" tracker_text="g4_Quest_23668_s2tt" text="g4_Quest_23668_s2log" actor_trigger="9467" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_23216_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_23216_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_23216_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_23216_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest23088" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest23088" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest23088" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest23088" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest23216" />
            <Trigger param="Quests.Quest23088" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest23696" text="g4_Quest_23696_23696questtitle">
        <!--Quest NPC23696-->
        <!--step - deliver in case of Step=Step1-->
        <Step tracker_title="g4_Quest_23696_23696questtitle" value="STEP1" tracker_text="g4_Quest_23700_s1tt" text="g4_Quest_23700_s1log" actor_trigger="23039" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step2-->
        <!--Event for each QuestItem the Quest Quest23696 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="23716" type="Take" />
            <Action action="Decrease" variable="Quest23696_QE_23706_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest23696 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest23696" type="IN">
                    <Value tag="STEP2" />
                </Operand1>
                <Operand2 variable="Quest23696_QE_23706_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest3" variable="Quests.Quest23696" />
            <Trigger param="Quest23696_QE_23706_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest23696 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest23696" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.23716" />
            <Trigger param="Quests.Quest23696" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_23696_23696questtitle" value="STEP2" tracker_text="g4_Quest_23706_s1tt" text="g4_Quest_23706_s1log">
            <SubStep variable="Quest23696_QE_23706_RevCounter_1" count="1" tracker_text="g4_Quest_23706_1" actor_trigger="23716">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step3-->
        <Step tracker_title="g4_Quest_23696_23696questtitle" value="STEP3" tracker_text="g4_Quest_23706_s2tt" text="g4_Quest_23706_s2log" actor_trigger="9467" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_23696_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_23696_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_23696_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_23696_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest23216" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest23216" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest23216" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest23216" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest23696" />
            <Trigger param="Quests.Quest23216" type="VariableChange" />
        </Event>
    </Quest>
    <!--ch01 Pearl Stealing with Halwen-->
    <Quest main="true" name="Quest2042" text="g4_Quest_2042_2042questtitle">
        <!--Quest NPC2042-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest2042 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="2121" type="Take" />
            <Action action="Decrease" variable="Quest2042_QE_2066_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest2042 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest2042" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest2042_QE_2066_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest2042" />
            <Action action="ActivateDialog" variable="Dialog_2069" />
            <Trigger param="Quest2042_QE_2066_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_2042_2042questtitle" value="STEP1" tracker_text="g4_Quest_2066_s1tt" text="g4_Quest_2066_s1log">
            <SubStep variable="Quest2042_QE_2066_RevCounter_1" count="1" tracker_text="g4_Quest_2066_1" actor_trigger="2121">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_2042_2042questtitle" value="STEP2" tracker_text="g4_Quest_2066_s2tt" text="g4_Quest_2066_s2log" show_log="false" show_tracker="true" actor_trigger="7649">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_2066_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- add experience for the collect element-->
        <Event>
            <Test variable="Quests.Quest2042" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Script statement="actor:AddExperience( 100 )" actor="Hero" />
            <Trigger param="Quests.Quest2042" type="VariableChange" />
        </Event>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_2042_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_2042_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_2042_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_2042_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest20691" text="g4_Quest_20691_20691questtitle">
        <!--Quest NPC20691-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_20691_20691questtitle" value="STEP1" tracker_text="g4_Quest_20717_s1tt" text="g4_Quest_20717_s1log" actor_trigger="10877" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_20691_20691questtitle" value="STEP3" tracker_text="g4_Quest_20767_s1tt" text="g4_Quest_20767_s1log" actor_trigger="10845" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step4-->
        <!--Event for each Mob the Quest Quest20691 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="20788" type="Kill" />
            <Action action="Decrease" variable="Quest20691_QE_20779_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="20789" type="Kill" />
            <Action action="Decrease" variable="Quest20691_QE_20779_RevCounter_2" />
        </Event>
        <Event>
            <Trigger param="20790" type="Kill" />
            <Action action="Decrease" variable="Quest20691_QE_20779_RevCounter_3" />
        </Event>
        <!--Event for the Quest Quest20691 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest20691" type="IN">
                    <Value tag="STEP4" />
                </Operand1>
                <Operand2 type="AND">
                    <Operand1 variable="Quest20691_QE_20779_RevCounter_1" type="IN">
                        <Value tag="0_MORE" />
                    </Operand1>
                    <Operand2 type="AND">
                        <Operand1 variable="Quest20691_QE_20779_RevCounter_2" type="IN">
                            <Value tag="0_MORE" />
                        </Operand1>
                        <Operand2 variable="Quest20691_QE_20779_RevCounter_3" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ProgressQuest_BranchChoice_20741" variable="Quests.Quest20691" />
            <Trigger param="Quest20691_QE_20779_RevCounter_1" type="VariableChange" />
            <Trigger param="Quest20691_QE_20779_RevCounter_2" type="VariableChange" />
            <Trigger param="Quest20691_QE_20779_RevCounter_3" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest20691 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest20691" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.20788" />
            <Action action="SpawnEntity" variable="Entities.20789" />
            <Action action="SpawnEntity" variable="Entities.20790" />
            <Trigger param="Quests.Quest20691" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_20691_20691questtitle" value="STEP4" tracker_text="g4_Quest_20779_s1tt" text="g4_Quest_20779_s1log">
            <SubStep variable="Quest20691_QE_20779_RevCounter_1" count="1" tracker_text="g4_Quest_20779_1" actor_trigger="20788">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest20691_QE_20779_RevCounter_2" count="1" tracker_text="g4_Quest_20779_2" actor_trigger="20789">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest20691_QE_20779_RevCounter_3" count="1" tracker_text="g4_Quest_20779_3" actor_trigger="20790">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step5-->
        <Step tracker_title="g4_Quest_20691_20691questtitle" value="STEP5" tracker_text="g4_Quest_20779_s2tt" text="g4_Quest_20779_s2log" show_log="false" show_tracker="true" actor_trigger="10845">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_20779_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step8-->
        <Step tracker_title="g4_Quest_20691_20691questtitle" value="STEP8" tracker_text="g4_Quest_20861_s1tt" text="g4_Quest_20861_s1log" actor_trigger="10845" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step9-->
        <!--Event for each Mob the Quest Quest20691 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="20897" type="Kill" />
            <Action action="Decrease" variable="Quest20691_QE_20866_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="20898" type="Kill" />
            <Action action="Decrease" variable="Quest20691_QE_20866_RevCounter_2" />
        </Event>
        <Event>
            <Trigger param="20899" type="Kill" />
            <Action action="Decrease" variable="Quest20691_QE_20866_RevCounter_3" />
        </Event>
        <!--Event for the Quest Quest20691 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest20691" type="IN">
                    <Value tag="STEP9" />
                </Operand1>
                <Operand2 type="AND">
                    <Operand1 variable="Quest20691_QE_20866_RevCounter_1" type="IN">
                        <Value tag="0_MORE" />
                    </Operand1>
                    <Operand2 type="AND">
                        <Operand1 variable="Quest20691_QE_20866_RevCounter_2" type="IN">
                            <Value tag="0_MORE" />
                        </Operand1>
                        <Operand2 variable="Quest20691_QE_20866_RevCounter_3" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ProgressQuest_BranchChoice_20756" variable="Quests.Quest20691" />
            <Trigger param="Quest20691_QE_20866_RevCounter_1" type="VariableChange" />
            <Trigger param="Quest20691_QE_20866_RevCounter_2" type="VariableChange" />
            <Trigger param="Quest20691_QE_20866_RevCounter_3" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest20691 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest20691" type="IN">
                <Value tag="STEP9" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.20897" />
            <Action action="SpawnEntity" variable="Entities.20898" />
            <Action action="SpawnEntity" variable="Entities.20899" />
            <Trigger param="Quests.Quest20691" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_20691_20691questtitle" value="STEP9" tracker_text="g4_Quest_20866_s1tt" text="g4_Quest_20866_s1log">
            <SubStep variable="Quest20691_QE_20866_RevCounter_1" count="1" tracker_text="g4_Quest_20866_1" actor_trigger="20897">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest20691_QE_20866_RevCounter_2" count="1" tracker_text="g4_Quest_20866_2" actor_trigger="20898">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest20691_QE_20866_RevCounter_3" count="1" tracker_text="g4_Quest_20866_3" actor_trigger="20899">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step10-->
        <Step tracker_title="g4_Quest_20691_20691questtitle" value="STEP10" tracker_text="g4_Quest_20866_s2tt" text="g4_Quest_20866_s2log" show_log="false" show_tracker="true" actor_trigger="10845">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_20866_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step12-->
        <!--Event for each Mob the Quest Quest20691 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="20936" type="Kill" />
            <Action action="Decrease" variable="Quest20691_QE_20927_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="20937" type="Kill" />
            <Action action="Decrease" variable="Quest20691_QE_20927_RevCounter_2" />
        </Event>
        <Event>
            <Trigger param="20938" type="Kill" />
            <Action action="Decrease" variable="Quest20691_QE_20927_RevCounter_3" />
        </Event>
        <Event>
            <Trigger param="20939" type="Kill" />
            <Action action="Decrease" variable="Quest20691_QE_20927_RevCounter_4" />
        </Event>
        <!--Event for the Quest Quest20691 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest20691" type="IN">
                    <Value tag="STEP12" />
                </Operand1>
                <Operand2 type="AND">
                    <Operand1 variable="Quest20691_QE_20927_RevCounter_1" type="IN">
                        <Value tag="0_MORE" />
                    </Operand1>
                    <Operand2 type="AND">
                        <Operand1 variable="Quest20691_QE_20927_RevCounter_2" type="IN">
                            <Value tag="0_MORE" />
                        </Operand1>
                        <Operand2 type="AND">
                            <Operand1 variable="Quest20691_QE_20927_RevCounter_3" type="IN">
                                <Value tag="0_MORE" />
                            </Operand1>
                            <Operand2 variable="Quest20691_QE_20927_RevCounter_4" type="IN">
                                <Value tag="0_MORE" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ProgressQuest_BranchChoice_20753" variable="Quests.Quest20691" />
            <Trigger param="Quest20691_QE_20927_RevCounter_1" type="VariableChange" />
            <Trigger param="Quest20691_QE_20927_RevCounter_2" type="VariableChange" />
            <Trigger param="Quest20691_QE_20927_RevCounter_3" type="VariableChange" />
            <Trigger param="Quest20691_QE_20927_RevCounter_4" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest20691 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest20691" type="IN">
                <Value tag="STEP12" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.20936" />
            <Action action="SpawnEntity" variable="Entities.20937" />
            <Action action="SpawnEntity" variable="Entities.20938" />
            <Action action="SpawnEntity" variable="Entities.20939" />
            <Trigger param="Quests.Quest20691" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_20691_20691questtitle" value="STEP12" tracker_text="g4_Quest_20927_s1tt" text="g4_Quest_20927_s1log">
            <SubStep variable="Quest20691_QE_20927_RevCounter_1" count="1" tracker_text="g4_Quest_20927_1" actor_trigger="20936">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest20691_QE_20927_RevCounter_2" count="1" tracker_text="g4_Quest_20927_2" actor_trigger="20937">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest20691_QE_20927_RevCounter_3" count="1" tracker_text="g4_Quest_20927_3" actor_trigger="20938">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest20691_QE_20927_RevCounter_4" count="1" tracker_text="g4_Quest_20927_4" actor_trigger="20939">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step13-->
        <Step tracker_title="g4_Quest_20691_20691questtitle" value="STEP13" tracker_text="g4_Quest_20927_s2tt" text="g4_Quest_20927_s2log" show_log="false" show_tracker="true" actor_trigger="10877">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_20927_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_20691_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_20691_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_20691_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_20691_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest8406" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8406" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8406" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest8406" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest20691" />
            <Trigger param="Quests.Quest8406" type="VariableChange" />
        </Event>
    </Quest>
    <!--Note that the looting step is missing!-->
    <Quest main="false" name="Quest1518" text="g4_Quest_1518_1518questtitle">
        <!--Quest NPC1518-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest1518 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="16337" type="Kill" />
            <Action action="Decrease" variable="Quest1518_QE_16303_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest1518 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest1518" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest1518_QE_16303_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest1518" />
            <Trigger param="Quest1518_QE_16303_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest1518 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest1518" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.16337" />
            <Trigger param="Quests.Quest1518" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_1518_1518questtitle" value="STEP1" tracker_text="g4_Quest_16303_s1tt" text="g4_Quest_16303_s1log">
            <SubStep variable="Quest1518_QE_16303_RevCounter_1" count="1" tracker_text="g4_Quest_16303_1" actor_trigger="16337">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_1518_1518questtitle" value="STEP2" tracker_text="g4_Quest_16303_s2tt" text="g4_Quest_16303_s2log" show_log="false" show_tracker="true" actor_trigger="7661">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_16303_s2tt" />
        </Step>
        <!--Event for the Quest Quest1518 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest1518" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest1518.Folder16332" />
            <Trigger param="Quests.Quest1518" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest1518 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest1518" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest1518.Folder16332" />
            <Trigger param="Quests.Quest1518" type="VariableChange" />
        </Event>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- add experience for the collect element-->
        <Event>
            <Test variable="Quests.Quest1518" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Script statement="actor:AddExperience( 200 )" actor="Hero" />
            <Trigger param="Quests.Quest1518" type="VariableChange" />
        </Event>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_1518_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_1518_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_1518_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_1518_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest7439" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest7439" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest7439" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest7439" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest1518" />
            <Trigger param="Quests.Quest7439" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest28676" text="g4_Quest_28676_28676questtitle">
        <!--Quest NPC28676-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest28676 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="28948" type="Take" />
            <Action action="Decrease" variable="Quest28676_QE_28924_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest28676 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest28676" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest28676_QE_28924_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest28676" />
            <Action action="ActivateDialog" variable="Dialog_28927" />
            <Trigger param="Quest28676_QE_28924_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_28676_28676questtitle" value="STEP1" tracker_text="g4_Quest_28924_s1tt" text="g4_Quest_28924_s1log">
            <SubStep variable="Quest28676_QE_28924_RevCounter_1" count="1" tracker_text="g4_Quest_28924_1">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_28676_28676questtitle" value="STEP2" tracker_text="g4_Quest_28924_s2tt" text="g4_Quest_28924_s2log" show_log="false" show_tracker="true" actor_trigger="7715">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_28924_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_28676_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_28676_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_28676_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_28676_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="true" name="Quest31160" text="g4_Quest_31160_31160questtitle">
        <!--Quest NPC31160-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_31160_31160questtitle" value="STEP1" tracker_text="g4_Quest_32873_s1tt" text="g4_Quest_32873_s1log" actor_trigger="29451" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_31160_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_31160_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_31160_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_31160_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="true" name="Quest31215" text="g4_Quest_31215_31215questtitle">
        <!--Quest Chained31215-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest31215 
	 -> it is triggered when the attached quest 31160 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest31160" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest31160" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest31160" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest31160" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest31215" />
            <Action action="ProgressQuest10" variable="Quests.Quest31215" />
            <Trigger param="Quests.Quest31160" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_31215_31215questtitle" value="STEP1" tracker_text="g4_Quest_31235_s1tt" text="g4_Quest_31235_s1log" actor_trigger="18613" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_31215_31215questtitle" value="STEP2" tracker_text="g4_Quest_31255_s1tt" text="g4_Quest_31255_s1log" actor_trigger="12253" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_31215_31215questtitle" value="STEP3" tracker_text="g4_Quest_31331_s1tt" text="g4_Quest_31331_s1log" actor_trigger="18603" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step4-->
        <!--Event for each QuestItem the Quest Quest31215 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="31375" type="Take" />
            <Action action="Decrease" variable="Quest31215_QE_31354_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest31215 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest31215" type="IN">
                    <Value tag="STEP4" />
                </Operand1>
                <Operand2 variable="Quest31215_QE_31354_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest10" variable="Quests.Quest31215" />
            <Trigger param="Quest31215_QE_31354_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest31215 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest31215" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.31375" />
            <Trigger param="Quests.Quest31215" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_31215_31215questtitle" value="STEP4" tracker_text="g4_Quest_31354_s1tt" text="g4_Quest_31354_s1log">
            <SubStep variable="Quest31215_QE_31354_RevCounter_1" count="1" tracker_text="g4_Quest_31354_1" actor_trigger="31375">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step5-->
        <Step tracker_title="g4_Quest_31215_31215questtitle" value="STEP5" tracker_text="g4_Quest_31354_s2tt" text="g4_Quest_31354_s2log" actor_trigger="31364" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step6-->
        <Step tracker_title="g4_Quest_31215_31215questtitle" value="STEP6" tracker_text="g4_Quest_31391_s1tt" text="g4_Quest_31391_s1log" actor_trigger="12253" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step7-->
        <Step tracker_title="g4_Quest_31215_31215questtitle" value="STEP7" tracker_text="g4_Quest_31406_s1tt" text="g4_Quest_31406_s1log" actor_trigger="18613" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step8-->
        <Step tracker_title="g4_Quest_31215_31215questtitle" value="STEP8" tracker_text="g4_Quest_31418_s1tt" text="g4_Quest_31418_s1log" actor_trigger="12253" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step9-->
        <Step tracker_title="g4_Quest_31215_31215questtitle" value="STEP9" tracker_text="g4_Quest_31425_s1tt" text="g4_Quest_31425_s1log" actor_trigger="18613" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step10-->
        <Step tracker_title="g4_Quest_31215_31215questtitle" value="STEP10" tracker_text="g4_Quest_31435_s1tt" text="g4_Quest_31435_s1log" actor_trigger="18603" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_31215_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_31215_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_31215_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_31215_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest31160" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest31160" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest31160" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest31160" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest31215" />
            <Trigger param="Quests.Quest31160" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest31825" text="g4_Quest_31825_31825questtitle">
        <!--Quest Chained31825-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest31825 
	 -> it is triggered when the attached quest 31215 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest31215" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest31215" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest31215" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest31215" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest31825" />
            <Action action="ProgressQuest3" variable="Quests.Quest31825" />
            <Trigger param="Quests.Quest31215" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_31825_31825questtitle" value="STEP1" tracker_text="g4_Quest_32305_s1tt" text="g4_Quest_32305_s1log" actor_trigger="32315" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step2-->
        <!--Event for each QuestItem the Quest Quest31825 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="31838" type="Take" />
            <Action action="Decrease" variable="Quest31825_QE_31827_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="31844" type="Take" />
            <Action action="Decrease" variable="Quest31825_QE_31827_RevCounter_2" />
        </Event>
        <Event>
            <Trigger param="31845" type="Take" />
            <Action action="Decrease" variable="Quest31825_QE_31827_RevCounter_3" />
        </Event>
        <!--Event for the Quest Quest31825 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest31825" type="IN">
                    <Value tag="STEP2" />
                </Operand1>
                <Operand2 type="AND">
                    <Operand1 variable="Quest31825_QE_31827_RevCounter_1" type="IN">
                        <Value tag="0_MORE" />
                    </Operand1>
                    <Operand2 type="AND">
                        <Operand1 variable="Quest31825_QE_31827_RevCounter_2" type="IN">
                            <Value tag="0_MORE" />
                        </Operand1>
                        <Operand2 variable="Quest31825_QE_31827_RevCounter_3" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ProgressQuest3" variable="Quests.Quest31825" />
            <Trigger param="Quest31825_QE_31827_RevCounter_1" type="VariableChange" />
            <Trigger param="Quest31825_QE_31827_RevCounter_2" type="VariableChange" />
            <Trigger param="Quest31825_QE_31827_RevCounter_3" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest31825 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest31825" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.31838" />
            <Action action="SpawnEntity" variable="Entities.31844" />
            <Action action="SpawnEntity" variable="Entities.31845" />
            <Trigger param="Quests.Quest31825" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_31825_31825questtitle" value="STEP2" tracker_text="g4_Quest_31827_s1tt" text="g4_Quest_31827_s1log">
            <SubStep variable="Quest31825_QE_31827_RevCounter_1" count="1" tracker_text="g4_Quest_31827_1">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest31825_QE_31827_RevCounter_2" count="1" tracker_text="g4_Quest_31827_2">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest31825_QE_31827_RevCounter_3" count="1" tracker_text="g4_Quest_31827_3">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step3-->
        <Step tracker_title="g4_Quest_31825_31825questtitle" value="STEP3" tracker_text="g4_Quest_31827_s2tt" text="g4_Quest_31827_s2log" show_log="false" show_tracker="true" actor_trigger="32315">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_31827_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_31825_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_31825_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_31825_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_31825_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest31215" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest31215" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest31215" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest31215" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest31825" />
            <Trigger param="Quests.Quest31215" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest32342" text="g4_Quest_32342_32342questtitle">
        <!--Quest Chained32342-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest32342 
	 -> it is triggered when the attached quest 31825 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest31825" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest31825" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest31825" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest31825" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest32342" />
            <Action action="ProgressQuest2" variable="Quests.Quest32342" />
            <Trigger param="Quests.Quest31825" type="VariableChange" />
        </Event>
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest32342" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest32399" />
            <Action action="ProgressQuest2" variable="Quests.Quest32399" />
            <Action action="ActivateQuest" variable="Quests.Quest32401" />
            <Action action="ProgressQuest2" variable="Quests.Quest32401" />
            <Action action="ActivateQuest" variable="Quests.Quest32403" />
            <Action action="ProgressQuest2" variable="Quests.Quest32403" />
            <Trigger param="Quests.Quest32342" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step1-->
        <Step tracker_title="g4_Quest_32342_32342questtitle" value="STEP1" tracker_text="g4_Quest_32397_srtt" text="g4_Quest_32397_srlog">
            <Quest main="false" name="Quest32399" text="g4_Quest_32399_32399questtitle">
                <!--Quest SubQuest32399-->
                <!--step - collect in case of Step=Step1-->
                <!--Event for each QuestItem the Quest Quest32399 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="32450" type="Take" />
                    <Action action="Decrease" variable="Quest32399_QE_32407_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest32399 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest32399" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 variable="Quest32399_QE_32407_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest2" variable="Quests.Quest32399" />
                    <Action action="ActivateDialog" variable="Dialog_32410" />
                    <Trigger param="Quest32399_QE_32407_RevCounter_1" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_32399_32399questtitle" value="STEP1" tracker_text="g4_Quest_32407_s1tt" text="g4_Quest_32407_s1log">
                    <SubStep variable="Quest32399_QE_32407_RevCounter_1" count="1" tracker_text="g4_Quest_32407_1" actor_trigger="32450">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - return to NPC in case of Step=Step2-->
                <Step tracker_title="g4_Quest_32399_32399questtitle" value="STEP2" tracker_text="g4_Quest_32407_s2tt" text="g4_Quest_32407_s2log" show_log="false" show_tracker="true" actor_trigger="32315">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_32407_s2tt" />
                </Step>
                <!--Event for the Quest Quest32399 
	 -> it activates the folder-->
                <Event>
                    <Test variable="Quests.Quest32399" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="ActivateFolder" variable="Quests.Quest32399.Folder32429" />
                    <Trigger param="Quests.Quest32399" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest32399 
	 -> it Deactivates the folder-->
                <Event>
                    <Test variable="Quests.Quest32399" type="IN">
                        <Value tag="STEP3" />
                    </Test>
                    <Action action="DeactivateFolder" variable="Quests.Quest32399.Folder32429" />
                    <Trigger param="Quests.Quest32399" type="VariableChange" />
                </Event>
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_32399_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest32401" text="g4_Quest_32401_32401questtitle">
                <!--Quest SubQuest32401-->
                <!--step - collect in case of Step=Step1-->
                <!--Event for each QuestItem the Quest Quest32401 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="32494" type="Take" />
                    <Action action="Decrease" variable="Quest32401_QE_32419_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest32401 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest32401" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 variable="Quest32401_QE_32419_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest2" variable="Quests.Quest32401" />
                    <Trigger param="Quest32401_QE_32419_RevCounter_1" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest32401 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest32401" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.32494" />
                    <Trigger param="Quests.Quest32401" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_32401_32401questtitle" value="STEP1" tracker_text="g4_Quest_32419_s1tt" text="g4_Quest_32419_s1log">
                    <SubStep variable="Quest32401_QE_32419_RevCounter_1" count="1" tracker_text="g4_Quest_32419_1" actor_trigger="32494">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - deliver in case of Step=Step2-->
                <Step tracker_title="g4_Quest_32401_32401questtitle" value="STEP2" tracker_text="g4_Quest_32419_s2tt" text="g4_Quest_32419_s2log" actor_trigger="32481" />
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_32401_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest32403" text="g4_Quest_32403_32403questtitle">
                <!--Quest SubQuest32403-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_32403_32403questtitle" value="STEP1" tracker_text="g4_Quest_32430_s1tt" text="g4_Quest_32430_s1log" actor_trigger="12253" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- step - talk to in case of Step=Step2-->
                <Step tracker_title="g4_Quest_32403_32403questtitle" value="STEP2" tracker_text="g4_Quest_32435_s1tt" text="g4_Quest_32435_s1log" actor_trigger="32678" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - kill in case of Step=Step3-->
                <!--Event for each Mob the Quest Quest32403 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="32703" type="Kill" />
                    <Action action="Decrease" variable="Quest32403_QE_32440_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest32403 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest32403" type="IN">
                            <Value tag="STEP3" />
                        </Operand1>
                        <Operand2 variable="Quest32403_QE_32440_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest4" variable="Quests.Quest32403" />
                    <Trigger param="Quest32403_QE_32440_RevCounter_1" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest32403 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest32403" type="IN">
                        <Value tag="STEP3" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.32703" />
                    <Trigger param="Quests.Quest32403" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_32403_32403questtitle" value="STEP3" tracker_text="g4_Quest_32440_s1tt" text="g4_Quest_32440_s1log">
                    <SubStep variable="Quest32403_QE_32440_RevCounter_1" count="1" tracker_text="g4_Quest_32440_1" actor_trigger="32703">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - talk to in case of Step=Step4-->
                <Step tracker_title="g4_Quest_32403_32403questtitle" value="STEP4" tracker_text="g4_Quest_32440_s2tt" text="g4_Quest_32440_s2log" actor_trigger="12253" />
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_32403_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_32342_32342questtitle" value="STEP2" tracker_text="g4_Quest_32397_s2tt" text="g4_Quest_32397_s2log" show_log="false" show_tracker="true" actor_trigger="18603">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_32397_s2tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_32342_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_32342_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_32342_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_32342_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest31825" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest31825" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest31825" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest31825" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest32342" />
            <Trigger param="Quests.Quest31825" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest23247" text="g4_Quest_23247_23247questtitle">
        <!--Quest Chained23247-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest23247 
	 -> it is triggered when the attached quest 22500 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest22500" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest22500" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest22500" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest22500" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest23247" />
            <Action action="ProgressQuest2" variable="Quests.Quest23247" />
            <Trigger param="Quests.Quest22500" type="VariableChange" />
        </Event>
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest23247 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="23567" type="Kill" />
            <Action action="Decrease" variable="Quest23247_QE_23536_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest23247 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest23247" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest23247_QE_23536_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest23247" />
            <Trigger param="Quest23247_QE_23536_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest23247 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest23247" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.23567" />
            <Trigger param="Quests.Quest23247" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_23247_23247questtitle" value="STEP1" tracker_text="g4_Quest_23536_s1tt" text="g4_Quest_23536_s1log">
            <SubStep variable="Quest23247_QE_23536_RevCounter_1" count="1" tracker_text="g4_Quest_23536_1" actor_trigger="23567">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_23247_23247questtitle" value="STEP2" tracker_text="g4_Quest_23536_s2tt" text="g4_Quest_23536_s2log" actor_trigger="18613" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_23247_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_23247_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_23247_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_23247_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest22500" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest22500" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest22500" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest22500" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest23247" />
            <Trigger param="Quests.Quest22500" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest24299" text="g4_Quest_24299_24299questtitle">
        <!--Quest Chained24299-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest24299 
	 -> it is triggered when the attached quest 23247 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest23247" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest23247" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest23247" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest23247" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest24299" />
            <Action action="Progress_Quests.Quest24299" variable="Quests.Quest24299" />
            <Trigger param="Quests.Quest23247" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_24299_24299questtitle" value="STEP1" tracker_text="g4_Quest_24306_s1tt" text="g4_Quest_24306_s1log" actor_trigger="17369" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest24299" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest24353" />
            <Action action="ProgressQuest13" variable="Quests.Quest24353" />
            <Action action="ActivateQuest" variable="Quests.Quest24355" />
            <Action action="ProgressQuest13" variable="Quests.Quest24355" />
            <Trigger param="Quests.Quest24299" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step3-->
        <Step tracker_title="g4_Quest_24299_24299questtitle" value="STEP3" tracker_text="g4_Quest_24351_srtt" text="g4_Quest_24351_srlog">
            <Quest main="false" name="Quest24353" text="g4_Quest_24353_24353questtitle">
                <!--Quest SubQuest24353-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_24353_24353questtitle" value="STEP1" tracker_text="g4_Quest_24365_s1tt" text="g4_Quest_24365_s1log" actor_trigger="22255" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_24353_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest24355" text="g4_Quest_24355_24355questtitle">
                <!--Quest SubQuest24355-->
                <!--step - kill in case of Step=Step1-->
                <!--Event for each Mob the Quest Quest24355 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="24385" type="Kill" />
                    <Action action="Decrease" variable="Quest24355_QE_24375_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest24355 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest24355" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 variable="Quest24355_QE_24375_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest2" variable="Quests.Quest24355" />
                    <Trigger param="Quest24355_QE_24375_RevCounter_1" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest24355 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest24355" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.24385" />
                    <Trigger param="Quests.Quest24355" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_24355_24355questtitle" value="STEP1" tracker_text="g4_Quest_24375_s1tt" text="g4_Quest_24375_s1log">
                    <SubStep variable="Quest24355_QE_24375_RevCounter_1" count="1" tracker_text="g4_Quest_24375_1" actor_trigger="24385">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - talk to in case of Step=Step2-->
                <Step tracker_title="g4_Quest_24355_24355questtitle" value="STEP2" tracker_text="g4_Quest_24375_s2tt" text="g4_Quest_24375_s2log" actor_trigger="18613" />
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_24355_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_24299_24299questtitle" value="STEP4" tracker_text="g4_Quest_24351_s2tt" text="g4_Quest_24351_s2log" show_log="false" show_tracker="true" actor_trigger="18613">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_24351_s2tt" />
        </Step>
        <!--step - kill in case of Step=Step5-->
        <!--Event for each Mob the Quest Quest24299 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="24411" type="Kill" />
            <Action action="Decrease" variable="Quest24299_QE_24401_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest24299 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest24299" type="IN">
                    <Value tag="STEP5" />
                </Operand1>
                <Operand2 variable="Quest24299_QE_24401_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest_BranchChoice_24340" variable="Quests.Quest24299" />
            <Trigger param="Quest24299_QE_24401_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest24299 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest24299" type="IN">
                <Value tag="STEP5" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.24411" />
            <Trigger param="Quests.Quest24299" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_24299_24299questtitle" value="STEP5" tracker_text="g4_Quest_24401_s1tt" text="g4_Quest_24401_s1log">
            <SubStep variable="Quest24299_QE_24401_RevCounter_1" count="1" tracker_text="g4_Quest_24401_1" actor_trigger="24411">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step6-->
        <Step tracker_title="g4_Quest_24299_24299questtitle" value="STEP6" tracker_text="g4_Quest_24401_s2tt" text="g4_Quest_24401_s2log" show_log="false" show_tracker="true" actor_trigger="18613">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_24401_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step7-->
        <!--Event for each QuestItem the Quest Quest24299 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="24692" type="Take" />
            <Action action="Decrease" variable="Quest24299_QE_24670_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest24299 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest24299" type="IN">
                    <Value tag="STEP7" />
                </Operand1>
                <Operand2 variable="Quest24299_QE_24670_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest_BranchChoice_24340" variable="Quests.Quest24299" />
            <Trigger param="Quest24299_QE_24670_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_24299_24299questtitle" value="STEP7" tracker_text="g4_Quest_24670_s1tt" text="g4_Quest_24670_s1log">
            <SubStep variable="Quest24299_QE_24670_RevCounter_1" count="1" tracker_text="g4_Quest_24670_1" actor_trigger="24692">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step8-->
        <Step tracker_title="g4_Quest_24299_24299questtitle" value="STEP8" tracker_text="g4_Quest_24670_s2tt" text="g4_Quest_24670_s2log" actor_trigger="24435" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step9-->
        <Step tracker_title="g4_Quest_24299_24299questtitle" value="STEP9" tracker_text="g4_Quest_24454_s1tt" text="g4_Quest_24454_s1log" actor_trigger="18613" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest24299" type="IN">
                <Value tag="STEP11" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest24507" />
            <Action action="ProgressQuest13" variable="Quests.Quest24507" />
            <Action action="ActivateQuest" variable="Quests.Quest24509" />
            <Action action="ProgressQuest13" variable="Quests.Quest24509" />
            <Trigger param="Quests.Quest24299" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step11-->
        <Step tracker_title="g4_Quest_24299_24299questtitle" value="STEP11" tracker_text="g4_Quest_24505_srtt" text="g4_Quest_24505_srlog">
            <Quest main="false" name="Quest24507" text="g4_Quest_24507_24507questtitle">
                <!--Quest SubQuest24507-->
                <!--step - collect in case of Step=Step1-->
                <!--Event for each QuestItem the Quest Quest24507 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="24605" type="Take" />
                    <Action action="Decrease" variable="Quest24507_QE_24554_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest24507 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest24507" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 variable="Quest24507_QE_24554_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest2" variable="Quests.Quest24507" />
                    <Trigger param="Quest24507_QE_24554_RevCounter_1" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest24507 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest24507" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.24605" />
                    <Trigger param="Quests.Quest24507" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_24507_24507questtitle" value="STEP1" tracker_text="g4_Quest_24554_s1tt" text="g4_Quest_24554_s1log">
                    <SubStep variable="Quest24507_QE_24554_RevCounter_1" count="1" tracker_text="g4_Quest_24554_1" actor_trigger="24605">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - deliver in case of Step=Step2-->
                <Step tracker_title="g4_Quest_24507_24507questtitle" value="STEP2" tracker_text="g4_Quest_24554_s2tt" text="g4_Quest_24554_s2log" actor_trigger="24565" />
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_24507_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest24509" text="g4_Quest_24509_24509questtitle">
                <!--Quest SubQuest24509-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_24509_24509questtitle" value="STEP1" tracker_text="g4_Quest_24629_s1tt" text="g4_Quest_24629_s1log" actor_trigger="24634" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_24509_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_24299_24299questtitle" value="STEP12" tracker_text="g4_Quest_24505_s2tt" text="g4_Quest_24505_s2log" show_log="false" show_tracker="true" actor_trigger="18613">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_24505_s2tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_24299_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_24299_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_24299_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_24299_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest23247" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest23247" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest23247" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest23247" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest24299" />
            <Trigger param="Quests.Quest23247" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest29298" text="g4_Quest_29298_29298questtitle">
        <!--Quest Chained29298-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest29298 
	 -> it is triggered when the attached quest 24299 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest24299" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest24299" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest24299" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest24299" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest29298" />
            <Action action="ProgressQuest4" variable="Quests.Quest29298" />
            <Trigger param="Quests.Quest24299" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_29298_29298questtitle" value="STEP1" tracker_text="g4_Quest_29300_s1tt" text="g4_Quest_29300_s1log" actor_trigger="28145" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_29298_29298questtitle" value="STEP2" tracker_text="g4_Quest_29305_s1tt" text="g4_Quest_29305_s1log" actor_trigger="18613" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_29298_29298questtitle" value="STEP3" tracker_text="g4_Quest_29310_s1tt" text="g4_Quest_29310_s1log" actor_trigger="28171" />
        <!--Event for the Quest Quest29298 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest29298" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest29298.Folder29340" />
            <Trigger param="Quests.Quest29298" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest29298 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest29298" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest29298.Folder29340" />
            <Trigger param="Quests.Quest29298" type="VariableChange" />
        </Event>
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_29298_29298questtitle" value="STEP4" tracker_text="g4_Quest_29315_s1tt" text="g4_Quest_29315_s1log" actor_trigger="7619" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_29298_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_29298_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_29298_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_29298_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest24299" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest24299" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest24299" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest24299" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest29298" />
            <Trigger param="Quests.Quest24299" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest28133" text="g4_Quest_28133_28133questtitle">
        <!--Quest Chained28133-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest28133 
	 -> it is triggered when the attached quest 29298 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest29298" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest29298" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest29298" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest29298" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest28133" />
            <Action action="ProgressQuest12" variable="Quests.Quest28133" />
            <Trigger param="Quests.Quest29298" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_28133_28133questtitle" value="STEP1" tracker_text="g4_Quest_28223_s1tt" text="g4_Quest_28223_s1log" actor_trigger="18593" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_28133_28133questtitle" value="STEP2" tracker_text="g4_Quest_28237_s1tt" text="g4_Quest_28237_s1log" actor_trigger="18633" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_28133_28133questtitle" value="STEP3" tracker_text="g4_Quest_28261_s1tt" text="g4_Quest_28261_s1log" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_28133_28133questtitle" value="STEP4" tracker_text="g4_Quest_28289_s1tt" text="g4_Quest_28289_s1log" actor_trigger="18633" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step5-->
        <Step tracker_title="g4_Quest_28133_28133questtitle" value="STEP5" tracker_text="g4_Quest_28302_s1tt" text="g4_Quest_28302_s1log" actor_trigger="28266" />
        <!--Event for the Quest Quest28133 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest28133" type="IN">
                <Value tag="STEP5" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest28133.Folder28324" />
            <Trigger param="Quests.Quest28133" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest28133 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest28133" type="IN">
                <Value tag="STEP6" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest28133.Folder28324" />
            <Trigger param="Quests.Quest28133" type="VariableChange" />
        </Event>
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step6-->
        <Step tracker_title="g4_Quest_28133_28133questtitle" value="STEP6" tracker_text="g4_Quest_28310_s1tt" text="g4_Quest_28310_s1log" actor_trigger="18633" />
        <!--Event for the Quest Quest28133 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest28133" type="IN">
                <Value tag="STEP6" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest28133.Folder28317" />
            <Trigger param="Quests.Quest28133" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest28133 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest28133" type="IN">
                <Value tag="STEP7" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest28133.Folder28317" />
            <Trigger param="Quests.Quest28133" type="VariableChange" />
        </Event>
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step7-->
        <Step tracker_title="g4_Quest_28133_28133questtitle" value="STEP7" tracker_text="g4_Quest_28339_s1tt" text="g4_Quest_28339_s1log" actor_trigger="28437" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step8-->
        <Step tracker_title="g4_Quest_28133_28133questtitle" value="STEP8" tracker_text="g4_Quest_28347_s1tt" text="g4_Quest_28347_s1log" actor_trigger="28367" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step9-->
        <Step tracker_title="g4_Quest_28133_28133questtitle" value="STEP9" tracker_text="g4_Quest_28352_s1tt" text="g4_Quest_28352_s1log" actor_trigger="18633" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step10-->
        <!--Event for each Mob the Quest Quest28133 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="28422" type="Kill" />
            <Action action="Decrease" variable="Quest28133_QE_28389_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest28133 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest28133" type="IN">
                    <Value tag="STEP10" />
                </Operand1>
                <Operand2 variable="Quest28133_QE_28389_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest12" variable="Quests.Quest28133" />
            <Trigger param="Quest28133_QE_28389_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_28133_28133questtitle" value="STEP10" tracker_text="g4_Quest_28389_s1tt" text="g4_Quest_28389_s1log">
            <SubStep variable="Quest28133_QE_28389_RevCounter_1" count="1" tracker_text="g4_Quest_28389_1" actor_trigger="28422">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step11-->
        <Step tracker_title="g4_Quest_28133_28133questtitle" value="STEP11" tracker_text="g4_Quest_28389_s2tt" text="g4_Quest_28389_s2log" actor_trigger="18603" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step12-->
        <Step tracker_title="g4_Quest_28133_28133questtitle" value="STEP12" tracker_text="g4_Quest_28362_s1tt" text="g4_Quest_28362_s1log" actor_trigger="7619" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_28133_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_28133_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_28133_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_28133_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest29298" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest29298" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest29298" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest29298" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest28133" />
            <Trigger param="Quests.Quest29298" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest28584" text="g4_Quest_28584_28584questtitle">
        <!--Quest Chained28584-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest28584 
	 -> it is triggered when the attached quest 28133 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest28133" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest28133" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest28133" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest28133" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest28584" />
            <Action action="ProgressQuest6" variable="Quests.Quest28584" />
            <Trigger param="Quests.Quest28133" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_28584_28584questtitle" value="STEP1" tracker_text="g4_Quest_29145_s1tt" text="g4_Quest_29145_s1log" actor_trigger="17369" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_28584_28584questtitle" value="STEP2" tracker_text="g4_Quest_29167_s1tt" text="g4_Quest_29167_s1log" actor_trigger="7619" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_28584_28584questtitle" value="STEP3" tracker_text="g4_Quest_29196_s1tt" text="g4_Quest_29196_s1log" actor_trigger="17369" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_28584_28584questtitle" value="STEP4" tracker_text="g4_Quest_29233_s1tt" text="g4_Quest_29233_s1log" actor_trigger="18613" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step5-->
        <Step tracker_title="g4_Quest_28584_28584questtitle" value="STEP5" tracker_text="g4_Quest_29270_s1tt" text="g4_Quest_29270_s1log" actor_trigger="28171" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step6-->
        <Step tracker_title="g4_Quest_28584_28584questtitle" value="STEP6" tracker_text="g4_Quest_29286_s1tt" text="g4_Quest_29286_s1log" actor_trigger="7619" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_28584_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_28584_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_28584_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_28584_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest28133" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest28133" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest28133" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest28133" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest28584" />
            <Trigger param="Quests.Quest28133" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest29363" text="g4_Quest_29363_29363questtitle">
        <!--Quest Chained29363-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest29363 
	 -> it is triggered when the attached quest 28584 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest28584" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest28584" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest28584" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest28584" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest29363" />
            <Action action="Progress_Quests.Quest29363" variable="Quests.Quest29363" />
            <Trigger param="Quests.Quest28584" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_29363_29363questtitle" value="STEP1" tracker_text="g4_Quest_29380_s1tt" text="g4_Quest_29380_s1log" actor_trigger="17369" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_29363_29363questtitle" value="STEP3" tracker_text="g4_Quest_29606_s1tt" text="g4_Quest_29606_s1log" actor_trigger="29611" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_29363_29363questtitle" value="STEP4" tracker_text="g4_Quest_29467_s1tt" text="g4_Quest_29467_s1log" actor_trigger="17369" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step5-->
        <!--Event for each Mob the Quest Quest29363 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="29660" type="Kill" />
            <Action action="Decrease" variable="Quest29363_QE_29439_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="29670" type="Kill" />
            <Action action="Decrease" variable="Quest29363_QE_29439_RevCounter_2" />
        </Event>
        <!--Event for the Quest Quest29363 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest29363" type="IN">
                    <Value tag="STEP5" />
                </Operand1>
                <Operand2 type="AND">
                    <Operand1 variable="Quest29363_QE_29439_RevCounter_1" type="IN">
                        <Value tag="0_MORE" />
                    </Operand1>
                    <Operand2 variable="Quest29363_QE_29439_RevCounter_2" type="IN">
                        <Value tag="0_MORE" />
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ProgressQuest_BranchChoice_29389" variable="Quests.Quest29363" />
            <Trigger param="Quest29363_QE_29439_RevCounter_1" type="VariableChange" />
            <Trigger param="Quest29363_QE_29439_RevCounter_2" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest29363 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest29363" type="IN">
                <Value tag="STEP5" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.29660" />
            <Action action="SpawnEntity" variable="Entities.29670" />
            <Trigger param="Quests.Quest29363" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_29363_29363questtitle" value="STEP5" tracker_text="g4_Quest_29439_s1tt" text="g4_Quest_29439_s1log">
            <SubStep variable="Quest29363_QE_29439_RevCounter_1" count="1" tracker_text="g4_Quest_29439_1" actor_trigger="29660">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest29363_QE_29439_RevCounter_2" count="1" tracker_text="g4_Quest_29439_2" actor_trigger="29670">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step6-->
        <Step tracker_title="g4_Quest_29363_29363questtitle" value="STEP6" tracker_text="g4_Quest_29439_s2tt" text="g4_Quest_29439_s2log" show_log="false" show_tracker="true" actor_trigger="17369">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_29439_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step7-->
        <Step tracker_title="g4_Quest_29363_29363questtitle" value="STEP7" tracker_text="g4_Quest_31134_s1tt" text="g4_Quest_31134_s1log" actor_trigger="18633" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step9-->
        <Step tracker_title="g4_Quest_29363_29363questtitle" value="STEP9" tracker_text="g4_Quest_29403_s1tt" text="g4_Quest_29403_s1log" actor_trigger="18643" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step10-->
        <Step tracker_title="g4_Quest_29363_29363questtitle" value="STEP10" tracker_text="g4_Quest_29697_s1tt" text="g4_Quest_29697_s1log" actor_trigger="29707" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step11-->
        <Step tracker_title="g4_Quest_29363_29363questtitle" value="STEP11" tracker_text="g4_Quest_29702_s1tt" text="g4_Quest_29702_s1log" actor_trigger="18643" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step12-->
        <Step tracker_title="g4_Quest_29363_29363questtitle" value="STEP12" tracker_text="g4_Quest_29462_s1tt" text="g4_Quest_29462_s1log" actor_trigger="18613" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step13-->
        <!--Event for each Mob the Quest Quest29363 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="29791" type="Kill" />
            <Action action="Decrease" variable="Quest29363_QE_29408_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest29363 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest29363" type="IN">
                    <Value tag="STEP13" />
                </Operand1>
                <Operand2 variable="Quest29363_QE_29408_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest_BranchChoice_29386" variable="Quests.Quest29363" />
            <Trigger param="Quest29363_QE_29408_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest29363 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest29363" type="IN">
                <Value tag="STEP13" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.29791" />
            <Trigger param="Quests.Quest29363" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_29363_29363questtitle" value="STEP13" tracker_text="g4_Quest_29408_s1tt" text="g4_Quest_29408_s1log">
            <SubStep variable="Quest29363_QE_29408_RevCounter_1" count="1" tracker_text="g4_Quest_29408_1" actor_trigger="29791">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step14-->
        <Step tracker_title="g4_Quest_29363_29363questtitle" value="STEP14" tracker_text="g4_Quest_29408_s2tt" text="g4_Quest_29408_s2log" show_log="false" show_tracker="true" actor_trigger="18613">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_29408_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step15-->
        <Step tracker_title="g4_Quest_29363_29363questtitle" value="STEP15" tracker_text="g4_Quest_29487_s1tt" text="g4_Quest_29487_s1log" actor_trigger="18643" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step16-->
        <!--Event for each Mob the Quest Quest29363 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="29874" type="Kill" />
            <Action action="Decrease" variable="Quest29363_QE_29859_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest29363 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest29363" type="IN">
                    <Value tag="STEP16" />
                </Operand1>
                <Operand2 variable="Quest29363_QE_29859_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest_BranchChoice_29386" variable="Quests.Quest29363" />
            <Trigger param="Quest29363_QE_29859_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest29363 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest29363" type="IN">
                <Value tag="STEP16" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.29874" />
            <Trigger param="Quests.Quest29363" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_29363_29363questtitle" value="STEP16" tracker_text="g4_Quest_29859_s1tt" text="g4_Quest_29859_s1log">
            <SubStep variable="Quest29363_QE_29859_RevCounter_1" count="1" tracker_text="g4_Quest_29859_1" actor_trigger="29874">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - talk to in case of Step=Step17-->
        <Step tracker_title="g4_Quest_29363_29363questtitle" value="STEP17" tracker_text="g4_Quest_29859_s2tt" text="g4_Quest_29859_s2log" actor_trigger="18613" />
        <!--Event for the Quest Quest29363 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest29363" type="IN">
                <Value tag="STEP16" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest29363.Folder30444" />
            <Trigger param="Quests.Quest29363" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest29363 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest29363" type="IN">
                <Value tag="STEP18" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest29363.Folder30444" />
            <Trigger param="Quests.Quest29363" type="VariableChange" />
        </Event>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step18-->
        <Step tracker_title="g4_Quest_29363_29363questtitle" value="STEP18" tracker_text="g4_Quest_31129_s1tt" text="g4_Quest_31129_s1log" actor_trigger="18633" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_29363_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_29363_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_29363_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_29363_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest28584" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest28584" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest28584" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest28584" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest29363" />
            <Trigger param="Quests.Quest28584" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest30292" text="g4_Quest_30292_30292questtitle">
        <!--Quest Chained30292-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest30292 
	 -> it is triggered when the attached quest 29363 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest29363" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest29363" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest29363" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest29363" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest30292" />
            <Action action="ProgressQuest5" variable="Quests.Quest30292" />
            <Trigger param="Quests.Quest29363" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_30292_30292questtitle" value="STEP1" tracker_text="g4_Quest_30294_s1tt" text="g4_Quest_30294_s1log" actor_trigger="30319" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_30292_30292questtitle" value="STEP2" tracker_text="g4_Quest_30299_s1tt" text="g4_Quest_30299_s1log" actor_trigger="28171" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step3-->
        <!--Event for each QuestItem the Quest Quest30292 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="30358" type="Take" />
            <Action action="Decrease" variable="Quest30292_QE_30304_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest30292 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest30292" type="IN">
                    <Value tag="STEP3" />
                </Operand1>
                <Operand2 variable="Quest30292_QE_30304_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest5" variable="Quests.Quest30292" />
            <Trigger param="Quest30292_QE_30304_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest30292 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest30292" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.30358" />
            <Trigger param="Quests.Quest30292" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_30292_30292questtitle" value="STEP3" tracker_text="g4_Quest_30304_s1tt" text="g4_Quest_30304_s1log">
            <SubStep variable="Quest30292_QE_30304_RevCounter_1" count="1" tracker_text="g4_Quest_30304_1" actor_trigger="30358">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step4-->
        <Step tracker_title="g4_Quest_30292_30292questtitle" value="STEP4" tracker_text="g4_Quest_30304_s2tt" text="g4_Quest_30304_s2log" actor_trigger="30345" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step5-->
        <Step tracker_title="g4_Quest_30292_30292questtitle" value="STEP5" tracker_text="g4_Quest_30314_s1tt" text="g4_Quest_30314_s1log" actor_trigger="17369" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_30292_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_30292_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_30292_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_30292_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest29363" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest29363" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest29363" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest29363" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest30292" />
            <Trigger param="Quests.Quest29363" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest30507" text="g4_Quest_30507_30507questtitle">
        <!--Quest Chained30507-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest30507 
	 -> it is triggered when the attached quest 30292 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest30292" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest30292" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest30292" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest30292" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest30507" />
            <Action action="ProgressQuest3" variable="Quests.Quest30507" />
            <Trigger param="Quests.Quest30292" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_30507_30507questtitle" value="STEP1" tracker_text="g4_Quest_30509_s1tt" text="g4_Quest_30509_s1log" actor_trigger="18633" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_30507_30507questtitle" value="STEP2" tracker_text="g4_Quest_30520_s1tt" text="g4_Quest_30520_s1log" actor_trigger="28276" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_30507_30507questtitle" value="STEP3" tracker_text="g4_Quest_30525_s1tt" text="g4_Quest_30525_s1log" actor_trigger="28367" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_30507_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_30507_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_30507_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_30507_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest30292" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest30292" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest30292" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest30292" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest30507" />
            <Trigger param="Quests.Quest30292" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest30562" text="g4_Quest_30562_30562questtitle">
        <!--Quest Chained30562-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest30562 
	 -> it is triggered when the attached quest 30507 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest30507" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest30507" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest30507" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest30507" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest30562" />
            <Action action="ProgressQuest3" variable="Quests.Quest30562" />
            <Trigger param="Quests.Quest30507" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_30562_30562questtitle" value="STEP1" tracker_text="g4_Quest_30566_s1tt" text="g4_Quest_30566_s1log" actor_trigger="30535" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_30562_30562questtitle" value="STEP2" tracker_text="g4_Quest_30571_s1tt" text="g4_Quest_30571_s1log" actor_trigger="30550" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_30562_30562questtitle" value="STEP3" tracker_text="g4_Quest_30576_s1tt" text="g4_Quest_30576_s1log" actor_trigger="18643" />
        <!--Event for the Quest Quest30562 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest30562" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest30562.Folder30746" />
            <Trigger param="Quests.Quest30562" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest30562 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest30562" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest30562.Folder30746" />
            <Trigger param="Quests.Quest30562" type="VariableChange" />
        </Event>
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_30562_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_30562_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_30562_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_30562_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest30507" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest30507" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest30507" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest30507" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest30562" />
            <Trigger param="Quests.Quest30507" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest32041" text="g4_Quest_32041_32041questtitle">
        <!--Quest NPC32041-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_32041_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_32041_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_32041_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_32041_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest31977" text="g4_Quest_31977_31977questtitle">
        <!--Quest NPC31977-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_31977_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_31977_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_31977_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_31977_FinishedLog4" />
    </Quest>
    <!--This is a hint on the quest with the 11 fire chalices in G3.-->
    <Quest main="false" name="Quest3524" text="g4_Quest_3524_3524questtitle">
        <!--Quest NPC3524-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest3524 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="3540" type="Take" />
            <Action action="Decrease" variable="Quest3524_QE_3527_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest3524 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest3524" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest3524_QE_3527_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest3524" />
            <Action action="ActivateDialog" variable="Dialog_3530" />
            <Trigger param="Quest3524_QE_3527_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_3524_3524questtitle" value="STEP1" tracker_text="g4_Quest_3527_s1tt" text="g4_Quest_3527_s1log">
            <SubStep variable="Quest3524_QE_3527_RevCounter_1" count="1" tracker_text="g4_Quest_3527_1">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_3524_3524questtitle" value="STEP2" tracker_text="g4_Quest_3527_s2tt" text="g4_Quest_3527_s2log" show_log="false" show_tracker="true" actor_trigger="7598">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_3527_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_3524_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_3524_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_3524_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_3524_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest19944" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest19944" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest19944" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest19944" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest3524" />
            <Trigger param="Quests.Quest19944" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest25557" text="g4_Quest_25557_25557questtitle">
        <!--Quest NPC25557-->
        <!--step - wait in case of Step=Step1-->
        <Step tracker_title="g4_Quest_25557_25557questtitle" value="STEP1" tracker_text="g4_Quest_25565_s1tt" text="g4_Quest_25565_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_25565_s1tt" />
        </Step>
        <!--Event for the Quest Quest25557 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest25557" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest25557.Folder25585" />
            <Trigger param="Quests.Quest25557" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest25557 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest25557" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest25557.Folder25585" />
            <Trigger param="Quests.Quest25557" type="VariableChange" />
        </Event>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_25557_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_25557_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_25557_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_25557_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6218" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6218" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6218" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6218" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest25557" />
            <Trigger param="Quests.Quest6218" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest25459" text="g4_Quest_25459_25459questtitle">
        <!--Quest NPC25459-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest25459 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="25479" type="Take" />
            <Action action="Decrease" variable="Quest25459_QE_25469_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest25459 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest25459" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest25459_QE_25469_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest25459" />
            <Trigger param="Quest25459_QE_25469_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest25459 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest25459" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.25479" />
            <Trigger param="Quests.Quest25459" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_25459_25459questtitle" value="STEP1" tracker_text="g4_Quest_25469_s1tt" text="g4_Quest_25469_s1log">
            <SubStep variable="Quest25459_QE_25469_RevCounter_1" count="1" tracker_text="g4_Quest_25469_1" actor_trigger="25479">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_25459_25459questtitle" value="STEP2" tracker_text="g4_Quest_25469_s2tt" text="g4_Quest_25469_s2log" actor_trigger="8292" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_25459_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_25459_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_25459_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_25459_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6218" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6218" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6218" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6218" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest25459" />
            <Trigger param="Quests.Quest6218" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest25581" text="g4_Quest_25581_25581questtitle">
        <!--Quest NPC25581-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_25581_25581questtitle" value="STEP1" tracker_text="g4_Quest_25594_s1tt" text="g4_Quest_25594_s1log" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step2-->
        <!--Event for each Mob the Quest Quest25581 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="25639" type="Kill" />
            <Action action="Decrease" variable="Quest25581_QE_25629_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="29249" type="Kill" />
            <Action action="Decrease" variable="Quest25581_QE_25629_RevCounter_2" />
        </Event>
        <!--Event for the Quest Quest25581 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest25581" type="IN">
                    <Value tag="STEP2" />
                </Operand1>
                <Operand2 type="AND">
                    <Operand1 variable="Quest25581_QE_25629_RevCounter_1" type="IN">
                        <Value tag="0_MORE" />
                    </Operand1>
                    <Operand2 variable="Quest25581_QE_25629_RevCounter_2" type="IN">
                        <Value tag="0_MORE" />
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ProgressQuest3" variable="Quests.Quest25581" />
            <Trigger param="Quest25581_QE_25629_RevCounter_1" type="VariableChange" />
            <Trigger param="Quest25581_QE_25629_RevCounter_2" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest25581 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest25581" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.25639" />
            <Action action="SpawnEntity" variable="Entities.29249" />
            <Trigger param="Quests.Quest25581" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_25581_25581questtitle" value="STEP2" tracker_text="g4_Quest_25629_s1tt" text="g4_Quest_25629_s1log">
            <SubStep variable="Quest25581_QE_25629_RevCounter_1" count="1" tracker_text="g4_Quest_25629_1" actor_trigger="25639">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest25581_QE_25629_RevCounter_2" count="1" tracker_text="g4_Quest_25629_2" actor_trigger="29249">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_25581_25581questtitle" value="STEP3" tracker_text="g4_Quest_25629_s2tt" text="g4_Quest_25629_s2log" actor_trigger="9436" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_25581_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_25581_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_25581_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_25581_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest25459" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest25459" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest25459" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest25459" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest25581" />
            <Trigger param="Quests.Quest25459" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest25840" text="g4_Quest_25840_25840questtitle">
        <!--Quest NPC25840-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_25840_25840questtitle" value="STEP1" tracker_text="g4_Quest_25848_s1tt" text="g4_Quest_25848_s1log" actor_trigger="9487" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_25840_25840questtitle" value="STEP2" tracker_text="g4_Quest_25890_s1tt" text="g4_Quest_25890_s1log" actor_trigger="11066" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step3-->
        <!--Event for each Mob the Quest Quest25840 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="25926" type="Kill" />
            <Action action="Decrease" variable="Quest25840_QE_25853_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="25936" type="Kill" />
            <Action action="Decrease" variable="Quest25840_QE_25853_RevCounter_2" />
        </Event>
        <!--Event for the Quest Quest25840 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest25840" type="IN">
                    <Value tag="STEP3" />
                </Operand1>
                <Operand2 type="AND">
                    <Operand1 variable="Quest25840_QE_25853_RevCounter_1" type="IN">
                        <Value tag="0_MORE" />
                    </Operand1>
                    <Operand2 variable="Quest25840_QE_25853_RevCounter_2" type="IN">
                        <Value tag="0_MORE" />
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ProgressQuest4" variable="Quests.Quest25840" />
            <Trigger param="Quest25840_QE_25853_RevCounter_1" type="VariableChange" />
            <Trigger param="Quest25840_QE_25853_RevCounter_2" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest25840 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest25840" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.25926" />
            <Action action="SpawnEntity" variable="Entities.25936" />
            <Trigger param="Quests.Quest25840" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_25840_25840questtitle" value="STEP3" tracker_text="g4_Quest_25853_s1tt" text="g4_Quest_25853_s1log">
            <SubStep variable="Quest25840_QE_25853_RevCounter_1" count="1" tracker_text="g4_Quest_25853_1" actor_trigger="25926">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest25840_QE_25853_RevCounter_2" count="1" tracker_text="g4_Quest_25853_2" actor_trigger="25936">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_25840_25840questtitle" value="STEP4" tracker_text="g4_Quest_25853_s2tt" text="g4_Quest_25853_s2log" actor_trigger="9436" />
        <!--Event for the Quest Quest25840 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest25840" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest25840.Folder25946" />
            <Trigger param="Quests.Quest25840" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest25840 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest25840" type="IN">
                <Value tag="STEP5" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest25840.Folder25946" />
            <Trigger param="Quests.Quest25840" type="VariableChange" />
        </Event>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_25840_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_25840_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_25840_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_25840_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest25581" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest25581" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest25581" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest25581" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest25840" />
            <Trigger param="Quests.Quest25581" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest25496" text="g4_Quest_25496_25496questtitle">
        <!--Quest NPC25496-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest25496 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="25512" type="Take" />
            <Action action="Decrease" variable="Quest25496_QE_25500_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="25513" type="Take" />
            <Action action="Decrease" variable="Quest25496_QE_25500_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="25514" type="Take" />
            <Action action="Decrease" variable="Quest25496_QE_25500_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="25515" type="Take" />
            <Action action="Decrease" variable="Quest25496_QE_25500_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="25516" type="Take" />
            <Action action="Decrease" variable="Quest25496_QE_25500_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest25496 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest25496" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest25496_QE_25500_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest25496" />
            <Action action="ActivateDialog" variable="Dialog_25503" />
            <Trigger param="Quest25496_QE_25500_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_25496_25496questtitle" value="STEP1" tracker_text="g4_Quest_25500_s1tt" text="g4_Quest_25500_s1log">
            <SubStep variable="Quest25496_QE_25500_RevCounter_1" count="1" tracker_text="g4_Quest_25500_1" actor_trigger="25516">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_25496_25496questtitle" value="STEP2" tracker_text="g4_Quest_25500_s2tt" text="g4_Quest_25500_s2log" show_log="false" show_tracker="true" actor_trigger="25675">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_25500_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_25496_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_25496_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_25496_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_25496_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest25689" text="g4_Quest_25689_25689questtitle">
        <!--Quest NPC25689-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest25689 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="25733" type="Take" />
            <Action action="Decrease" variable="Quest25689_QE_25693_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="25734" type="Take" />
            <Action action="Decrease" variable="Quest25689_QE_25693_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="25735" type="Take" />
            <Action action="Decrease" variable="Quest25689_QE_25693_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest25689 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest25689" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest25689_QE_25693_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest25689" />
            <Action action="ActivateDialog" variable="Dialog_25696" />
            <Trigger param="Quest25689_QE_25693_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_25689_25689questtitle" value="STEP1" tracker_text="g4_Quest_25693_s1tt" text="g4_Quest_25693_s1log">
            <SubStep variable="Quest25689_QE_25693_RevCounter_1" count="1" tracker_text="g4_Quest_25693_1" actor_trigger="25735">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_25689_25689questtitle" value="STEP2" tracker_text="g4_Quest_25693_s2tt" text="g4_Quest_25693_s2log" show_log="false" show_tracker="true" actor_trigger="25675">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_25693_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_25689_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_25689_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_25689_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_25689_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest25496" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest25496" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest25496" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest25496" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest25689" />
            <Trigger param="Quests.Quest25496" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest25705" text="g4_Quest_25705_25705questtitle">
        <!--Quest NPC25705-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest25705 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="25731" type="Take" />
            <Action action="Decrease" variable="Quest25705_QE_25709_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="25732" type="Take" />
            <Action action="Decrease" variable="Quest25705_QE_25709_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest25705 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest25705" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest25705_QE_25709_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest25705" />
            <Action action="ActivateDialog" variable="Dialog_25712" />
            <Trigger param="Quest25705_QE_25709_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_25705_25705questtitle" value="STEP1" tracker_text="g4_Quest_25709_s1tt" text="g4_Quest_25709_s1log">
            <SubStep variable="Quest25705_QE_25709_RevCounter_1" count="1" tracker_text="g4_Quest_25709_1" actor_trigger="25732">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_25705_25705questtitle" value="STEP2" tracker_text="g4_Quest_25709_s2tt" text="g4_Quest_25709_s2log" show_log="false" show_tracker="true" actor_trigger="25675">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_25709_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_25705_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_25705_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_25705_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_25705_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest25689" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest25689" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest25689" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest25689" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest25705" />
            <Trigger param="Quests.Quest25689" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest25561" text="g4_Quest_25561_25561questtitle">
        <!--Quest NPC25561-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_25561_25561questtitle" value="STEP1" tracker_text="g4_Quest_25610_s1tt" text="g4_Quest_25610_s1log" actor_trigger="9457" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_25561_25561questtitle" value="STEP2" tracker_text="g4_Quest_25622_s1tt" text="g4_Quest_25622_s1log" actor_trigger="21945" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_25561_25561questtitle" value="STEP3" tracker_text="g4_Quest_25650_s1tt" text="g4_Quest_25650_s1log" actor_trigger="12004" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step6-->
        <Step tracker_title="g4_Quest_25561_25561questtitle" value="STEP6" tracker_text="g4_Quest_25744_s1tt" text="g4_Quest_25744_s1log" actor_trigger="9457" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_25561_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_25561_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_25561_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_25561_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest25557" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest25557" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest25557" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest25557" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest25561" />
            <Trigger param="Quests.Quest25557" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest25421" text="g4_Quest_25421_25421questtitle">
        <!--Quest NPC25421-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest25421 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="25440" type="Kill" />
            <Action action="Decrease" variable="Quest25421_QE_25429_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest25421 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest25421" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest25421_QE_25429_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest25421" />
            <Trigger param="Quest25421_QE_25429_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest25421 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest25421" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.25440" />
            <Trigger param="Quests.Quest25421" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_25421_25421questtitle" value="STEP1" tracker_text="g4_Quest_25429_s1tt" text="g4_Quest_25429_s1log">
            <SubStep variable="Quest25421_QE_25429_RevCounter_1" count="1" tracker_text="g4_Quest_25429_1" actor_trigger="25440">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_25421_25421questtitle" value="STEP2" tracker_text="g4_Quest_25429_s2tt" text="g4_Quest_25429_s2log" show_log="false" show_tracker="true" actor_trigger="19247">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_25429_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_25421_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_25421_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_25421_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_25421_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest25561" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest25561" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest25561" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest25561" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest25421" />
            <Trigger param="Quests.Quest25561" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest25828" text="g4_Quest_25828_25828questtitle">
        <!--Quest NPC25828-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_25828_25828questtitle" value="STEP1" tracker_text="g4_Quest_27590_s1tt" text="g4_Quest_27590_s1log" actor_trigger="7598" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_25828_25828questtitle" value="STEP2" tracker_text="g4_Quest_27601_s1tt" text="g4_Quest_27601_s1log" actor_trigger="19247" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_25828_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_25828_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_25828_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_25828_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest25421" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest25421" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest25421" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest25421" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest25828" />
            <Trigger param="Quests.Quest25421" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest27618" text="g4_Quest_27618_27618questtitle">
        <!--Quest NPC27618-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_27618_27618questtitle" value="STEP1" tracker_text="g4_Quest_27629_s1tt" text="g4_Quest_27629_s1log" actor_trigger="9467" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_27618_27618questtitle" value="STEP2" tracker_text="g4_Quest_27646_s1tt" text="g4_Quest_27646_s1log" actor_trigger="19247" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_27618_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_27618_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_27618_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_27618_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest25828" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest25828" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest25828" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest25828" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest27618" />
            <Trigger param="Quests.Quest25828" type="VariableChange" />
        </Event>
    </Quest>
    <!--Thyme and Olives for Murdra-->
    <Quest main="false" name="Quest2771" text="g4_Quest_2771_2771questtitle">
        <!--Quest NPC2771-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_2771_2771questtitle" value="STEP1" tracker_text="g4_Quest_5982_s1tt" text="g4_Quest_5982_s1log" actor_trigger="7715" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - buy in case of Step=Step2-->
        <Step tracker_title="g4_Quest_2771_2771questtitle" value="STEP2" tracker_text="g4_Quest_5877_s1tt" text="g4_Quest_5877_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_5877_s1tt" />
        </Step>
        <!--step - collect in case of Step=Step3-->
        <!--Event for each QuestItem the Quest Quest2771 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="2786" type="Take" />
            <Action action="Decrease" variable="Quest2771_QE_2779_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest2771 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest2771" type="IN">
                    <Value tag="STEP3" />
                </Operand1>
                <Operand2 variable="Quest2771_QE_2779_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest4" variable="Quests.Quest2771" />
            <Trigger param="Quest2771_QE_2779_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest2771 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest2771" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.2786" />
            <Trigger param="Quests.Quest2771" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_2771_2771questtitle" value="STEP3" tracker_text="g4_Quest_2779_s1tt" text="g4_Quest_2779_s1log">
            <SubStep variable="Quest2771_QE_2779_RevCounter_1" count="1" tracker_text="g4_Quest_2779_1" actor_trigger="2786">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step4-->
        <Step tracker_title="g4_Quest_2771_2771questtitle" value="STEP4" tracker_text="g4_Quest_2779_s2tt" text="g4_Quest_2779_s2log" actor_trigger="7691" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- add experience for the collect element-->
        <Event>
            <Test variable="Quests.Quest2771" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Script statement="actor:AddExperience( 200 )" actor="Hero" />
            <Trigger param="Quests.Quest2771" type="VariableChange" />
        </Event>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_2771_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_2771_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_2771_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_2771_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest30967" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest30967" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest30967" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest30967" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest2771" />
            <Trigger param="Quests.Quest30967" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest4044" text="g4_Quest_4044_4044questtitle">
        <!--Quest NPC4044-->
        <!--step - buy in case of Step=Step1-->
        <Step tracker_title="g4_Quest_4044_4044questtitle" value="STEP1" tracker_text="g4_Quest_5996_s1tt" text="g4_Quest_5996_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_5996_s1tt" />
        </Step>
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_4044_4044questtitle" value="STEP2" tracker_text="g4_Quest_4077_s1tt" text="g4_Quest_4077_s1log" actor_trigger="7715" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_4044_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_4044_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_4044_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_4044_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest2771" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest2771" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest2771" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest2771" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest4044" />
            <Trigger param="Quests.Quest2771" type="VariableChange" />
        </Event>
    </Quest>
    <!--ch2a Merchant 2a Smith Delivery-->
    <Quest main="false" name="Quest1456" text="g4_Quest_1456_1456questtitle">
        <!--Quest NPC1456-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_1456_1456questtitle" value="STEP1" tracker_text="g4_Quest_1460_s1tt" text="g4_Quest_1460_s1log" actor_trigger="7691" />
        <!--Event for the Quest Quest1456 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest1456" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest1456.Folder5696" />
            <Trigger param="Quests.Quest1456" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest1456 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest1456" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest1456.Folder5696" />
            <Trigger param="Quests.Quest1456" type="VariableChange" />
        </Event>
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_1456_1456questtitle" value="STEP2" tracker_text="g4_Quest_1475_s1tt" text="g4_Quest_1475_s1log" actor_trigger="7697" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_1456_1456questtitle" value="STEP3" tracker_text="g4_Quest_1485_s1tt" text="g4_Quest_1485_s1log" />
        <!--Event for the Quest Quest1456 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest1456" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest1456.Folder5706" />
            <Trigger param="Quests.Quest1456" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest1456 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest1456" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest1456.Folder5706" />
            <Trigger param="Quests.Quest1456" type="VariableChange" />
        </Event>
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_1456_1456questtitle" value="STEP4" tracker_text="g4_Quest_1505_s1tt" text="g4_Quest_1505_s1log" actor_trigger="7697" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_1456_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_1456_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_1456_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_1456_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest4044" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest4044" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest4044" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest4044" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest1456" />
            <Trigger param="Quests.Quest4044" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest4089" text="g4_Quest_4089_4089questtitle">
        <!--Quest NPC4089-->
        <!--step - deliver in case of Step=Step1-->
        <Step tracker_title="g4_Quest_4089_4089questtitle" value="STEP1" tracker_text="g4_Quest_4119_s1tt" text="g4_Quest_4119_s1log" />
        <!--Event for the Quest Quest4089 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest4089" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest4089.Folder6007" />
            <Trigger param="Quests.Quest4089" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest4089 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest4089" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest4089.Folder6007" />
            <Trigger param="Quests.Quest4089" type="VariableChange" />
        </Event>
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_4089_4089questtitle" value="STEP2" tracker_text="g4_Quest_4131_s1tt" text="g4_Quest_4131_s1log" actor_trigger="7634" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step3-->
        <Step tracker_title="g4_Quest_4089_4089questtitle" value="STEP3" tracker_text="g4_Quest_4154_s1tt" text="g4_Quest_4154_s1log" actor_trigger="7691" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_4089_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_4089_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_4089_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_4089_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest1456" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest1456" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest1456" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest1456" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest4089" />
            <Trigger param="Quests.Quest1456" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest26746" text="g4_Quest_26746_26746questtitle">
        <!--Quest NPC26746-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_26746_26746questtitle" value="STEP1" tracker_text="g4_Quest_26750_s1tt" text="g4_Quest_26750_s1log" actor_trigger="26770" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_26746_26746questtitle" value="STEP2" tracker_text="g4_Quest_26755_s1tt" text="g4_Quest_26755_s1log" actor_trigger="8292" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_26746_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_26746_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_26746_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_26746_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest25840" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest25840" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest25840" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest25840" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest26746" />
            <Trigger param="Quests.Quest25840" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest26964" text="g4_Quest_26964_26964questtitle">
        <!--Quest NPC26964-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest26964 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="27044" type="Take" />
            <Action action="Decrease" variable="Quest26964_QE_26975_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest26964 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest26964" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest26964_QE_26975_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest5" variable="Quests.Quest26964" />
            <Trigger param="Quest26964_QE_26975_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest26964 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest26964" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.27044" />
            <Trigger param="Quests.Quest26964" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_26964_26964questtitle" value="STEP1" tracker_text="g4_Quest_26975_s1tt" text="g4_Quest_26975_s1log">
            <SubStep variable="Quest26964_QE_26975_RevCounter_1" count="1" tracker_text="g4_Quest_26975_1" actor_trigger="27044">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_26964_26964questtitle" value="STEP2" tracker_text="g4_Quest_26975_s2tt" text="g4_Quest_26975_s2log" actor_trigger="27034" />
        <!--Event for the Quest Quest26964 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest26964" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest26964.Folder27053" />
            <Trigger param="Quests.Quest26964" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest26964 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest26964" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest26964.Folder27053" />
            <Trigger param="Quests.Quest26964" type="VariableChange" />
        </Event>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_26964_26964questtitle" value="STEP3" tracker_text="g4_Quest_26985_s1tt" text="g4_Quest_26985_s1log" actor_trigger="8900" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step4-->
        <!--Event for each Mob the Quest Quest26964 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="27166" type="Kill" />
            <Action action="Decrease" variable="Quest26964_QE_27002_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest26964 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest26964" type="IN">
                    <Value tag="STEP4" />
                </Operand1>
                <Operand2 variable="Quest26964_QE_27002_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest5" variable="Quests.Quest26964" />
            <Trigger param="Quest26964_QE_27002_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest26964 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest26964" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.27166" />
            <Trigger param="Quests.Quest26964" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_26964_26964questtitle" value="STEP4" tracker_text="g4_Quest_27002_s1tt" text="g4_Quest_27002_s1log">
            <SubStep variable="Quest26964_QE_27002_RevCounter_1" count="1" tracker_text="g4_Quest_27002_1" actor_trigger="27166">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - talk to in case of Step=Step5-->
        <Step tracker_title="g4_Quest_26964_26964questtitle" value="STEP5" tracker_text="g4_Quest_27002_s2tt" text="g4_Quest_27002_s2log" actor_trigger="8292" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_26964_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_26964_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_26964_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_26964_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest26746" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest26746" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest26746" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest26746" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest26964" />
            <Trigger param="Quests.Quest26746" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest27655" text="g4_Quest_27655_27655questtitle">
        <!--Quest NPC27655-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_27655_27655questtitle" value="STEP1" tracker_text="g4_Quest_27671_s1tt" text="g4_Quest_27671_s1log" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step2-->
        <!--Event for each Mob the Quest Quest27655 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="27718" type="Kill" />
            <Action action="Decrease" variable="Quest27655_QE_27708_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest27655 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest27655" type="IN">
                    <Value tag="STEP2" />
                </Operand1>
                <Operand2 variable="Quest27655_QE_27708_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest3" variable="Quests.Quest27655" />
            <Trigger param="Quest27655_QE_27708_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest27655 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest27655" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.27718" />
            <Trigger param="Quests.Quest27655" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_27655_27655questtitle" value="STEP2" tracker_text="g4_Quest_27708_s1tt" text="g4_Quest_27708_s1log">
            <SubStep variable="Quest27655_QE_27708_RevCounter_1" count="1" tracker_text="g4_Quest_27708_1" actor_trigger="27718">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_27655_27655questtitle" value="STEP3" tracker_text="g4_Quest_27708_s2tt" text="g4_Quest_27708_s2log" actor_trigger="8292" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_27655_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_27655_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_27655_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_27655_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest26964" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest26964" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest26964" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest26964" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest27655" />
            <Trigger param="Quests.Quest26964" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest17871" text="g4_Quest_17871_17871questtitle">
        <!--Quest NPC17871-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_17871_17871questtitle" value="STEP1" tracker_text="g4_Quest_17889_s1tt" text="g4_Quest_17889_s1log" actor_trigger="17507" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_17871_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_17871_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_17871_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_17871_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest17336" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest17336" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest17336" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest17336" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest17871" />
            <Trigger param="Quests.Quest17336" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest17875" text="g4_Quest_17875_17875questtitle">
        <!--Quest NPC17875-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_17875_17875questtitle" value="STEP1" tracker_text="g4_Quest_17894_s1tt" text="g4_Quest_17894_s1log" actor_trigger="17517" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_17875_17875questtitle" value="STEP2" tracker_text="g4_Quest_22476_s1tt" text="g4_Quest_22476_s1log" actor_trigger="17369" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_17875_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_17875_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_17875_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_17875_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest17871" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest17871" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest17871" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest17871" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest17875" />
            <Trigger param="Quests.Quest17871" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest17340" text="g4_Quest_17340_17340questtitle">
        <!--Quest NPC17340-->
        <!--step - wait in case of Step=Step1-->
        <Step tracker_title="g4_Quest_17340_17340questtitle" value="STEP1" tracker_text="g4_Quest_17967_s1tt" text="g4_Quest_17967_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_17967_s1tt" />
        </Step>
        <!--step - kill in case of Step=Step2-->
        <!--Event for each Mob the Quest Quest17340 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="17990" type="Kill" />
            <Action action="Decrease" variable="Quest17340_QE_17978_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest17340 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest17340" type="IN">
                    <Value tag="STEP2" />
                </Operand1>
                <Operand2 variable="Quest17340_QE_17978_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest3" variable="Quests.Quest17340" />
            <Action action="ActivateDialog" variable="Dialog_17981" />
            <Trigger param="Quest17340_QE_17978_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_17340_17340questtitle" value="STEP2" tracker_text="g4_Quest_17978_s1tt" text="g4_Quest_17978_s1log">
            <SubStep variable="Quest17340_QE_17978_RevCounter_1" count="1" tracker_text="g4_Quest_17978_1" actor_trigger="17990">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step3-->
        <Step tracker_title="g4_Quest_17340_17340questtitle" value="STEP3" tracker_text="g4_Quest_17978_s2tt" text="g4_Quest_17978_s2log" show_log="false" show_tracker="true" actor_trigger="9487">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_17978_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_17340_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_17340_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_17340_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_17340_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest17875" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest17875" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest17875" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest17875" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest17340" />
            <Trigger param="Quests.Quest17875" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest18007" text="g4_Quest_18007_18007questtitle">
        <!--Quest NPC18007-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_18007_18007questtitle" value="STEP1" tracker_text="g4_Quest_18052_s1tt" text="g4_Quest_18052_s1log" actor_trigger="17527" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_18007_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_18007_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_18007_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_18007_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest17340" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest17340" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest17340" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest17340" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18007" />
            <Trigger param="Quests.Quest17340" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest18011" text="g4_Quest_18011_18011questtitle">
        <!--Quest NPC18011-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_18011_18011questtitle" value="STEP1" tracker_text="g4_Quest_18057_s1tt" text="g4_Quest_18057_s1log" actor_trigger="17538" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_18011_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_18011_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_18011_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_18011_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest18007" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest18007" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest18007" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest18007" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18011" />
            <Trigger param="Quests.Quest18007" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest22671" text="g4_Quest_22671_22671questtitle">
        <!--Quest Scroll22671-->
        <!--Event for the Quest Quest22671 
	 -> it is triggered when the scroll is picked up 
	 -> it tests if the quest is available 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test variable="Quests.Quest22671" type="IN">
                <Value tag="AVAILABLE" />
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest22671" />
            <Trigger param="22671" type="Take" />
        </Event>
        <!--step - collect in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest22671 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="23387" type="Kill" />
            <Action action="Decrease" variable="Quest22671_QE_23345_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="23388" type="Kill" />
            <Action action="Decrease" variable="Quest22671_QE_23345_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest22671 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest22671" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest22671_QE_23345_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest22671" />
            <Trigger param="Quest22671_QE_23345_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_22671_22671questtitle" value="STEP1" tracker_text="g4_Quest_23345_s1tt" text="g4_Quest_23345_s1log">
            <SubStep variable="Quest22671_QE_23345_RevCounter_1" count="1" tracker_text="g4_Quest_23345_1" actor_trigger="23388">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_22671_22671questtitle" value="STEP2" tracker_text="g4_Quest_23345_s2tt" text="g4_Quest_23345_s2log" actor_trigger="22735" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_22671_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_22671_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_22671_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_22671_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest22669" text="g4_Quest_22669_22669questtitle">
        <!--Quest Scroll22669-->
        <!--Event for the Quest Quest22669 
	 -> it is triggered when the scroll is picked up 
	 -> it tests if the quest is available 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test variable="Quests.Quest22669" type="IN">
                <Value tag="AVAILABLE" />
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest22669" />
            <Trigger param="22669" type="Take" />
        </Event>
        <!--step - collect in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest22669 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="23380" type="Kill" />
            <Action action="Decrease" variable="Quest22669_QE_23333_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="23381" type="Kill" />
            <Action action="Decrease" variable="Quest22669_QE_23333_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="23382" type="Kill" />
            <Action action="Decrease" variable="Quest22669_QE_23333_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="23383" type="Kill" />
            <Action action="Decrease" variable="Quest22669_QE_23333_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="23384" type="Kill" />
            <Action action="Decrease" variable="Quest22669_QE_23333_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="23385" type="Kill" />
            <Action action="Decrease" variable="Quest22669_QE_23333_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="23386" type="Kill" />
            <Action action="Decrease" variable="Quest22669_QE_23333_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest22669 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest22669" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest22669_QE_23333_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest22669" />
            <Trigger param="Quest22669_QE_23333_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_22669_22669questtitle" value="STEP1" tracker_text="g4_Quest_23333_s1tt" text="g4_Quest_23333_s1log">
            <SubStep variable="Quest22669_QE_23333_RevCounter_1" count="1" tracker_text="g4_Quest_23333_1" actor_trigger="23386">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_22669_22669questtitle" value="STEP2" tracker_text="g4_Quest_23333_s2tt" text="g4_Quest_23333_s2log" actor_trigger="22735" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_22669_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_22669_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_22669_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_22669_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest22649" text="g4_Quest_22649_22649questtitle">
        <!--Quest NPC22649-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest22649 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="22685" type="Kill" />
            <Action action="Decrease" variable="Quest22649_QE_22673_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="22686" type="Kill" />
            <Action action="Decrease" variable="Quest22649_QE_22673_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="22687" type="Kill" />
            <Action action="Decrease" variable="Quest22649_QE_22673_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="22688" type="Kill" />
            <Action action="Decrease" variable="Quest22649_QE_22673_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="22689" type="Kill" />
            <Action action="Decrease" variable="Quest22649_QE_22673_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest22649 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest22649" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest22649_QE_22673_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest22649" />
            <Action action="ActivateDialog" variable="Dialog_22676" />
            <Trigger param="Quest22649_QE_22673_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_22649_22649questtitle" value="STEP1" tracker_text="g4_Quest_22673_s1tt" text="g4_Quest_22673_s1log">
            <SubStep variable="Quest22649_QE_22673_RevCounter_1" count="1" tracker_text="g4_Quest_22673_1" actor_trigger="22689">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_22649_22649questtitle" value="STEP2" tracker_text="g4_Quest_22673_s2tt" text="g4_Quest_22673_s2log" show_log="false" show_tracker="true" actor_trigger="22735">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_22673_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_22649_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_22649_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_22649_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_22649_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest22653" text="g4_Quest_22653_22653questtitle">
        <!--Quest NPC22653-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest22653 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="22765" type="Kill" />
            <Action action="Decrease" variable="Quest22653_QE_22753_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="22766" type="Kill" />
            <Action action="Decrease" variable="Quest22653_QE_22753_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="22767" type="Kill" />
            <Action action="Decrease" variable="Quest22653_QE_22753_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="22768" type="Kill" />
            <Action action="Decrease" variable="Quest22653_QE_22753_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="22769" type="Kill" />
            <Action action="Decrease" variable="Quest22653_QE_22753_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="22770" type="Kill" />
            <Action action="Decrease" variable="Quest22653_QE_22753_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="22771" type="Kill" />
            <Action action="Decrease" variable="Quest22653_QE_22753_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="22772" type="Kill" />
            <Action action="Decrease" variable="Quest22653_QE_22753_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="22773" type="Kill" />
            <Action action="Decrease" variable="Quest22653_QE_22753_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="22774" type="Kill" />
            <Action action="Decrease" variable="Quest22653_QE_22753_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest22653 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest22653" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest22653_QE_22753_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest22653" />
            <Action action="ActivateDialog" variable="Dialog_22756" />
            <Trigger param="Quest22653_QE_22753_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_22653_22653questtitle" value="STEP1" tracker_text="g4_Quest_22753_s1tt" text="g4_Quest_22753_s1log">
            <SubStep variable="Quest22653_QE_22753_RevCounter_1" count="1" tracker_text="g4_Quest_22753_1" actor_trigger="22774">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_22653_22653questtitle" value="STEP2" tracker_text="g4_Quest_22753_s2tt" text="g4_Quest_22753_s2log" show_log="false" show_tracker="true" actor_trigger="22735">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_22753_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_22653_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_22653_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_22653_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_22653_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest22649" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest22649" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest22649" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest22649" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest22653" />
            <Trigger param="Quests.Quest22649" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest22657" text="g4_Quest_22657_22657questtitle">
        <!--Quest NPC22657-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest22657 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="22924" type="Kill" />
            <Action action="Decrease" variable="Quest22657_QE_22885_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="24173" type="Kill" />
            <Action action="Decrease" variable="Quest22657_QE_22885_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="24174" type="Kill" />
            <Action action="Decrease" variable="Quest22657_QE_22885_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="24175" type="Kill" />
            <Action action="Decrease" variable="Quest22657_QE_22885_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest22657 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest22657" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest22657_QE_22885_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest22657" />
            <Action action="ActivateDialog" variable="Dialog_22888" />
            <Trigger param="Quest22657_QE_22885_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_22657_22657questtitle" value="STEP1" tracker_text="g4_Quest_22885_s1tt" text="g4_Quest_22885_s1log">
            <SubStep variable="Quest22657_QE_22885_RevCounter_1" count="1" tracker_text="g4_Quest_22885_1" actor_trigger="24175">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_22657_22657questtitle" value="STEP2" tracker_text="g4_Quest_22885_s2tt" text="g4_Quest_22885_s2log" show_log="false" show_tracker="true" actor_trigger="22735">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_22885_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_22657_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_22657_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_22657_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_22657_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest22653" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest22653" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest22653" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest22653" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest22657" />
            <Trigger param="Quests.Quest22653" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest22661" text="g4_Quest_22661_22661questtitle">
        <!--Quest NPC22661-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest22661 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="22934" type="Kill" />
            <Action action="Decrease" variable="Quest22661_QE_22897_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="26339" type="Kill" />
            <Action action="Decrease" variable="Quest22661_QE_22897_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="26340" type="Kill" />
            <Action action="Decrease" variable="Quest22661_QE_22897_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="26341" type="Kill" />
            <Action action="Decrease" variable="Quest22661_QE_22897_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="26342" type="Kill" />
            <Action action="Decrease" variable="Quest22661_QE_22897_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="26343" type="Kill" />
            <Action action="Decrease" variable="Quest22661_QE_22897_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest22661 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest22661" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest22661_QE_22897_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest22661" />
            <Action action="ActivateDialog" variable="Dialog_22900" />
            <Trigger param="Quest22661_QE_22897_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_22661_22661questtitle" value="STEP1" tracker_text="g4_Quest_22897_s1tt" text="g4_Quest_22897_s1log">
            <SubStep variable="Quest22661_QE_22897_RevCounter_1" count="1" tracker_text="g4_Quest_22897_1" actor_trigger="26343">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_22661_22661questtitle" value="STEP2" tracker_text="g4_Quest_22897_s2tt" text="g4_Quest_22897_s2log" show_log="false" show_tracker="true" actor_trigger="22735">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_22897_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_22661_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_22661_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_22661_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_22661_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest22657" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest22657" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest22657" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest22657" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest22661" />
            <Trigger param="Quests.Quest22657" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest4889" text="g4_Quest_4889_4889questtitle">
        <!--Quest NPC4889-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_4889_4889questtitle" value="STEP1" tracker_text="g4_Quest_4892_s1tt" text="g4_Quest_4892_s1log" />
        <!--Event for the Quest Quest4889 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest4889" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest4889.Folder5845" />
            <Trigger param="Quests.Quest4889" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest4889 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest4889" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest4889.Folder5845" />
            <Trigger param="Quests.Quest4889" type="VariableChange" />
        </Event>
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step2-->
        <!--Event for each Mob the Quest Quest4889 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="6077" type="Kill" />
            <Action action="Decrease" variable="Quest4889_QE_6064_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest4889 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest4889" type="IN">
                    <Value tag="STEP2" />
                </Operand1>
                <Operand2 variable="Quest4889_QE_6064_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest4" variable="Quests.Quest4889" />
            <Trigger param="Quest4889_QE_6064_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest4889 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest4889" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.6077" />
            <Trigger param="Quests.Quest4889" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_4889_4889questtitle" value="STEP2" tracker_text="g4_Quest_6064_s1tt" text="g4_Quest_6064_s1log">
            <SubStep variable="Quest4889_QE_6064_RevCounter_1" count="1" tracker_text="g4_Quest_6064_1" actor_trigger="6077">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step3-->
        <Step tracker_title="g4_Quest_4889_4889questtitle" value="STEP3" tracker_text="g4_Quest_6064_s2tt" text="g4_Quest_6064_s2log" show_log="false" show_tracker="true" actor_trigger="7631">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_6064_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_4889_4889questtitle" value="STEP4" tracker_text="g4_Quest_4903_s1tt" text="g4_Quest_4903_s1log" actor_trigger="7604" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_4889_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_4889_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_4889_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_4889_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest9213" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest9213" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest9213" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest9213" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest4889" />
            <Trigger param="Quests.Quest9213" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest26059" text="g4_Quest_26059_26059questtitle">
        <!--Quest NPC26059-->
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest26059" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest26065" />
            <Action action="ProgressQuest4" variable="Quests.Quest26065" />
            <Action action="ActivateQuest" variable="Quests.Quest26067" />
            <Action action="ProgressQuest4" variable="Quests.Quest26067" />
            <Trigger param="Quests.Quest26059" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step1-->
        <Step tracker_title="g4_Quest_26059_26059questtitle" value="STEP1" tracker_text="g4_Quest_26063_srtt" text="g4_Quest_26063_srlog">
            <Quest main="false" name="Quest26065" text="g4_Quest_26065_26065questtitle">
                <!--Quest SubQuest26065-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_26065_26065questtitle" value="STEP1" tracker_text="g4_Quest_26117_s1tt" text="g4_Quest_26117_s1log" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - wait in case of Step=Step2-->
                <Step tracker_title="g4_Quest_26065_26065questtitle" value="STEP2" tracker_text="g4_Quest_26073_s1tt" text="g4_Quest_26073_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_26073_s1tt" />
                </Step>
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_26065_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest26067" text="g4_Quest_26067_26067questtitle">
                <!--Quest SubQuest26067-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_26067_26067questtitle" value="STEP1" tracker_text="g4_Quest_26088_s1tt" text="g4_Quest_26088_s1log" actor_trigger="7739" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_26067_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_26059_26059questtitle" value="STEP2" tracker_text="g4_Quest_26063_s2tt" text="g4_Quest_26063_s2log" show_log="false" show_tracker="true" actor_trigger="7604">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_26063_s2tt" />
        </Step>
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_26059_26059questtitle" value="STEP3" tracker_text="g4_Quest_26098_s1tt" text="g4_Quest_26098_s1log" />
        <!--Event for the Quest Quest26059 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest26059" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest26059.Folder26240" />
            <Trigger param="Quests.Quest26059" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest26059 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest26059" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest26059.Folder26240" />
            <Trigger param="Quests.Quest26059" type="VariableChange" />
        </Event>
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_26059_26059questtitle" value="STEP4" tracker_text="g4_Quest_26257_s1tt" text="g4_Quest_26257_s1log" actor_trigger="7604" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_26059_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_26059_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_26059_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_26059_FinishedLog4" />
        <Event>
            <Test type="AND">
                <Operand1 type="OR">
                    <Operand1 variable="Quests.Quest9585" type="IN">
                        <Value tag="FINISHED_1" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest9585" type="IN">
                            <Value tag="FINISHED_2" />
                        </Operand1>
                        <Operand2 type="OR">
                            <Operand1 variable="Quests.Quest9585" type="IN">
                                <Value tag="FINISHED_3" />
                            </Operand1>
                            <Operand2 variable="Quests.Quest9585" type="IN">
                                <Value tag="FINISHED_4" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest4889" type="IN">
                        <Value tag="FINISHED_1" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest4889" type="IN">
                            <Value tag="FINISHED_2" />
                        </Operand1>
                        <Operand2 type="OR">
                            <Operand1 variable="Quests.Quest4889" type="IN">
                                <Value tag="FINISHED_3" />
                            </Operand1>
                            <Operand2 variable="Quests.Quest4889" type="IN">
                                <Value tag="FINISHED_4" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest26059" />
            <Trigger param="Quests.Quest9585" type="VariableChange" />
            <Trigger param="Quests.Quest4889" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest7285" text="g4_Quest_7285_7285questtitle">
        <!--Quest Chained7285-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest7285 
	 -> it is triggered when the attached quest 7060 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest7060" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest7060" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest7060" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest7060" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest7285" />
            <Action action="ProgressQuest3" variable="Quests.Quest7285" />
            <Trigger param="Quests.Quest7060" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_7285_7285questtitle" value="STEP1" tracker_text="g4_Quest_7291_s1tt" text="g4_Quest_7291_s1log" actor_trigger="9436" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest7285" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest7307" />
            <Action action="ProgressQuest3" variable="Quests.Quest7307" />
            <Action action="ActivateQuest" variable="Quests.Quest7309" />
            <Action action="ProgressQuest3" variable="Quests.Quest7309" />
            <Action action="ActivateQuest" variable="Quests.Quest7311" />
            <Action action="ProgressQuest3" variable="Quests.Quest7311" />
            <Trigger param="Quests.Quest7285" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step2-->
        <Step tracker_title="g4_Quest_7285_7285questtitle" value="STEP2" tracker_text="g4_Quest_7305_srtt" text="g4_Quest_7305_srlog">
            <Quest main="false" name="Quest7307" text="g4_Quest_7307_7307questtitle">
                <!--Quest SubQuest7307-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_7307_7307questtitle" value="STEP1" tracker_text="g4_Quest_7319_s1tt" text="g4_Quest_7319_s1log" actor_trigger="9467" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_7307_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest7309" text="g4_Quest_7309_7309questtitle">
                <!--Quest SubQuest7309-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_7309_7309questtitle" value="STEP1" tracker_text="g4_Quest_7338_s1tt" text="g4_Quest_7338_s1log" actor_trigger="9446" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_7309_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest7311" text="g4_Quest_7311_7311questtitle">
                <!--Quest SubQuest7311-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_7311_7311questtitle" value="STEP1" tracker_text="g4_Quest_7349_s1tt" text="g4_Quest_7349_s1log" actor_trigger="9477" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_7311_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_7285_7285questtitle" value="STEP3" tracker_text="g4_Quest_7305_s2tt" text="g4_Quest_7305_s2log" show_log="false" show_tracker="true" actor_trigger="9436">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_7305_s2tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_7285_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_7285_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_7285_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_7285_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest7060" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest7060" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest7060" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest7060" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest7285" />
            <Trigger param="Quests.Quest7060" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest7364" text="g4_Quest_7364_7364questtitle">
        <!--Quest Chained7364-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest7364 
	 -> it is triggered when the attached quest 7285 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest7285" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest7285" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest7285" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest7285" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest7364" />
            <Action action="ProgressQuest9" variable="Quests.Quest7364" />
            <Trigger param="Quests.Quest7285" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_7364_7364questtitle" value="STEP1" tracker_text="g4_Quest_7369_s1tt" text="g4_Quest_7369_s1log" actor_trigger="8292" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_7364_7364questtitle" value="STEP2" tracker_text="g4_Quest_7384_s1tt" text="g4_Quest_7384_s1log" actor_trigger="9497" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_7364_7364questtitle" value="STEP3" tracker_text="g4_Quest_7503_s1tt" text="g4_Quest_7503_s1log" actor_trigger="9487" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step4-->
        <!--Event for each Mob the Quest Quest7364 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="7542" type="Kill" />
            <Action action="Decrease" variable="Quest7364_QE_7526_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest7364 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest7364" type="IN">
                    <Value tag="STEP4" />
                </Operand1>
                <Operand2 variable="Quest7364_QE_7526_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest9" variable="Quests.Quest7364" />
            <Trigger param="Quest7364_QE_7526_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest7364 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest7364" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.7542" />
            <Trigger param="Quests.Quest7364" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_7364_7364questtitle" value="STEP4" tracker_text="g4_Quest_7526_s1tt" text="g4_Quest_7526_s1log">
            <SubStep variable="Quest7364_QE_7526_RevCounter_1" count="1" tracker_text="g4_Quest_7526_1" actor_trigger="7542">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step5-->
        <Step tracker_title="g4_Quest_7364_7364questtitle" value="STEP5" tracker_text="g4_Quest_7526_s2tt" text="g4_Quest_7526_s2log" show_log="false" show_tracker="true" actor_trigger="9487">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_7526_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step6-->
        <Step tracker_title="g4_Quest_7364_7364questtitle" value="STEP6" tracker_text="g4_Quest_7535_s1tt" text="g4_Quest_7535_s1log" actor_trigger="9507" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step7-->
        <!--Event for each QuestItem the Quest Quest7364 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="7561" type="Take" />
            <Action action="Decrease" variable="Quest7364_QE_7552_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest7364 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest7364" type="IN">
                    <Value tag="STEP7" />
                </Operand1>
                <Operand2 variable="Quest7364_QE_7552_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest9" variable="Quests.Quest7364" />
            <Trigger param="Quest7364_QE_7552_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest7364 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest7364" type="IN">
                <Value tag="STEP7" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.7561" />
            <Trigger param="Quests.Quest7364" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_7364_7364questtitle" value="STEP7" tracker_text="g4_Quest_7552_s1tt" text="g4_Quest_7552_s1log">
            <SubStep variable="Quest7364_QE_7552_RevCounter_1" count="1" tracker_text="g4_Quest_7552_1" actor_trigger="7561">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step8-->
        <Step tracker_title="g4_Quest_7364_7364questtitle" value="STEP8" tracker_text="g4_Quest_7552_s2tt" text="g4_Quest_7552_s2log" show_log="false" show_tracker="true" actor_trigger="9507">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_7552_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step9-->
        <Step tracker_title="g4_Quest_7364_7364questtitle" value="STEP9" tracker_text="g4_Quest_7443_s1tt" text="g4_Quest_7443_s1log" actor_trigger="9497" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_7364_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_7364_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_7364_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_7364_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest7285" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest7285" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest7285" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest7285" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest7364" />
            <Trigger param="Quests.Quest7285" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest20962" text="g4_Quest_20962_20962questtitle">
        <!--Quest NPC20962-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest20962 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="21044" type="Take" />
            <Action action="Decrease" variable="Quest20962_QE_21027_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="21721" type="Take" />
            <Action action="Decrease" variable="Quest20962_QE_21027_RevCounter_2" />
        </Event>
        <Event>
            <Trigger param="21730" type="Take" />
            <Action action="Decrease" variable="Quest20962_QE_21027_RevCounter_3" />
        </Event>
        <!--Event for the Quest Quest20962 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest20962" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 type="AND">
                    <Operand1 variable="Quest20962_QE_21027_RevCounter_1" type="IN">
                        <Value tag="0_MORE" />
                    </Operand1>
                    <Operand2 type="AND">
                        <Operand1 variable="Quest20962_QE_21027_RevCounter_2" type="IN">
                            <Value tag="0_MORE" />
                        </Operand1>
                        <Operand2 variable="Quest20962_QE_21027_RevCounter_3" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ProgressQuest6" variable="Quests.Quest20962" />
            <Trigger param="Quest20962_QE_21027_RevCounter_1" type="VariableChange" />
            <Trigger param="Quest20962_QE_21027_RevCounter_2" type="VariableChange" />
            <Trigger param="Quest20962_QE_21027_RevCounter_3" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_20962_20962questtitle" value="STEP1" tracker_text="g4_Quest_21027_s1tt" text="g4_Quest_21027_s1log">
            <SubStep variable="Quest20962_QE_21027_RevCounter_1" count="1" tracker_text="g4_Quest_21027_1" actor_trigger="21044">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest20962_QE_21027_RevCounter_2" count="1" tracker_text="g4_Quest_21027_2" actor_trigger="21721">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest20962_QE_21027_RevCounter_3" count="1" tracker_text="g4_Quest_21027_3" actor_trigger="21730">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_20962_20962questtitle" value="STEP2" tracker_text="g4_Quest_21027_s2tt" text="g4_Quest_21027_s2log" actor_trigger="21014" />
        <!-- event to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step3-->
        <!--Event for each QuestItem the Quest Quest20962 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="21103" type="Take" />
            <Action action="Decrease" variable="Quest20962_QE_21081_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest20962 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest20962" type="IN">
                    <Value tag="STEP3" />
                </Operand1>
                <Operand2 variable="Quest20962_QE_21081_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest6" variable="Quests.Quest20962" />
            <Trigger param="Quest20962_QE_21081_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest20962 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest20962" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.21103" />
            <Trigger param="Quests.Quest20962" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_20962_20962questtitle" value="STEP3" tracker_text="g4_Quest_21081_s1tt" text="g4_Quest_21081_s1log">
            <SubStep variable="Quest20962_QE_21081_RevCounter_1" count="1" tracker_text="g4_Quest_21081_1" actor_trigger="21103">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step4-->
        <Step tracker_title="g4_Quest_20962_20962questtitle" value="STEP4" tracker_text="g4_Quest_21081_s2tt" text="g4_Quest_21081_s2log" actor_trigger="7589" />
        <!-- event to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step5-->
        <Step tracker_title="g4_Quest_20962_20962questtitle" value="STEP5" tracker_text="g4_Quest_21118_s1tt" text="g4_Quest_21118_s1log" actor_trigger="21124" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step6-->
        <Step tracker_title="g4_Quest_20962_20962questtitle" value="STEP6" tracker_text="g4_Quest_21154_s1tt" text="g4_Quest_21154_s1log" actor_trigger="7589" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_20962_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_20962_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_20962_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_20962_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest20708" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest20708" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest20708" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest20708" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest20962" />
            <Trigger param="Quests.Quest20708" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest24786" text="g4_Quest_24786_24786questtitle">
        <!--Quest Scroll24786-->
        <!--Event for the Quest Quest24786 
	 -> it is triggered when the scroll is picked up 
	 -> it tests if the quest is available 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test variable="Quests.Quest24786" type="IN">
                <Value tag="AVAILABLE" />
            </Test>
            <Action action="ProgressQuest3" variable="Quests.Quest24786" />
            <Trigger param="24786" type="Take" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_24786_24786questtitle" value="STEP1" tracker_text="g4_Quest_24788_s1tt" text="g4_Quest_24788_s1log" actor_trigger="24776" />
        <!-- Warning: the Talk To quest element in Quest Quest24786 has no briefing dialog-->
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_24786_24786questtitle" value="STEP2" tracker_text="g4_Quest_24793_s1tt" text="g4_Quest_24793_s1log" actor_trigger="19833" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - wait in case of Step=Step3-->
        <Step tracker_title="g4_Quest_24786_24786questtitle" value="STEP3" tracker_text="g4_Quest_24798_s1tt" text="g4_Quest_24798_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_24798_s1tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_24786_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_24786_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_24786_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_24786_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest24895" text="g4_Quest_24895_24895questtitle">
        <!--Quest NPC24895-->
        <!--step - wait in case of Step=Step1-->
        <Step tracker_title="g4_Quest_24895_24895questtitle" value="STEP1" tracker_text="g4_Quest_25130_s1tt" text="g4_Quest_25130_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_25130_s1tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_24895_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_24895_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_24895_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_24895_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest24786" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest24786" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest24786" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest24786" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest24895" />
            <Trigger param="Quests.Quest24786" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest22665" text="g4_Quest_22665_22665questtitle">
        <!--Quest Scroll22665-->
        <!--Event for the Quest Quest22665 
	 -> it is triggered when the scroll is picked up 
	 -> it tests if the quest is available 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test variable="Quests.Quest22665" type="IN">
                <Value tag="AVAILABLE" />
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest22665" />
            <Trigger param="22665" type="Take" />
        </Event>
        <!--step - collect in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest22665 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="23301" type="Kill" />
            <Action action="Decrease" variable="Quest22665_QE_23289_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="23302" type="Kill" />
            <Action action="Decrease" variable="Quest22665_QE_23289_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="24019" type="Kill" />
            <Action action="Decrease" variable="Quest22665_QE_23289_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="24020" type="Kill" />
            <Action action="Decrease" variable="Quest22665_QE_23289_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="24021" type="Kill" />
            <Action action="Decrease" variable="Quest22665_QE_23289_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="24022" type="Kill" />
            <Action action="Decrease" variable="Quest22665_QE_23289_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="24023" type="Kill" />
            <Action action="Decrease" variable="Quest22665_QE_23289_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="24024" type="Kill" />
            <Action action="Decrease" variable="Quest22665_QE_23289_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest22665 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest22665" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest22665_QE_23289_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest22665" />
            <Trigger param="Quest22665_QE_23289_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_22665_22665questtitle" value="STEP1" tracker_text="g4_Quest_23289_s1tt" text="g4_Quest_23289_s1log">
            <SubStep variable="Quest22665_QE_23289_RevCounter_1" count="1" tracker_text="g4_Quest_23289_1" actor_trigger="24024">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_22665_22665questtitle" value="STEP2" tracker_text="g4_Quest_23289_s2tt" text="g4_Quest_23289_s2log" actor_trigger="22735" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_22665_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_22665_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_22665_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_22665_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest3544" text="g4_Quest_3544_3544questtitle">
        <!--Quest NPC3544-->
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest3544" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest12919" />
            <Action action="ProgressQuest2" variable="Quests.Quest12919" />
            <Action action="ActivateQuest" variable="Quests.Quest12921" />
            <Action action="ProgressQuest2" variable="Quests.Quest12921" />
            <Action action="ActivateQuest" variable="Quests.Quest12923" />
            <Action action="ProgressQuest2" variable="Quests.Quest12923" />
            <Trigger param="Quests.Quest3544" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step1-->
        <Step tracker_title="g4_Quest_3544_3544questtitle" value="STEP1" tracker_text="g4_Quest_12917_srtt" text="g4_Quest_12917_srlog">
            <Quest main="false" name="Quest12919" text="g4_Quest_12919_12919questtitle">
                <!--Quest SubQuest12919-->
                <!--step - collect in case of Step=Step1-->
                <!--Event for each QuestItem the Quest Quest12919 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="13038" type="Take" />
                    <Action action="Decrease" variable="Quest12919_QE_12927_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15654" type="Take" />
                    <Action action="Decrease" variable="Quest12919_QE_12927_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15663" type="Take" />
                    <Action action="Decrease" variable="Quest12919_QE_12927_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15672" type="Take" />
                    <Action action="Decrease" variable="Quest12919_QE_12927_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15681" type="Take" />
                    <Action action="Decrease" variable="Quest12919_QE_12927_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15690" type="Take" />
                    <Action action="Decrease" variable="Quest12919_QE_12927_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15699" type="Take" />
                    <Action action="Decrease" variable="Quest12919_QE_12927_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15708" type="Take" />
                    <Action action="Decrease" variable="Quest12919_QE_12927_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15717" type="Take" />
                    <Action action="Decrease" variable="Quest12919_QE_12927_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15727" type="Take" />
                    <Action action="Decrease" variable="Quest12919_QE_12927_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15736" type="Take" />
                    <Action action="Decrease" variable="Quest12919_QE_12927_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15745" type="Take" />
                    <Action action="Decrease" variable="Quest12919_QE_12927_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15754" type="Take" />
                    <Action action="Decrease" variable="Quest12919_QE_12927_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15763" type="Take" />
                    <Action action="Decrease" variable="Quest12919_QE_12927_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15772" type="Take" />
                    <Action action="Decrease" variable="Quest12919_QE_12927_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest12919 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest12919" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 variable="Quest12919_QE_12927_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest2" variable="Quests.Quest12919" />
                    <Action action="ActivateDialog" variable="Dialog_12930" />
                    <Trigger param="Quest12919_QE_12927_RevCounter_1" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_12919_12919questtitle" value="STEP1" tracker_text="g4_Quest_12927_s1tt" text="g4_Quest_12927_s1log">
                    <SubStep variable="Quest12919_QE_12927_RevCounter_1" count="10" tracker_text="g4_Quest_12927_1">
                        <Value tag="10_MORE" />
                        <Value tag="9_MORE" />
                        <Value tag="8_MORE" />
                        <Value tag="7_MORE" />
                        <Value tag="6_MORE" />
                        <Value tag="5_MORE" />
                        <Value tag="4_MORE" />
                        <Value tag="3_MORE" />
                        <Value tag="2_MORE" />
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - return to NPC in case of Step=Step2-->
                <Step tracker_title="g4_Quest_12919_12919questtitle" value="STEP2" tracker_text="g4_Quest_12927_s2tt" text="g4_Quest_12927_s2log" show_log="false" show_tracker="true" actor_trigger="7730">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_12927_s2tt" />
                </Step>
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_12919_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest12921" text="g4_Quest_12921_12921questtitle">
                <!--Quest SubQuest12921-->
                <!--step - collect in case of Step=Step1-->
                <!--Event for each QuestItem the Quest Quest12921 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="13039" type="Take" />
                    <Action action="Decrease" variable="Quest12921_QE_12979_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15781" type="Take" />
                    <Action action="Decrease" variable="Quest12921_QE_12979_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15790" type="Take" />
                    <Action action="Decrease" variable="Quest12921_QE_12979_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15799" type="Take" />
                    <Action action="Decrease" variable="Quest12921_QE_12979_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15808" type="Take" />
                    <Action action="Decrease" variable="Quest12921_QE_12979_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15817" type="Take" />
                    <Action action="Decrease" variable="Quest12921_QE_12979_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15826" type="Take" />
                    <Action action="Decrease" variable="Quest12921_QE_12979_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15835" type="Take" />
                    <Action action="Decrease" variable="Quest12921_QE_12979_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15844" type="Take" />
                    <Action action="Decrease" variable="Quest12921_QE_12979_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15853" type="Take" />
                    <Action action="Decrease" variable="Quest12921_QE_12979_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15862" type="Take" />
                    <Action action="Decrease" variable="Quest12921_QE_12979_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15871" type="Take" />
                    <Action action="Decrease" variable="Quest12921_QE_12979_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15880" type="Take" />
                    <Action action="Decrease" variable="Quest12921_QE_12979_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15889" type="Take" />
                    <Action action="Decrease" variable="Quest12921_QE_12979_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15898" type="Take" />
                    <Action action="Decrease" variable="Quest12921_QE_12979_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest12921 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest12921" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 variable="Quest12921_QE_12979_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest2" variable="Quests.Quest12921" />
                    <Action action="ActivateDialog" variable="Dialog_12982" />
                    <Trigger param="Quest12921_QE_12979_RevCounter_1" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_12921_12921questtitle" value="STEP1" tracker_text="g4_Quest_12979_s1tt" text="g4_Quest_12979_s1log">
                    <SubStep variable="Quest12921_QE_12979_RevCounter_1" count="10" tracker_text="g4_Quest_12979_1">
                        <Value tag="10_MORE" />
                        <Value tag="9_MORE" />
                        <Value tag="8_MORE" />
                        <Value tag="7_MORE" />
                        <Value tag="6_MORE" />
                        <Value tag="5_MORE" />
                        <Value tag="4_MORE" />
                        <Value tag="3_MORE" />
                        <Value tag="2_MORE" />
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - return to NPC in case of Step=Step2-->
                <Step tracker_title="g4_Quest_12921_12921questtitle" value="STEP2" tracker_text="g4_Quest_12979_s2tt" text="g4_Quest_12979_s2log" show_log="false" show_tracker="true" actor_trigger="7730">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_12979_s2tt" />
                </Step>
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_12921_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest12923" text="g4_Quest_12923_12923questtitle">
                <!--Quest SubQuest12923-->
                <!--step - collect in case of Step=Step1-->
                <!--Event for each QuestItem the Quest Quest12923 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="13048" type="Take" />
                    <Action action="Decrease" variable="Quest12923_QE_12994_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15907" type="Take" />
                    <Action action="Decrease" variable="Quest12923_QE_12994_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15916" type="Take" />
                    <Action action="Decrease" variable="Quest12923_QE_12994_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15925" type="Take" />
                    <Action action="Decrease" variable="Quest12923_QE_12994_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15934" type="Take" />
                    <Action action="Decrease" variable="Quest12923_QE_12994_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15943" type="Take" />
                    <Action action="Decrease" variable="Quest12923_QE_12994_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15952" type="Take" />
                    <Action action="Decrease" variable="Quest12923_QE_12994_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15961" type="Take" />
                    <Action action="Decrease" variable="Quest12923_QE_12994_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15970" type="Take" />
                    <Action action="Decrease" variable="Quest12923_QE_12994_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15979" type="Take" />
                    <Action action="Decrease" variable="Quest12923_QE_12994_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15988" type="Take" />
                    <Action action="Decrease" variable="Quest12923_QE_12994_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="15997" type="Take" />
                    <Action action="Decrease" variable="Quest12923_QE_12994_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="16006" type="Take" />
                    <Action action="Decrease" variable="Quest12923_QE_12994_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="16015" type="Take" />
                    <Action action="Decrease" variable="Quest12923_QE_12994_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="16024" type="Take" />
                    <Action action="Decrease" variable="Quest12923_QE_12994_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest12923 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest12923" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 variable="Quest12923_QE_12994_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest2" variable="Quests.Quest12923" />
                    <Action action="ActivateDialog" variable="Dialog_12997" />
                    <Trigger param="Quest12923_QE_12994_RevCounter_1" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_12923_12923questtitle" value="STEP1" tracker_text="g4_Quest_12994_s1tt" text="g4_Quest_12994_s1log">
                    <SubStep variable="Quest12923_QE_12994_RevCounter_1" count="10" tracker_text="g4_Quest_12994_1">
                        <Value tag="10_MORE" />
                        <Value tag="9_MORE" />
                        <Value tag="8_MORE" />
                        <Value tag="7_MORE" />
                        <Value tag="6_MORE" />
                        <Value tag="5_MORE" />
                        <Value tag="4_MORE" />
                        <Value tag="3_MORE" />
                        <Value tag="2_MORE" />
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - return to NPC in case of Step=Step2-->
                <Step tracker_title="g4_Quest_12923_12923questtitle" value="STEP2" tracker_text="g4_Quest_12994_s2tt" text="g4_Quest_12994_s2log" show_log="false" show_tracker="true" actor_trigger="7730">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_12994_s2tt" />
                </Step>
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_12923_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_3544_3544questtitle" value="STEP2" tracker_text="g4_Quest_12917_s2tt" text="g4_Quest_12917_s2log" show_log="false" show_tracker="true" actor_trigger="7730">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_12917_s2tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_3544_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_3544_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_3544_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_3544_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest4813" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest4813" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest4813" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest4813" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest3544" />
            <Trigger param="Quests.Quest4813" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest22987" text="g4_Quest_22987_22987questtitle">
        <!--Quest Chained22987-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest22987 
	 -> it is triggered when the attached quest 22944 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest22944" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest22944" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest22944" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest22944" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest22987" />
            <Action action="ProgressQuest3" variable="Quests.Quest22987" />
            <Trigger param="Quests.Quest22944" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_22987_22987questtitle" value="STEP1" tracker_text="g4_Quest_23002_s1tt" text="g4_Quest_23002_s1log" actor_trigger="12004" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_22987_22987questtitle" value="STEP2" tracker_text="g4_Quest_23009_s1tt" text="g4_Quest_23009_s1log" actor_trigger="22951" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - buy in case of Step=Step3-->
        <Step tracker_title="g4_Quest_22987_22987questtitle" value="STEP3" tracker_text="g4_Quest_23026_s1tt" text="g4_Quest_23026_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_23026_s1tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_22987_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_22987_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_22987_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_22987_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest22944" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest22944" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest22944" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest22944" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest22987" />
            <Trigger param="Quests.Quest22944" type="VariableChange" />
        </Event>
    </Quest>
    <!--One day, the rubies need to be guarded by thugs...
-->
    <Quest main="true" name="Quest23066" text="g4_Quest_23066_23066questtitle">
        <!--Quest Chained23066-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest23066 
	 -> it is triggered when the attached quest 22987 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest22987" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest22987" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest22987" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest22987" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest23066" />
            <Action action="ProgressQuest2" variable="Quests.Quest23066" />
            <Trigger param="Quests.Quest22987" type="VariableChange" />
        </Event>
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest23066 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="23187" type="Take" />
            <Action action="Decrease" variable="Quest23066_QE_23068_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest23066 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest23066" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest23066_QE_23068_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest23066" />
            <Trigger param="Quest23066_QE_23068_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest23066 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest23066" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.23187" />
            <Trigger param="Quests.Quest23066" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_23066_23066questtitle" value="STEP1" tracker_text="g4_Quest_23068_s1tt" text="g4_Quest_23068_s1log">
            <SubStep variable="Quest23066_QE_23068_RevCounter_1" count="1" tracker_text="g4_Quest_23068_1" actor_trigger="23187">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_23066_23066questtitle" value="STEP2" tracker_text="g4_Quest_23068_s2tt" text="g4_Quest_23068_s2log" show_log="false" show_tracker="true" actor_trigger="22951">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_23068_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_23066_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_23066_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_23066_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_23066_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest22987" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest22987" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest22987" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest22987" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest23066" />
            <Trigger param="Quests.Quest22987" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest23209" text="g4_Quest_23209_23209questtitle">
        <!--Quest Chained23209-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest23209 
	 -> it is triggered when the attached quest 23066 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest23066" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest23066" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest23066" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest23066" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest23209" />
            <Action action="ProgressQuest3" variable="Quests.Quest23209" />
            <Trigger param="Quests.Quest23066" type="VariableChange" />
        </Event>
        <!--step - deliver in case of Step=Step1-->
        <Step tracker_title="g4_Quest_23209_23209questtitle" value="STEP1" tracker_text="g4_Quest_23220_s1tt" text="g4_Quest_23220_s1log" actor_trigger="8463" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_23209_23209questtitle" value="STEP2" tracker_text="g4_Quest_23734_s1tt" text="g4_Quest_23734_s1log" actor_trigger="22951" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - buy in case of Step=Step3-->
        <Step tracker_title="g4_Quest_23209_23209questtitle" value="STEP3" tracker_text="g4_Quest_23746_s1tt" text="g4_Quest_23746_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_23746_s1tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_23209_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_23209_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_23209_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_23209_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest23066" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest23066" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest23066" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest23066" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest23209" />
            <Trigger param="Quests.Quest23066" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest23771" text="g4_Quest_23771_23771questtitle">
        <!--Quest NPC23771-->
        <!--step - deliver in case of Step=Step1-->
        <Step tracker_title="g4_Quest_23771_23771questtitle" value="STEP1" tracker_text="g4_Quest_23787_s1tt" text="g4_Quest_23787_s1log" actor_trigger="19853" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_23771_23771questtitle" value="STEP2" tracker_text="g4_Quest_23816_s1tt" text="g4_Quest_23816_s1log" actor_trigger="19833" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_23771_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_23771_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_23771_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_23771_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest23696" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest23696" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest23696" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest23696" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest23771" />
            <Trigger param="Quests.Quest23696" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest22068" text="g4_Quest_22068_22068questtitle">
        <!--Quest NPC22068-->
        <!--step - deliver in case of Step=Step1-->
        <Step tracker_title="g4_Quest_22068_22068questtitle" value="STEP1" tracker_text="g4_Quest_22072_s1tt" text="g4_Quest_22072_s1log" actor_trigger="18643" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_22068_22068questtitle" value="STEP2" tracker_text="g4_Quest_22169_s1tt" text="g4_Quest_22169_s1log" actor_trigger="7589" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - buy in case of Step=Step3-->
        <Step tracker_title="g4_Quest_22068_22068questtitle" value="STEP3" tracker_text="g4_Quest_22116_s1tt" text="g4_Quest_22116_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_22116_s1tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_22068_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_22068_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_22068_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_22068_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest20962" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest20962" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest20962" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest20962" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest22068" />
            <Trigger param="Quests.Quest20962" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest10914" text="g4_Quest_10914_10914questtitle">
        <!--Quest NPC10914-->
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest10914" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest11522" />
            <Action action="ProgressQuest2" variable="Quests.Quest11522" />
            <Action action="ActivateQuest" variable="Quests.Quest11524" />
            <Action action="ProgressQuest2" variable="Quests.Quest11524" />
            <Action action="ActivateQuest" variable="Quests.Quest11526" />
            <Action action="ProgressQuest2" variable="Quests.Quest11526" />
            <Action action="ActivateQuest" variable="Quests.Quest11528" />
            <Action action="ProgressQuest2" variable="Quests.Quest11528" />
            <Trigger param="Quests.Quest10914" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step1-->
        <Step tracker_title="g4_Quest_10914_10914questtitle" value="STEP1" tracker_text="g4_Quest_11520_srtt" text="g4_Quest_11520_srlog">
            <Quest main="false" name="Quest11522" text="g4_Quest_11522_11522questtitle">
                <!--Quest SubQuest11522-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_11522_11522questtitle" value="STEP1" tracker_text="g4_Quest_11598_s1tt" text="g4_Quest_11598_s1log" actor_trigger="9446" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - collect in case of Step=Step2-->
                <!--Event for each QuestItem the Quest Quest11522 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="11672" type="Take" />
                    <Action action="Decrease" variable="Quest11522_QE_11615_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="11693" type="Take" />
                    <Action action="Decrease" variable="Quest11522_QE_11615_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="11694" type="Take" />
                    <Action action="Decrease" variable="Quest11522_QE_11615_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="11695" type="Take" />
                    <Action action="Decrease" variable="Quest11522_QE_11615_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest11522 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest11522" type="IN">
                            <Value tag="STEP2" />
                        </Operand1>
                        <Operand2 variable="Quest11522_QE_11615_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest3" variable="Quests.Quest11522" />
                    <Action action="ActivateDialog" variable="Dialog_11618" />
                    <Trigger param="Quest11522_QE_11615_RevCounter_1" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_11522_11522questtitle" value="STEP2" tracker_text="g4_Quest_11615_s1tt" text="g4_Quest_11615_s1log">
                    <SubStep variable="Quest11522_QE_11615_RevCounter_1" count="4" tracker_text="g4_Quest_11615_1" actor_trigger="11695">
                        <Value tag="4_MORE" />
                        <Value tag="3_MORE" />
                        <Value tag="2_MORE" />
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - return to NPC in case of Step=Step3-->
                <Step tracker_title="g4_Quest_11522_11522questtitle" value="STEP3" tracker_text="g4_Quest_11615_s2tt" text="g4_Quest_11615_s2log" show_log="false" show_tracker="true" actor_trigger="9446">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_11615_s2tt" />
                </Step>
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_11522_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest11524" text="g4_Quest_11524_11524questtitle">
                <!--Quest SubQuest11524-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_11524_11524questtitle" value="STEP1" tracker_text="g4_Quest_11775_s1tt" text="g4_Quest_11775_s1log" actor_trigger="9457" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - collect in case of Step=Step2-->
                <!--Event for each QuestItem the Quest Quest11524 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="11854" type="Take" />
                    <Action action="Decrease" variable="Quest11524_QE_11811_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="11856" type="Take" />
                    <Action action="Decrease" variable="Quest11524_QE_11811_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="11857" type="Take" />
                    <Action action="Decrease" variable="Quest11524_QE_11811_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="11858" type="Take" />
                    <Action action="Decrease" variable="Quest11524_QE_11811_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="11859" type="Take" />
                    <Action action="Decrease" variable="Quest11524_QE_11811_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest11524 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest11524" type="IN">
                            <Value tag="STEP2" />
                        </Operand1>
                        <Operand2 variable="Quest11524_QE_11811_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest3" variable="Quests.Quest11524" />
                    <Action action="ActivateDialog" variable="Dialog_11814" />
                    <Trigger param="Quest11524_QE_11811_RevCounter_1" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_11524_11524questtitle" value="STEP2" tracker_text="g4_Quest_11811_s1tt" text="g4_Quest_11811_s1log">
                    <SubStep variable="Quest11524_QE_11811_RevCounter_1" count="5" tracker_text="g4_Quest_11811_1" actor_trigger="11859">
                        <Value tag="5_MORE" />
                        <Value tag="4_MORE" />
                        <Value tag="3_MORE" />
                        <Value tag="2_MORE" />
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - return to NPC in case of Step=Step3-->
                <Step tracker_title="g4_Quest_11524_11524questtitle" value="STEP3" tracker_text="g4_Quest_11811_s2tt" text="g4_Quest_11811_s2log" show_log="false" show_tracker="true" actor_trigger="9457">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_11811_s2tt" />
                </Step>
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_11524_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest11526" text="g4_Quest_11526_11526questtitle">
                <!--Quest SubQuest11526-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_11526_11526questtitle" value="STEP1" tracker_text="g4_Quest_11904_s1tt" text="g4_Quest_11904_s1log" actor_trigger="9467" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - collect in case of Step=Step2-->
                <!--Event for each QuestItem the Quest Quest11526 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="11975" type="Take" />
                    <Action action="Decrease" variable="Quest11526_QE_11910_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="11976" type="Take" />
                    <Action action="Decrease" variable="Quest11526_QE_11910_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="11977" type="Take" />
                    <Action action="Decrease" variable="Quest11526_QE_11910_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest11526 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest11526" type="IN">
                            <Value tag="STEP2" />
                        </Operand1>
                        <Operand2 variable="Quest11526_QE_11910_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest3" variable="Quests.Quest11526" />
                    <Action action="ActivateDialog" variable="Dialog_11913" />
                    <Trigger param="Quest11526_QE_11910_RevCounter_1" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_11526_11526questtitle" value="STEP2" tracker_text="g4_Quest_11910_s1tt" text="g4_Quest_11910_s1log">
                    <SubStep variable="Quest11526_QE_11910_RevCounter_1" count="3" tracker_text="g4_Quest_11910_1" actor_trigger="11977">
                        <Value tag="3_MORE" />
                        <Value tag="2_MORE" />
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - return to NPC in case of Step=Step3-->
                <Step tracker_title="g4_Quest_11526_11526questtitle" value="STEP3" tracker_text="g4_Quest_11910_s2tt" text="g4_Quest_11910_s2log" show_log="false" show_tracker="true" actor_trigger="9467">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_11910_s2tt" />
                </Step>
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_11526_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest11528" text="g4_Quest_11528_11528questtitle">
                <!--Quest SubQuest11528-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_11528_11528questtitle" value="STEP1" tracker_text="g4_Quest_11998_s1tt" text="g4_Quest_11998_s1log" actor_trigger="12004" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - buy in case of Step=Step2-->
                <Step tracker_title="g4_Quest_11528_11528questtitle" value="STEP2" tracker_text="g4_Quest_12054_s1tt" text="g4_Quest_12054_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_12054_s1tt" />
                </Step>
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_11528_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_10914_10914questtitle" value="STEP2" tracker_text="g4_Quest_11520_s2tt" text="g4_Quest_11520_s2log" show_log="false" show_tracker="true" actor_trigger="11026">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_11520_s2tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_10914_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_10914_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_10914_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_10914_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6210" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6210" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6210" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6210" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest10914" />
            <Trigger param="Quests.Quest6210" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest24924" text="g4_Quest_24924_24924questtitle">
        <!--Quest NPC24924-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_24924_24924questtitle" value="STEP1" tracker_text="g4_Quest_24948_s1tt" text="g4_Quest_24948_s1log" actor_trigger="24986" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_24924_24924questtitle" value="STEP2" tracker_text="g4_Quest_24958_s1tt" text="g4_Quest_24958_s1log" actor_trigger="24996" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_24924_24924questtitle" value="STEP3" tracker_text="g4_Quest_24970_s1tt" text="g4_Quest_24970_s1log" actor_trigger="19853" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_24924_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_24924_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_24924_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_24924_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest24786" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest24786" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest24786" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest24786" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest24924" />
            <Trigger param="Quests.Quest24786" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest21125" text="g4_Quest_21125_21125questtitle">
        <!--Quest NPC21125-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_21125_21125questtitle" value="STEP1" tracker_text="g4_Quest_21192_s1tt" text="g4_Quest_21192_s1log" actor_trigger="21172" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_21125_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_21125_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_21125_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_21125_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest21129" text="g4_Quest_21129_21129questtitle">
        <!--Quest NPC21129-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_21129_21129questtitle" value="STEP1" tracker_text="g4_Quest_21201_s1tt" text="g4_Quest_21201_s1log" actor_trigger="21173" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_21129_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_21129_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_21129_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_21129_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest21125" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest21125" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest21125" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest21125" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest21129" />
            <Trigger param="Quests.Quest21125" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest12434" text="g4_Quest_12434_12434questtitle">
        <!--Quest NPC12434-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_12434_12434questtitle" value="STEP1" tracker_text="g4_Quest_12524_s1tt" text="g4_Quest_12524_s1log" actor_trigger="8912" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step2-->
        <!--Event for each Mob the Quest Quest12434 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="13213" type="Kill" />
            <Action action="Decrease" variable="Quest12434_QE_13185_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="13214" type="Kill" />
            <Action action="Decrease" variable="Quest12434_QE_13185_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="13215" type="Kill" />
            <Action action="Decrease" variable="Quest12434_QE_13185_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest12434 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest12434" type="IN">
                    <Value tag="STEP2" />
                </Operand1>
                <Operand2 variable="Quest12434_QE_13185_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest4" variable="Quests.Quest12434" />
            <Trigger param="Quest12434_QE_13185_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest12434 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest12434" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.13213" />
            <Action action="SpawnEntity" variable="Entities.13214" />
            <Action action="SpawnEntity" variable="Entities.13215" />
            <Trigger param="Quests.Quest12434" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_12434_12434questtitle" value="STEP2" tracker_text="g4_Quest_13185_s1tt" text="g4_Quest_13185_s1log">
            <SubStep variable="Quest12434_QE_13185_RevCounter_1" count="3" tracker_text="g4_Quest_13185_1" actor_trigger="13215">
                <Value tag="3_MORE" />
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step3-->
        <Step tracker_title="g4_Quest_12434_12434questtitle" value="STEP3" tracker_text="g4_Quest_13185_s2tt" text="g4_Quest_13185_s2log" show_log="false" show_tracker="true" actor_trigger="8912">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_13185_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_12434_12434questtitle" value="STEP4" tracker_text="g4_Quest_13225_s1tt" text="g4_Quest_13225_s1log" actor_trigger="11026" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_12434_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_12434_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_12434_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_12434_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest10914" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest10914" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest10914" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest10914" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest12434" />
            <Trigger param="Quests.Quest10914" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest25152" text="g4_Quest_25152_25152questtitle">
        <!--Quest NPC25152-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_25152_25152questtitle" value="STEP1" tracker_text="g4_Quest_25178_s1tt" text="g4_Quest_25178_s1log" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - buy in case of Step=Step2-->
        <Step tracker_title="g4_Quest_25152_25152questtitle" value="STEP2" tracker_text="g4_Quest_25166_s1tt" text="g4_Quest_25166_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_25166_s1tt" />
        </Step>
        <!--step - deliver in case of Step=Step3-->
        <Step tracker_title="g4_Quest_25152_25152questtitle" value="STEP3" tracker_text="g4_Quest_25203_s1tt" text="g4_Quest_25203_s1log" actor_trigger="25209" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_25152_25152questtitle" value="STEP4" tracker_text="g4_Quest_25225_s1tt" text="g4_Quest_25225_s1log" actor_trigger="19833" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_25152_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_25152_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_25152_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_25152_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest24895" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest24895" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest24895" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest24895" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest25152" />
            <Trigger param="Quests.Quest24895" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest20028" text="g4_Quest_20028_20028questtitle">
        <!--Quest NPC20028-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest20028 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="20130" type="Take" />
            <Action action="Decrease" variable="Quest20028_QE_20087_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="20131" type="Take" />
            <Action action="Decrease" variable="Quest20028_QE_20087_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="20132" type="Take" />
            <Action action="Decrease" variable="Quest20028_QE_20087_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="20133" type="Take" />
            <Action action="Decrease" variable="Quest20028_QE_20087_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="20134" type="Take" />
            <Action action="Decrease" variable="Quest20028_QE_20087_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="20135" type="Take" />
            <Action action="Decrease" variable="Quest20028_QE_20087_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="20136" type="Take" />
            <Action action="Decrease" variable="Quest20028_QE_20087_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest20028 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest20028" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest20028_QE_20087_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest4" variable="Quests.Quest20028" />
            <Action action="ActivateDialog" variable="Dialog_20090" />
            <Trigger param="Quest20028_QE_20087_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_20028_20028questtitle" value="STEP1" tracker_text="g4_Quest_20087_s1tt" text="g4_Quest_20087_s1log">
            <SubStep variable="Quest20028_QE_20087_RevCounter_1" count="7" tracker_text="g4_Quest_20087_1" actor_trigger="20136">
                <Value tag="7_MORE" />
                <Value tag="6_MORE" />
                <Value tag="5_MORE" />
                <Value tag="4_MORE" />
                <Value tag="3_MORE" />
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_20028_20028questtitle" value="STEP2" tracker_text="g4_Quest_20087_s2tt" text="g4_Quest_20087_s2log" show_log="false" show_tracker="true" actor_trigger="19853">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_20087_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step3-->
        <!--Event for each QuestItem the Quest Quest20028 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="20167" type="Take" />
            <Action action="Decrease" variable="Quest20028_QE_20146_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest20028 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest20028" type="IN">
                    <Value tag="STEP3" />
                </Operand1>
                <Operand2 variable="Quest20028_QE_20146_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest4" variable="Quests.Quest20028" />
            <Trigger param="Quest20028_QE_20146_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest20028 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest20028" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.20167" />
            <Trigger param="Quests.Quest20028" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_20028_20028questtitle" value="STEP3" tracker_text="g4_Quest_20146_s1tt" text="g4_Quest_20146_s1log">
            <SubStep variable="Quest20028_QE_20146_RevCounter_1" count="1" tracker_text="g4_Quest_20146_1" actor_trigger="20167">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step4-->
        <Step tracker_title="g4_Quest_20028_20028questtitle" value="STEP4" tracker_text="g4_Quest_20146_s2tt" text="g4_Quest_20146_s2log" show_log="false" show_tracker="true" actor_trigger="19853">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_20146_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_20028_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_20028_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_20028_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_20028_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest19893" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest19893" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest19893" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest19893" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest20028" />
            <Trigger param="Quests.Quest19893" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest27966" text="g4_Quest_27966_27966questtitle">
        <!--Quest Scroll27966-->
        <Event>
            <Test variable="Quests.Quest27966" type="IN">
                <Value tag="AVAILABLE" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.27966" />
            <Trigger param="Quests.Quest27966" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest27966 
	 -> it is triggered when the scroll is picked up 
	 -> it tests if the quest is available 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test variable="Quests.Quest27966" type="IN">
                <Value tag="AVAILABLE" />
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest27966" />
            <Trigger param="27966" type="Take" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_27966_27966questtitle" value="STEP1" tracker_text="g4_Quest_28123_s1tt" text="g4_Quest_28123_s1log" actor_trigger="8292" />
        <!-- Warning: the Talk To quest element in Quest Quest27966 has no briefing dialog-->
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_27966_27966questtitle" value="STEP2" tracker_text="g4_Quest_28093_s1tt" text="g4_Quest_28093_s1log" actor_trigger="12004" />
        <!--Event for the Quest Quest27966 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest27966" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest27966.Folder28118" />
            <Trigger param="Quests.Quest27966" type="VariableChange" />
        </Event>
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_27966_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_27966_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_27966_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_27966_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest27655" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest27655" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest27655" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest27655" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest27966" />
            <Trigger param="Quests.Quest27655" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest23725" text="g4_Quest_23725_23725questtitle">
        <!--Quest Chained23725-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest23725 
	 -> it is triggered when the attached quest 23209 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest23209" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest23209" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest23209" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest23209" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest23725" />
            <Action action="Progress_Quests.Quest23725" variable="Quests.Quest23725" />
            <Trigger param="Quests.Quest23209" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_23725_23725questtitle" value="STEP1" tracker_text="g4_Quest_23729_s1tt" text="g4_Quest_23729_s1log" actor_trigger="22951" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_23725_23725questtitle" value="STEP2" tracker_text="g4_Quest_23810_s1tt" text="g4_Quest_23810_s1log" actor_trigger="21975" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step6-->
        <Step tracker_title="g4_Quest_23725_23725questtitle" value="STEP6" tracker_text="g4_Quest_23856_s1tt" text="g4_Quest_23856_s1log" actor_trigger="8463" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step7-->
        <Step tracker_title="g4_Quest_23725_23725questtitle" value="STEP7" tracker_text="g4_Quest_23867_s1tt" text="g4_Quest_23867_s1log" actor_trigger="23872" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_23725_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_23725_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_23725_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_23725_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest23209" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest23209" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest23209" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest23209" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest23725" />
            <Trigger param="Quests.Quest23209" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest23918" text="g4_Quest_23918_23918questtitle">
        <!--Quest Chained23918-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest23918 
	 -> it is triggered when the attached quest 23725 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest23725" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest23725" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest23725" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest23725" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest23918" />
            <Action action="ProgressQuest8" variable="Quests.Quest23918" />
            <Trigger param="Quests.Quest23725" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_23918_23918questtitle" value="STEP1" tracker_text="g4_Quest_23920_s1tt" text="g4_Quest_23920_s1log" actor_trigger="22951" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_23918_23918questtitle" value="STEP2" tracker_text="g4_Quest_23929_s1tt" text="g4_Quest_23929_s1log" actor_trigger="23872" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step3-->
        <!--Event for each QuestItem the Quest Quest23918 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="24025" type="Take" />
            <Action action="Decrease" variable="Quest23918_QE_24003_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest23918 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest23918" type="IN">
                    <Value tag="STEP3" />
                </Operand1>
                <Operand2 variable="Quest23918_QE_24003_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest8" variable="Quests.Quest23918" />
            <Trigger param="Quest23918_QE_24003_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest23918 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest23918" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.24025" />
            <Trigger param="Quests.Quest23918" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_23918_23918questtitle" value="STEP3" tracker_text="g4_Quest_24003_s1tt" text="g4_Quest_24003_s1log">
            <SubStep variable="Quest23918_QE_24003_RevCounter_1" count="1" tracker_text="g4_Quest_24003_1" actor_trigger="24025">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step4-->
        <Step tracker_title="g4_Quest_23918_23918questtitle" value="STEP4" tracker_text="g4_Quest_24003_s2tt" text="g4_Quest_24003_s2log" show_log="false" show_tracker="true" actor_trigger="23872">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_24003_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step5-->
        <Step tracker_title="g4_Quest_23918_23918questtitle" value="STEP5" tracker_text="g4_Quest_24088_s1tt" text="g4_Quest_24088_s1log" actor_trigger="22951" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step6-->
        <!--Event for each Mob the Quest Quest23918 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="24162" type="Kill" />
            <Action action="Decrease" variable="Quest23918_QE_24140_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest23918 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest23918" type="IN">
                    <Value tag="STEP6" />
                </Operand1>
                <Operand2 variable="Quest23918_QE_24140_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest8" variable="Quests.Quest23918" />
            <Trigger param="Quest23918_QE_24140_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest23918 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest23918" type="IN">
                <Value tag="STEP6" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.24162" />
            <Trigger param="Quests.Quest23918" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_23918_23918questtitle" value="STEP6" tracker_text="g4_Quest_24140_s1tt" text="g4_Quest_24140_s1log">
            <SubStep variable="Quest23918_QE_24140_RevCounter_1" count="1" tracker_text="g4_Quest_24140_1" actor_trigger="24162">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - talk to in case of Step=Step7-->
        <Step tracker_title="g4_Quest_23918_23918questtitle" value="STEP7" tracker_text="g4_Quest_24140_s2tt" text="g4_Quest_24140_s2log" actor_trigger="21945" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step8-->
        <Step tracker_title="g4_Quest_23918_23918questtitle" value="STEP8" tracker_text="g4_Quest_24120_s1tt" text="g4_Quest_24120_s1log" actor_trigger="21955" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_23918_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_23918_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_23918_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_23918_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest23725" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest23725" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest23725" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest23725" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest23918" />
            <Trigger param="Quests.Quest23725" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest21939" text="g4_Quest_21939_21939questtitle">
        <!--Quest Chained21939-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest21939 
	 -> it is triggered when the attached quest 23918 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest23918" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest23918" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest23918" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest23918" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest21939" />
            <Action action="Progress_Quests.Quest21939" variable="Quests.Quest21939" />
            <Trigger param="Quests.Quest23918" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_21939_21939questtitle" value="STEP1" tracker_text="g4_Quest_22035_s1tt" text="g4_Quest_22035_s1log" actor_trigger="21965" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_21939_21939questtitle" value="STEP3" tracker_text="g4_Quest_22086_s1tt" text="g4_Quest_22086_s1log" actor_trigger="21955" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step5-->
        <Step tracker_title="g4_Quest_21939_21939questtitle" value="STEP5" tracker_text="g4_Quest_22096_s1tt" text="g4_Quest_22096_s1log" actor_trigger="21955" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step7-->
        <Step tracker_title="g4_Quest_21939_21939questtitle" value="STEP7" tracker_text="g4_Quest_22124_s1tt" text="g4_Quest_22124_s1log" actor_trigger="21955" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_21939_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_21939_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_21939_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_21939_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest23918" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest23918" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest23918" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest23918" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest21939" />
            <Trigger param="Quests.Quest23918" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest21165" text="g4_Quest_21165_21165questtitle">
        <!--Quest NPC21165-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest21165 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="21251" type="Take" />
            <Action action="Decrease" variable="Quest21165_QE_21222_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="21359" type="Take" />
            <Action action="Decrease" variable="Quest21165_QE_21222_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="21368" type="Take" />
            <Action action="Decrease" variable="Quest21165_QE_21222_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="21369" type="Take" />
            <Action action="Decrease" variable="Quest21165_QE_21222_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="21370" type="Take" />
            <Action action="Decrease" variable="Quest21165_QE_21222_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="21371" type="Take" />
            <Action action="Decrease" variable="Quest21165_QE_21222_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="21372" type="Take" />
            <Action action="Decrease" variable="Quest21165_QE_21222_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest21165 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest21165" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest21165_QE_21222_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest21165" />
            <Action action="ActivateDialog" variable="Dialog_21225" />
            <Trigger param="Quest21165_QE_21222_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_21165_21165questtitle" value="STEP1" tracker_text="g4_Quest_21222_s1tt" text="g4_Quest_21222_s1log">
            <SubStep variable="Quest21165_QE_21222_RevCounter_1" count="7" tracker_text="g4_Quest_21222_1" actor_trigger="21372">
                <Value tag="7_MORE" />
                <Value tag="6_MORE" />
                <Value tag="5_MORE" />
                <Value tag="4_MORE" />
                <Value tag="3_MORE" />
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_21165_21165questtitle" value="STEP2" tracker_text="g4_Quest_21222_s2tt" text="g4_Quest_21222_s2log" show_log="false" show_tracker="true" actor_trigger="19843">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_21222_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_21165_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_21165_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_21165_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_21165_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest19893" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest19893" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest19893" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest19893" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest21165" />
            <Trigger param="Quests.Quest19893" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest19864" text="g4_Quest_19864_19864questtitle">
        <!--Quest NPC19864-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_19864_19864questtitle" value="STEP1" tracker_text="g4_Quest_19868_s1tt" text="g4_Quest_19868_s1log" actor_trigger="7703" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_19864_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_19864_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_19864_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_19864_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest18015" text="g4_Quest_18015_18015questtitle">
        <!--Quest NPC18015-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_18015_18015questtitle" value="STEP1" tracker_text="g4_Quest_18074_s1tt" text="g4_Quest_18074_s1log" actor_trigger="17548" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_18015_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_18015_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_18015_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_18015_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest18011" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest18011" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest18011" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest18011" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18015" />
            <Trigger param="Quests.Quest18011" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest18019" text="g4_Quest_18019_18019questtitle">
        <!--Quest NPC18019-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_18019_18019questtitle" value="STEP1" tracker_text="g4_Quest_18079_s1tt" text="g4_Quest_18079_s1log" actor_trigger="9487" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_18019_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_18019_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_18019_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_18019_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest18015" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest18015" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest18015" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest18015" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18019" />
            <Trigger param="Quests.Quest18015" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest30379" text="g4_Quest_30379_30379questtitle">
        <!--Quest Chained30379-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest30379 
	 -> it is triggered when the attached quest 29363 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest29363" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest29363" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest29363" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest29363" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest30379" />
            <Action action="ProgressQuest7" variable="Quests.Quest30379" />
            <Trigger param="Quests.Quest29363" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_30379_30379questtitle" value="STEP1" tracker_text="g4_Quest_30381_s1tt" text="g4_Quest_30381_s1log" actor_trigger="30319" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_30379_30379questtitle" value="STEP2" tracker_text="g4_Quest_30479_s1tt" text="g4_Quest_30479_s1log" actor_trigger="18643" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step3-->
        <!--Event for each Mob the Quest Quest30379 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="30451" type="Kill" />
            <Action action="Decrease" variable="Quest30379_QE_30386_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest30379 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest30379" type="IN">
                    <Value tag="STEP3" />
                </Operand1>
                <Operand2 variable="Quest30379_QE_30386_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest7" variable="Quests.Quest30379" />
            <Trigger param="Quest30379_QE_30386_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest30379 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest30379" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.30451" />
            <Trigger param="Quests.Quest30379" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_30379_30379questtitle" value="STEP3" tracker_text="g4_Quest_30386_s1tt" text="g4_Quest_30386_s1log">
            <SubStep variable="Quest30379_QE_30386_RevCounter_1" count="1" tracker_text="g4_Quest_30386_1" actor_trigger="30451">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_30379_30379questtitle" value="STEP4" tracker_text="g4_Quest_30386_s2tt" text="g4_Quest_30386_s2log" actor_trigger="28171" />
        <!-- event to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step5-->
        <!--Event for each QuestItem the Quest Quest30379 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="30429" type="Take" />
            <Action action="Decrease" variable="Quest30379_QE_30401_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest30379 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest30379" type="IN">
                    <Value tag="STEP5" />
                </Operand1>
                <Operand2 variable="Quest30379_QE_30401_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest7" variable="Quests.Quest30379" />
            <Trigger param="Quest30379_QE_30401_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest30379 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest30379" type="IN">
                <Value tag="STEP5" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.30429" />
            <Trigger param="Quests.Quest30379" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_30379_30379questtitle" value="STEP5" tracker_text="g4_Quest_30401_s1tt" text="g4_Quest_30401_s1log">
            <SubStep variable="Quest30379_QE_30401_RevCounter_1" count="1" tracker_text="g4_Quest_30401_1" actor_trigger="30429">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step6-->
        <Step tracker_title="g4_Quest_30379_30379questtitle" value="STEP6" tracker_text="g4_Quest_30401_s2tt" text="g4_Quest_30401_s2log" actor_trigger="30345" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step7-->
        <Step tracker_title="g4_Quest_30379_30379questtitle" value="STEP7" tracker_text="g4_Quest_30411_s1tt" text="g4_Quest_30411_s1log" actor_trigger="18613" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_30379_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_30379_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_30379_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_30379_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest29363" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest29363" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest29363" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest29363" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest30379" />
            <Trigger param="Quests.Quest29363" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest30560" text="g4_Quest_30560_30560questtitle">
        <!--Quest Chained30560-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest30560 
	 -> it is triggered when the attached quest 30379 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest30379" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest30379" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest30379" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest30379" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest30560" />
            <Action action="ProgressQuest3" variable="Quests.Quest30560" />
            <Trigger param="Quests.Quest30379" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_30560_30560questtitle" value="STEP1" tracker_text="g4_Quest_30591_s1tt" text="g4_Quest_30591_s1log" actor_trigger="18633" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_30560_30560questtitle" value="STEP2" tracker_text="g4_Quest_30596_s1tt" text="g4_Quest_30596_s1log" actor_trigger="28276" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_30560_30560questtitle" value="STEP3" tracker_text="g4_Quest_30601_s1tt" text="g4_Quest_30601_s1log" actor_trigger="28367" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_30560_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_30560_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_30560_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_30560_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest30379" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest30379" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest30379" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest30379" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest30560" />
            <Trigger param="Quests.Quest30379" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest30564" text="g4_Quest_30564_30564questtitle">
        <!--Quest Chained30564-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest30564 
	 -> it is triggered when the attached quest 30560 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest30560" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest30560" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest30560" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest30560" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest30564" />
            <Action action="ProgressQuest5" variable="Quests.Quest30564" />
            <Trigger param="Quests.Quest30560" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_30564_30564questtitle" value="STEP1" tracker_text="g4_Quest_30607_s1tt" text="g4_Quest_30607_s1log" actor_trigger="30535" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_30564_30564questtitle" value="STEP2" tracker_text="g4_Quest_30612_s1tt" text="g4_Quest_30612_s1log" actor_trigger="30550" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_30564_30564questtitle" value="STEP3" tracker_text="g4_Quest_30617_s1tt" text="g4_Quest_30617_s1log" actor_trigger="18613" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_30564_30564questtitle" value="STEP4" tracker_text="g4_Quest_30623_s1tt" text="g4_Quest_30623_s1log" actor_trigger="28145" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step5-->
        <Step tracker_title="g4_Quest_30564_30564questtitle" value="STEP5" tracker_text="g4_Quest_30644_s1tt" text="g4_Quest_30644_s1log" actor_trigger="18613" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_30564_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_30564_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_30564_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_30564_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest30560" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest30560" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest30560" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest30560" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest30564" />
            <Trigger param="Quests.Quest30560" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest27877" text="g4_Quest_27877_27877questtitle">
        <!--Quest NPC27877-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest27877 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="27935" type="Kill" />
            <Action action="Decrease" variable="Quest27877_QE_27905_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest27877 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest27877" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest27877_QE_27905_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest27877" />
            <Trigger param="Quest27877_QE_27905_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest27877 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest27877" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.27935" />
            <Trigger param="Quests.Quest27877" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_27877_27877questtitle" value="STEP1" tracker_text="g4_Quest_27905_s1tt" text="g4_Quest_27905_s1log">
            <SubStep variable="Quest27877_QE_27905_RevCounter_1" count="1" tracker_text="g4_Quest_27905_1" actor_trigger="27935">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_27877_27877questtitle" value="STEP2" tracker_text="g4_Quest_27905_s2tt" text="g4_Quest_27905_s2log" show_log="false" show_tracker="true" actor_trigger="8292">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_27905_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_27877_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_27877_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_27877_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_27877_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest27655" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest27655" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest27655" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest27655" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest27877" />
            <Trigger param="Quests.Quest27655" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest28633" text="g4_Quest_28633_28633questtitle">
        <!--Quest NPC28633-->
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest28633" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest28699" />
            <Action action="ProgressQuest2" variable="Quests.Quest28699" />
            <Action action="ActivateQuest" variable="Quests.Quest28701" />
            <Action action="ProgressQuest2" variable="Quests.Quest28701" />
            <Action action="ActivateQuest" variable="Quests.Quest28703" />
            <Action action="ProgressQuest2" variable="Quests.Quest28703" />
            <Action action="ActivateQuest" variable="Quests.Quest28705" />
            <Action action="ProgressQuest2" variable="Quests.Quest28705" />
            <Trigger param="Quests.Quest28633" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step1-->
        <Step tracker_title="g4_Quest_28633_28633questtitle" value="STEP1" tracker_text="g4_Quest_28697_srtt" text="g4_Quest_28697_srlog">
            <Quest main="false" name="Quest28699" text="g4_Quest_28699_28699questtitle">
                <!--Quest SubQuest28699-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_28699_28699questtitle" value="STEP1" tracker_text="g4_Quest_28709_s1tt" text="g4_Quest_28709_s1log" actor_trigger="7691" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - buy in case of Step=Step2-->
                <Step tracker_title="g4_Quest_28699_28699questtitle" value="STEP2" tracker_text="g4_Quest_28714_s1tt" text="g4_Quest_28714_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_28714_s1tt" />
                </Step>
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_28699_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest28701" text="g4_Quest_28701_28701questtitle">
                <!--Quest SubQuest28701-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_28701_28701questtitle" value="STEP1" tracker_text="g4_Quest_28740_s1tt" text="g4_Quest_28740_s1log" actor_trigger="7691" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - wait in case of Step=Step2-->
                <Step tracker_title="g4_Quest_28701_28701questtitle" value="STEP2" tracker_text="g4_Quest_28735_s1tt" text="g4_Quest_28735_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_28735_s1tt" />
                </Step>
                <!--step - buy in case of Step=Step3-->
                <Step tracker_title="g4_Quest_28701_28701questtitle" value="STEP3" tracker_text="g4_Quest_28748_s1tt" text="g4_Quest_28748_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_28748_s1tt" />
                </Step>
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_28701_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest28703" text="g4_Quest_28703_28703questtitle">
                <!--Quest SubQuest28703-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_28703_28703questtitle" value="STEP1" tracker_text="g4_Quest_28766_s1tt" text="g4_Quest_28766_s1log" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - wait in case of Step=Step2-->
                <Step tracker_title="g4_Quest_28703_28703questtitle" value="STEP2" tracker_text="g4_Quest_28773_s1tt" text="g4_Quest_28773_s1log" show_log="false" show_tracker="true">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_28773_s1tt" />
                </Step>
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_28703_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest28705" text="g4_Quest_28705_28705questtitle">
                <!--Quest SubQuest28705-->
                <!--step - collect in case of Step=Step1-->
                <!--Event for each QuestItem the Quest Quest28705 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="29131" type="Take" />
                    <Action action="Decrease" variable="Quest28705_QE_28787_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest28705 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest28705" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 variable="Quest28705_QE_28787_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest2" variable="Quests.Quest28705" />
                    <Trigger param="Quest28705_QE_28787_RevCounter_1" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_28705_28705questtitle" value="STEP1" tracker_text="g4_Quest_28787_s1tt" text="g4_Quest_28787_s1log">
                    <SubStep variable="Quest28705_QE_28787_RevCounter_1" count="1" tracker_text="g4_Quest_28787_1" actor_trigger="29131">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - deliver in case of Step=Step2-->
                <Step tracker_title="g4_Quest_28705_28705questtitle" value="STEP2" tracker_text="g4_Quest_28787_s2tt" text="g4_Quest_28787_s2log" />
                <!--Event for the Quest Quest28705 
	 -> it activates the folder-->
                <Event>
                    <Test variable="Quests.Quest28705" type="IN">
                        <Value tag="STEP2" />
                    </Test>
                    <Action action="ActivateFolder" variable="Quests.Quest28705.Folder28801" />
                    <Trigger param="Quests.Quest28705" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest28705 
	 -> it Deactivates the folder-->
                <Event>
                    <Test variable="Quests.Quest28705" type="IN">
                        <Value tag="STEP3" />
                    </Test>
                    <Action action="DeactivateFolder" variable="Quests.Quest28705.Folder28801" />
                    <Trigger param="Quests.Quest28705" type="VariableChange" />
                </Event>
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_28705_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_28633_28633questtitle" value="STEP2" tracker_text="g4_Quest_28697_s2tt" text="g4_Quest_28697_s2log" show_log="false" show_tracker="true" actor_trigger="7697">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_28697_s2tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_28633_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_28633_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_28633_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_28633_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest16680" text="g4_Quest_16680_16680questtitle">
        <!--Quest NPC16680-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest16680 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="16708" type="Kill" />
            <Action action="Decrease" variable="Quest16680_QE_16693_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest16680 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest16680" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest16680_QE_16693_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest16680" />
            <Trigger param="Quest16680_QE_16693_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest16680 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest16680" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.16708" />
            <Trigger param="Quests.Quest16680" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_16680_16680questtitle" value="STEP1" tracker_text="g4_Quest_16693_s1tt" text="g4_Quest_16693_s1log">
            <SubStep variable="Quest16680_QE_16693_RevCounter_1" count="1" tracker_text="g4_Quest_16693_1">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_16680_16680questtitle" value="STEP2" tracker_text="g4_Quest_16693_s2tt" text="g4_Quest_16693_s2log" show_log="false" show_tracker="true" actor_trigger="10855">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_16693_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_16680_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_16680_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_16680_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_16680_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest6465" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest6465" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest6465" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest6465" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest16680" />
            <Trigger param="Quests.Quest6465" type="VariableChange" />
        </Event>
    </Quest>
    <!--NOTE: There should be an alternative path, where the quest can be solved without killing Mutt!-->
    <Quest main="false" name="Quest4681" text="g4_Quest_4681_4681questtitle">
        <!--Quest NPC4681-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest4681 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="4703" type="Kill" />
            <Action action="Decrease" variable="Quest4681_QE_4686_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest4681 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest4681" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest4681_QE_4686_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest4681" />
            <Action action="ActivateDialog" variable="Dialog_4689" />
            <Trigger param="Quest4681_QE_4686_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_4681_4681questtitle" value="STEP1" tracker_text="g4_Quest_4686_s1tt" text="g4_Quest_4686_s1log">
            <SubStep variable="Quest4681_QE_4686_RevCounter_1" count="1" tracker_text="g4_Quest_4686_1" actor_trigger="4703">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_4681_4681questtitle" value="STEP2" tracker_text="g4_Quest_4686_s2tt" text="g4_Quest_4686_s2log" show_log="false" show_tracker="true" actor_trigger="7688">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_4686_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_4681_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_4681_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_4681_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_4681_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="true" name="Quest21941" text="g4_Quest_21941_21941questtitle">
        <!--Quest Chained21941-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest21941 
	 -> it is triggered when the attached quest 21939 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest21939" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest21939" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest21939" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest21939" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest21941" />
            <Action action="Progress_Quests.Quest21941" variable="Quests.Quest21941" />
            <Trigger param="Quests.Quest21939" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_21941_21941questtitle" value="STEP1" tracker_text="g4_Quest_22244_s1tt" text="g4_Quest_22244_s1log" actor_trigger="8463" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_21941_21941questtitle" value="STEP2" tracker_text="g4_Quest_22284_s1tt" text="g4_Quest_22284_s1log" actor_trigger="21985" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_21941_21941questtitle" value="STEP4" tracker_text="g4_Quest_22306_s1tt" text="g4_Quest_22306_s1log" actor_trigger="21955" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step6-->
        <!--Event for each Mob the Quest Quest21941 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="22339" type="Kill" />
            <Action action="Decrease" variable="Quest21941_QE_22313_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest21941 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest21941" type="IN">
                    <Value tag="STEP6" />
                </Operand1>
                <Operand2 variable="Quest21941_QE_22313_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest_BranchChoice_22295" variable="Quests.Quest21941" />
            <Trigger param="Quest21941_QE_22313_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest21941 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest21941" type="IN">
                <Value tag="STEP6" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.22339" />
            <Trigger param="Quests.Quest21941" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_21941_21941questtitle" value="STEP6" tracker_text="g4_Quest_22313_s1tt" text="g4_Quest_22313_s1log">
            <SubStep variable="Quest21941_QE_22313_RevCounter_1" count="1" tracker_text="g4_Quest_22313_1" actor_trigger="22339">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - talk to in case of Step=Step7-->
        <Step tracker_title="g4_Quest_21941_21941questtitle" value="STEP7" tracker_text="g4_Quest_22313_s2tt" text="g4_Quest_22313_s2log" actor_trigger="21955" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step12-->
        <Step tracker_title="g4_Quest_21941_21941questtitle" value="STEP12" tracker_text="g4_Quest_22192_s1tt" text="g4_Quest_22192_s1log" actor_trigger="21955" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_21941_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_21941_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_21941_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_21941_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest21939" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest21939" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest21939" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest21939" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest21941" />
            <Trigger param="Quests.Quest21939" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest21943" text="g4_Quest_21943_21943questtitle">
        <!--Quest Chained21943-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest21943 
	 -> it is triggered when the attached quest 21941 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest21941" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest21941" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest21941" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest21941" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest21943" />
            <Action action="ProgressQuest5" variable="Quests.Quest21943" />
            <Trigger param="Quests.Quest21941" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_21943_21943questtitle" value="STEP1" tracker_text="g4_Quest_22349_s1tt" text="g4_Quest_22349_s1log" actor_trigger="21975" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_21943_21943questtitle" value="STEP2" tracker_text="g4_Quest_22361_s1tt" text="g4_Quest_22361_s1log" actor_trigger="21955" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_21943_21943questtitle" value="STEP3" tracker_text="g4_Quest_22384_s1tt" text="g4_Quest_22384_s1log" actor_trigger="21975" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_21943_21943questtitle" value="STEP4" tracker_text="g4_Quest_22444_s1tt" text="g4_Quest_22444_s1log" actor_trigger="21955" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step5-->
        <Step tracker_title="g4_Quest_21943_21943questtitle" value="STEP5" tracker_text="g4_Quest_22453_s1tt" text="g4_Quest_22453_s1log" actor_trigger="21975" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_21943_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_21943_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_21943_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_21943_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest21941" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest21941" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest21941" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest21941" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest21943" />
            <Trigger param="Quests.Quest21941" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest25031" text="g4_Quest_25031_25031questtitle">
        <!--Quest NPC25031-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_25031_25031questtitle" value="STEP1" tracker_text="g4_Quest_25065_s1tt" text="g4_Quest_25065_s1log" actor_trigger="7655" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_25031_25031questtitle" value="STEP2" tracker_text="g4_Quest_25070_s1tt" text="g4_Quest_25070_s1log" actor_trigger="7655" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_25031_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_25031_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_25031_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_25031_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest18796" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest18796" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest18796" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest18796" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest25031" />
            <Trigger param="Quests.Quest18796" type="VariableChange" />
        </Event>
    </Quest>
    <!--placeholder for winning a contest-->
    <Quest main="false" name="Quest6378" text="g4_Quest_6378_6378questtitle">
        <!--Quest NPC6378-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_6378_6378questtitle" value="STEP1" tracker_text="g4_Quest_15557_s1tt" text="g4_Quest_15557_s1log" actor_trigger="11076" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_6378_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_6378_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_6378_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_6378_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="true" name="Quest13699" text="g4_Quest_13699_13699questtitle">
        <!--Quest NPC13699-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_13699_13699questtitle" value="STEP1" tracker_text="g4_Quest_13716_s1tt" text="g4_Quest_13716_s1log" actor_trigger="8463" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - buy in case of Step=Step2-->
        <Step tracker_title="g4_Quest_13699_13699questtitle" value="STEP2" tracker_text="g4_Quest_13726_s1tt" text="g4_Quest_13726_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_13726_s1tt" />
        </Step>
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_13699_13699questtitle" value="STEP3" tracker_text="g4_Quest_13750_s1tt" text="g4_Quest_13750_s1log" actor_trigger="9477" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_13699_13699questtitle" value="STEP4" tracker_text="g4_Quest_13783_s1tt" text="g4_Quest_13783_s1log" actor_trigger="11026" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_13699_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_13699_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_13699_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_13699_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest12434" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest12434" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest12434" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest12434" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest13699" />
            <Trigger param="Quests.Quest12434" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest24445" text="g4_Quest_24445_24445questtitle">
        <!--Quest NPC24445-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest24445 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="24738" type="Take" />
            <Action action="Decrease" variable="Quest24445_QE_24702_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest24445 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest24445" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest24445_QE_24702_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest24445" />
            <Action action="ActivateDialog" variable="Dialog_24705" />
            <Trigger param="Quest24445_QE_24702_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_24445_24445questtitle" value="STEP1" tracker_text="g4_Quest_24702_s1tt" text="g4_Quest_24702_s1log">
            <SubStep variable="Quest24445_QE_24702_RevCounter_1" count="1" tracker_text="g4_Quest_24702_1" actor_trigger="24738">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_24445_24445questtitle" value="STEP2" tracker_text="g4_Quest_24702_s2tt" text="g4_Quest_24702_s2log" show_log="false" show_tracker="true" actor_trigger="19833">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_24702_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_24445_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_24445_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_24445_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_24445_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest23771" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest23771" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest23771" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest23771" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest24445" />
            <Trigger param="Quests.Quest23771" type="VariableChange" />
        </Event>
    </Quest>
    <!--TODO: invent someone who stole it, add lots of research dialogs-->
    <Quest main="false" name="Quest1377" text="g4_Quest_1377_1377questtitle">
        <!--Quest NPC1377-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest1377 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="4859" type="Take" />
            <Action action="Decrease" variable="Quest1377_QE_4836_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest1377 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest1377" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest1377_QE_4836_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest1377" />
            <Trigger param="Quest1377_QE_4836_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest1377 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest1377" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.4859" />
            <Trigger param="Quests.Quest1377" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_1377_1377questtitle" value="STEP1" tracker_text="g4_Quest_4836_s1tt" text="g4_Quest_4836_s1log">
            <SubStep variable="Quest1377_QE_4836_RevCounter_1" count="1" tracker_text="g4_Quest_4836_1">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_1377_1377questtitle" value="STEP2" tracker_text="g4_Quest_4836_s2tt" text="g4_Quest_4836_s2log" show_log="false" show_tracker="true" actor_trigger="7661">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_4836_s2tt" />
        </Step>
        <!--Event for the Quest Quest1377 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest1377" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest1377.Folder8328" />
            <Trigger param="Quests.Quest1377" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest1377 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest1377" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest1377.Folder8328" />
            <Trigger param="Quests.Quest1377" type="VariableChange" />
        </Event>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_1377_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_1377_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_1377_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_1377_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest1518" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest1518" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest1518" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest1518" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest1377" />
            <Trigger param="Quests.Quest1518" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest8591" text="g4_Quest_8591_8591questtitle">
        <!--Quest NPC8591-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_8591_8591questtitle" value="STEP1" tracker_text="g4_Quest_8602_s1tt" text="g4_Quest_8602_s1log" actor_trigger="7655" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_8591_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_8591_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_8591_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_8591_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest1377" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest1377" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest1377" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest1377" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest8591" />
            <Trigger param="Quests.Quest1377" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest17272" text="g4_Quest_17272_17272questtitle">
        <!--Quest NPC17272-->
        <!--step - wait in case of Step=Step1-->
        <Step tracker_title="g4_Quest_17272_17272questtitle" value="STEP1" tracker_text="g4_Quest_17291_s1tt" text="g4_Quest_17291_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_17291_s1tt" />
        </Step>
        <!--step - wait in case of Step=Step2-->
        <Step tracker_title="g4_Quest_17272_17272questtitle" value="STEP2" tracker_text="g4_Quest_17296_s1tt" text="g4_Quest_17296_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_17296_s1tt" />
        </Step>
        <!--step - wait in case of Step=Step3-->
        <Step tracker_title="g4_Quest_17272_17272questtitle" value="STEP3" tracker_text="g4_Quest_17301_s1tt" text="g4_Quest_17301_s1log" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_17301_s1tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_17272_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_17272_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_17272_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_17272_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest17559" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest17559" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest17559" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest17559" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest17272" />
            <Trigger param="Quests.Quest17559" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest18164" text="g4_Quest_18164_18164questtitle">
        <!--Quest NPC18164-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest18164 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="18238" type="Take" />
            <Action action="Decrease" variable="Quest18164_QE_18211_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest18164 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest18164" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest18164_QE_18211_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest3" variable="Quests.Quest18164" />
            <Trigger param="Quest18164_QE_18211_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest18164 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest18164" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.18238" />
            <Trigger param="Quests.Quest18164" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_18164_18164questtitle" value="STEP1" tracker_text="g4_Quest_18211_s1tt" text="g4_Quest_18211_s1log">
            <SubStep variable="Quest18164_QE_18211_RevCounter_1" count="1" tracker_text="g4_Quest_18211_1" actor_trigger="18238">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_18164_18164questtitle" value="STEP2" tracker_text="g4_Quest_18211_s2tt" text="g4_Quest_18211_s2log" actor_trigger="17953" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_18164_18164questtitle" value="STEP3" tracker_text="g4_Quest_18185_s1tt" text="g4_Quest_18185_s1log" actor_trigger="17943" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_18164_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_18164_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_18164_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_18164_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest18102" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest18102" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest18102" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest18102" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18164" />
            <Trigger param="Quests.Quest18102" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest18283" text="g4_Quest_18283_18283questtitle">
        <!--Quest Chained18283-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest18283 
	 -> it is triggered when the attached quest 18164 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest18164" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest18164" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest18164" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest18164" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18283" />
            <Action action="ProgressQuest2" variable="Quests.Quest18283" />
            <Trigger param="Quests.Quest18164" type="VariableChange" />
        </Event>
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest18283 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="18294" type="Kill" />
            <Action action="Decrease" variable="Quest18283_QE_18285_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest18283 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest18283" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest18283_QE_18285_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest18283" />
            <Trigger param="Quest18283_QE_18285_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest18283 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest18283" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.18294" />
            <Trigger param="Quests.Quest18283" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_18283_18283questtitle" value="STEP1" tracker_text="g4_Quest_18285_s1tt" text="g4_Quest_18285_s1log">
            <SubStep variable="Quest18283_QE_18285_RevCounter_1" count="1" tracker_text="g4_Quest_18285_1" actor_trigger="18294">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_18283_18283questtitle" value="STEP2" tracker_text="g4_Quest_18285_s2tt" text="g4_Quest_18285_s2log" show_log="false" show_tracker="true" actor_trigger="17943">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_18285_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_18283_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_18283_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_18283_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_18283_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest18164" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest18164" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest18164" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest18164" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest18283" />
            <Trigger param="Quests.Quest18164" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest5273" text="g4_Quest_5273_5273questtitle">
        <!--Quest NPC5273-->
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest5273 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="5285" type="Kill" />
            <Action action="Decrease" variable="Quest5273_QE_5278_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="11319" type="Kill" />
            <Action action="Decrease" variable="Quest5273_QE_5278_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest5273 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest5273" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest5273_QE_5278_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest5273" />
            <Trigger param="Quest5273_QE_5278_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest5273 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest5273" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.5285" />
            <Action action="SpawnEntity" variable="Entities.11319" />
            <Trigger param="Quests.Quest5273" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_5273_5273questtitle" value="STEP1" tracker_text="g4_Quest_5278_s1tt" text="g4_Quest_5278_s1log">
            <SubStep variable="Quest5273_QE_5278_RevCounter_1" count="2" tracker_text="g4_Quest_5278_1" actor_trigger="11319">
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_5273_5273questtitle" value="STEP2" tracker_text="g4_Quest_5278_s2tt" text="g4_Quest_5278_s2log" show_log="false" show_tracker="true" actor_trigger="7715">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_5278_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_5273_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_5273_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_5273_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_5273_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest5143" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest5143" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest5143" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest5143" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest5273" />
            <Trigger param="Quests.Quest5143" type="VariableChange" />
        </Event>
    </Quest>
    <!--Healer for the Castle Garrison-->
    <Quest main="false" name="Quest2755" text="g4_Quest_2755_2755questtitle">
        <!--Quest NPC2755-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_2755_2755questtitle" value="STEP1" tracker_text="g4_Quest_2761_s1tt" text="g4_Quest_2761_s1log" actor_trigger="7640" />
        <!--Event for the Quest Quest2755 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest2755" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest2755.Folder18909" />
            <Trigger param="Quests.Quest2755" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest2755 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest2755" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest2755.Folder18909" />
            <Trigger param="Quests.Quest2755" type="VariableChange" />
        </Event>
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_2755_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_2755_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_2755_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_2755_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest5273" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest5273" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest5273" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest5273" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest2755" />
            <Trigger param="Quests.Quest5273" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest31459" text="g4_Quest_31459_31459questtitle">
        <!--Quest Chained31459-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest31459 
	 -> it is triggered when the attached quest 31160 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest31160" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest31160" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest31160" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest31160" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest31459" />
            <Action action="ProgressQuest10" variable="Quests.Quest31459" />
            <Trigger param="Quests.Quest31160" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_31459_31459questtitle" value="STEP1" tracker_text="g4_Quest_31461_s1tt" text="g4_Quest_31461_s1log" actor_trigger="18643" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_31459_31459questtitle" value="STEP2" tracker_text="g4_Quest_31487_s1tt" text="g4_Quest_31487_s1log" actor_trigger="12253" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step3-->
        <Step tracker_title="g4_Quest_31459_31459questtitle" value="STEP3" tracker_text="g4_Quest_31501_s1tt" text="g4_Quest_31501_s1log" actor_trigger="18603" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step4-->
        <!--Event for each QuestItem the Quest Quest31459 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="31533" type="Take" />
            <Action action="Decrease" variable="Quest31459_QE_31523_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest31459 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest31459" type="IN">
                    <Value tag="STEP4" />
                </Operand1>
                <Operand2 variable="Quest31459_QE_31523_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest10" variable="Quests.Quest31459" />
            <Trigger param="Quest31459_QE_31523_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest31459 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest31459" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.31533" />
            <Trigger param="Quests.Quest31459" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_31459_31459questtitle" value="STEP4" tracker_text="g4_Quest_31523_s1tt" text="g4_Quest_31523_s1log">
            <SubStep variable="Quest31459_QE_31523_RevCounter_1" count="1" tracker_text="g4_Quest_31523_1" actor_trigger="31533">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step5-->
        <Step tracker_title="g4_Quest_31459_31459questtitle" value="STEP5" tracker_text="g4_Quest_31523_s2tt" text="g4_Quest_31523_s2log" actor_trigger="31364" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step6-->
        <Step tracker_title="g4_Quest_31459_31459questtitle" value="STEP6" tracker_text="g4_Quest_31549_s1tt" text="g4_Quest_31549_s1log" actor_trigger="12253" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step7-->
        <Step tracker_title="g4_Quest_31459_31459questtitle" value="STEP7" tracker_text="g4_Quest_31564_s1tt" text="g4_Quest_31564_s1log" actor_trigger="18643" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step8-->
        <Step tracker_title="g4_Quest_31459_31459questtitle" value="STEP8" tracker_text="g4_Quest_31580_s1tt" text="g4_Quest_31580_s1log" actor_trigger="12253" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step9-->
        <Step tracker_title="g4_Quest_31459_31459questtitle" value="STEP9" tracker_text="g4_Quest_31589_s1tt" text="g4_Quest_31589_s1log" actor_trigger="18643" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step10-->
        <Step tracker_title="g4_Quest_31459_31459questtitle" value="STEP10" tracker_text="g4_Quest_31599_s1tt" text="g4_Quest_31599_s1log" actor_trigger="18603" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_31459_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_31459_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_31459_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_31459_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest31160" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest31160" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest31160" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest31160" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest31459" />
            <Trigger param="Quests.Quest31160" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest32228" text="g4_Quest_32228_32228questtitle">
        <!--Quest Chained32228-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest32228 
	 -> it is triggered when the attached quest 31459 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest31459" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest31459" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest31459" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest31459" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest32228" />
            <Action action="ProgressQuest3" variable="Quests.Quest32228" />
            <Trigger param="Quests.Quest31459" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_32228_32228questtitle" value="STEP1" tracker_text="g4_Quest_32330_s1tt" text="g4_Quest_32330_s1log" actor_trigger="32315" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step2-->
        <!--Event for each QuestItem the Quest Quest32228 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="32270" type="Take" />
            <Action action="Decrease" variable="Quest32228_QE_32230_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="32271" type="Take" />
            <Action action="Decrease" variable="Quest32228_QE_32230_RevCounter_2" />
        </Event>
        <Event>
            <Trigger param="32272" type="Take" />
            <Action action="Decrease" variable="Quest32228_QE_32230_RevCounter_3" />
        </Event>
        <!--Event for the Quest Quest32228 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest32228" type="IN">
                    <Value tag="STEP2" />
                </Operand1>
                <Operand2 type="AND">
                    <Operand1 variable="Quest32228_QE_32230_RevCounter_1" type="IN">
                        <Value tag="0_MORE" />
                    </Operand1>
                    <Operand2 type="AND">
                        <Operand1 variable="Quest32228_QE_32230_RevCounter_2" type="IN">
                            <Value tag="0_MORE" />
                        </Operand1>
                        <Operand2 variable="Quest32228_QE_32230_RevCounter_3" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ProgressQuest3" variable="Quests.Quest32228" />
            <Trigger param="Quest32228_QE_32230_RevCounter_1" type="VariableChange" />
            <Trigger param="Quest32228_QE_32230_RevCounter_2" type="VariableChange" />
            <Trigger param="Quest32228_QE_32230_RevCounter_3" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest32228 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest32228" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.32270" />
            <Action action="SpawnEntity" variable="Entities.32271" />
            <Action action="SpawnEntity" variable="Entities.32272" />
            <Trigger param="Quests.Quest32228" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_32228_32228questtitle" value="STEP2" tracker_text="g4_Quest_32230_s1tt" text="g4_Quest_32230_s1log">
            <SubStep variable="Quest32228_QE_32230_RevCounter_1" count="1" tracker_text="g4_Quest_32230_1">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest32228_QE_32230_RevCounter_2" count="1" tracker_text="g4_Quest_32230_2">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest32228_QE_32230_RevCounter_3" count="1" tracker_text="g4_Quest_32230_3">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step3-->
        <Step tracker_title="g4_Quest_32228_32228questtitle" value="STEP3" tracker_text="g4_Quest_32230_s2tt" text="g4_Quest_32230_s2log" show_log="false" show_tracker="true" actor_trigger="32315">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_32230_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_32228_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_32228_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_32228_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_32228_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest31459" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest31459" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest31459" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest31459" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest32228" />
            <Trigger param="Quests.Quest31459" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest32728" text="g4_Quest_32728_32728questtitle">
        <!--Quest Chained32728-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest32728 
	 -> it is triggered when the attached quest 32228 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest32228" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest32228" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest32228" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest32228" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest32728" />
            <Action action="ProgressQuest2" variable="Quests.Quest32728" />
            <Trigger param="Quests.Quest32228" type="VariableChange" />
        </Event>
        <!-- The Parallel quest element in Quest Quest32728 has no NPC specified please test carefully if it works as desired-->
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest32728" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest32732" />
            <Action action="ProgressQuest2" variable="Quests.Quest32732" />
            <Action action="ActivateQuest" variable="Quests.Quest32734" />
            <Action action="ProgressQuest2" variable="Quests.Quest32734" />
            <Action action="ActivateQuest" variable="Quests.Quest32736" />
            <Action action="ProgressQuest2" variable="Quests.Quest32736" />
            <Trigger param="Quests.Quest32728" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step1-->
        <Step tracker_title="g4_Quest_32728_32728questtitle" value="STEP1" tracker_text="g4_Quest_32730_srtt" text="g4_Quest_32730_srlog">
            <Quest main="false" name="Quest32732" text="g4_Quest_32732_32732questtitle">
                <!--Quest SubQuest32732-->
                <!--step - collect in case of Step=Step1-->
                <!--Event for each QuestItem the Quest Quest32732 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="32842" type="Take" />
                    <Action action="Decrease" variable="Quest32732_QE_32750_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest32732 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest32732" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 variable="Quest32732_QE_32750_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest2" variable="Quests.Quest32732" />
                    <Action action="ActivateDialog" variable="Dialog_32753" />
                    <Trigger param="Quest32732_QE_32750_RevCounter_1" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_32732_32732questtitle" value="STEP1" tracker_text="g4_Quest_32750_s1tt" text="g4_Quest_32750_s1log">
                    <SubStep variable="Quest32732_QE_32750_RevCounter_1" count="1" tracker_text="g4_Quest_32750_1" actor_trigger="32842">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - return to NPC in case of Step=Step2-->
                <Step tracker_title="g4_Quest_32732_32732questtitle" value="STEP2" tracker_text="g4_Quest_32750_s2tt" text="g4_Quest_32750_s2log" show_log="false" show_tracker="true" actor_trigger="32315">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_32750_s2tt" />
                </Step>
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_32732_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest32734" text="g4_Quest_32734_32734questtitle">
                <!--Quest SubQuest32734-->
                <!--step - collect in case of Step=Step1-->
                <!--Event for each QuestItem the Quest Quest32734 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="32784" type="Take" />
                    <Action action="Decrease" variable="Quest32734_QE_32772_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest32734 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest32734" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 variable="Quest32734_QE_32772_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest2" variable="Quests.Quest32734" />
                    <Trigger param="Quest32734_QE_32772_RevCounter_1" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest32734 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest32734" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.32784" />
                    <Trigger param="Quests.Quest32734" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_32734_32734questtitle" value="STEP1" tracker_text="g4_Quest_32772_s1tt" text="g4_Quest_32772_s1log">
                    <SubStep variable="Quest32734_QE_32772_RevCounter_1" count="1" tracker_text="g4_Quest_32772_1" actor_trigger="32784">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - deliver in case of Step=Step2-->
                <Step tracker_title="g4_Quest_32734_32734questtitle" value="STEP2" tracker_text="g4_Quest_32772_s2tt" text="g4_Quest_32772_s2log" actor_trigger="32481" />
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_32734_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest32736" text="g4_Quest_32736_32736questtitle">
                <!--Quest SubQuest32736-->
                <!-- step - talk to in case of Step=Step1-->
                <Step tracker_title="g4_Quest_32736_32736questtitle" value="STEP1" tracker_text="g4_Quest_32795_s1tt" text="g4_Quest_32795_s1log" actor_trigger="12253" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!-- step - talk to in case of Step=Step2-->
                <Step tracker_title="g4_Quest_32736_32736questtitle" value="STEP2" tracker_text="g4_Quest_32800_s1tt" text="g4_Quest_32800_s1log" actor_trigger="12253" />
                <!-- action step to give the XP reward if XP is not zero-->
                <!--step - kill in case of Step=Step3-->
                <!--Event for each Mob the Quest Quest32736 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="32831" type="Kill" />
                    <Action action="Decrease" variable="Quest32736_QE_32805_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest32736 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest32736" type="IN">
                            <Value tag="STEP3" />
                        </Operand1>
                        <Operand2 variable="Quest32736_QE_32805_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest4" variable="Quests.Quest32736" />
                    <Trigger param="Quest32736_QE_32805_RevCounter_1" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest32736 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest32736" type="IN">
                        <Value tag="STEP3" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.32831" />
                    <Trigger param="Quests.Quest32736" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_32736_32736questtitle" value="STEP3" tracker_text="g4_Quest_32805_s1tt" text="g4_Quest_32805_s1log">
                    <SubStep variable="Quest32736_QE_32805_RevCounter_1" count="1" tracker_text="g4_Quest_32805_1" actor_trigger="32831">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - talk to in case of Step=Step4-->
                <Step tracker_title="g4_Quest_32736_32736questtitle" value="STEP4" tracker_text="g4_Quest_32805_s2tt" text="g4_Quest_32805_s2log" actor_trigger="12253" />
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_32736_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="" text="" value="STEP2" tracker_text="" show_log="false" show_tracker="true">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_32728_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_32728_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_32728_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_32728_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest32228" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest32228" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest32228" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest32228" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest32728" />
            <Trigger param="Quests.Quest32228" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest28637" text="g4_Quest_28637_28637questtitle">
        <!--Quest NPC28637-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest28637 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="28834" type="Take" />
            <Action action="Decrease" variable="Quest28637_QE_28815_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest28637 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest28637" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest28637_QE_28815_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest28637" />
            <Action action="ActivateDialog" variable="Dialog_28818" />
            <Trigger param="Quest28637_QE_28815_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_28637_28637questtitle" value="STEP1" tracker_text="g4_Quest_28815_s1tt" text="g4_Quest_28815_s1log">
            <SubStep variable="Quest28637_QE_28815_RevCounter_1" count="1" tracker_text="g4_Quest_28815_1" actor_trigger="28834">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_28637_28637questtitle" value="STEP2" tracker_text="g4_Quest_28815_s2tt" text="g4_Quest_28815_s2log" show_log="false" show_tracker="true" actor_trigger="17464">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_28815_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_28637_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_28637_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_28637_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_28637_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest24982" text="g4_Quest_24982_24982questtitle">
        <!--Quest NPC24982-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_24982_24982questtitle" value="STEP1" tracker_text="g4_Quest_25035_s1tt" text="g4_Quest_25035_s1log" actor_trigger="25079" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_24982_24982questtitle" value="STEP2" tracker_text="g4_Quest_25040_s1tt" text="g4_Quest_25040_s1log" actor_trigger="7733" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step3-->
        <!--Event for each Mob the Quest Quest24982 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="25104" type="Kill" />
            <Action action="Decrease" variable="Quest24982_QE_25055_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest24982 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest24982" type="IN">
                    <Value tag="STEP3" />
                </Operand1>
                <Operand2 variable="Quest24982_QE_25055_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest4" variable="Quests.Quest24982" />
            <Trigger param="Quest24982_QE_25055_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest24982 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest24982" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.25104" />
            <Trigger param="Quests.Quest24982" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_24982_24982questtitle" value="STEP3" tracker_text="g4_Quest_25055_s1tt" text="g4_Quest_25055_s1log">
            <SubStep variable="Quest24982_QE_25055_RevCounter_1" count="1" tracker_text="g4_Quest_25055_1" actor_trigger="25104">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - talk to in case of Step=Step4-->
        <Step tracker_title="g4_Quest_24982_24982questtitle" value="STEP4" tracker_text="g4_Quest_25055_s2tt" text="g4_Quest_25055_s2log" actor_trigger="7667" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_24982_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_24982_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_24982_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_24982_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest24786" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest24786" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest24786" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest24786" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest24982" />
            <Trigger param="Quests.Quest24786" type="VariableChange" />
        </Event>
    </Quest>
    <!--start FMV after killing the parasites! Find a way to finish this quest, since it can´t be finished atm.-->
    <Quest main="true" name="Quest3638" text="g4_Quest_3638_3638questtitle">
        <!--Quest Chained3638-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest3638 
	 -> it is triggered when the attached quest 2286 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest2286" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest2286" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest2286" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest2286" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest3638" />
            <Action action="ProgressQuest2" variable="Quests.Quest3638" />
            <Trigger param="Quests.Quest2286" type="VariableChange" />
        </Event>
        <!--step - kill in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest3638 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="3655" type="Kill" />
            <Action action="Decrease" variable="Quest3638_QE_3649_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="3656" type="Kill" />
            <Action action="Decrease" variable="Quest3638_QE_3649_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest3638 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest3638" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest3638_QE_3649_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest3638" />
            <Trigger param="Quest3638_QE_3649_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest3638 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest3638" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.3655" />
            <Action action="SpawnEntity" variable="Entities.3656" />
            <Trigger param="Quests.Quest3638" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_3638_3638questtitle" value="STEP1" tracker_text="g4_Quest_3649_s1tt" text="g4_Quest_3649_s1log">
            <SubStep variable="Quest3638_QE_3649_RevCounter_1" count="2" tracker_text="g4_Quest_3649_1" actor_trigger="3656">
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_3638_3638questtitle" value="STEP2" tracker_text="g4_Quest_3649_s2tt" text="g4_Quest_3649_s2log" show_log="false" show_tracker="true" actor_trigger="7676">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_3649_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_3638_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_3638_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_3638_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_3638_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest2286" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest2286" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest2286" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest2286" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest3638" />
            <Trigger param="Quests.Quest2286" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest21260" text="g4_Quest_21260_21260questtitle">
        <!--Quest NPC21260-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_21260_21260questtitle" value="STEP1" tracker_text="g4_Quest_21278_s1tt" text="g4_Quest_21278_s1log" actor_trigger="19843" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step2-->
        <!--Event for each QuestItem the Quest Quest21260 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="21453" type="Take" />
            <Action action="Decrease" variable="Quest21260_QE_21440_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="21753" type="Take" />
            <Action action="Decrease" variable="Quest21260_QE_21440_RevCounter_2" />
        </Event>
        <Event>
            <Trigger param="21762" type="Take" />
            <Action action="Decrease" variable="Quest21260_QE_21440_RevCounter_3" />
        </Event>
        <Event>
            <Trigger param="21771" type="Take" />
            <Action action="Decrease" variable="Quest21260_QE_21440_RevCounter_4" />
        </Event>
        <!--Event for the Quest Quest21260 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest21260" type="IN">
                    <Value tag="STEP2" />
                </Operand1>
                <Operand2 type="AND">
                    <Operand1 variable="Quest21260_QE_21440_RevCounter_1" type="IN">
                        <Value tag="0_MORE" />
                    </Operand1>
                    <Operand2 type="AND">
                        <Operand1 variable="Quest21260_QE_21440_RevCounter_2" type="IN">
                            <Value tag="0_MORE" />
                        </Operand1>
                        <Operand2 type="AND">
                            <Operand1 variable="Quest21260_QE_21440_RevCounter_3" type="IN">
                                <Value tag="0_MORE" />
                            </Operand1>
                            <Operand2 variable="Quest21260_QE_21440_RevCounter_4" type="IN">
                                <Value tag="0_MORE" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ProgressQuest7" variable="Quests.Quest21260" />
            <Trigger param="Quest21260_QE_21440_RevCounter_1" type="VariableChange" />
            <Trigger param="Quest21260_QE_21440_RevCounter_2" type="VariableChange" />
            <Trigger param="Quest21260_QE_21440_RevCounter_3" type="VariableChange" />
            <Trigger param="Quest21260_QE_21440_RevCounter_4" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest21260 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest21260" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.21453" />
            <Action action="SpawnEntity" variable="Entities.21753" />
            <Action action="SpawnEntity" variable="Entities.21762" />
            <Action action="SpawnEntity" variable="Entities.21771" />
            <Trigger param="Quests.Quest21260" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_21260_21260questtitle" value="STEP2" tracker_text="g4_Quest_21440_s1tt" text="g4_Quest_21440_s1log">
            <SubStep variable="Quest21260_QE_21440_RevCounter_1" count="1" tracker_text="g4_Quest_21440_1" actor_trigger="21453">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest21260_QE_21440_RevCounter_2" count="1" tracker_text="g4_Quest_21440_2" actor_trigger="21753">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest21260_QE_21440_RevCounter_3" count="1" tracker_text="g4_Quest_21440_3" actor_trigger="21762">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest21260_QE_21440_RevCounter_4" count="1" tracker_text="g4_Quest_21440_4" actor_trigger="21771">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step3-->
        <Step tracker_title="g4_Quest_21260_21260questtitle" value="STEP3" tracker_text="g4_Quest_21440_s2tt" text="g4_Quest_21440_s2log" actor_trigger="21518" />
        <!-- event to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step4-->
        <!--Event for each QuestItem the Quest Quest21260 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="21489" type="Take" />
            <Action action="Decrease" variable="Quest21260_QE_21341_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest21260 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest21260" type="IN">
                    <Value tag="STEP4" />
                </Operand1>
                <Operand2 variable="Quest21260_QE_21341_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest7" variable="Quests.Quest21260" />
            <Trigger param="Quest21260_QE_21341_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest21260 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest21260" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.21489" />
            <Trigger param="Quests.Quest21260" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_21260_21260questtitle" value="STEP4" tracker_text="g4_Quest_21341_s1tt" text="g4_Quest_21341_s1log">
            <SubStep variable="Quest21260_QE_21341_RevCounter_1" count="1" tracker_text="g4_Quest_21341_1" actor_trigger="21489">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step5-->
        <Step tracker_title="g4_Quest_21260_21260questtitle" value="STEP5" tracker_text="g4_Quest_21341_s2tt" text="g4_Quest_21341_s2log" actor_trigger="19843" />
        <!-- event to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step6-->
        <Step tracker_title="g4_Quest_21260_21260questtitle" value="STEP6" tracker_text="g4_Quest_21542_s1tt" text="g4_Quest_21542_s1log" actor_trigger="21548" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step7-->
        <Step tracker_title="g4_Quest_21260_21260questtitle" value="STEP7" tracker_text="g4_Quest_21563_s1tt" text="g4_Quest_21563_s1log" actor_trigger="19843" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_21260_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_21260_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_21260_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_21260_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest21165" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest21165" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest21165" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest21165" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest21260" />
            <Trigger param="Quests.Quest21165" type="VariableChange" />
        </Event>
    </Quest>
    <!--ch2b Irrit's Strength (XP-card 0015)-->
    <Quest main="true" name="Quest2458" text="g4_Quest_2458_2458questtitle">
        <!--Quest NPC2458-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_2458_2458questtitle" value="STEP1" tracker_text="g4_Quest_2490_s1tt" text="g4_Quest_2490_s1log" actor_trigger="7682" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - collect in case of Step=Step2-->
        <!--Event for each QuestItem the Quest Quest2458 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="2550" type="Take" />
            <Action action="Decrease" variable="Quest2458_QE_2519_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest2458 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest2458" type="IN">
                    <Value tag="STEP2" />
                </Operand1>
                <Operand2 variable="Quest2458_QE_2519_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest4" variable="Quests.Quest2458" />
            <Action action="ActivateDialog" variable="Dialog_2522" />
            <Trigger param="Quest2458_QE_2519_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_2458_2458questtitle" value="STEP2" tracker_text="g4_Quest_2519_s1tt" text="g4_Quest_2519_s1log">
            <SubStep variable="Quest2458_QE_2519_RevCounter_1" count="1" tracker_text="g4_Quest_2519_1">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step3-->
        <Step tracker_title="g4_Quest_2458_2458questtitle" value="STEP3" tracker_text="g4_Quest_2519_s2tt" text="g4_Quest_2519_s2log" show_log="false" show_tracker="true" actor_trigger="7682">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_2519_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- add experience for the collect element-->
        <Event>
            <Test variable="Quests.Quest2458" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Script statement="actor:AddExperience( 100 )" actor="Hero" />
            <Trigger param="Quests.Quest2458" type="VariableChange" />
        </Event>
        <!--step - deliver in case of Step=Step4-->
        <Step tracker_title="g4_Quest_2458_2458questtitle" value="STEP4" tracker_text="g4_Quest_2551_s1tt" text="g4_Quest_2551_s1log" actor_trigger="7655" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_2458_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_2458_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_2458_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_2458_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="true" name="Quest28680" text="g4_Quest_28680_28680questtitle">
        <!--Quest NPC28680-->
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest28680" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest28973" />
            <Action action="ProgressQuest2" variable="Quests.Quest28973" />
            <Action action="ActivateQuest" variable="Quests.Quest28975" />
            <Action action="ProgressQuest2" variable="Quests.Quest28975" />
            <Trigger param="Quests.Quest28680" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step1-->
        <Step tracker_title="g4_Quest_28680_28680questtitle" value="STEP1" tracker_text="g4_Quest_28971_srtt" text="g4_Quest_28971_srlog">
            <Quest main="false" name="Quest28973" text="g4_Quest_28973_28973questtitle">
                <!--Quest SubQuest28973-->
                <!--step - collect in case of Step=Step1-->
                <!--Event for each QuestItem the Quest Quest28973 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="29106" type="Take" />
                    <Action action="Decrease" variable="Quest28973_QE_28981_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest28973 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest28973" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 variable="Quest28973_QE_28981_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest2" variable="Quests.Quest28973" />
                    <Action action="ActivateDialog" variable="Dialog_28984" />
                    <Trigger param="Quest28973_QE_28981_RevCounter_1" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_28973_28973questtitle" value="STEP1" tracker_text="g4_Quest_28981_s1tt" text="g4_Quest_28981_s1log">
                    <SubStep variable="Quest28973_QE_28981_RevCounter_1" count="1" tracker_text="g4_Quest_28981_1" actor_trigger="29106">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - return to NPC in case of Step=Step2-->
                <Step tracker_title="g4_Quest_28973_28973questtitle" value="STEP2" tracker_text="g4_Quest_28981_s2tt" text="g4_Quest_28981_s2log" show_log="false" show_tracker="true" actor_trigger="7616">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_28981_s2tt" />
                </Step>
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_28973_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest28975" text="g4_Quest_28975_28975questtitle">
                <!--Quest SubQuest28975-->
                <!--step - collect in case of Step=Step1-->
                <!--Event for each QuestItem the Quest Quest28975 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="29015" type="Take" />
                    <Action action="Decrease" variable="Quest28975_QE_29003_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="29025" type="Take" />
                    <Action action="Decrease" variable="Quest28975_QE_29003_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="29026" type="Take" />
                    <Action action="Decrease" variable="Quest28975_QE_29003_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="29045" type="Take" />
                    <Action action="Decrease" variable="Quest28975_QE_29003_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="29055" type="Take" />
                    <Action action="Decrease" variable="Quest28975_QE_29003_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest28975 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest28975" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 variable="Quest28975_QE_29003_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest2" variable="Quests.Quest28975" />
                    <Action action="ActivateDialog" variable="Dialog_29006" />
                    <Trigger param="Quest28975_QE_29003_RevCounter_1" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_28975_28975questtitle" value="STEP1" tracker_text="g4_Quest_29003_s1tt" text="g4_Quest_29003_s1log">
                    <SubStep variable="Quest28975_QE_29003_RevCounter_1" count="3" tracker_text="g4_Quest_29003_1" actor_trigger="29055">
                        <Value tag="3_MORE" />
                        <Value tag="2_MORE" />
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - return to NPC in case of Step=Step2-->
                <Step tracker_title="g4_Quest_28975_28975questtitle" value="STEP2" tracker_text="g4_Quest_29003_s2tt" text="g4_Quest_29003_s2log" show_log="false" show_tracker="true" actor_trigger="7616">
                    <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_29003_s2tt" />
                </Step>
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_28975_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_28680_28680questtitle" value="STEP2" tracker_text="g4_Quest_28971_s2tt" text="g4_Quest_28971_s2log" show_log="false" show_tracker="true" actor_trigger="7616">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_28971_s2tt" />
        </Step>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_28680_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_28680_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_28680_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_28680_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest20163" text="g4_Quest_20163_20163questtitle">
        <!--Quest NPC20163-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_20163_20163questtitle" value="STEP1" tracker_text="g4_Quest_20173_s1tt" text="g4_Quest_20173_s1log" actor_trigger="7625" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - deliver in case of Step=Step3-->
        <Step tracker_title="g4_Quest_20163_20163questtitle" value="STEP3" tracker_text="g4_Quest_20220_s1tt" text="g4_Quest_20220_s1log" actor_trigger="7628" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step4-->
        <!--Event for each Mob the Quest Quest20163 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="20340" type="Kill" />
            <Action action="Decrease" variable="Quest20163_QE_20233_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="20350" type="Kill" />
            <Action action="Decrease" variable="Quest20163_QE_20233_RevCounter_2" />
        </Event>
        <!--Event for the Quest Quest20163 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest20163" type="IN">
                    <Value tag="STEP4" />
                </Operand1>
                <Operand2 type="AND">
                    <Operand1 variable="Quest20163_QE_20233_RevCounter_1" type="IN">
                        <Value tag="0_MORE" />
                    </Operand1>
                    <Operand2 variable="Quest20163_QE_20233_RevCounter_2" type="IN">
                        <Value tag="0_MORE" />
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ProgressQuest_BranchChoice_20206" variable="Quests.Quest20163" />
            <Trigger param="Quest20163_QE_20233_RevCounter_1" type="VariableChange" />
            <Trigger param="Quest20163_QE_20233_RevCounter_2" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest20163 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest20163" type="IN">
                <Value tag="STEP4" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.20340" />
            <Action action="SpawnEntity" variable="Entities.20350" />
            <Trigger param="Quests.Quest20163" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_20163_20163questtitle" value="STEP4" tracker_text="g4_Quest_20233_s1tt" text="g4_Quest_20233_s1log">
            <SubStep variable="Quest20163_QE_20233_RevCounter_1" count="1" tracker_text="g4_Quest_20233_1" actor_trigger="20340">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
            <SubStep variable="Quest20163_QE_20233_RevCounter_2" count="1" tracker_text="g4_Quest_20233_2" actor_trigger="20350">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step5-->
        <Step tracker_title="g4_Quest_20163_20163questtitle" value="STEP5" tracker_text="g4_Quest_20233_s2tt" text="g4_Quest_20233_s2log" show_log="false" show_tracker="true" actor_trigger="7628">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_20233_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step7-->
        <Step tracker_title="g4_Quest_20163_20163questtitle" value="STEP7" tracker_text="g4_Quest_20362_s1tt" text="g4_Quest_20362_s1log" actor_trigger="20484" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step8-->
        <Step tracker_title="g4_Quest_20163_20163questtitle" value="STEP8" tracker_text="g4_Quest_20367_s1tt" text="g4_Quest_20367_s1log" actor_trigger="7628" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step9-->
        <Step tracker_title="g4_Quest_20163_20163questtitle" value="STEP9" tracker_text="g4_Quest_20372_s1tt" text="g4_Quest_20372_s1log" actor_trigger="7625" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!--step - kill in case of Step=Step10-->
        <!--Event for each Mob the Quest Quest20163 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="20573" type="Kill" />
            <Action action="Decrease" variable="Quest20163_QE_20377_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest20163 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest20163" type="IN">
                    <Value tag="STEP10" />
                </Operand1>
                <Operand2 variable="Quest20163_QE_20377_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest_BranchChoice_20203" variable="Quests.Quest20163" />
            <Trigger param="Quest20163_QE_20377_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest20163 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest20163" type="IN">
                <Value tag="STEP10" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.20573" />
            <Trigger param="Quests.Quest20163" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_20163_20163questtitle" value="STEP10" tracker_text="g4_Quest_20377_s1tt" text="g4_Quest_20377_s1log">
            <SubStep variable="Quest20163_QE_20377_RevCounter_1" count="1" tracker_text="g4_Quest_20377_1" actor_trigger="20573">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step11-->
        <Step tracker_title="g4_Quest_20163_20163questtitle" value="STEP11" tracker_text="g4_Quest_20377_s2tt" text="g4_Quest_20377_s2log" show_log="false" show_tracker="true" actor_trigger="7625">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_20377_s2tt" />
        </Step>
        <!--Event for the Quest Quest20163 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest20163" type="IN">
                <Value tag="STEP12" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest20163.Folder20629" />
            <Trigger param="Quests.Quest20163" type="VariableChange" />
        </Event>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_20163_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_20163_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_20163_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_20163_FinishedLog4" />
    </Quest>
    <!--This quest is dependent on Q032 and Q033. Daranis still has to be an applicant when you start Q033, and you must find the first scroll before the second.-->
    <Quest main="false" name="Quest4334" text="g4_Quest_4334_4334questtitle">
        <!--Quest NPC4334-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_4334_4334questtitle" value="STEP1" tracker_text="g4_Quest_4417_s1tt" text="g4_Quest_4417_s1log" />
        <!--Event for the Quest Quest4334 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest4334" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest4334.Folder11348" />
            <Trigger param="Quests.Quest4334" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest4334 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest4334" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest4334.Folder11348" />
            <Trigger param="Quests.Quest4334" type="VariableChange" />
        </Event>
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_4334_4334questtitle" value="STEP2" tracker_text="g4_Quest_4428_s1tt" text="g4_Quest_4428_s1log" actor_trigger="7610" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_4334_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_4334_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_4334_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_4334_FinishedLog4" />
        <Event>
            <Test type="AND">
                <Operand1 type="OR">
                    <Operand1 variable="Quests.Quest19944" type="IN">
                        <Value tag="FINISHED_1" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest19944" type="IN">
                            <Value tag="FINISHED_2" />
                        </Operand1>
                        <Operand2 type="OR">
                            <Operand1 variable="Quests.Quest19944" type="IN">
                                <Value tag="FINISHED_3" />
                            </Operand1>
                            <Operand2 variable="Quests.Quest19944" type="IN">
                                <Value tag="FINISHED_4" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest8683" type="IN">
                        <Value tag="FINISHED_1" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest8683" type="IN">
                            <Value tag="FINISHED_2" />
                        </Operand1>
                        <Operand2 type="OR">
                            <Operand1 variable="Quests.Quest8683" type="IN">
                                <Value tag="FINISHED_3" />
                            </Operand1>
                            <Operand2 variable="Quests.Quest8683" type="IN">
                                <Value tag="FINISHED_4" />
                            </Operand2>
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest4334" />
            <Trigger param="Quests.Quest19944" type="VariableChange" />
            <Trigger param="Quests.Quest8683" type="VariableChange" />
        </Event>
    </Quest>
    <!--placeholder for winning a contest-->
    <Quest main="false" name="Quest6372" text="g4_Quest_6372_6372questtitle">
        <!--Quest NPC6372-->
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_6372_6372questtitle" value="STEP1" tracker_text="g4_Quest_15550_s1tt" text="g4_Quest_15550_s1log" actor_trigger="11065" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_6372_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_6372_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_6372_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_6372_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="true" name="Quest1679" text="g4_Quest_1679_1679questtitle">
        <!--Quest NPC1679-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest1679 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="1710" type="Take" />
            <Action action="Decrease" variable="Quest1679_QE_1691_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest1679 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest1679" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest1679_QE_1691_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest1679" />
            <Action action="ActivateDialog" variable="Dialog_1694" />
            <Trigger param="Quest1679_QE_1691_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_1679_1679questtitle" value="STEP1" tracker_text="g4_Quest_1691_s1tt" text="g4_Quest_1691_s1log">
            <SubStep variable="Quest1679_QE_1691_RevCounter_1" count="1" tracker_text="g4_Quest_1691_1">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_1679_1679questtitle" value="STEP2" tracker_text="g4_Quest_1691_s2tt" text="g4_Quest_1691_s2log" show_log="false" show_tracker="true" actor_trigger="7592">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_1691_s2tt" />
        </Step>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- add experience for the collect element-->
        <Event>
            <Test variable="Quests.Quest1679" type="IN">
                <Value tag="STEP2" />
            </Test>
            <Script statement="actor:AddExperience( 100 )" actor="Hero" />
            <Trigger param="Quests.Quest1679" type="VariableChange" />
        </Event>
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_1679_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_1679_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_1679_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_1679_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest3508" text="g4_Quest_3508_3508questtitle">
        <!--Quest Scroll3508-->
        <!--Event for the Quest Quest3508 
	 -> it is triggered when the scroll is picked up 
	 -> it tests if the quest is available 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test variable="Quests.Quest3508" type="IN">
                <Value tag="AVAILABLE" />
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest3508" />
            <Trigger param="3508" type="Take" />
        </Event>
        <!--step - collect in case of Step=Step1-->
        <!--Event for each Mob the Quest Quest3508 
	 -> it is triggered on Kill on Mob, it will decrease the counter by one then -->
        <Event>
            <Trigger param="10893" type="Kill" />
            <Action action="Decrease" variable="Quest3508_QE_10856_RevCounter_1" />
        </Event>
        <Event>
            <Trigger param="10894" type="Kill" />
            <Action action="Decrease" variable="Quest3508_QE_10856_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest3508 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest3508" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest3508_QE_10856_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest3508" />
            <Trigger param="Quest3508_QE_10856_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_3508_3508questtitle" value="STEP1" tracker_text="g4_Quest_10856_s1tt" text="g4_Quest_10856_s1log">
            <SubStep variable="Quest3508_QE_10856_RevCounter_1" count="2" tracker_text="g4_Quest_10856_1" actor_trigger="10894">
                <Value tag="2_MORE" />
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_3508_3508questtitle" value="STEP2" tracker_text="g4_Quest_10856_s2tt" text="g4_Quest_10856_s2log" actor_trigger="7724" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_3508_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_3508_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_3508_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_3508_FinishedLog4" />
    </Quest>
    <!---->
    <Quest main="false" name="Quest16726" text="g4_Quest_16726_16726questtitle">
        <!--Quest NPC16726-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest16726 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="16756" type="Take" />
            <Action action="Decrease" variable="Quest16726_QE_16734_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest16726 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest16726" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest16726_QE_16734_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest2" variable="Quests.Quest16726" />
            <Action action="ActivateDialog" variable="Dialog_16737" />
            <Trigger param="Quest16726_QE_16734_RevCounter_1" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_16726_16726questtitle" value="STEP1" tracker_text="g4_Quest_16734_s1tt" text="g4_Quest_16734_s1log">
            <SubStep variable="Quest16726_QE_16734_RevCounter_1" count="1" tracker_text="g4_Quest_16734_1">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - return to NPC in case of Step=Step2-->
        <Step tracker_title="g4_Quest_16726_16726questtitle" value="STEP2" tracker_text="g4_Quest_16734_s2tt" text="g4_Quest_16734_s2log" show_log="false" show_tracker="true" actor_trigger="10855">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_16734_s2tt" />
        </Step>
        <!--Event for the Quest Quest16726 
	 -> it activates the folder-->
        <Event>
            <Test variable="Quests.Quest16726" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="ActivateFolder" variable="Quests.Quest16726.Folder16779" />
            <Trigger param="Quests.Quest16726" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest16726 
	 -> it Deactivates the folder-->
        <Event>
            <Test variable="Quests.Quest16726" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="DeactivateFolder" variable="Quests.Quest16726.Folder16779" />
            <Trigger param="Quests.Quest16726" type="VariableChange" />
        </Event>
        <!-- event to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_16726_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_16726_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_16726_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_16726_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest16680" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest16680" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest16680" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest16680" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest16726" />
            <Trigger param="Quests.Quest16680" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="false" name="Quest20243" text="g4_Quest_20243_20243questtitle">
        <!--Quest NPC20243-->
        <!--step - collect in case of Step=Step1-->
        <!--Event for each QuestItem the Quest Quest20243 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="20389" type="Take" />
            <Action action="Decrease" variable="Quest20243_QE_20330_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest20243 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest20243" type="IN">
                    <Value tag="STEP1" />
                </Operand1>
                <Operand2 variable="Quest20243_QE_20330_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest7" variable="Quests.Quest20243" />
            <Trigger param="Quest20243_QE_20330_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest20243 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest20243" type="IN">
                <Value tag="STEP1" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.20389" />
            <Trigger param="Quests.Quest20243" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_20243_20243questtitle" value="STEP1" tracker_text="g4_Quest_20330_s1tt" text="g4_Quest_20330_s1log">
            <SubStep variable="Quest20243_QE_20330_RevCounter_1" count="1" tracker_text="g4_Quest_20330_1" actor_trigger="20389">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step2-->
        <Step tracker_title="g4_Quest_20243_20243questtitle" value="STEP2" tracker_text="g4_Quest_20330_s2tt" text="g4_Quest_20330_s2log" actor_trigger="20262" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- start the subquests-->
        <Event>
            <Test variable="Quests.Quest20243" type="IN">
                <Value tag="STEP3" />
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest20464" />
            <Action action="ProgressQuest7" variable="Quests.Quest20464" />
            <Action action="ActivateQuest" variable="Quests.Quest20466" />
            <Action action="ProgressQuest7" variable="Quests.Quest20466" />
            <Trigger param="Quests.Quest20243" type="VariableChange" />
        </Event>
        <!-- step - parallel action in case of Step=Step3-->
        <Step tracker_title="g4_Quest_20243_20243questtitle" value="STEP3" tracker_text="g4_Quest_20462_srtt" text="g4_Quest_20462_srlog">
            <Quest main="false" name="Quest20464" text="g4_Quest_20464_20464questtitle">
                <!--Quest SubQuest20464-->
                <!--step - collect in case of Step=Step1-->
                <!--Event for each QuestItem the Quest Quest20464 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="20496" type="Take" />
                    <Action action="Decrease" variable="Quest20464_QE_20472_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="21686" type="Take" />
                    <Action action="Decrease" variable="Quest20464_QE_20472_RevCounter_2" />
                </Event>
                <Event>
                    <Trigger param="21695" type="Take" />
                    <Action action="Decrease" variable="Quest20464_QE_20472_RevCounter_3" />
                </Event>
                <!--Event for the Quest Quest20464 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest20464" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 type="AND">
                            <Operand1 variable="Quest20464_QE_20472_RevCounter_1" type="IN">
                                <Value tag="0_MORE" />
                            </Operand1>
                            <Operand2 type="AND">
                                <Operand1 variable="Quest20464_QE_20472_RevCounter_2" type="IN">
                                    <Value tag="0_MORE" />
                                </Operand1>
                                <Operand2 variable="Quest20464_QE_20472_RevCounter_3" type="IN">
                                    <Value tag="0_MORE" />
                                </Operand2>
                            </Operand2>
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest4" variable="Quests.Quest20464" />
                    <Trigger param="Quest20464_QE_20472_RevCounter_1" type="VariableChange" />
                    <Trigger param="Quest20464_QE_20472_RevCounter_2" type="VariableChange" />
                    <Trigger param="Quest20464_QE_20472_RevCounter_3" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest20464 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest20464" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.20496" />
                    <Action action="SpawnEntity" variable="Entities.21686" />
                    <Action action="SpawnEntity" variable="Entities.21695" />
                    <Trigger param="Quests.Quest20464" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_20464_20464questtitle" value="STEP1" tracker_text="g4_Quest_20472_s1tt" text="g4_Quest_20472_s1log">
                    <SubStep variable="Quest20464_QE_20472_RevCounter_1" count="1" tracker_text="g4_Quest_20472_1" actor_trigger="20496">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                    <SubStep variable="Quest20464_QE_20472_RevCounter_2" count="1" tracker_text="g4_Quest_20472_2" actor_trigger="21686">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                    <SubStep variable="Quest20464_QE_20472_RevCounter_3" count="1" tracker_text="g4_Quest_20472_3" actor_trigger="21695">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - deliver in case of Step=Step2-->
                <Step tracker_title="g4_Quest_20464_20464questtitle" value="STEP2" tracker_text="g4_Quest_20472_s2tt" text="g4_Quest_20472_s2log" actor_trigger="20252" />
                <!-- event to give the XP reward if XP is not zero-->
                <!--step - collect in case of Step=Step3-->
                <!--Event for each QuestItem the Quest Quest20464 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="20547" type="Take" />
                    <Action action="Decrease" variable="Quest20464_QE_20525_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest20464 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest20464" type="IN">
                            <Value tag="STEP3" />
                        </Operand1>
                        <Operand2 variable="Quest20464_QE_20525_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest4" variable="Quests.Quest20464" />
                    <Trigger param="Quest20464_QE_20525_RevCounter_1" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest20464 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest20464" type="IN">
                        <Value tag="STEP3" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.20547" />
                    <Trigger param="Quests.Quest20464" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_20464_20464questtitle" value="STEP3" tracker_text="g4_Quest_20525_s1tt" text="g4_Quest_20525_s1log">
                    <SubStep variable="Quest20464_QE_20525_RevCounter_1" count="1" tracker_text="g4_Quest_20525_1" actor_trigger="20547">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - deliver in case of Step=Step4-->
                <Step tracker_title="g4_Quest_20464_20464questtitle" value="STEP4" tracker_text="g4_Quest_20525_s2tt" text="g4_Quest_20525_s2log" actor_trigger="20262" />
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_20464_FinishedLog" />
            </Quest>
            <Quest main="false" name="Quest20466" text="g4_Quest_20466_20466questtitle">
                <!--Quest SubQuest20466-->
                <!--step - collect in case of Step=Step1-->
                <!--Event for each QuestItem the Quest Quest20466 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="20588" type="Take" />
                    <Action action="Decrease" variable="Quest20466_QE_20557_RevCounter_1" />
                </Event>
                <Event>
                    <Trigger param="21659" type="Take" />
                    <Action action="Decrease" variable="Quest20466_QE_20557_RevCounter_2" />
                </Event>
                <Event>
                    <Trigger param="21660" type="Take" />
                    <Action action="Decrease" variable="Quest20466_QE_20557_RevCounter_3" />
                </Event>
                <Event>
                    <Trigger param="21661" type="Take" />
                    <Action action="Decrease" variable="Quest20466_QE_20557_RevCounter_4" />
                </Event>
                <!--Event for the Quest Quest20466 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest20466" type="IN">
                            <Value tag="STEP1" />
                        </Operand1>
                        <Operand2 type="AND">
                            <Operand1 variable="Quest20466_QE_20557_RevCounter_1" type="IN">
                                <Value tag="0_MORE" />
                            </Operand1>
                            <Operand2 type="AND">
                                <Operand1 variable="Quest20466_QE_20557_RevCounter_2" type="IN">
                                    <Value tag="0_MORE" />
                                </Operand1>
                                <Operand2 type="AND">
                                    <Operand1 variable="Quest20466_QE_20557_RevCounter_3" type="IN">
                                        <Value tag="0_MORE" />
                                    </Operand1>
                                    <Operand2 variable="Quest20466_QE_20557_RevCounter_4" type="IN">
                                        <Value tag="0_MORE" />
                                    </Operand2>
                                </Operand2>
                            </Operand2>
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest4" variable="Quests.Quest20466" />
                    <Trigger param="Quest20466_QE_20557_RevCounter_1" type="VariableChange" />
                    <Trigger param="Quest20466_QE_20557_RevCounter_2" type="VariableChange" />
                    <Trigger param="Quest20466_QE_20557_RevCounter_3" type="VariableChange" />
                    <Trigger param="Quest20466_QE_20557_RevCounter_4" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest20466 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest20466" type="IN">
                        <Value tag="STEP1" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.20588" />
                    <Action action="SpawnEntity" variable="Entities.21659" />
                    <Action action="SpawnEntity" variable="Entities.21660" />
                    <Action action="SpawnEntity" variable="Entities.21661" />
                    <Trigger param="Quests.Quest20466" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_20466_20466questtitle" value="STEP1" tracker_text="g4_Quest_20557_s1tt" text="g4_Quest_20557_s1log">
                    <SubStep variable="Quest20466_QE_20557_RevCounter_1" count="1" tracker_text="g4_Quest_20557_1" actor_trigger="20588">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                    <SubStep variable="Quest20466_QE_20557_RevCounter_2" count="1" tracker_text="g4_Quest_20557_2" actor_trigger="21659">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                    <SubStep variable="Quest20466_QE_20557_RevCounter_3" count="1" tracker_text="g4_Quest_20557_3" actor_trigger="21660">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                    <SubStep variable="Quest20466_QE_20557_RevCounter_4" count="1" tracker_text="g4_Quest_20557_4" actor_trigger="21661">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - deliver in case of Step=Step2-->
                <Step tracker_title="g4_Quest_20466_20466questtitle" value="STEP2" tracker_text="g4_Quest_20557_s2tt" text="g4_Quest_20557_s2log" actor_trigger="20273" />
                <!-- event to give the XP reward if XP is not zero-->
                <!--step - collect in case of Step=Step3-->
                <!--Event for each QuestItem the Quest Quest20466 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
                <Event>
                    <Trigger param="20643" type="Take" />
                    <Action action="Decrease" variable="Quest20466_QE_20633_RevCounter_1" />
                </Event>
                <!--Event for the Quest Quest20466 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
                <Event>
                    <Test type="AND">
                        <Operand1 variable="Quests.Quest20466" type="IN">
                            <Value tag="STEP3" />
                        </Operand1>
                        <Operand2 variable="Quest20466_QE_20633_RevCounter_1" type="IN">
                            <Value tag="0_MORE" />
                        </Operand2>
                    </Test>
                    <Action action="ProgressQuest4" variable="Quests.Quest20466" />
                    <Trigger param="Quest20466_QE_20633_RevCounter_1" type="VariableChange" />
                </Event>
                <!--Event for the Quest Quest20466 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
                <Event>
                    <Test variable="Quests.Quest20466" type="IN">
                        <Value tag="STEP3" />
                    </Test>
                    <Action action="SpawnEntity" variable="Entities.20643" />
                    <Trigger param="Quests.Quest20466" type="VariableChange" />
                </Event>
                <Step tracker_title="g4_Quest_20466_20466questtitle" value="STEP3" tracker_text="g4_Quest_20633_s1tt" text="g4_Quest_20633_s1log">
                    <SubStep variable="Quest20466_QE_20633_RevCounter_1" count="1" tracker_text="g4_Quest_20633_1" actor_trigger="20643">
                        <Value tag="1_MORE" />
                        <Value tag="0_MORE" />
                    </SubStep>
                </Step>
                <!--step - deliver in case of Step=Step4-->
                <Step tracker_title="g4_Quest_20466_20466questtitle" value="STEP4" tracker_text="g4_Quest_20633_s2tt" text="g4_Quest_20633_s2log" actor_trigger="20262" />
                <!-- event to give the XP reward if XP is not zero-->
                <!-- subquest final Step=FINISHED-->
                <Step value="FINISHED" text="g4_Quest_20466_FinishedLog" />
            </Quest>
        </Step>
        <Step tracker_title="g4_Quest_20243_20243questtitle" value="STEP4" tracker_text="g4_Quest_20462_s2tt" text="g4_Quest_20462_s2log" show_log="false" show_tracker="true" actor_trigger="20262">
            <SubStep show_tracker="false" show_log="true" count="1" tracker_text="g4_Quest_20462_s2tt" />
        </Step>
        <!--step - collect in case of Step=Step5-->
        <!--Event for each QuestItem the Quest Quest20243 
	 -> it is triggered on Take on QuestItem, it will decrease the counter by one then -->
        <Event>
            <Trigger param="20671" type="Take" />
            <Action action="Decrease" variable="Quest20243_QE_20661_RevCounter_1" />
        </Event>
        <!--Event for the Quest Quest20243 
	 -> it is triggered for each counter change or the quest variable changes 
	 -> it tests for the counters beeing 0 and the state to be appropriate 
	 -> in this case it invokes a progressAction()-->
        <Event>
            <Test type="AND">
                <Operand1 variable="Quests.Quest20243" type="IN">
                    <Value tag="STEP5" />
                </Operand1>
                <Operand2 variable="Quest20243_QE_20661_RevCounter_1" type="IN">
                    <Value tag="0_MORE" />
                </Operand2>
            </Test>
            <Action action="ProgressQuest7" variable="Quests.Quest20243" />
            <Trigger param="Quest20243_QE_20661_RevCounter_1" type="VariableChange" />
        </Event>
        <!--Event for the Quest Quest20243 
	 -> it is triggered if the quest variable changes 
	 -> it tests for the state to be appropriate 
	 -> in this case it spawns the items/mobs-->
        <Event>
            <Test variable="Quests.Quest20243" type="IN">
                <Value tag="STEP5" />
            </Test>
            <Action action="SpawnEntity" variable="Entities.20671" />
            <Trigger param="Quests.Quest20243" type="VariableChange" />
        </Event>
        <Step tracker_title="g4_Quest_20243_20243questtitle" value="STEP5" tracker_text="g4_Quest_20661_s1tt" text="g4_Quest_20661_s1log">
            <SubStep variable="Quest20243_QE_20661_RevCounter_1" count="1" tracker_text="g4_Quest_20661_1" actor_trigger="20671">
                <Value tag="1_MORE" />
                <Value tag="0_MORE" />
            </SubStep>
        </Step>
        <!--step - deliver in case of Step=Step6-->
        <Step tracker_title="g4_Quest_20243_20243questtitle" value="STEP6" tracker_text="g4_Quest_20661_s2tt" text="g4_Quest_20661_s2log" actor_trigger="20283" />
        <!-- event to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step7-->
        <Step tracker_title="g4_Quest_20243_20243questtitle" value="STEP7" tracker_text="g4_Quest_20686_s1tt" text="g4_Quest_20686_s1log" actor_trigger="19853" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_20243_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_20243_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_20243_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_20243_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest20028" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest20028" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest20028" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest20028" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest20243" />
            <Trigger param="Quests.Quest20028" type="VariableChange" />
        </Event>
    </Quest>
    <!---->
    <Quest main="true" name="Quest8285" text="g4_Quest_8285_8285questtitle">
        <!--Quest Chained8285-->
        <!-- NOTE: keep the order of the actions in the following event!! -->
        <!--Event for the Quest Quest8285 
	 -> it is triggered when the attached quest 7364 is finished 
	 in this case this quest will be started automatically-->
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest7364" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest7364" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest7364" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest7364" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest8285" />
            <Action action="ProgressQuest2" variable="Quests.Quest8285" />
            <Trigger param="Quests.Quest7364" type="VariableChange" />
        </Event>
        <!-- step - talk to in case of Step=Step1-->
        <Step tracker_title="g4_Quest_8285_8285questtitle" value="STEP1" tracker_text="g4_Quest_8287_s1tt" text="g4_Quest_8287_s1log" actor_trigger="8292" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- step - talk to in case of Step=Step2-->
        <Step tracker_title="g4_Quest_8285_8285questtitle" value="STEP2" tracker_text="g4_Quest_8458_s1tt" text="g4_Quest_8458_s1log" actor_trigger="8463" />
        <!-- action step to give the XP reward if XP is not zero-->
        <!-- final Step=FINISHED_1-->
        <Step value="FINISHED_1" text="g4_Quest_8285_FinishedLog1" />
        <!-- final Step=FINISHED_2-->
        <Step value="FINISHED_2" text="g4_Quest_8285_FinishedLog2" />
        <!-- final Step=FINISHED_3-->
        <Step value="FINISHED_3" text="g4_Quest_8285_FinishedLog3" />
        <!-- final Step=FINISHED_4-->
        <Step value="FINISHED_4" text="g4_Quest_8285_FinishedLog4" />
        <Event>
            <Test type="OR">
                <Operand1 variable="Quests.Quest7364" type="IN">
                    <Value tag="FINISHED_1" />
                </Operand1>
                <Operand2 type="OR">
                    <Operand1 variable="Quests.Quest7364" type="IN">
                        <Value tag="FINISHED_2" />
                    </Operand1>
                    <Operand2 type="OR">
                        <Operand1 variable="Quests.Quest7364" type="IN">
                            <Value tag="FINISHED_3" />
                        </Operand1>
                        <Operand2 variable="Quests.Quest7364" type="IN">
                            <Value tag="FINISHED_4" />
                        </Operand2>
                    </Operand2>
                </Operand2>
            </Test>
            <Action action="ActivateQuest" variable="Quests.Quest8285" />
            <Trigger param="Quests.Quest7364" type="VariableChange" />
        </Event>
    </Quest>
</Quests>
