本文整理汇总了C#中Host.SetTarget方法的典型用法代码示例。如果您正苦于以下问题:C# Host.SetTarget方法的具体用法?C# Host.SetTarget怎么用?C# Host.SetTarget使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Host
的用法示例。
在下文中一共展示了Host.SetTarget方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
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)
{
if (!host.movementModule.GpsMove("Mahadevi_Mikki")) return false;
Thread.Sleep(1000);
var c = host.farmModule.GetNearestCreatureById(2640);
if (c != null)
{
host.SetTarget(c);
Thread.Sleep(500);
host.UseItem(14393, true);
Thread.Sleep(500);
}
}
return true;
}
示例2: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Tiger_Ubari")) 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(21043.37, 8748.22, 100);
if (!zone.ObjInZone(host.me))
if (!host.movementModule.GpsMove("Quest_1107_1")) return false;
while (host.me.isAlive() && quest.status == QuestStatus.Accepted)
{
if (host.farmModule.aggroMobsCount() == 0)
{
var m = getNearestMob(zone);
if (m != null)
{
host.SetTarget(m);
Thread.Sleep(1000);
host.UseItem(14579, true);
Thread.Sleep(2500);
}
Thread.Sleep(1000);
host.UseDoodadSkill(12052, host.getNearestDoodad(3075), true);
}
else
{
host.farmModule.SetFarmMobs(zone, new uint[] { 3366 });
while (host.me.isAlive() && host.farmModule.aggroMobsCount() > 0)
Thread.Sleep(1000);
host.farmModule.StopFarm();
}
Thread.Sleep(1000);
}
Thread.Sleep(1000);
}
if (quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Tiger_Ubari")) 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("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;
}
示例4: 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;
}
示例5: 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;
}
示例6: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Tiger_Ubari")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompletedOrAccepted(1095))
return false;
if (quest.status == QuestStatus.Accepted)
{
if (!host.movementModule.GpsMove("Quest_1110_1")) return false;
Thread.Sleep(1000);
while (quest.status == QuestStatus.Accepted && host.me.isAlive())
{
var m = getNearestMob();
if (m != null)
{
host.SetTarget(m);
Thread.Sleep(700);
host.UseItem(13971, true);
Thread.Sleep(1000);
host.UseDoodadSkill(13144, host.getNearestDoodad(2613), true);
Thread.Sleep(1000);
}
}
}
if (!checkQuestCompletedOrPerfomed(1095))
return false;
if (quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Tiger_Ubari")) 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("Headlands_Bashudi")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompleted(3646))
return false;
if (quest != null && quest.status == QuestStatus.Accepted)
{
if (!host.movementModule.GpsMove("Quest_950_1")) return false;
Thread.Sleep(1000);
host.MoveTo(17120.64, 8366.42, 192.6);
Thread.Sleep(700);
host.MoveTo(17124.54, 8354.99, 195.75);
Thread.Sleep(1000);
if (Math.Abs(host.me.Z - 195.74) < 0.5)
{
var m = host.farmModule.GetNearestCreatureById(3071);
if (m != null)
{
host.SetTarget(m);
Thread.Sleep(500);
host.UseItem(8166);
Thread.Sleep(500);
}
}
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Headlands_Bashudi")) 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("Tiger_Suryan")) 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_1092_1")) return false;
Thread.Sleep(1000);
Zone zone = new RoundZone(21312.21, 8676.53, 70);
while (quest.status == QuestStatus.Accepted && host.me.isAlive())
{
var m = getNearestMob(zone);
if (m != null)
{
host.SetTarget(m);
Thread.Sleep(500);
host.UseItem(13965, true);
Thread.Sleep(1000);
while (host.me.isAlive() && host.farmModule.aggroMobsCount() > 0)
Thread.Sleep(100);
Thread.Sleep(4000);
host.TalkWithQuestNpc(id);
}
}
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Tiger_Suryan")) 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("Tiger_CypressMember")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompletedOrAccepted(1076))
return false;
if (!checkQuestCompletedOrAccepted(3449))
return false;
if (!checkQuestCompletedOrAccepted(3447))
return false;
if (quest != null && quest.status == QuestStatus.Accepted)
{
if (!host.movementModule.GpsMove("Quest_1071_1")) return false;
Thread.Sleep(1000);
var m = getNearestMob();
if (m != null)
{
host.SetTarget(m);
Thread.Sleep(700);
host.UseItem(13935, true);
}
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Tiger_CypressMember")) 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("Mahadevi_Kamona")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompletedOrPerfomed(2896))
return false;
if (quest.status == QuestStatus.Accepted)
{
if (!host.movementModule.GpsMove("Mahadevi_Armah")) return false;
Thread.Sleep(1000);
var c = getNearest();
if (c != null)
{
host.SetTarget(c);
Thread.Sleep(500);
host.UseSkill(14486);
host.ExpressEmotion(0x22);
Thread.Sleep(1000);
}
}
if (quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Mahadevi_Valdomero")) 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("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;
}
示例13: 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;
}
示例14: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Tiger_ScrapDealer")) 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("Tiger_ScrapDealer")) return false;
Thread.Sleep(1000);
var m = getNearestMob();
if (m != null)
{
host.SetTarget(m);
Thread.Sleep(1000);
host.UseItem(13956, true);
Thread.Sleep(1000);
}
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Tiger_ScrapDealer")) 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.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;
}