Juzzver
Sorceror
At creation of a certain quantity of bottles through team, for example "[add AgilityPotion 25" issues the message:
Usage:
AgilityPotion
This is not provided possible to create a script, an example:
GreaterHealPotionBag.cs
As a result we will receive an empty bag where will be located 1 invisible potion of agility
Usage:
AgilityPotion
This is not provided possible to create a script, an example:
GreaterHealPotionBag.cs
Code:
using System;
using Server;
using Server.Items;
namespace Server.Items
{
public class GreaterHealPotionBag : Bag
{
public override string DefaultName
{
get { return "a Greater Heal Potion Bag"; }
}
[Constructable]
public GreaterHealPotionBag() : this( 20 )
{
Hue = 3;
}
[Constructable]
public GreaterHealPotionBag( int amount ) : base()
{
DropItem( new GreaterHealPotion( amount ) );
}
public GreaterHealPotionBag( 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();
}
}
}
As a result we will receive an empty bag where will be located 1 invisible potion of agility