コード例 #1
0
ファイル: NPCInteractTask.cs プロジェクト: ryancheung/PPather
 public GUnit FindNPC()
 {
     if (npcUnit == null || !npcUnit.IsValid)
     {
         npcUnit = GObjectList.FindUnit(NPC);
     }
     return(npcUnit);
 }
コード例 #2
0
        public void setMaintarget(ulong Guide)
        {
            PrioStruct prio = new PrioStruct();

            do
            {
                prio.Target = ObjectList.FindUnit(Guide);
                Thread.Sleep(10);
            } while (prio.Target == null);



            if (allowtargetmainstack || MainTargetList.Count == 0)
            {
                MainTargetList.Push(prio);
            }
            else
            {
                MainTargetList.Pop();
                MainTargetList.Push(prio);
            }
        }
コード例 #3
0
 private GUnit FindNPC()
 {
     return(GObjectList.FindUnit(NPC));
 }