Chessboard corrections

http://www.uodemise.com/forum/showthread.php?t=154224&page=2

Stealth has the wrong hiding requirement
http://www.uodemise.com/forum/showthread.php?t=155728

Players should be able to discord their own pet regardless of facet/guild, or lack thereof
http://www.uodemise.com/forum/showthread.php?t=148376

Disposition of released/gone wild pets' pack inventory
http://www.uodemise.com/forum/showthread.php?t=146385

Flagging mechanics regarding invisibility
http://www.uodemise.com/forum/showthread.php?t=137631
This commit is contained in:
xavier 2010-09-25 17:55:44 +00:00
parent cd2462621f
commit f90c09ef55
7 changed files with 115 additions and 19 deletions

View file

@ -1558,6 +1558,7 @@ namespace Server.Mobiles
m_Mobile.Delete();
m_Mobile.BeginDeleteTimer();
m_Mobile.DropBackpack();
return true;
}

View file

@ -5,6 +5,7 @@ using Server;
using Server.Regions;
using Server.Targeting;
using Server.Network;
using Server.Multis;
using Server.Spells;
using Server.Misc;
using Server.Items;
@ -3675,6 +3676,29 @@ namespace Server.Mobiles
PackWeapon( minLevel, maxLevel, weaponChance );
}
public virtual void DropBackpack()
{
if ( Backpack != null )
{
if( Backpack.Items.Count > 0 )
{
Backpack b = new CreatureBackpack( Name );
List<Item> list = new List<Item>( Backpack.Items );
foreach ( Item item in list )
{
b.DropItem( item );
}
BaseHouse house = BaseHouse.FindHouseAt( this );
if ( house != null )
b.MoveToWorld( house.BanLocation, house.Map );
else
b.MoveToWorld( Location, Map );
}
}
}
protected bool m_Spawning;
protected int m_KillersLuck;
@ -5278,6 +5302,7 @@ namespace Server.Mobiles
c.ControlTarget = null;
//c.ControlOrder = OrderType.Release;
c.AIObject.DoOrderRelease(); // this will prevent no release of creatures left alone with AI disabled (and consequent bug of Followers)
c.DropBackpack();
}
// added code to handle removing of wild creatures in house regions