I'm sorry - I don't understand what you're saying. What I am hoping to find is a script that works like the official Ultima Online servers. I was a Companion before they shut down the program. Being a Companion meant that every time a [Young] character entered the shard, a system message would appear. I could then jump to the new person or (I think) I could message them,.you can simply hook into the event for that
EventSink.Login += OnLogin;
using Server.Mobiles;
namespace Server.Custom.LoginMessage
{
public static class LoginMessage
{
public static void Configure()
{
EventSink.Login += OnLogin;
}
private static void OnLogin(LoginEventArgs e)
{
if (((PlayerMobile)e.Mobile).Young)
{
World.Broadcast(0, false, "A new adventurer has arrived. The name is " + e.Mobile.Name);
}
}
}
}
private static void OnLogin(LoginEventArgs e)
{
if (e.Mobile.Player)
{
PlayerMobile pm = e.Mobile as PlayerMobile;
if (pm !=null && pm.Young && (e.Mobile.AccessLevel == AccessLevel.Player) ) //broadcast for young players
{
World.Broadcast(0, false, "A new adventurer has arrived. The name is " + e.Mobile.Name);
}
}
}
using System;
using Server.Mobiles;
namespace Server.Custom.LoginMessage
{
public static class LoginMessage
{
public static void Configure()
{
EventSink.Login += OnLogin;
}
private static void OnLogin(LoginEventArgs e)
{
if (e.Mobile.Player)
{
PlayerMobile pm = e.Mobile as PlayerMobile;
if (pm !=null && pm.Young && (e.Mobile.AccessLevel == AccessLevel.Player) ) //broadcast for young players
{
World.Broadcast(0, false, "A new adventurer has arrived! Hail and well met " + e.Mobile.Name + "!");
}
if (pm !=null && (e.Mobile.AccessLevel == AccessLevel.Player) )
{
World.Broadcast(0, false, "Welcome back to our shard " + e.Mobile.Name + "!");
}
}
}
}
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.