本文整理汇总了C#中Host.MoveTo方法的典型用法代码示例。如果您正苦于以下问题:C# Host.MoveTo方法的具体用法?C# Host.MoveTo怎么用?C# Host.MoveTo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Host
的用法示例。
在下文中一共展示了Host.MoveTo方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
var c = host.farmModule.GetNearestCreatureById(5214);
if (c != null && host.dist(c) < 5)
{
host.StartQuest(id);
Thread.Sleep(1000);
}
else
{
if (!host.movementModule.GpsMove("Mahadevi_Uruma")) return false;
Thread.Sleep(1000);
while (!host.UseDoodadSkill(12900, host.getNearestDoodad(2021), true))
Thread.Sleep(1000);
host.MoveTo(18711.22, 8892.30, 189.44);
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest.status == QuestStatus.Accepted)
{
var c = host.farmModule.GetNearestCreatureById(5214);
if (c != null && host.dist(c) < 5)
{
while (!host.UseDoodadSkill(12900, host.getNearestDoodad(2021), true))
Thread.Sleep(1000);
Thread.Sleep(500);
host.MoveTo(18712.79, 8883.50, 190.50);
}
else
{
if (!host.movementModule.GpsMove("Mahadevi_Uruma")) return false;
Thread.Sleep(1000);
while (!host.UseDoodadSkill(12900, host.getNearestDoodad(2021), true))
Thread.Sleep(1000);
Thread.Sleep(500);
host.MoveTo(18712.79, 8883.50, 190.50);
}
}
if (quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Mahadevi_Hadari")) return false;
Thread.Sleep(1000);
host.CompleteQuest(id);
Thread.Sleep(1000);
}
return true;
}
示例2: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Singland_Meiko")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest != null && quest.status == QuestStatus.Accepted)
{
if (!host.movementModule.GpsMove("Singland_Meiko")) return false;
Thread.Sleep(1000);
host.MoveTo(21461.33, 9761.68, 345.08);
Thread.Sleep(1000);
host.MoveTo(21455.35, 9756.89, 345.30);
Thread.Sleep(1000);
host.UseItemAndWait(5132);
Thread.Sleep(1000);
host.MoveTo(21460.55, 9747.88, 345.90);
Zone zone = new RoundZone(21457.87, 9762.08, 20);
host.farmModule.SetFarmMobs(zone, new uint[] { 5025 });
while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.status == QuestStatus.Accepted)
{
bool alive = false;
foreach (var c in host.getCreatures())
{
if (c.creatureId == 5025)
alive = true;
}
if (!alive)
break;
Thread.Sleep(100);
}
host.farmModule.StopFarm();
Thread.Sleep(1000);
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Singland_Meiko")) return false;
Thread.Sleep(1000);
host.CompleteQuest(id);
Thread.Sleep(1000);
}
return true;
}
示例3: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Headlands_Bashudi")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompleted(3646))
return false;
if (quest != null && quest.status == QuestStatus.Accepted)
{
if (!host.movementModule.GpsMove("Quest_950_1")) return false;
Thread.Sleep(1000);
host.MoveTo(17120.64, 8366.42, 192.6);
Thread.Sleep(700);
host.MoveTo(17124.54, 8354.99, 195.75);
Thread.Sleep(1000);
if (Math.Abs(host.me.Z - 195.74) < 0.5)
{
var m = host.farmModule.GetNearestCreatureById(3071);
if (m != null)
{
host.SetTarget(m);
Thread.Sleep(500);
host.UseItem(8166);
Thread.Sleep(500);
}
}
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Headlands_Bashudi")) return false;
Thread.Sleep(1000);
host.CompleteQuest(id);
Thread.Sleep(1000);
}
return true;
}
示例4: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Ferre_GrayVillage")) return false;
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest != null && quest.status == QuestStatus.Accepted)
{
if (!host.movementModule.GpsMove("FerreLvl7_5_1")) return false;
host.MoveTo(24014.37, 8641.81, 567.83);
Thread.Sleep(1000);
host.UseItem(19776, 24007.76, 8639.22, 567.93, true);
Thread.Sleep(25000);
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Ferre_GrayVillage")) return false;
host.CompleteQuest(id);
Thread.Sleep(1000);
}
return true;
}
示例5: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("OldForest_Xranitel")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest != null && quest.status == QuestStatus.Accepted)
{
if (!host.movementModule.GpsMove("Quest_1316_1")) return false;
Thread.Sleep(1000);
host.MoveTo(22828.28, 11711.28, 269.05);
Thread.Sleep(1000);
host.MoveTo(host.me.X + new Random().Next(0, 4), host.me.Y + new Random().Next(0, 4), host.me.Z);
Thread.Sleep(1000);
host.UseItemAndWait(14112);
Thread.Sleep(1000);
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("OldForest_Xranitel")) return false;
Thread.Sleep(1000);
host.CompleteQuest(id);
Thread.Sleep(1000);
}
return true;
}
示例6: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Headlands_Kapur")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest != null && quest.status == QuestStatus.Accepted)
{
if (!host.movementModule.GpsMove("Headlands_Kapur")) return false;
Thread.Sleep(1000);
host.MoveTo(16875.53, 7970.40, 155.71);
Thread.Sleep(1000);
host.MoveTo(16858.15, 7980.95, 161.86);
Thread.Sleep(500);
host.MoveTo(16856.05, 7976.75, 161.86);
Thread.Sleep(500);
host.Climb(host.getNearestDoodad(30));
Thread.Sleep(500);
host.ClimbUp();
Thread.Sleep(500);
host.UseDoodadSkill(16352, host.getNearestDoodad(9800), true);
Thread.Sleep(500);
host.Climb(host.getNearestDoodad(30));
Thread.Sleep(1500);
host.ClimbDown();
Thread.Sleep(1000);
host.MoveTo(16856.84, 7972.61, 161.86);
Thread.Sleep(500);
host.MoveTo(16857.90, 7982.02, 161.86);
Thread.Sleep(500);
host.MoveTo(16866.74, 7975.43, 157.69);
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Headlands_Kapur")) return false;
Thread.Sleep(1000);
host.CompleteQuest(id);
Thread.Sleep(1000);
}
return true;
}
示例7: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Mahadevi_Anatta")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompleted(880))
return false;
if (quest.status == QuestStatus.Accepted)
{
if (!host.movementModule.GpsMove("Mahadevi_Hadari")) return false;
Thread.Sleep(1000);
host.TalkWithQuestNpc(id);
Thread.Sleep(1000);
}
if (quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Mahadevi_Uruma")) return false;
Thread.Sleep(1000);
host.UseDoodadSkill(12900, host.getNearestDoodad(2021), true);
Thread.Sleep(1000);
host.MoveTo(18711.22, 8892.30, 189.44);
Thread.Sleep(1000);
host.CompleteQuest(id);
Thread.Sleep(1000);
}
return true;
}
示例8: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Signland_Ubein")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompletedOrPerfomed(839))
return false;
if (quest != null && quest.status == QuestStatus.Accepted)
{
if (!host.movementModule.GpsMove("Signland_Ubein")) return false;
Thread.Sleep(1000);
host.MoveTo(22485.66, 10684.09, 303.56);
Thread.Sleep(1000);
host.UseItemAndWait(5137);
Thread.Sleep(1000);
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Signland_Ubein")) return false;
Thread.Sleep(1000);
host.CompleteQuest(id);
Thread.Sleep(1000);
}
return true;
}
示例9: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Headlands_Hanun")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompletedOrPerfomed(1682))
return false;
if (!checkQuestCompletedOrAccepted(3699))
return false;
if (!checkQuestCompletedOrPerfomed(788))
return false;
if (quest != null && quest.status == QuestStatus.Accepted)
{
if (quest.steps[1] == 0)
{
Zone zone = new RoundZone(15049.03, 8130.22, 25);
if (!host.movementModule.GpsMove("Quest_793_1"))
return false;
host.farmModule.SetFarmMobs(zone, new uint[] { 2938 });
while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.steps[1] == 0)
Thread.Sleep(100);
host.farmModule.StopFarm();
Thread.Sleep(1000);
}
if (quest.steps[0] == 0)
{
if (!host.movementModule.GpsMove("Quest_793_2"))
return false;
Thread.Sleep(1000);
var c = host.getNearestDoodad(9478);
if (c == null)
return false;
host.Climb(c);
Thread.Sleep(1000);
host.ClimbUp();
Thread.Sleep(1500);
host.MoveTo(15088.83, 8176.32, 138.62);
Thread.Sleep(500);
host.MoveTo(15079.91, 8171.52, 140.02);
Thread.Sleep(500);
host.MoveTo(15070.03, 8172.57, 143.43);
Thread.Sleep(500);
Zone zone = new RoundZone(15070.35, 8173.15, 25);
host.farmModule.SetFarmMobs(zone, new uint[] { 2926 });
while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.steps[0] == 0)
Thread.Sleep(100);
host.farmModule.StopFarm();
Thread.Sleep(1000);
host.MoveTo(15070.03, 8172.57, 143.43);
Thread.Sleep(500);
host.MoveTo(15079.91, 8171.52, 140.02);
Thread.Sleep(500);
host.MoveTo(15088.83, 8176.32, 138.62);
Thread.Sleep(500);
host.MoveTo(15083.65, 8184.63, 138.44);
Thread.Sleep(500);
host.Climb(c);
Thread.Sleep(1000);
host.ClimbDown();
Thread.Sleep(1500);
}
}
if (!checkQuestCompletedOrPerfomed(1682))
return false;
if (!checkQuestCompletedOrPerfomed(3699))
return false;
if (!checkQuestCompletedOrPerfomed(788))
return false;
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Headlands_Hanun"))
return false;
host.CompleteQuest(id, 3);
Thread.Sleep(1000);
}
return true;
}
示例10: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (!checkQuestCompletedOrAccepted(3440))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Ferre_Murana")) return false;
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest != null && quest.status == QuestStatus.Accepted)
{
host.MoveTo(24033.92, 8824.24, 578.77);
host.MoveTo(24040.92, 8843.14, 580.27);
Thread.Sleep(500);
host.MoveTo(24043.73, 8842.14, 580.18);
Thread.Sleep(500);
host.MoveTo(24044.49, 8835.07, 582.29);
Thread.Sleep(500);
var door = host.getNearestDoodad(11163);
if (door != null && host.dist(door) < 3)
{
host.UseDoodadSkill(16828, door, true);
Thread.Sleep(1000);
}
host.MoveTo(24059.02, 8838.92, 582.32);
Thread.Sleep(500);
host.MoveTo(24056.78, 8842.97, 582.32);
host.MoveTo(24059.02, 8838.92, 582.32);
host.MoveTo(24048.03, 8835.72, 582.32);
Thread.Sleep(700);
host.MoveTo(24048.03, 8835.72, 582.32);
Thread.Sleep(700);
host.MoveTo(24059.02, 8838.92, 582.32);
Thread.Sleep(700);
host.MoveTo(24056.78, 8842.97, 582.32);
Thread.Sleep(700);
host.MoveTo(24059.02, 8838.92, 582.32);
Thread.Sleep(700);
host.MoveTo(24048.03, 8835.72, 582.32);
Thread.Sleep(700);
door = host.getNearestDoodad(11163);
if (door != null && host.dist(door) < 3)
{
host.UseDoodadSkill(16828, door, true);
Thread.Sleep(1000);
}
host.MoveTo(24044.49, 8835.07, 582.29);
Thread.Sleep(700);
host.MoveTo(24043.73, 8842.14, 580.18);
Thread.Sleep(500);
host.MoveTo(24040.92, 8843.14, 580.27);
Thread.Sleep(500);
host.MoveTo(24033.92, 8824.24, 578.77);
}
return true;
}
示例11: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Tiger_Tomiris")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest != null && quest.status == QuestStatus.Accepted)
{
if (!host.movementModule.GpsMove("Quest_2423_1")) return false;
Thread.Sleep(500);
host.MoveTo(21104.06, 8336.24, 378.12);
Thread.Sleep(500);
host.MoveTo(21106.08, 8321.13, 378.48);
Thread.Sleep(500);
host.MoveTo(21115.32, 8316.51, 378.81);
Thread.Sleep(1500);
TurnToCoords(21115.45, 8322.10);
host.MoveForward(true);
host.Jump(true);
while (host.me.Z < 380.65)
Thread.Sleep(10);
host.Jump(false);
host.MoveForward(false);
if (host.me.Z < 382.65)
{
TurnToCoords(21115.45, 8322.10);
host.MoveForward(true);
host.Jump(true);
while (host.me.Z < 382.65)
Thread.Sleep(10);
host.Jump(false);
host.MoveForward(false);
}
if (host.me.Z < 384.60)
{
TurnToCoords(21115.45, 8322.10);
host.MoveForward(true);
host.Jump(true);
while (host.me.Z < 384.60)
Thread.Sleep(10);
host.Jump(false);
host.MoveForward(false);
}
Thread.Sleep(1500);
TurnToCoords(21117.11, 8322.40);
host.MoveForward(true);
host.Jump(true);
while (host.me.Z < 386.31)
Thread.Sleep(10);
host.Jump(false);
host.MoveForward(false);
host.MoveTo(21122.40, 8324.45, 386.41);
Thread.Sleep(1000);
host.MoveTo(21121.95, 8327.67, 386.57);
host.MoveForward(true);
host.Jump(true);
Thread.Sleep(100);
host.Jump(false);
host.MoveForward(false);
host.MoveTo(21121.44, 8334.84, 387.37);
Thread.Sleep(1500);
//maybe need Teleport here?
host.UseDoodadSkill(14053, host.getNearestDoodad(6533), true);
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Tiger_Tomiris")) return false;
Thread.Sleep(1000);
host.CompleteQuest(id);
Thread.Sleep(1000);
}
return true;
}