本文整理汇总了C#中Host.getBuff方法的典型用法代码示例。如果您正苦于以下问题:C# Host.getBuff方法的具体用法?C# Host.getBuff怎么用?C# Host.getBuff使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Host
的用法示例。
在下文中一共展示了Host.getBuff方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Singland_Leisan")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompleted(1415))
return false;
if (quest != null && quest.status == QuestStatus.Accepted)
{
if (!host.movementModule.GpsMove("Quest_963_1")) return false;
Thread.Sleep(1000);
Zone zone = new RoundZone(22852.91, 10853.25,9);
if (host.itemCount(5140) < 3)
{
host.farmModule.SetFarmMobs(zone, new uint[] { 5019 }, 5142);
while (host.me.isAlive() && quest.status == QuestStatus.Accepted && host.itemCount(5140) < 3)
Thread.Sleep(100);
host.farmModule.StopFarm();
}
if (host.itemCount(5140) >= 3)
{
while (host.me.isAlive() && quest.status == QuestStatus.Accepted && host.itemCount(5140) > 0)
{
var c = host.farmModule.GetNearestCreatureById(5072);
if (c != null && zone.ObjInZone(c) && host.getBuff(c,1439) != null)
{
host.SetTarget(c);
Thread.Sleep(500);
host.UseItem(5140);
}
Thread.Sleep(100);
}
}
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Singland_Leisan"))
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_Kereh")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompleted(825))
return false;
if (quest != null && quest.status == QuestStatus.Accepted)
{
if (!host.movementModule.GpsMove("Quest_1856_1")) return false;
Thread.Sleep(1000);
Zone zone = new RoundZone(22443.35, 9969.25, 15);
while (host.isAlive() && quest.status == QuestStatus.Accepted)
{
var c = host.farmModule.GetNearestCreatureById(7278);
if (c != null && zone.ObjInZone(c) && host.getBuff(c,1441) != null)
{
host.SetTarget(c);
Thread.Sleep(500);
host.UseItemAndWait(5215);
Thread.Sleep(500);
}
Thread.Sleep(100);
}
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Singland_Kereh")) return false;
Thread.Sleep(1000);
host.CompleteQuest(id);
Thread.Sleep(1000);
}
return true;
}