本文整理汇总了C#中Host.UseItemAndWait方法的典型用法代码示例。如果您正苦于以下问题:C# Host.UseItemAndWait方法的具体用法?C# Host.UseItemAndWait怎么用?C# Host.UseItemAndWait使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Host
的用法示例。
在下文中一共展示了Host.UseItemAndWait方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("OldForest_BenAdjara")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompletedOrPerfomed(3483))
return false;
if (quest != null && quest.status == QuestStatus.Accepted)
{
if (!host.movementModule.GpsMove("Quest_1491_1")) return false;
Thread.Sleep(1000);
host.UseItemAndWait(14318);
Thread.Sleep(1000);
host.UseItemAndWait(14319);
Thread.Sleep(2000);
host.TalkWithQuestNpc(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("OldForest_Olderton")) 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_1315_1")) return false;
Thread.Sleep(1000);
while (host.itemCount(14102) > 0)
{
host.UseItemAndWait(14102);
Thread.Sleep(1000);
}
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("OldForest_Olderton")) 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("OldForest_Desmart"))
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_2907_1"))
return false;
Thread.Sleep(1000);
host.UseItemAndWait(18478);
Thread.Sleep(1000);
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("OldForest_Desmart")) 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("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;
}
示例5: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("OldForest_Verjin"))
return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest != null && quest.status == QuestStatus.Accepted)
{
host.UseItemAndWait(14321);
Thread.Sleep(500);
host.UseItemAndWait(14403);
Thread.Sleep(500);
host.UseItemAndWait(23620);
Thread.Sleep(500);
if (!host.movementModule.GpsMove("Quest_1492_1"))
return false;
Thread.Sleep(1000);
host.UseDoodadSkill(13694, host.getNearestDoodad(3203), true);
Thread.Sleep(1000);
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("OldForest_Verjin")) 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("Quest_1464_1")) 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_Maeko")) return false;
Thread.Sleep(1000);
var c = host.farmModule.GetNearestCreatureById(5071);
if (c != null)
{
host.SetTarget(c);
Thread.Sleep(500);
host.UseItemAndWait(5129);
Thread.Sleep(500);
host.UseItemAndWait(14311);
}
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Quest_1464_1")) 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("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;
}
示例8: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("OldForest_BenAdjara")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest != null && quest.status == QuestStatus.Accepted)
{
Zone zone = new RoundZone(23196.79, 11682.01, 30);
if (!host.movementModule.GpsMove("Quest_1490_1"))
return false;
host.UseDoodadSkill(13693, host.getNearestDoodad(5462), true);
Thread.Sleep(1000);
host.UseDoodadSkill(13693, host.getNearestDoodad(2511), true);
Thread.Sleep(1000);
host.UseDoodadSkill(13693, host.getNearestDoodad(5465), true);
Thread.Sleep(1000);
if (host.itemCount(14527) > 0 && host.itemCount(14528) > 0 && host.itemCount(14317) > 0)
host.UseItemAndWait(14527);
Thread.Sleep(1000);
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("OldForest_BenAdjara")) 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("OldForest_Reiberk")) 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("OldForext_Kevin")) return false;
Thread.Sleep(1000);
var c = host.farmModule.GetNearestCreatureById(3329);
if (c != null)
{
host.SetTarget(c);
Thread.Sleep(500);
host.UseItemAndWait(15884);
Thread.Sleep(2500);
host.TalkWithQuestNpc(id);
}
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("OldForest_Reiberk")) return false;
Thread.Sleep(1000);
host.CompleteQuest(id);
Thread.Sleep(1000);
}
return true;
}
示例10: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("OldForest_Djonatan"))
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("OldForest_Djonatan")) return false;
Thread.Sleep(1000);
var c = host.farmModule.GetNearestCreatureById(3315);
if (c != null)
{
host.SetTarget(c);
Thread.Sleep(500);
host.UseItemAndWait(18428);
Thread.Sleep(2000);
Zone zone = new RoundZone(24057.10, 11471.73, 10);
host.farmModule.SetFarmMobs(zone, new uint[] { 3315 });
while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.status == QuestStatus.Accepted && host.farmModule.aggroMobsCount() > 0)
Thread.Sleep(100);
host.farmModule.StopFarm();
}
}
return true;
}
示例11: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Singland_Ria")) 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_821_1")) return false;
Thread.Sleep(1000);
for (int i = 0; i < 3; i++)
{
host.UseItemAndWait(5130);
Thread.Sleep(1000);
}
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Singland_Ria")) return false;
Thread.Sleep(1000);
host.CompleteQuest(id);
Thread.Sleep(1000);
}
return true;
}
示例12: 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;
}
示例13: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Ferre_MaraAvaran"))
return false;
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest != null && quest.status == QuestStatus.Accepted)
{
host.farmModule.StopFarm();
Zone zone = new RoundZone(24123.30, 9981.14, 10);
if (!zone.ObjInZone(host.me))
if (!host.movementModule.GpsMove("FerreLvl4_2_1"))
return false;
host.UseItemAndWait(14045);
Thread.Sleep(2000);
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Ferre_MaraAvaran"))
return false;
host.CompleteQuest(id);
Thread.Sleep(1000);
}
return true;
}
示例14: 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;
}
示例15: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (host.itemCount(5149) > 0)
host.UseItemAndWait(5149);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Singland_Ria")) return false;
Thread.Sleep(1000);
host.CompleteQuest(id);
Thread.Sleep(1000);
}
return true;
}