Gems Dragon
new mobiles for you. they are drake and dragons that are not flesh and blood but jems. they have gem's hues, particular resitance and special abilities. they are not an easy work to tame, and much expensive to feed....cause they eats only gems....
in your basecreatur afther
[Flags]
public enum FoodType
{
Meat = 0x0001,
FruitsAndVegies = 0x0002,
GrainsAndHay = 0x0004,
Fish = 0x0008,
Eggs = 0x0010,
Gold = 0x0020,
add this
Amethyst = 0x0040,
Sapphire = 0x0050,
StarSapphire = 0x0060,
Emerald = 0x0070,
Ruby = 0x0080,
Diamond = 0x0090
then look for
private static Type[] m_FruitsAndVegies = new Type[]
{
typeof( HoneydewMelon ), typeof( YellowGourd ), typeof( GreenGourd ),
typeof( Banana ), typeof( Bananas ), typeof( Lemon ), typeof( Lime ),
typeof( Dates ), typeof( Grapes ), typeof( Peach ), typeof( Pear ),
typeof( Apple ), typeof( Watermelon ), typeof( Squash ),
typeof( Cantaloupe ), typeof( Carrot ), typeof( Cabbage ),
typeof( Onion ), typeof( Lettuce ), typeof( Pumpkin )
};
private static Type[] m_Gold = new Type[]
{
// white wyrms eat gold..
typeof( Gold )
};
and add
private static Type[] m_Amethyst = new Type[]
{
// amethyst dragon eat amethyst.
typeof( Amethyst )
};
private static Type[] m_Sapphire = new Type[]
{
// Sapphire dragon eat sapphire
typeof( Sapphire )
};
private static Type[] m_StarSapphire = new Type[]
{
// Sapphire dragon eat star sapphire
typeof( StarSapphire )
};
private static Type[] m_Emerald = new Type[]
{
// Emerald Dragons eat emerald
typeof( Emerald )
};
private static Type[] m_Ruby = new Type[]
{
// Ruby dragon eat ruby
typeof( Ruby )
};
private static Type[] m_Diamond = new Type[]
{
// Diamond dragon eat diamond
typeof( Diamond )
};
after
if ( CheckFoodPreference( f, FoodType.FruitsAndVegies, m_FruitsAndVegies ) )
return true;
add
if ( CheckFoodPreference( f, FoodType.Amethyst, m_Amethyst ) )
return true;
if ( CheckFoodPreference( f, FoodType.Sapphire, m_Sapphire ) )
return true;
if ( CheckFoodPreference( f, FoodType.StarSapphire, m_StarSapphire ) )
return true;
if ( CheckFoodPreference( f, FoodType.Emerald, m_Emerald ) )
return true;
if ( CheckFoodPreference( f, FoodType.Ruby, m_Ruby ) )
return true;
if ( CheckFoodPreference( f, FoodType.Diamond, m_Diamond ) )
return true;
then serch this line and replace whit mine
public virtual bool CheckFeed( Mobile from, Item dropped )
{
if ( !IsDeadPet && Controled && (ControlMaster == from || IsPetFriend( from )) && (dropped is Food || dropped is Gold || dropped is CookableFood || dropped is Head || dropped is LeftArm || dropped is LeftLeg || dropped is Torso || dropped is RightArm || dropped is RightLeg || dropped is Amethyst || dropped is Sapphire || dropped is StarSapphire || dropped is Emerald || dropped is Ruby || dropped is Diamond ) )
in animallore .cs look for
int foodPref = 3000340;
than add
#region Gemme
string foodPrefS = null;
#endregion
if ( (c.FavoriteFood & FoodType.FruitsAndVegies) != 0 )
foodPref = 1049565; // Fruits and Vegetables
else if ( (c.FavoriteFood & FoodType.GrainsAndHay) != 0 )
foodPref = 1049566; // Grains and Hay
else if ( (c.FavoriteFood & FoodType.Fish) != 0 )
foodPref = 1049568; // Fish
else if ( (c.FavoriteFood & FoodType.Meat) != 0 )
foodPref = 1049564; // Meat
#region Gemme
else if ( (c.FavoriteFood & FoodType.Amethyst) != 0 )
foodPrefS = "Amethyst";
else if ( (c.FavoriteFood & FoodType.Sapphire) != 0 )
foodPrefS = "Sapphire and Star Sapphire";
else if ( (c.FavoriteFood & FoodType.Emerald) != 0 )
foodPrefS = "Emerald";
else if ( (c.FavoriteFood & FoodType.Ruby) != 0 )
foodPrefS = "Ruby";
else if ( (c.FavoriteFood & FoodType.Diamond) != 0 )
foodPrefS = "Diamonds";
#endregion
#region Gemme
i hope you like my job....now working on scales and hides and gems wyrms ^_^
new mobiles for you. they are drake and dragons that are not flesh and blood but jems. they have gem's hues, particular resitance and special abilities. they are not an easy work to tame, and much expensive to feed....cause they eats only gems....
in your basecreatur afther
[Flags]
public enum FoodType
{
Meat = 0x0001,
FruitsAndVegies = 0x0002,
GrainsAndHay = 0x0004,
Fish = 0x0008,
Eggs = 0x0010,
Gold = 0x0020,
add this
Amethyst = 0x0040,
Sapphire = 0x0050,
StarSapphire = 0x0060,
Emerald = 0x0070,
Ruby = 0x0080,
Diamond = 0x0090
then look for
private static Type[] m_FruitsAndVegies = new Type[]
{
typeof( HoneydewMelon ), typeof( YellowGourd ), typeof( GreenGourd ),
typeof( Banana ), typeof( Bananas ), typeof( Lemon ), typeof( Lime ),
typeof( Dates ), typeof( Grapes ), typeof( Peach ), typeof( Pear ),
typeof( Apple ), typeof( Watermelon ), typeof( Squash ),
typeof( Cantaloupe ), typeof( Carrot ), typeof( Cabbage ),
typeof( Onion ), typeof( Lettuce ), typeof( Pumpkin )
};
private static Type[] m_Gold = new Type[]
{
// white wyrms eat gold..
typeof( Gold )
};
and add
private static Type[] m_Amethyst = new Type[]
{
// amethyst dragon eat amethyst.
typeof( Amethyst )
};
private static Type[] m_Sapphire = new Type[]
{
// Sapphire dragon eat sapphire
typeof( Sapphire )
};
private static Type[] m_StarSapphire = new Type[]
{
// Sapphire dragon eat star sapphire
typeof( StarSapphire )
};
private static Type[] m_Emerald = new Type[]
{
// Emerald Dragons eat emerald
typeof( Emerald )
};
private static Type[] m_Ruby = new Type[]
{
// Ruby dragon eat ruby
typeof( Ruby )
};
private static Type[] m_Diamond = new Type[]
{
// Diamond dragon eat diamond
typeof( Diamond )
};
after
if ( CheckFoodPreference( f, FoodType.FruitsAndVegies, m_FruitsAndVegies ) )
return true;
add
if ( CheckFoodPreference( f, FoodType.Amethyst, m_Amethyst ) )
return true;
if ( CheckFoodPreference( f, FoodType.Sapphire, m_Sapphire ) )
return true;
if ( CheckFoodPreference( f, FoodType.StarSapphire, m_StarSapphire ) )
return true;
if ( CheckFoodPreference( f, FoodType.Emerald, m_Emerald ) )
return true;
if ( CheckFoodPreference( f, FoodType.Ruby, m_Ruby ) )
return true;
if ( CheckFoodPreference( f, FoodType.Diamond, m_Diamond ) )
return true;
then serch this line and replace whit mine
public virtual bool CheckFeed( Mobile from, Item dropped )
{
if ( !IsDeadPet && Controled && (ControlMaster == from || IsPetFriend( from )) && (dropped is Food || dropped is Gold || dropped is CookableFood || dropped is Head || dropped is LeftArm || dropped is LeftLeg || dropped is Torso || dropped is RightArm || dropped is RightLeg || dropped is Amethyst || dropped is Sapphire || dropped is StarSapphire || dropped is Emerald || dropped is Ruby || dropped is Diamond ) )
in animallore .cs look for
int foodPref = 3000340;
than add
#region Gemme
string foodPrefS = null;
#endregion
if ( (c.FavoriteFood & FoodType.FruitsAndVegies) != 0 )
foodPref = 1049565; // Fruits and Vegetables
else if ( (c.FavoriteFood & FoodType.GrainsAndHay) != 0 )
foodPref = 1049566; // Grains and Hay
else if ( (c.FavoriteFood & FoodType.Fish) != 0 )
foodPref = 1049568; // Fish
else if ( (c.FavoriteFood & FoodType.Meat) != 0 )
foodPref = 1049564; // Meat
#region Gemme
else if ( (c.FavoriteFood & FoodType.Amethyst) != 0 )
foodPrefS = "Amethyst";
else if ( (c.FavoriteFood & FoodType.Sapphire) != 0 )
foodPrefS = "Sapphire and Star Sapphire";
else if ( (c.FavoriteFood & FoodType.Emerald) != 0 )
foodPrefS = "Emerald";
else if ( (c.FavoriteFood & FoodType.Ruby) != 0 )
foodPrefS = "Ruby";
else if ( (c.FavoriteFood & FoodType.Diamond) != 0 )
foodPrefS = "Diamonds";
#endregion
#region Gemme
i hope you like my job....now working on scales and hides and gems wyrms ^_^