Chucl
Member
- ServUO Version
- Publish Unknown
- Ultima Expansion
- None
I get that error in console, this is the item:
07/01-10:45 Warning: 0x40000070: Amount changed for non-stackable item 'Torn'. (2)
this is the script where it adds 2 of those items into playerbackpack:
how can i get rid of that error? thanks
C#:
public class Torn : Item
{
[Constructable]
public Torn() :this(1)
{
}
[Constructable]
public Torn(int amount) : base( 0x05ED )
{
Name = "Screws";
Amount = amount;
ItemID = 0x05ED;
Stackable = true;
}
public Torn( Serial serial ) : base( serial )
{
}
public override void OnDoubleClick( Mobile m )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
07/01-10:45 Warning: 0x40000070: Amount changed for non-stackable item 'Torn'. (2)
this is the script where it adds 2 of those items into playerbackpack:
C#:
Item objetoAñadir = new Torn(2);
pack.DropItem(objetoAñadir);
how can i get rid of that error? thanks