本文整理汇总了C#中Host类的典型用法代码示例。如果您正苦于以下问题:C# Host类的具体用法?C# Host怎么用?C# Host使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Host类属于命名空间,在下文中一共展示了Host类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Tiger_Ruharon")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest != null && quest.status == QuestStatus.Accepted)
{
var d = host.getNearestDoodad(2263);
if (d != null)
{
host.ComeTo(d, 3);
host.UseDoodadSkill(11949, d, true);
}
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Tiger_Ruharon")) return false;
Thread.Sleep(1000);
host.CompleteQuest(id, 1);
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_Henta")) 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("FerreLvl7_3_1")) return false;
Thread.Sleep(1000);
host.UseDoodadSkill(17963, host.getNearestDoodad(12120), true);
Thread.Sleep(1000);
}
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Ferre_Henta")) 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 (!checkQuestCompletedOrAccepted(943))
return false;
if (!checkQuestCompletedOrAccepted(942))
return false;
if (!checkQuestCompletedOrAccepted(951))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Headlands_Archealogy")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Headlands_Sidur")) 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_Tarmillon")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
if (!checkQuestCompletedOrAccepted(1504))
return false;
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest != null && quest.status == QuestStatus.Accepted)
{
Zone zone = new RoundZone(18731.94, 7683.06, 80);
if (!zone.ObjInZone(host.me))
if (!host.movementModule.GpsMove("Quest_2902_1")) return false;
host.farmModule.SetFarmMobs(zone, new uint[] { 2510 });
while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.status == QuestStatus.Accepted)
Thread.Sleep(100);
host.farmModule.StopFarm();
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("SigningLand_Siu")) return false;
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!(checkQuestCompleted(849) || checkQuestCompleted(811)))
return false;
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Singland_Xenshei")) 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("Ferre_GrayVillage"))
return false;
host.StartQuest(id);
Thread.Sleep(1000);
}
if (!checkQuestCompleted(1301))
return false;
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Ferre_Shoihota"))
return false;
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("Tiger_Kajahr")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompletedOrAccepted(3452))
return false;
if (quest != null && quest.status == QuestStatus.Accepted)
{
if (!host.movementModule.GpsMove("Tiger_Ashrei_1")) return false;
Thread.Sleep(1000);
host.TalkWithQuestNpc(id);
Thread.Sleep(1000);
if (!host.movementModule.GpsMove("Tiger_Ochibarr")) return false;
Thread.Sleep(1000);
host.TalkWithQuestNpc(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_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;
}
示例9: PopulateGrid
protected void PopulateGrid()
{
Host host = new Host();
gvHosts.DataSource = host.Search(txtSearchHosts.Text);
gvHosts.DataBind();
lblTotal.Text = gvHosts.Rows.Count.ToString() + " Result(s) / " + host.GetTotalCount() + " Total Host(s)";
}
示例10: TemRangeData
public TemRangeData(Host.TC.TEMDeviceWrapper dev,object data)
{
this.eventData = data;
this.dev=dev;
this.m_alarm_type = AlarmType.TUNNEL;
if (data is RemoteInterface.TEM.AirAlarmData)
this.m_class = 52;
else if (data is RemoteInterface.TEM.FireAlarmData)
this.m_class = 60;
else if (data is RemoteInterface.TEM.LightAlarmData)
this.m_class = 53;
else if (data is RemoteInterface.TEM.PowerAlarmData)
this.m_class = 54;
else if (data is RemoteInterface.TEM.SecurityAlarmData)
this.m_class = 76;
else if (data is RemoteInterface.TEM.MonitorAlarmData)
this.m_class = 77;
else
throw new Exception("unknown TemEventData!");
this.m_eventmode = Global.getEventMode(this.m_class);
try
{
this.EventId = Global.getEventId();
}
catch
{
this.m_eventmode = EventMode.DontCare;
}
}
示例11: 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;
}
示例12: RunQuest
public override bool RunQuest(Host host)
{
if (!base.RunQuest(host))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Mahadevi_Chetin")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompleted(3312))
return false;
if (!checkQuestCompleted(3313))
return false;
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("Headlands_Hamed")) 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 (!checkQuestCompletedOrAccepted(1237))
return false;
if (!checkQuestCompletedOrAccepted(3442))
return false;
if (getQuest() == null)
{
if (!host.movementModule.GpsMove("Ferre_Doska_2")) 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("FerreLvl10_7_1")) return false;
Zone zone = new RoundZone(22861.85, 9037.23, 80);
host.farmModule.SetFarmMobs(zone, new uint[] { 4198 });
while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.status == QuestStatus.Accepted)
Thread.Sleep(100);
host.farmModule.StopFarm();
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("Singland_Syan")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (quest != null && quest.status == QuestStatus.Performed)
{
if (!host.movementModule.GpsMove("OldForest_Andersen")) 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("Singland_Fay")) return false;
Thread.Sleep(1000);
host.StartQuest(id);
Thread.Sleep(1000);
}
ArcheBuddy.Bot.Classes.Quest quest = getQuest();
if (!checkQuestCompletedOrPerfomed(838))
return false;
if (!checkQuestCompletedOrPerfomed(837))
return false;
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;
}