Ejemplo n.º 1
0
        private static void Main(string[] args)
        {
            FFXIVLIB instance = new FFXIVLIB();
            while (true)
                {
                    Entity currentTarget = instance.GetCurrentTarget();
                    Entity mouseoverTarget = instance.GetMouseoverTarget();
                    Entity myself = instance.GetEntityInfo(0);
                    if (currentTarget != null)
                        {
                        //Distance as represented in game
                            Console.WriteLine("Current target => {0} : {1}/{2} HP distance: {3} yalms",
                                              currentTarget.Name, currentTarget.CurrentHP,
                                              currentTarget.MaxHP, currentTarget.Distance);
                        }
                    if (mouseoverTarget != null)
                        {
                        //Distance calculated
                            Console.WriteLine("Mouseover target => {0} : {1}/{2} HP distance: {3} float",
                                              mouseoverTarget.Name, mouseoverTarget.CurrentHP,
                                              mouseoverTarget.MaxHP, mouseoverTarget.GetDistanceTo(myself));
                        }
                    Thread.Sleep(1000);
                }
// ReSharper disable once FunctionNeverReturns
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Changes current target to yourself.
 /// </summary>
 /// <param name="args"></param>
 private static void Main(string[] args)
 {
     FFXIVLIB instance = new FFXIVLIB();
     // Retrieve our own character
     Entity e = instance.GetEntityInfo(0);
     Target t = instance.GetTargets();
     t.Modify("CurrentTarget", (int) e.Address);
 }
Ejemplo n.º 3
0
 private static void Main(string[] args)
 {
     FFXIVLIB instance = new FFXIVLIB();
     // 0 is always your own character
     Entity e = instance.GetEntityInfo(0);
     Console.WriteLine("Changing icon to Yoshi-P for player {0}", e.Structure.Name);
     e.Modify("Icon", (byte) ICON.Yoshida);
     Console.WriteLine("Done..");
     Console.ReadLine();
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Quick program to test my navigation stuff
        /// http://www.ffevo.net/wiki/index.php/FFACETools
        /// Credits goes to cpirie
        /// </summary>
        /// <param name="args"></param>
        private static void Main(string[] args)
        {
            FFXIVLIB instance = new FFXIVLIB();
            Entity player = instance.GetEntityInfo(0);
            while (true)
                {
                    string sResult = "Heading: ";
                    double degrees = player.Structure.Heading*(180/Math.PI) + 180;
                    if (degrees > 360)
                        degrees -= 360;
                    else if (degrees < 0)
                        degrees += 360;
                    sResult += Math.Floor(degrees) + "° ";

                    if (337 < degrees || 23 >= degrees)
                        sResult += "(N)";
                    else if (23 < degrees && 68 >= degrees)
                        sResult += "(NW)";
                    else if (68 < degrees && 113 >= degrees)
                        sResult += "(W)";
                    else if (113 < degrees && 158 >= degrees)
                        sResult += "(SW)";
                    else if (158 < degrees && 203 >= degrees)
                        sResult += "(S)";
                    else if (203 < degrees && 248 >= degrees)
                        sResult += "(SE)";
                    else if (248 < degrees && 293 >= degrees)
                        sResult += "(E)";
                    else if (293 < degrees && 337 >= degrees)
                        sResult += "(NE)";
                    Console.WriteLine("Heading: {0} Deg: {1}, X: {2}, Y: {3}", player.Structure.Heading.ToString(),
                                      sResult, player.Structure.X.ToString(), player.Structure.Y.ToString());
                    player.Refresh();
                    Thread.Sleep(1000);
                }
// ReSharper disable once FunctionNeverReturns
        }