Jump to content

Quester - Condition


Killingit

Recommended Posts

Dear Wrobot community.

The past two days i have been working on a automation of Stockades for 3.3.5 Wrobot. However i have run into an issue with the condition for the EasyQuest. Currently the bot is going into the dungeon when in stormwind, running the route but here comes the problem. I have no idea which condition i can make to make it go to next pulse, after it have finished it's waypoints inside the dungeon. So a cheap way to do this is, currently it has to loot 3 chests, perhaps it would be possible to do so the condition is set to smth like "

"If chests looted, then do x"

This is ofcourse just the logic behind what it should do, as it has to be written differently in a XML file. I have pasted the currenty i have done below, and marked the part where a condition has to be inserted. 

<?xml version="1.0" encoding="utf-16"?>
<EasyQuestProfile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <QuestsSorted>
    <QuestsSorted Action="RunCode" NameClass="wManager.wManagerSetting.CurrentSetting.UseMount = false" />
    <QuestsSorted Action="Pulse" NameClass="Enterdungeon" />
    <QuestsSorted Action="Wait" NameClass="2000" />
    <QuestsSorted Action="Pulse" NameClass="Chest1" />
    <QuestsSorted Action="Pulse" NameClass="Exitdungeon" />
    <QuestsSorted Action="GoToStep" NameClass="0" />
  </QuestsSorted>
  <NpcQuest />
  <Npc />
  <Blackspots />
  <BlackGuids />
  <EasyQuests>
    <EasyQuest>
      <Name>Enterdungeon</Name>
      <QuestId />
      <QuestType>KillAndLoot</QuestType>
      <QuestClass xsi:type="KillAndLootEasyQuestClass">
        <HotSpots>
        <Vector3 X="-8763.331" Y="847.8583" Z="86.63009" />
        </HotSpots>
        <EntryTarget />
        <IsGrinderNotQuest>false</IsGrinderNotQuest>
      </QuestClass>
      <ObjectiveCount1></ObjectiveCount1>
      <ObjectiveCount2></ObjectiveCount2>
      <ObjectiveCount3></ObjectiveCount3>
      <ObjectiveCount4></ObjectiveCount4>
      <ObjectiveCount5></ObjectiveCount5>
      <AutoDetectObjectiveCount1>false</AutoDetectObjectiveCount1>
      <AutoDetectObjectiveCount2>false</AutoDetectObjectiveCount2>
      <AutoDetectObjectiveCount3>false</AutoDetectObjectiveCount3>
      <AutoDetectObjectiveCount4>false</AutoDetectObjectiveCount4>
      <AutoDetectObjectiveCount5>false</AutoDetectObjectiveCount5>
      <CanCondition />
      <IsCompleteCondition>return (wManager.Wow.Helpers.Usefuls.ContinentId == (int)wManager.Wow.Enums.ContinentId.StormwindJail);</IsCompleteCondition>
      <RepeatableQuest>false</RepeatableQuest>
      <NotRequiredInQuestLog>true</NotRequiredInQuestLog>
      <PickUpQuestOnItem>false</PickUpQuestOnItem>
      <PickUpQuestOnItemID></PickUpQuestOnItemID>
      <Comment />
      <GossipOptionRewardItem>1</GossipOptionRewardItem>
      <RequiredQuest></RequiredQuest>
      <MaxLevel>100</MaxLevel>
      <MinLevel></MinLevel>
      <WoWClass>None</WoWClass>
    </EasyQuest>
    <EasyQuest>
      <Name>Chest1</Name>
      <QuestId />
      <QuestType>KillAndLoot</QuestType>
      <QuestClass xsi:type="KillAndLootEasyQuestClass">
        <HotSpots>
        <Vector3 X="123.97" Y="-65.72" Z="-33.93" />
        <Vector3 X="150.60" Y="-74.15" Z="-34.85" />
        <Vector3 X="123.97" Y="-65.72" Z="-33.93" />
        <Vector3 X="105.85" Y="-107.48" Z="-35.18" />
        <Vector3 X="87.21" Y="-141.15" Z="-33.93" />
        <Vector3 X="105.85" Y="-107.48" Z="-35.18" />
        <Vector3 X="123.97" Y="-65.72" Z="-33.93" />
        <Vector3 X="130.16" Y="0.99" Z="-25.60" />
        <Vector3 X="130.16" Y="0.99" Z="-25.60" />
        <Vector3 X="132.58" Y="60.59" Z="-33.93" />
        <Vector3 X="153.02" Y="106.56" Z="-35.18" />
        <Vector3 X="189.06" Y="88.74" Z="-33.93" />
        <Vector3 X="153.02" Y="106.56" Z="-35.18" />
        <Vector3 X="132.58" Y="60.59" Z="-33.93" />
        <Vector3 X="130.16" Y="0.99" Z="-25.60" />
        <Vector3 X="97.62986" Y="0.6660343" Z="-25.60623" />
        <Vector3 X="53.4693" Y="0.8157501" Z="-18.06126" />
        </HotSpots>
        <EntryTarget>
          <int></int>
        </EntryTarget>
        <IsGrinderNotQuest>false</IsGrinderNotQuest>
      </QuestClass>
      <ObjectiveCount1></ObjectiveCount1>
      <ObjectiveCount2></ObjectiveCount2>
      <ObjectiveCount3></ObjectiveCount3>
      <ObjectiveCount4></ObjectiveCount4>
      <ObjectiveCount5></ObjectiveCount5>
      <AutoDetectObjectiveCount1>false</AutoDetectObjectiveCount1>
      <AutoDetectObjectiveCount2>false</AutoDetectObjectiveCount2>
      <AutoDetectObjectiveCount3>false</AutoDetectObjectiveCount3>
      <AutoDetectObjectiveCount4>false</AutoDetectObjectiveCount4>
      <AutoDetectObjectiveCount5>false</AutoDetectObjectiveCount5>
      <CanCondition />
      <IsCompleteCondition>return (CONDITION HAS TO BE SET HERE);</IsCompleteCondition>
      <RepeatableQuest>false</RepeatableQuest>
      <NotRequiredInQuestLog>true</NotRequiredInQuestLog>
      <PickUpQuestOnItem>false</PickUpQuestOnItem>
      <PickUpQuestOnItemID></PickUpQuestOnItemID>
      <Comment />
      <GossipOptionRewardItem>1</GossipOptionRewardItem>
      <RequiredQuest></RequiredQuest>
      <MaxLevel>100</MaxLevel>
      <MinLevel></MinLevel>
      <WoWClass>None</WoWClass>
    </EasyQuest>
    <EasyQuest>
      <Name>Exitdungeon</Name>
      <QuestId />
      <QuestType>KillAndLoot</QuestType>
      <QuestClass xsi:type="KillAndLootEasyQuestClass">
        <HotSpots>
        <Vector3 X="44.30714" Y="0.4576409" Z="-14.6152"/>
        </HotSpots>
        <EntryTarget />
        <IsGrinderNotQuest>false</IsGrinderNotQuest>
      </QuestClass>
      <ObjectiveCount1></ObjectiveCount1>
      <ObjectiveCount2></ObjectiveCount2>
      <ObjectiveCount3></ObjectiveCount3>
      <ObjectiveCount4></ObjectiveCount4>
      <ObjectiveCount5></ObjectiveCount5>
      <AutoDetectObjectiveCount1>false</AutoDetectObjectiveCount1>
      <AutoDetectObjectiveCount2>false</AutoDetectObjectiveCount2>
      <AutoDetectObjectiveCount3>false</AutoDetectObjectiveCount3>
      <AutoDetectObjectiveCount4>false</AutoDetectObjectiveCount4>
      <AutoDetectObjectiveCount5>false</AutoDetectObjectiveCount5>
      <CanCondition />
      <IsCompleteCondition>return (wManager.Wow.Helpers.Usefuls.ContinentId != (int)wManager.Wow.Enums.ContinentId.StormwindJail);</IsCompleteCondition>
      <RepeatableQuest>false</RepeatableQuest>
      <NotRequiredInQuestLog>true</NotRequiredInQuestLog>
      <PickUpQuestOnItem>false</PickUpQuestOnItem>
      <PickUpQuestOnItemID></PickUpQuestOnItemID>
      <Comment />
      <GossipOptionRewardItem>1</GossipOptionRewardItem>
      <RequiredQuest></RequiredQuest>
      <MaxLevel>100</MaxLevel>
      <MinLevel></MinLevel>
      <WoWClass>None</WoWClass>
    </EasyQuest>
   </EasyQuests>
