本文整理汇总了C#中Host.dist方法的典型用法代码示例。如果您正苦于以下问题:C# Host.dist方法的具体用法?C# Host.dist怎么用?C# Host.dist使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Host
的用法示例。
在下文中一共展示了Host.dist方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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)
{
var c = host.farmModule.GetNearestCreatureById(3141);
if (c == null || (c != null && host.dist(c) > 3))
{
if (!host.movementModule.GpsMove("OldForest_Silvia")) return false;
Thread.Sleep(1000);
host.Climb(host.getNearestDoodad(30));
Thread.Sleep(1000);
host.ClimbUp();
Thread.Sleep(1000);
}
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompletedOrPerfomed(1314))
return false;
if (!checkQuestCompletedOrPerfomed(2559))
return false;
if (!checkQuestCompletedOrPerfomed(1329))
return false;
if (quest != null && quest.status == QuestStatus.Accepted)
{
Zone zone = new RoundZone(22829.75, 11723.96, 20);
if (!host.movementModule.GpsMove("Quest_1316_1"))
return false;
host.farmModule.SetFarmDoodads(zone, new uint[] { 2582 });
while (host.farmModule.farmState == Modules.FarmState.Doodads && quest.status == QuestStatus.Accepted)
Thread.Sleep(100);
host.farmModule.StopFarm();
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;
}
示例3: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Singland_Kan")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompletedOrAccepted(836))
return false;
if (quest != null && quest.status == QuestStatus.Accepted)
{
Zone zone = new RoundZone(21698.99, 10142.02, 50);
if (!host.movementModule.GpsMove("Quest_817_1"))
return false;
host.farmModule.SetFarmMobs(zone, new uint[] { 5009 });
while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.status == QuestStatus.Accepted)
{
var s = host.getNearestDoodad(1444);
if (s != null && host.dist(s) < 10)
{
host.farmModule.StopFarm();
host.UseDoodadSkill(11480, s, true);
host.farmModule.SetFarmMobs(zone, new uint[] { 5009 });
}
Thread.Sleep(100);
}
host.farmModule.StopFarm();
Thread.Sleep(1000);
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Singland_Kan"))
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("SigningLand_Siu")) return false;
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompletedOrPerfomed(3479))
return false;
if (quest != null && quest.status == QuestStatus.Accepted)
{
if (quest.steps[1] == 0)
{
if (!host.movementModule.GpsMove("Quest_806_1")) return false;
Thread.Sleep(1000);
host.UseDoodadSkill(13911, host.getNearestDoodad(1437), true);
Thread.Sleep(1000);
}
if (quest.steps[0] == 0)
{
if (!host.movementModule.GpsMove("Quest_806_2")) return false;
Thread.Sleep(1000);
var d = host.getNearestDoodad(2542);
if (d != null && host.dist(d) < 2)
{
host.UseDoodadSkill(13911, d, true);
Thread.Sleep(1000);
}
}
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("SigningLand_Siu")) return false;
Thread.Sleep(1000);
host.CompleteQuest(id);
Thread.Sleep(1000);
}
return true;
}
示例5: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (!checkQuestCompletedOrPerfomed(1111))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Mahadevi_Skajan")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompletedOrAccepted(2124))
return false;
if (quest.status == QuestStatus.Accepted)
{
if (!host.movementModule.GpsMove("Quest_2128_1")) return false;
Thread.Sleep(1000);
var d = host.getNearestDoodad(5940);
if (d != null && host.dist(d) < 5)
{
host.UseDoodadSkill(13839, d, true);
Thread.Sleep(13000);
}
}
if (!checkQuestCompletedOrPerfomed(2124))
return false;
if (quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Mahadevi_Skajan")) 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 (!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;
}