- Kasa of the Raj-in is now blessable with a Clothing Bless Deed

(http://www.uodemise.com/discussion/showthread.php?t=134491)

- People who use Hiding skill will be put in peace mode
(http://www.uodemise.com/discussion/showthread.php?t=133532)

- Various fixes about plantgrowing:
--> Seeds no longer have range or LOS checks.
--> When clicking on the water button on the plant gump it attempts to find water in your backpack first and if it doesn't it will give you a target instead.
--> Changed some old SVN messages that were using strings to use cliloc data instead.
(http://www.uodemise.com/discussion/showthread.php?t=119004)

- Player vendors will say the name of the buyer
(http://www.uodemise.com/discussion/showthread.php?t=118363)

- Books in bookshelves are now accessible to be read. They can't be taken away unless by using Stealing Skill
(http://www.uodemise.com/discussion/showthread.php?t=120213)

- Paragon metal chests now are turnable by using the Interior Decorator
(http://www.uodemise.com/discussion/showthread.php?t=133863)

- Runebooks can't be picked up if opened
(http://www.uodemise.com/discussion/showthread.php?t=133723)

- Runebook default location now is displayed as a red dot
(http://www.uodemise.com/discussion/showthread.php?t=133914)
This commit is contained in:
daedalus 2009-12-24 12:10:50 +00:00
parent 5cf819b644
commit c98aa748b6
16 changed files with 168 additions and 24 deletions

View file

@ -4,6 +4,7 @@ using System.Collections.Generic;
using Server;
using Server.Gumps;
using Server.Network;
using Server.Mobiles;
using Server.Multis;
using Server.Engines.Craft;
using Server.ContextMenus;
@ -22,6 +23,8 @@ namespace Server.Items
private Mobile m_Crafter;
private DateTime m_NextUse;
private List<Mobile> m_Openers = new List<Mobile>();
[CommandProperty( AccessLevel.GameMaster )]
public DateTime NextUse
@ -83,6 +86,18 @@ namespace Server.Items
m_MaxCharges = value;
}
}
public List<Mobile> Openers
{
get
{
return m_Openers;
}
set
{
m_Openers = value;
}
}
public override int LabelNumber{ get{ return 1041267; } } // runebook
@ -264,6 +279,23 @@ namespace Server.Items
if ( m_Description != null && m_Description.Length > 0 )
list.Add( m_Description );
}
public override bool OnDragLift( Mobile from )
{
if ( from.HasGump( typeof( RunebookGump ) ) )
{
from.SendLocalizedMessage( 500169 ); // You cannot pick that up.
return false;
}
foreach ( Mobile m in m_Openers )
if ( IsOpen( m ) )
m.CloseGump( typeof( RunebookGump ) );
m_Openers.Clear();
return true;
}
public override void OnSingleClick( Mobile from )
{
@ -280,6 +312,12 @@ namespace Server.Items
{
if ( from.InRange( GetWorldLocation(), (Core.ML ? 3 : 1) ) && CheckAccess( from ) )
{
if ( RootParent is BaseCreature )
{
from.SendLocalizedMessage( 502402 ); // That is inaccessible.
return;
}
if ( DateTime.Now < NextUse )
{
from.SendLocalizedMessage( 502406 ); // This book needs time to recharge.
@ -288,6 +326,8 @@ namespace Server.Items
from.CloseGump( typeof( RunebookGump ) );
from.SendGump( new RunebookGump( from, this ) );
m_Openers.Add( from );
}
}