</EasyQuestProfile>

Thanks for the help in advance!

 

-Killingit

Link to comment
Share on other sites

The solution to this profile i have posted below:

<?xml version="1.0" encoding="utf-16"?>
<EasyQuestProfile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <QuestsSorted>
    <QuestsSorted Action="RunCode" NameClass="wManager.wManagerSetting.CurrentSetting.UseMount = false" />
    <QuestsSorted Action="Pulse" NameClass="Enterdungeon" />
    <QuestsSorted Action="Wait" NameClass="2000" />
    <QuestsSorted Action="Pulse" NameClass="Chest1" />
    <QuestsSorted Action="Wait" NameClass="480000" />
    <QuestsSorted Action="Pulse" NameClass="Exitdungeon" />
    <QuestsSorted Action="GoToStep" NameClass="0" />
  </QuestsSorted>
  <NpcQuest />
  <Npc />
  <Blackspots />
  <BlackGuids />
  <EasyQuests>
    <EasyQuest>
      <Name>Enterdungeon</Name>
      <QuestId />
      <QuestType>KillAndLoot</QuestType>
      <QuestClass xsi:type="KillAndLootEasyQuestClass">
        <HotSpots>
        <Vector3 X="-8763.331" Y="847.8583" Z="86.63009" />
        </HotSpots>
        <EntryTarget />
        <IsGrinderNotQuest>false</IsGrinderNotQuest>
      </QuestClass>
      <ObjectiveCount1></ObjectiveCount1>
      <ObjectiveCount2></ObjectiveCount2>
      <ObjectiveCount3></ObjectiveCount3>
      <ObjectiveCount4></ObjectiveCount4>
      <ObjectiveCount5></ObjectiveCount5>
      <AutoDetectObjectiveCount1>false</AutoDetectObjectiveCount1>
      <AutoDetectObjectiveCount2>false</AutoDetectObjectiveCount2>
      <AutoDetectObjectiveCount3>false</AutoDetectObjectiveCount3>
      <AutoDetectObjectiveCount4>false</AutoDetectObjectiveCount4>
      <AutoDetectObjectiveCount5>false</AutoDetectObjectiveCount5>
      <CanCondition />
      <IsCompleteCondition>return (wManager.Wow.Helpers.Usefuls.ContinentId == (int)wManager.Wow.Enums.ContinentId.StormwindJail);</IsCompleteCondition>
      <RepeatableQuest>false</RepeatableQuest>
      <NotRequiredInQuestLog>true</NotRequiredInQuestLog>
      <PickUpQuestOnItem>false</PickUpQuestOnItem>
      <PickUpQuestOnItemID></PickUpQuestOnItemID>
      <Comment />
      <GossipOptionRewardItem>1</GossipOptionRewardItem>
      <RequiredQuest></RequiredQuest>
      <MaxLevel>100</MaxLevel>
      <MinLevel></MinLevel>
      <WoWClass>None</WoWClass>
    </EasyQuest>
    <EasyQuest>
      <Name>Chest1</Name>
      <QuestId />
      <QuestType>KillAndLoot</QuestType>
      <QuestClass xsi:type="KillAndLootEasyQuestClass">
        <HotSpots>
        <Vector3 X="123.97" Y="-65.72" Z="-33.93" />
        <Vector3 X="150.60" Y="-74.15" Z="-34.85" />
        <Vector3 X="123.97" Y="-65.72" Z="-33.93" />
        <Vector3 X="105.85" Y="-107.48" Z="-35.18" />
        <Vector3 X="87.21" Y="-141.15" Z="-33.93" />
        <Vector3 X="105.85" Y="-107.48" Z="-35.18" />
        <Vector3 X="123.97" Y="-65.72" Z="-33.93" />
        <Vector3 X="130.16" Y="0.99" Z="-25.60" />
        <Vector3 X="130.16" Y="0.99" Z="-25.60" />
        <Vector3 X="132.58" Y="60.59" Z="-33.93" />
        <Vector3 X="153.02" Y="106.56" Z="-35.18" />
        <Vector3 X="189.06" Y="88.74" Z="-33.93" />
        <Vector3 X="153.02" Y="106.56" Z="-35.18" />
        <Vector3 X="132.58" Y="60.59" Z="-33.93" />
        <Vector3 X="130.16" Y="0.99" Z="-25.60" />
        <Vector3 X="97.62986" Y="0.6660343" Z="-25.60623" />
        <Vector3 X="53.4693" Y="0.8157501" Z="-18.06126" />
        </HotSpots>
        <EntryTarget>
          <int>1716</int>
        </EntryTarget>
        <IsGrinderNotQuest>false</IsGrinderNotQuest>
      </QuestClass>
      <ObjectiveCount1></ObjectiveCount1>
      <ObjectiveCount2></ObjectiveCount2>
      <ObjectiveCount3></ObjectiveCount3>
      <ObjectiveCount4></ObjectiveCount4>
      <ObjectiveCount5></ObjectiveCount5>
      <AutoDetectObjectiveCount1>false</AutoDetectObjectiveCount1>
      <AutoDetectObjectiveCount2>false</AutoDetectObjectiveCount2>
      <AutoDetectObjectiveCount3>false</AutoDetectObjectiveCount3>
      <AutoDetectObjectiveCount4>false</AutoDetectObjectiveCount4>
      <AutoDetectObjectiveCount5>false</AutoDetectObjectiveCount5>
      <CanCondition />
      <IsCompleteCondition>return (ObjectManager.Me.Position.DistanceTo((ObjectManager.GetWoWGameObjectByyId(74448).FirstOrDefault() == null) ? new Vector3(1, 1, 1) : ObjectManager.GetWoWGameObjectByyId(74448).FirstOrDefault().Position) > 200);</IsCompleteCondition>
      <RepeatableQuest>false</RepeatableQuest>
      <NotRequiredInQuestLog>true</NotRequiredInQuestLog>
      <PickUpQuestOnItem>false</PickUpQuestOnItem>
      <PickUpQuestOnItemID></PickUpQuestOnItemID>
      <Comment />
      <GossipOptionRewardItem>1</GossipOptionRewardItem>
      <RequiredQuest></RequiredQuest>
      <MaxLevel>100</MaxLevel>
      <MinLevel></MinLevel>
      <WoWClass>None</WoWClass>
    </EasyQuest>
    <EasyQuest>
      <Name>Exitdungeon</Name>
      <QuestId />
      <QuestType>KillAndLoot</QuestType>
      <QuestClass xsi:type="KillAndLootEasyQuestClass">
        <HotSpots>
        <Vector3 X="44.30714" Y="0.4576409" Z="-14.6152"/>
        </HotSpots>
        <EntryTarget />
        <IsGrinderNotQuest>false</IsGrinderNotQuest>
      </QuestClass>
      <ObjectiveCount1></ObjectiveCount1>
      <ObjectiveCount2></ObjectiveCount2>
      <ObjectiveCount3></ObjectiveCount3>
      <ObjectiveCount4></ObjectiveCount4>
      <ObjectiveCount5></ObjectiveCount5>
      <AutoDetectObjectiveCount1>false</AutoDetectObjectiveCount1>
      <AutoDetectObjectiveCount2>false</AutoDetectObjectiveCount2>
      <AutoDetectObjectiveCount3>false</AutoDetectObjectiveCount3>
      <AutoDetectObjectiveCount4>false</AutoDetectObjectiveCount4>
      <AutoDetectObjectiveCount5>false</AutoDetectObjectiveCount5>
      <CanCondition />
      <IsCompleteCondition>return (wManager.Wow.Helpers.Usefuls.ContinentId != (int)wManager.Wow.Enums.ContinentId.StormwindJail);</IsCompleteCondition>
      <RepeatableQuest>false</RepeatableQuest>
      <NotRequiredInQuestLog>true</NotRequiredInQuestLog>
      <PickUpQuestOnItem>false</PickUpQuestOnItem>
      <PickUpQuestOnItemID></PickUpQuestOnItemID>
      <Comment />
      <GossipOptionRewardItem>1</GossipOptionRewardItem>
      <RequiredQuest></RequiredQuest>
      <MaxLevel>100</MaxLevel>
      <MinLevel></MinLevel>
      <WoWClass>None</WoWClass>
    </EasyQuest>
   </EasyQuests>
</EasyQuestProfile>

How ever, i am still in search of another way to make a IsCompletedCondition that can be used for dungeons where chests ain't the objective, but insted the objective is killing bosses / killing mobs. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...