JMB Networks
Wanderer
doh
I think i totally messed everything up now. The confusion is unlimited.
I think i totally messed everything up now. The confusion is unlimited.
using System;
using Server;
using Server.Items;
using Server.Mobiles;
using Server.Network;
namespace Server.Items
{
public class FlagItem : Item
{
[Constructable]
public FlagItem() : this( 1 )
{
}
[Constructable]
public FlagItem( int amount ) : base( 3699 )
{
Weight = 5.0;
Hue = 0x496;
Movable = false;
}
public FlagItem( Serial serial ) : base( serial )
{
}
public override DeathMoveResult OnInventoryDeath(Mobile parent)
{
this.MoveToWorld(parent.Location, parent.Map);
return DeathMoveResult.RemainEquiped;
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
if ( Hue == 0 )
Hue = 0x8AC;
}
}
}
JMB Networks;660841 said:Corpse again, i dont understand why we cant just OnInventoryDeath.DropToFeet or something of the sort. then it will explain where feet are afterwards.
Im not sure how i could do it though
public override bool OnMoveOver( Mobile m )
{
if ( m.Player )
????( m, 0 );
return true;
}
public override bool OnMoveOver(Mobile m)
{
if ( m.Player )
{
Container cont = m.Backpack;
cont.AddItem(this);
}
return true;
}
public override bool HandlesMovement { get { return true; } }
public override bool OnMoveOver(Mobile m)
{
if (m is PlayerMobile)
{
PlayerMobile pm = (PlayerMobile)m;
if( pm.Backpack != null )
pm.Backpack.DropItem( this );
}
}