Ejemplo n.º 1
0
        private static void NewFloor(EliteAPI api)
        {
            //Clear all points
            Functions.ClearZonePoints();

            //Save waypoint
            runeWP = Functions.GetNyzulWP(api);
            if (runeWP.title == "null")
            {
                Console.WriteLine("Error getting Nyzul WP."); return;
            }
            else
            {
                Functions.AddZonePoint(runeWP);
            }
            newFloor = false;
        }
Ejemplo n.º 2
0
        public static void TpTarget(EliteAPI api)
        {
            EliteAPI.TargetInfo t = api.Target.GetTargetInfo();
            string targetName     = t.TargetName;

            if (targetName.Length == 0)
            {
                Chat.SendEcho(api, "Target not selected.");
                return;
            }

            EliteAPI.XiEntity e  = api.Entity.GetEntity((int)t.TargetIndex);
            Structs.WarpPoint wp = new Structs.WarpPoint();
            Structs.Position  p  = new Structs.Position();
            p.X = e.X; p.Y = e.Z; p.Z = e.Y; wp.pos = p; wp.zone = api.Player.ZoneId;
            Chat.SendEcho(api, "Approaching " + targetName + ".");
            Player.Warp(api, wp);
        }