Jump to content

Arcangelo

WRobot user
  • Posts

    472
  • Joined

  • Last visited

Posts posted by Arcangelo

  1. 1 hour ago, Bronson said:

    Droidz, your code "Catch Zeppelin/Ship" from the topic "Snippets codes for quest profiles" works well with the zeppelin, but doesn't work with the ship (Rut'theran Village to Stormwind). The profile gives an error with coordinates:

    "var fromShipWaitPosition = new Vector3(8162,587, 1005,365, -0,03771297); // Position where Zeppelin/Ship waits players (from)"

    "var toShipWaitPosition = new Vector3(-8644.726, 1341.569, 0,0184304); // Position where Zeppelin/Ship waits players (to)"

    and gives an error because of the third part of the coordinate "-0,03771297"/"0,0184304", as soon as I'm changing them to integer when standing on the ship, the code is working, but nothing happens =\  This wrong condition, I know, but the code does not work with the coordinates of the ship from "dump all informations" or "memory informations" new Vector3(8162,587, 1005,365, -0,03771297) in Rut'theran Village where ship waits players (from) or new Vector3(-8644.726, 1341.569, 0,0184304) in Stormwind where ship waits players (to).

    Ship to SW.xml

    "var fromShipWaitPosition = new Vector3(8162,587, 1005,365, -0,03771297); // Position where Zeppelin/Ship waits players (from)"

    "var toShipWaitPosition = new Vector3(-8644.726, 1341.569, 0,0184304); // Position where Zeppelin/Ship waits players (to)"

    see the diffence ? one is with . and the other is with , change both to . like

    (8162.587, 1005.365, -0.03771297);

    (-8644.726, 1341.569, 0.0184304);

    and you are good to go

  2. I diden't use the quest id - just had a return ObjectManager.Me.Position.DistanceTo2D(new Vector3(xxxxxxxxxxxxx)) < 1 in it to make sure i was in the right place.

     

    but thats not really the problem, then codes runs fine, it just don't have any idea when the elevation is there:

    it have the exact same distance, no matter where it is top/bottom/middle

     

    and i belive that have always been the problem - that the bot object.distance couden't detect the boats/zep/elevation and so on

  3. <?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="Pulse" NameClass="GoTo" />
        <QuestsSorted Action="If" NameClass="ObjectManager.Me.Position.DistanceTo2D( new Vector3(-1313.202, 181.7892, 68.55197, &quot;None&quot;) ) &lt; 1" />
        <QuestsSorted Action="None" NameClass="We are at the boarding point, to the Thunder Bluff Elevator!" />
        <QuestsSorted Action="RunCode" NameClass="// Wait for the Elevator &#xD;&#xA;&#xD;&#xA;if (ObjectManager.GetWoWGameObjectByyId(4171).FirstOrDefault().GetDistance &lt;= 5) {&#xD;&#xA;  Logging.Write(&quot;[Quester] Elevator is already here - waiting for the next one, to make sure boarding will not fail&quot;);&#xD;&#xA;}&#xD;&#xA;while (ObjectManager.GetWoWGameObjectByyId(4171).FirstOrDefault().GetDistance &lt;= 5) {Thread.Sleep(500);};&#xD;&#xA;&#xD;&#xA;Logging.Write(&quot;[Quester] Wait for Elevator&quot;);&#xD;&#xA;while (ObjectManager.GetWoWGameObjectByyId(4171).FirstOrDefault().GetDistance &gt; 5) {Thread.Sleep(500);};" />
        <QuestsSorted Action="RunCode" NameClass="// Enter the Elevator &#xD;&#xA;&#xD;&#xA;Logging.Write(&quot;[Quester] Will enter the Elevator in 10 second&quot;);&#xD;&#xA;Thread.Sleep(10000);{ wManager.Wow.Helpers.Move.Forward(Move.MoveAction.PressKey, 800); }" />
        <QuestsSorted Action="None" NameClass="We are on the Thunder Bluff Elevator!&#xD;&#xA;" />
        <QuestsSorted Action="RunLuaCode" NameClass="TurnRightStart();" />
        <QuestsSorted Action="Wait" NameClass="350" />
        <QuestsSorted Action="RunLuaCode" NameClass="TurnRightStop();" />
        <QuestsSorted Action="RunCode" NameClass="// Leave the Elevator&#xD;&#xA;&#xD;&#xA;Logging.Write(&quot;[Quester] Will leave the Elevator in 1 seconds&quot;);&#xD;&#xA;Thread.Sleep(10000);{ wManager.Wow.Helpers.Move.Forward(Move.MoveAction.PressKey, 1200); }" />
        <QuestsSorted Action="EndIf" NameClass="" />
      </QuestsSorted>
      <NpcQuest />
      <Npc />
      <Blackspots />
      <BlackGuids />
      <EasyQuests>
        <EasyQuest>
          <Name>GoTo</Name>
          <QuestId>
            <int>99</int>
          </QuestId>
          <QuestType>FollowPath</QuestType>
          <QuestClass xsi:type="FollowPathEasyQuestClass">
            <Path>
              <Vector3 X="-1313.525" Y="182.4907" Z="68.55195" />
            </Path>
            <IsCompleteWhenAtLastPath>false</IsCompleteWhenAtLastPath>
            <ForceToStartFirstPosition>false</ForceToStartFirstPosition>
            <IsHotSpots>true</IsHotSpots>
            <IsLoop>false</IsLoop>
          </QuestClass>
          <ObjectiveCount1>0</ObjectiveCount1>
          <ObjectiveCount2>0</ObjectiveCount2>
          <ObjectiveCount3>0</ObjectiveCount3>
          <ObjectiveCount4>0</ObjectiveCount4>
          <ObjectiveCount5>0</ObjectiveCount5>
          <AutoDetectObjectiveCount1>true</AutoDetectObjectiveCount1>
          <AutoDetectObjectiveCount2>false</AutoDetectObjectiveCount2>
          <AutoDetectObjectiveCount3>false</AutoDetectObjectiveCount3>
          <AutoDetectObjectiveCount4>false</AutoDetectObjectiveCount4>
          <AutoDetectObjectiveCount5>false</AutoDetectObjectiveCount5>
          <CanCondition />
          <IsCompleteCondition>return ObjectManager.Me.Position.DistanceTo2D(new Vector3(-1313.525, 182.4907, 68.55195, "None")) &lt; 1;</IsCompleteCondition>
          <RepeatableQuest>false</RepeatableQuest>
          <NotRequiredInQuestLog>false</NotRequiredInQuestLog>
          <PickUpQuestOnItem>false</PickUpQuestOnItem>
          <PickUpQuestOnItemID>0</PickUpQuestOnItemID>
          <Comment />
          <GossipOptionRewardItem>1</GossipOptionRewardItem>
          <RequiredQuest>0</RequiredQuest>
          <MaxLevel>100</MaxLevel>
          <MinLevel>0</MinLevel>
          <WoWClass>None</WoWClass>
        </EasyQuest>
      </EasyQuests>
    </EasyQuestProfile>

     

    TurnRightStop(); dosent seems to work in vanilla as well :/

  4. 7 minutes ago, Runaro said:

    If you wouldn't have removed me from skype, maybe. :biggrin:

    No need for a "free" profile, since i have my own profiles, but thanks for the offer.

    That being said, i'll not share the full code, because i use it by myself and don't want that a bunch of other people use it too. ( currently fully automating my profile, that's why i created for all Zeppelins, Ships and Elevators profiles )

    But, i can send you the profile, with the checks, sleeps and movement behaviour examples. ( coordinates will get removed )

    Sure.

    It's nothing personal, I've removed like 50 people on Skype I dident talk to, as people was starting to send virus links xD 

    But I'll be happy to take the profile with the steps.

  5. 49 minutes ago, Runaro said:

    Meh, i haven't even used NPC's to move on the Zeppelins, Ships and Elevators.

    I just use lua to move on them.http://wowprogramming.com/docs/api_categories#movement ( thanks iMod for this idea )

    okay fair enough - i would be very happy if you could share that code with me so i could use it in the questing profiles - credit would ofc be made :-)
    As that would make the profiles so much more user frindly.

    I would ofc credit you with a free profile when it is done , as thanks for the time saved :-)

  6. 12 minutes ago, Runaro said:

    Here's an demonstration, how the bot can manage to use the elevator of Thunder Bluff. ( i was bored, so i created a profile for it :biggrin: )

    Took 15 minutes to create, on the base of Stauffenberg's ship profile.

     

    Dude I'm well are about how it works xD

    Would just be annoying to make it again and again and again for every city in the questing profiles :)

  7. Trying to delete some quest from logs with the code:

     

    local questId = xxxxx;
    for i=1,GetNumQuestLogEntries() do
     local _, _, _, _, _, _, _, id = GetQuestLogTitle(i);
     if id == questId then
      SelectQuestLogEntry(i);
      SetAbandonQuest();
      AbandonQuest();
     end
    end

    But it dosen't seems to work in the vanilla version :/ any ideas ?

×
×
  • Create New...