本文整理汇总了C#中Host.itemCount方法的典型用法代码示例。如果您正苦于以下问题:C# Host.itemCount方法的具体用法?C# Host.itemCount怎么用?C# Host.itemCount使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Host
的用法示例。
在下文中一共展示了Host.itemCount方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 (!checkQuestCompletedOrAccepted(1512))
return false;
if (!checkQuestCompletedOrAccepted(899))
return false;
if (!checkQuestCompletedOrAccepted(1510))
return false;
if (!checkQuestCompletedOrAccepted(1514))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Mahadevi_Mikki")) 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(18614.10, 9458.48, 40);
if (!zone.ObjInZone(host.me))
if (!host.movementModule.GpsMove("Quest_1511_1")) return false;
host.farmModule.SetFarmDoodads(zone, new uint[] { 6622, 6625 });
while (host.farmModule.farmState == Modules.FarmState.Doodads && quest.status == QuestStatus.Accepted)
{
if (host.itemCount(14394) > 0)
host.farmModule.SetFarmDoodads(zone, new uint[] { 6625 });
if (host.itemCount(17028) > 0)
host.farmModule.SetFarmDoodads(zone, new uint[] { 6622 });
Thread.Sleep(100);
}
host.farmModule.StopFarm();
Thread.Sleep(1000);
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Mahadevi_Mikki")) 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("Madadevi_Kakula")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest.status == QuestStatus.Accepted)
{
Zone zone = new RoundZone(20132.60, 8586.44, 40);
if (!host.movementModule.GpsMove("Quest_3454_1")) return false;
host.farmModule.SetFarmMobs(zone, new uint[] { 10153 });
while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.status == QuestStatus.Accepted && host.itemCount(21310) == 0)
Thread.Sleep(100);
host.farmModule.StopFarm();
Thread.Sleep(1000);
if (host.itemCount(21310) > 0)
{
if (!host.movementModule.GpsMove("Madadevi_Kakula")) return false;
Thread.Sleep(1000);
var c = getNearest();
if (c != null)
{
host.SetTarget(c);
Thread.Sleep(500);
host.UseItem(21310, true);
Thread.Sleep(1000);
}
}
}
if (quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Madadevi_Kakula")) 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("Headlands_Nessalam")) 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(17432.81, 8075.12, 50);
if (!host.movementModule.GpsMove("Quest_1679_1")) return false;
if (host.itemCount(14864) < 5)
{
host.farmModule.SetFarmMobs(zone, new uint[] { 2960 }, 15565);
while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.status == QuestStatus.Accepted && host.itemCount(14864) < 5)
Thread.Sleep(100);
host.farmModule.StopFarm();
Thread.Sleep(1000);
}
if (host.itemCount(14864) >= 5)
{
host.farmModule.SetFarmDoodads(zone, new uint[] { 7425 });
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("Headlands_Nessalam")) 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("Headlands_Asan")) 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.itemCount(19999) < 3)
{
if (!host.movementModule.GpsMove("Quest_3696_1")) return false;
Thread.Sleep(1000);
host.UseDoodadSkill(16451, host.getNearestDoodad(9911), true);
Thread.Sleep(1000);
}
if (host.itemCount(19999) >= 3)
{
Zone zone = new RoundZone(15768.11, 7830.50, 50);
if (!host.movementModule.GpsMove("Headlands_Asan")) return false;
Thread.Sleep(1000);
host.farmModule.SetFarmDoodads(zone, new uint[] { 9908 });
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("Headlands_Asan"))
return false;
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("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;
}
示例7: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null && host.itemCount(5148) > 0)
{
if (!host.movementModule.GpsMove("SingingLand_Dzao")) return false;
Thread.Sleep(1000);
host.UseItem(5148);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("SingingLand_Dzao")) 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("Mahadevi_Anatta")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest.status == QuestStatus.Accepted)
{
Zone zone = new RoundZone(18705.51, 8174.54, 10);
if (!host.movementModule.GpsMove("Mahadevi_Araham")) return false;
host.farmModule.SetFarmDoodads(zone, new uint[] { 14643 });
while (host.farmModule.farmState == Modules.FarmState.Doodads && quest.status == QuestStatus.Accepted)
{
if (host.farmModule.aggroMobsCount() == 0)
{
if (!host.movementModule.GpsMove("Mahadevi_Araham")) return false;
Thread.Sleep(1000);
var c = host.farmModule.GetNearestCreatureById(5213);
if (c != null)
{
host.SetTarget(c);
Thread.Sleep(1000);
host.UseItem(5206, true);
Thread.Sleep(1000);
}
}
Thread.Sleep(100);
if (host.itemCount(25737) > 0)
{
host.UseItem(25737, true);
Thread.Sleep(1000);
}
}
host.farmModule.StopFarm();
Thread.Sleep(1000);
}
if (quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Mahadevi_Anatta")) 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("Tiget_BlueSalt")) 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.itemCount(15659) < 1)
{
if (!host.movementModule.GpsMove("Tiger_BlueSaltWell")) return false;
Thread.Sleep(1000);
host.BuyItems(15659, 1);
Thread.Sleep(1000);
}
if (host.itemCount(15659) >= 1)
{
if (!host.movementModule.GpsMove("Tiger_BlueSaltFarm")) return false;
Thread.Sleep(1000);
RoundZone zone = new RoundZone(host.me.X, host.me.Y, 10);
host.PlantItemsInZone(15659, zone, 1);
Thread.Sleep(1000);
}
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Tiget_BlueSalt")) 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_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;
}
示例11: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Headlands_Tyrana")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompletedOrAccepted(783))
return false;
if (quest != null && quest.status == QuestStatus.Accepted)
{
Zone zone = new RoundZone(16325.24, 8139.72, 80);
if (!host.movementModule.GpsMove("Quest_3680_1"))
return false;
host.farmModule.SetFarmMobsFromDoodads(zone, new uint[] { 9888 }, new uint[] {9885 });
while ((host.farmModule.farmState == Modules.FarmState.DoodadsAndMobs || host.farmModule.farmState == Modules.FarmState.Enabled) && quest.status == QuestStatus.Accepted)
{
if (host.itemCount(19973) == 0)
host.farmModule.SetFarmMobs(zone, new uint[] { 9888 });
Thread.Sleep(100);
}
host.farmModule.StopFarm();
Thread.Sleep(1000);
}
if (!checkQuestCompletedOrPerfomed(783))
return false;
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Headlands_Tyrana"))
return false;
host.CompleteQuest(id, 3);
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("Ferre_Rarlag")) return false;
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest != null && quest.status == QuestStatus.Accepted)
{
if (!host.movementModule.GpsMove("Ferre_PlantFarm_1")) return false;
RoundZone zone = new RoundZone(host.me.X, host.me.Y, 10);
while (zone.ObjInZone(host.me) && host.itemCount(15694) < 3)
{
host.UseDoodadSkill(13154, host.getNearestDoodad(7348), true);
Thread.Sleep(1000);
}
if (host.itemCount(21847) > 0)
{
host.PlantItemsInZone(21847, zone, 1);
Thread.Sleep(2000);
}
if (getMyDoodadById(12403) != null)
{
host.UseDoodadSkill(18035, getMyDoodadById(12403), true);
Thread.Sleep(2000);
}
if (getMyDoodadById(12404) != null)
{
host.UseDoodadSkill(25961, getMyDoodadById(12404), true);
Thread.Sleep(32000);
}
if (getMyDoodadById(12408) != null)
{
host.UseDoodadSkill(18037, getMyDoodadById(12408), true);
Thread.Sleep(2000);
}
if (getMyDoodadById(12409) != null)
{
host.UseDoodadSkill(25962, getMyDoodadById(12409), true);
Thread.Sleep(32000);
}
if (getMyDoodadById(12413) != null)
{
host.UseDoodadSkill(17355, getMyDoodadById(12413), true);
Thread.Sleep(15000);
}
if (getMyDoodadById(12416) != null)
{
host.UseDoodadSkill(17387, getMyDoodadById(12416), true);
Thread.Sleep(3000);
}
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Ferre_Rarlag")) return false;
host.CompleteQuest(id);
Thread.Sleep(1000);
}
return true;
}