本文整理汇总了C#中Host.getCreatures方法的典型用法代码示例。如果您正苦于以下问题:C# Host.getCreatures方法的具体用法?C# Host.getCreatures怎么用?C# Host.getCreatures使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Host
的用法示例。
在下文中一共展示了Host.getCreatures方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Ferre_Sheodar")) return false;
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompletedOrPerfomed(1366))
return false;
if (!checkQuestCompletedOrPerfomed(1367))
return false;
if (quest != null && quest.status == QuestStatus.Accepted)
{
Zone zone = new RoundZone(23875.12, 9346.01, 50);
if (!zone.ObjInZone(host.me))
if (!host.movementModule.GpsMove("FerreLvl8_10_1")) return false;
host.farmModule.SetFarmDoodads(zone, new uint[] { 6453 }, 3);
while (host.farmModule.farmState == Modules.FarmState.Doodads && quest.status == QuestStatus.Accepted)
Thread.Sleep(100);
host.farmModule.StopFarm();
Thread.Sleep(1000);
double dist = 999999;
Creature t = null;
foreach (var c in host.getCreatures())
{
if (c.creatureId == 11120 && host.isAlive(c) && host.me.dist(c) < dist)
{
dist = host.me.dist(c);
t = c;
}
}
if (t != null)
host.StartQuest(1413);
}
if (!checkQuestCompletedOrPerfomed(1366))
return false;
if (!checkQuestCompletedOrPerfomed(1367))
return false;
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Ferre_Sheodar")) return false;
host.CompleteQuest(id, 2);
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;
}