Simple console program that reads player position and other info:

using System;
using System.Threading;
using GwApiNET.Gw2PositionReader;

namespace GwPositionReader
{
    class Program
    {
        static void Main(string[] args)
        {
            Player p = Gw2PositionReaderApi.GetPlayerDataInstance();
            do
            {
                while (!Console.KeyAvailable)
                {
                    Console.Clear();
                    Console.WriteLine("Player Name: " + p.CharacterName);
                    Console.WriteLine("Profession: " + p.Profession);
                    Console.WriteLine("Is Commander: " + p.IsCommander);
                    Console.WriteLine("Team Color ID: " + p.TeamColor);
                    Console.WriteLine("World ID: " + p.WorldId);
                    Console.WriteLine("Server Address: " +
                        p.ServerAddress.Address.ToString());
                    Console.WriteLine("Map: " + p.MapId);
                    Console.WriteLine("X Position: " + p.AvatarPosition.X);
                    Console.WriteLine("Y Position: " + p.AvatarPosition.Y);
                    Console.WriteLine("Z Position: " + p.AvatarPosition.Z);
                    Thread.Sleep(50);
                }
            } while (Console.ReadKey(true).Key != ConsoleKey.Escape);
        }
    }
}

Last edited Aug 26, 2013 at 3:38 AM by prbarcelon, version 2

Comments

No comments yet.