--> Fixed a bug preventing SoT not being spawned in Malas champion spawns (i.e. Bedlam Crypt) (http://www.uodemise.com/discussion/showthread.php?t=135520) - Added contextual menu entries to add players in party, and kicking them from house (friends can be kicked if in ML environment). Timeout to accept party invite is increased to 30 seconds as per OSI (http://www.uodemise.com/discussion/showthread.php?t=120724) - Runebeetles can be angered during taming attempts (http://www.uodemise.com/discussion/showthread.php?t=137677) - You can cook near forges (http://www.uodemise.com/discussion/showthread.php?t=137731)
31 lines
681 B
C#
31 lines
681 B
C#
using System;
|
|
using Server.Mobiles;
|
|
using Server.Multis;
|
|
|
|
namespace Server.ContextMenus
|
|
{
|
|
public class EjectPlayerEntry : ContextMenuEntry
|
|
{
|
|
private Mobile m_From;
|
|
private Mobile m_Target;
|
|
private BaseHouse m_TargetHouse;
|
|
|
|
public EjectPlayerEntry( Mobile from, Mobile target ) : base( 6206, 12 )
|
|
{
|
|
m_From = from;
|
|
m_Target = target;
|
|
m_TargetHouse = BaseHouse.FindHouseAt( m_Target );
|
|
}
|
|
|
|
public override void OnClick()
|
|
{
|
|
if ( !m_From.Alive || m_TargetHouse.Deleted || !m_TargetHouse.IsFriend( m_From ) )
|
|
return;
|
|
|
|
if ( m_Target is Mobile )
|
|
{
|
|
m_TargetHouse.Kick( m_From, (Mobile)m_Target );
|
|
}
|
|
}
|
|
}
|
|
}
|