Hello guys,trying to do an shroud to get players walking in water,loading well,but no results,any advice?
Here the script:
Here the script:
C#:
using System;
using Server.Network;
using Server.Items;
using Server.Targeting;
namespace Server.Items
{
public class MarineShroud : HoodedShroudOfShadows
{
public override int InitMinHits{ get{ return 255; } }
public override int InitMaxHits{ get{ return 255; } }
[Constructable]
public MarineShroud()
{
Weight = 5;
Name = "Marine Shroud";
}
public override bool OnEquip(Mobile m)
{
m.CantWalk = true;
m.CanSwim = true;
return base.OnEquip(m);
}
public override void OnRemoved( object parent)
{
if (parent is Mobile)
{
Mobile m = (Mobile)parent;
m.CantWalk = false;
m.CanSwim = false;
}
base.OnRemoved(parent);
}
public MarineShroud( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}