本文整理汇总了C#中Host.Climb方法的典型用法代码示例。如果您正苦于以下问题:C# Host.Climb方法的具体用法?C# Host.Climb怎么用?C# Host.Climb使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Host
的用法示例。
在下文中一共展示了Host.Climb方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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;
}
示例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("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;
}