Jump to content

Recommended Posts

Greetings. Searching for the way of travel from Northrend to Eastern Kingdoms I found  theme, named as "Snippets codes for quest profiles". This theme is contains a sample of ship travel profile. I tried to modify it in proposed way, but there was nothing that I can do with result of modification. After ship is arrived, my character just flying away in opposite direction. I tryed to ask this question directly to autor of sample (Droidz), but I think he is ignoring me.

Hope someone will help me to edit this profile in appropriate way.

P.S. If reason of ignoring -  account that have no linked wrobot key, I can post same question from account with unlimited subscription ._.

Result of my modification: 

Spoiler

<?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="IcebreakerShipFromNorthrend" />
  </QuestsSorted>
  <NpcQuest />
  <Npc />
  <Blackspots />
  <BlackGuids />
  <EasyQuests>
    <EasyQuest>
      <Name>IcebreakerShipFromNorthrend</Name>
      <QuestId />
      <QuestType>OverridePulseCSharpCode</QuestType>
      <QuestClass xsi:type="OverridePulseCSharpCodeEasyQuestClass">
        <Code>// Sample of how to use Ship/Ship
// In this sample, WRobot catch Ship from Azeroth (Ogrimmard) to Northrend (Borean Tundra (Warsong Hold))

/* Quest settings:
    * Can condition: "return Usefuls.ContinentId == (int) ContinentId.Northrend;"
    * Is complete condition: "return Usefuls.ContinentId == (int) ContinentId.Azeroth &amp;&amp; !ObjectManager.Me.InTransport;"
    * Not required in quest log: "True"
    * Quest type: "OverridePulseCSharpCode"
*/

// You can get Ship/ship/player positions and entry ID in tab "Tools" &gt; "Development Tools" &gt; "Dump all informations" (or "Memory information").

// Settings:
var ShipEntryId = 190536; // Ship/Ship EntryId
// From
var fromShipWaitPosition = new Vector3(2218.391 , 5119.588 , 0.03153753 , "None"); // Position where Ship/Ship waits players (from)
var fromPlayerWaitPosition = new Vector3( 2230.306 , 5133.591 , 5.343804 , "None"); // Position where the player waits Ship/Ship (from)
var fromPlayerInShipPosition = new Vector3(2220.992 , 5119.885 , 9.513347, "None"); // Position where the player waits in the Ship/Ship (from)
// To
var toShipWaitPosition = new Vector3(-8288.816 , 1424.703 , 0.0116424); // Position where Zeppelin/Ship waits players (to)
var toPlayerLeavePosition = new Vector3(-8293.089, 1402.094, 4.430973, "None"); // Position to go out the Ship/Ship (to)

// Change WRobot settings:
wManager.wManagerSetting.CurrentSetting.CloseIfPlayerTeleported = false;

// Code:
if (!Conditions.InGameAndConnectedAndProductStartedNotInPause)
    return true;

if (Usefuls.ContinentId == (int)ContinentId.Northrend)
{
    if (!ObjectManager.Me.InTransport)
    {
        if (GoToTask.ToPosition(fromPlayerWaitPosition))
        {
            var Ship = ObjectManager.GetWoWGameObjectByEntry(ShipEntryId).OrderBy(o =&gt; o.GetDistance).FirstOrDefault();
            if (Ship != null &amp;&amp; Ship.Position.DistanceTo(fromShipWaitPosition) &lt; 1)
            {
                GoToTask.ToPosition(fromPlayerInShipPosition);
            }
        }
    }
}
else if (Usefuls.ContinentId == (int)ContinentId.Azeroth)
{
    if (ObjectManager.Me.InTransport)
    {
        var Ship = ObjectManager.GetWoWGameObjectByEntry(ShipEntryId).OrderBy(o =&gt; o.GetDistance).FirstOrDefault();
        if (Ship != null &amp;&amp; Ship.Position.DistanceTo(toShipWaitPosition) &lt; 1)
        {
            GoToTask.ToPosition(toPlayerLeavePosition);
        }
    }
}
return true;</Code>
      </QuestClass>
      <ObjectiveCount1>0</ObjectiveCount1>
      <ObjectiveCount2>0</ObjectiveCount2>
      <ObjectiveCount3>0</ObjectiveCount3>
      <ObjectiveCount4>0</ObjectiveCount4>
      <ObjectiveCount5>0</ObjectiveCount5>
      <ObjectiveCount6>0</ObjectiveCount6>
      <ObjectiveCount7>0</ObjectiveCount7>
      <ObjectiveCount8>0</ObjectiveCount8>
      <ObjectiveCount9>0</ObjectiveCount9>
      <ObjectiveCount10>0</ObjectiveCount10>
      <AutoDetectObjectiveCount1>false</AutoDetectObjectiveCount1>
      <AutoDetectObjectiveCount2>false</AutoDetectObjectiveCount2>
      <AutoDetectObjectiveCount3>false</AutoDetectObjectiveCount3>
      <AutoDetectObjectiveCount4>false</AutoDetectObjectiveCount4>
      <AutoDetectObjectiveCount5>false</AutoDetectObjectiveCount5>
      <AutoDetectObjectiveCount6>false</AutoDetectObjectiveCount6>
      <AutoDetectObjectiveCount7>false</AutoDetectObjectiveCount7>
      <AutoDetectObjectiveCount8>false</AutoDetectObjectiveCount8>
      <AutoDetectObjectiveCount9>false</AutoDetectObjectiveCount9>
      <AutoDetectObjectiveCount10>false</AutoDetectObjectiveCount10>
      <CanCondition>return Usefuls.ContinentId == (int) ContinentId.Northrend;</CanCondition>
      <IsCompleteCondition>return Usefuls.ContinentId == (int) ContinentId.Azeroth &amp;&amp; !ObjectManager.Me.InTransport;</IsCompleteCondition>
      <RepeatableQuest>false</RepeatableQuest>
      <NotRequiredInQuestLog>true</NotRequiredInQuestLog>
      <PickUpQuestOnItem>false</PickUpQuestOnItem>
      <PickUpQuestOnItemID>0</PickUpQuestOnItemID>
      <Comment />
      <GossipOptionRewardItem>1</GossipOptionRewardItem>
      <RequiredQuest>0</RequiredQuest>
      <MaxLevel>78</MaxLevel>
      <MinLevel>78</MinLevel>
      <WoWClass>None</WoWClass>
    </EasyQuest>
  </EasyQuests>
  <Script>
public class MyCustomScript
{
    static MyCustomScript()
    {
        // You can put here code to run when bot start, you can also add methods and classes.
    }
}
</Script>
  <OffMeshConnections />
</EasyQuestProfile>
  • 2 weeks later...
  • 2 weeks later...

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...