Hey I think this system is great and my players will love it, but i had a question I just downloaded it and I was curious if they can gain animal taming and lore skill off making these items. Thanks for all your help and this script is awesome.
I was also wondering if you could make it so potions could go in potion kegs so players could put them in kegs and sell them or store them for whatever reason. I tried to do this but failed heres what i tried.
Down at the bottom of PotionKeg.cs theres this
public BasePotion FillBottle()
{
switch ( m_Type )
{
default:
case PotionEffect.Nightsight: return new NightSightPotion();
case PotionEffect.CureLesser: return new LesserCurePotion();
case PotionEffect.Cure: return new CurePotion();
case PotionEffect.CureGreater: return new GreaterCurePotion();
case PotionEffect.Agility: return new AgilityPotion();
case PotionEffect.AgilityGreater: return new GreaterAgilityPotion();
case PotionEffect.Strength: return new StrengthPotion();
case PotionEffect.StrengthGreater: return new GreaterStrengthPotion();
case PotionEffect.PoisonLesser: return new LesserPoisonPotion();
case PotionEffect.Poison: return new PoisonPotion();
case PotionEffect.PoisonGreater: return new GreaterPoisonPotion();
case PotionEffect.PoisonDeadly: return new DeadlyPoisonPotion();
case PotionEffect.Refresh: return new RefreshPotion();
case PotionEffect.RefreshTotal: return new TotalRefreshPotion();
case PotionEffect.HealLesser: return new LesserHealPotion();
case PotionEffect.Heal: return new HealPotion();
case PotionEffect.HealGreater: return new GreaterHealPotion();
case PotionEffect.ExplosionLesser: return new LesserExplosionPotion();
case PotionEffect.Explosion: return new ExplosionPotion();
case PotionEffect.ExplosionGreater: return new GreaterExplosionPotion();
}
}
I tried editing it to look like this
public BasePotion FillBottle()
{
switch ( m_Type )
{
default:
case PotionEffect.Nightsight: return new NightSightPotion();
case PotionEffect.CureLesser: return new LesserCurePotion();
case PotionEffect.Cure: return new CurePotion();
case PotionEffect.CureGreater: return new GreaterCurePotion();
case PotionEffect.Agility: return new AgilityPotion();
case PotionEffect.AgilityGreater: return new GreaterAgilityPotion();
case PotionEffect.Strength: return new StrengthPotion();
case PotionEffect.StrengthGreater: return new GreaterStrengthPotion();
case PotionEffect.PoisonLesser: return new LesserPoisonPotion();
case PotionEffect.Poison: return new PoisonPotion();
case PotionEffect.PoisonGreater: return new GreaterPoisonPotion();
case PotionEffect.PoisonDeadly: return new DeadlyPoisonPotion();
case PotionEffect.Refresh: return new RefreshPotion();
case PotionEffect.RefreshTotal: return new TotalRefreshPotion();
case PotionEffect.HealLesser: return new LesserHealPotion();
case PotionEffect.Heal: return new HealPotion();
case PotionEffect.HealGreater: return new GreaterHealPotion();
case PotionEffect.ExplosionLesser: return new LesserExplosionPotion();
case PotionEffect.Explosion: return new ExplosionPotion();
case PotionEffect.ExplosionGreater: return new GreaterExplosionPotion();
case PotionEffect.PetCure: return new PetCurePotion();
case PotionEffect.PetGreater: return new PetGreaterCurePotion();
case PotionEffect.PetHeal: return new PetHealPotion();
case PotionEffect.PetHealGreater: return new PetGreaterHealPotion();
case PotionEffect.PetRes: return new PetResPotion();
case PotionEffect.Shrink: return new ShrinkPotion();
}
}
But I got the following errors,
6 errors, 0 warning
'Server.Items.PotionEffect does not contain a definition for 'PetCure'
'Server.Items.PotionEffect does not contain a definition for 'PetCureGreater'
'Server.Items.PotionEffect does not contain a definition for 'PetHeal'
'Server.Items.PotionEffect does not contain a definition for 'PetHealGreater'
'Server.Items.PotionEffect does not contain a definition for 'PetRes'
'Server.Items.PotionEffect does not contain a definition for 'PetGreater'
Thats the errors I got, if anyone can help me please let me know.