ThatGuyBehindYou
Wanderer
Stackable Potions
Hello!
I have made all potions stackable in my server but for some reason i keep getting these messages:
I have wrote Stackable=true; in every script and i clicked the Generic/Stackable options in the mul editor for every potion, this is how my potion script looks:
Best Regards.
Hello!
I have made all potions stackable in my server but for some reason i keep getting these messages:
Code:
Warning: 0x4001248F: Amount changed for non-stackable item 'AgilityPotion'. (100
)
Warning: 0x40012490: Amount changed for non-stackable item 'CurePotion'. (100)
Warning: 0x40012491: Amount changed for non-stackable item 'ExplosionPotion'. (1
00)
Warning: 0x40012492: Amount changed for non-stackable item 'HealPotion'. (100)
Warning: 0x40012493: Amount changed for non-stackable item 'PoisonPotion'. (100)
Warning: 0x40012494: Amount changed for non-stackable item 'RefreshPotion'. (100
)
Warning: 0x40012495: Amount changed for non-stackable item 'StrengthPotion'. (10
0)
Warning: 0x40012496: Amount changed for non-stackable item 'NightSightPotion'. (
100)
Code:
using System;
using Server;
namespace Server.Items
{
public class RefreshPotion : BaseRefreshPotion
{
public override double Refresh{ get{ return 0.25; } }
[Constructable]
public RefreshPotion() : this( 1 )
{
}
[Constructable]
public RefreshPotion( int amount ) : base( PotionEffect.Refresh, amount )
{
Stackable = true;
}
public RefreshPotion( 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();
}
}
}