本文整理汇总了C#中Host.PlantItemsInZone方法的典型用法代码示例。如果您正苦于以下问题:C# Host.PlantItemsInZone方法的具体用法?C# Host.PlantItemsInZone怎么用?C# Host.PlantItemsInZone使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Host
的用法示例。
在下文中一共展示了Host.PlantItemsInZone方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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;
}
示例2: 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);
if (quest.steps[0] == 0)
{
host.PlantItemsInZone(23635, zone, 1);
Thread.Sleep(35000);
}
else if (quest.steps[0] == 1)
{
if (getMyDoodadById(11307) != null)
{
host.UseDoodadSkill(17752, getMyDoodadById(11307), true);
}
Thread.Sleep(3000);
}
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Ferre_Rarlag")) return false;
host.CompleteQuest(id, 1);
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("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;
}