public static async Task InteractWithNpc(GCNpc npc) { if (Core.Me.GrandCompany == 0) { return; } var targetNpc = GameObjectManager.GetObjectByNPCId(NpcList[Core.Me.GrandCompany][npc]); if (targetNpc == null || !targetNpc.IsWithinInteractRange) { await GetToGCBase(); targetNpc = GameObjectManager.GetObjectByNPCId(NpcList[Core.Me.GrandCompany][npc]); } if (targetNpc == null) { return; } if (!targetNpc.IsWithinInteractRange) { await Navigation.OffMeshMoveInteract(targetNpc); } if (targetNpc.IsWithinInteractRange) { targetNpc.Interact(); } }
public static uint GetNpcByType(GCNpc npc) { return(NpcList[Core.Me.GrandCompany][npc]); }
public static uint GetNpcByType(GCNpc npc, GrandCompany grandCompany) { return(NpcList[grandCompany][npc]); }