public GUnit FindNPC() { if (npcUnit == null || !npcUnit.IsValid) { npcUnit = GObjectList.FindUnit(NPC); } return(npcUnit); }
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); } }
private GUnit FindNPC() { return(GObjectList.FindUnit(NPC)); }