Lucid Nagual
Knight
Script
Same script. Haven't touched it. Oh and the error looks like it says SytemTrashBarrelDeed.cs but it is the path then: TrashBarrelDeed! Not sure why it combined words like that when I copied and pasted it. Lol, but as you can see I did nothing to it. Oh and I just realized the old post for the original deed is gone...weird.
Same script. Haven't touched it. Oh and the error looks like it says SytemTrashBarrelDeed.cs but it is the path then: TrashBarrelDeed! Not sure why it combined words like that when I copied and pasted it. Lol, but as you can see I did nothing to it. Oh and I just realized the old post for the original deed is gone...weird.
Code:
[size=2]
/////////////////////
//Crafted By Damion///
/////////////////////
using System;
using Server;
using Server.Gumps;
using Server.Network;
namespace Server.Items
{
public class RewardTrashBarrelDeed : Item
{
[Constructable]
public RewardTrashBarrelDeed() : this( null )
{
}
[Constructable]
public RewardTrashBarrelDeed ( string name ) : base ( 0x14F0 )
{
Name = "Reward Style Trash Barrel Deed";
LootType = LootType.Blessed;
Hue = 1161;
}
public RewardTrashBarrelDeed ( Serial serial ) : base ( serial )
{
}
public override void OnDoubleClick( Mobile from )
{
private Mobile m_From;
private RewardTrashBarrel m_Deed;
if ( !from.InRange( this.GetWorldLocation(), 1 ) )
{
from.SendMessage( "That is too far away." ); // That is too far away.
return false;
}
Map map = from.Map;
if ( map == null )
return false;
BaseHouse house = BaseHouse.FindHouseAt( loc, map, 20 );
if ( house == null || !house.IsFriend( from ) )
{
from.SendMessage( "That can only be placed in your house." ); // That can only be placed in your house.
return false;
}
if ( !map.CanFit( loc, 20 ) )
{
from.SendLocalizedMessage( 500269 ); // You cannot build that there.
return false;
}
m_Deed.BeginPlace( m_From, RewardTrashBarrel );
}
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();
}
}
}
[/size]