예제 #1
0
 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));
 }