mirror of
https://github.com/TechplexEngineer/plexview.git
synced 2026-07-28 06:22:14 +00:00
Initial commit
I wish I could figure out how to have PlexVie be out of the LibOMV tree but its just not working die to a DLL not found exception about libopenjpeg. (Yes the dll is in the bin folder) This will do for now
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using OpenMetaverse;
|
||||
|
||||
namespace PlexView
|
||||
{
|
||||
public class PlexView
|
||||
{
|
||||
public PlexView (string[] args)
|
||||
{
|
||||
GridClient client = new GridClient();
|
||||
client.Settings.LOGIN_SERVER = "http://login.osgrid.org/";
|
||||
if (client.Network.Login("", "", "", "FirstBot", "1.0"))
|
||||
{
|
||||
// Yay we made it! let's print out the message of the day
|
||||
Console.WriteLine("You have successfully logged into Second Life!\n The Message of the day is {0}\nPress any Key to Logout",
|
||||
client.Network.LoginMessage);
|
||||
|
||||
Console.ReadLine(); // Wait for user to press a key before we continue
|
||||
|
||||
client.Network.Logout(); // Lets logout since we're done here
|
||||
}
|
||||
else
|
||||
{
|
||||
// tell the user why the login failed
|
||||
Console.WriteLine("We were unable to login to Second Life, The Login Server said: {0}",
|
||||
client.Network.LoginMessage);
|
||||
}
|
||||
Console.WriteLine("Press Any Key to Exit");
|
||||
Console.ReadLine(); // Wait for user to press a key before we exit
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user