Full Version : Please help with Errors on a new mount I'm trying
xmlspawner >>Scripting Support >>Please help with Errors on a new mount I'm trying
<< Prev | Next >>
Crystal Jem- 07-10-2006
Hello,
I hope all of you are well.
Here's my Errors:
Errors:
+ Costem/My custems/AmazoniteCrystalSteed.cs:
CS1501: Line 20: No overload for method 'BaseMount' takes '6' arguments
CS0103: Line 44: The name 'SetSkillCap' does not exist in the current contex
t
CS0117: Line 52: 'Server.SkillName' does not contain a definition for 'Poiso
n'
CS0117: Line 59: 'Server.SkillName' does not contain a definition for 'Poiso
n'
CS0246: Line 77: The type or namespace name 'Amazonite' could not be found (
are you missing a using directive or an assembly reference?)
CS1502: Line 77: The best overloaded method match for 'Server.Mobiles.BaseCr
eature.PackItem(Server.Item)' has some invalid arguments
CS1503: Line 77: Argument '1': cannot convert from 'Amazonite' to 'Server.It
em'
Here's my Script:
[CODE]using System;
using Server.Items;
using Server.Mobiles;
namespace Server.Mobiles
{
[CorpseName( "a crystal steed corpse" )]
public class AmazoniteCrystalSteed : BaseMount
{
[Constructable]
public AmazoniteCrystalSteed() : this(2)
{
}
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.BleedAttack;
}
[Constructable]
public AmazoniteCrystalSteed( int crystalAmount ) : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "an amazonite crystal steed";
BaseSoundID = 0xA8;
Hue = 0x58;
SetStr( 900, 1000 );
SetDex( 500, 600 );
SetInt( 800, 900 );
SetHits( 1000, 1250 );
SetDamage( 20, 40 );
SetDamageType( ResistanceType.Physical, 100 );
SetDamageType( ResistanceType.Fire, 100 );
SetResistance( ResistanceType.Physical, 90, 110 );
SetResistance( ResistanceType.Fire, 90, 110 );
SetResistance( ResistanceType.Cold, 90, 110 );
SetResistance( ResistanceType.Poison, 90, 110 );
SetResistance( ResistanceType.Energy, 90, 110 );
SetSkillCap = 16000;
Skills[SkillName.Tactics].Cap = 200.0;
Skills[SkillName.Wrestling].Cap = 200.0;
Skills[SkillName.MagicResist].Cap = 200.0;
Skills[SkillName.Anatomy].Cap = 200.0;
Skills[SkillName.Magery].Cap = 200.0;
Skills[SkillName.EvalInt].Cap = 200.0;
Skills[SkillName.Poison].Cap = 200.0;
Skills[SkillName.Parry].Cap = 200.0;
SetSkill( SkillName.MagicResist, 110.0, 120.0 );
SetSkill( SkillName.Tactics, 120.0 );
SetSkill( SkillName.Wrestling, 120.0 );
SetSkill( SkillName.Magery, 120.0 );
SetSkill( SkillName.Poison, 90.0 );
SetSkill( SkillName.Parry, 90.0 );
SetSkill( SkillName.EvalInt, 90.0 );
Fame = 25000;
Karma = -25000;
VirtualArmor = 84;
Tamable = true;
ControlSlots = 3;
MinTameSkill = 110.0;
}
public override void GenerateLoot()
{
PackItem( new AmazoniteCrystal( Utility.RandomMinMax( 20, 50 ) ) );
PackItem( new SulfurousAsh( Utility.RandomMinMax( 151, 300 ) ) );
PackItem( new Amazonite( Utility.RandomMinMax( 16, 30 ) ) );
PackItem( new Gold( Utility.RandomMinMax( 1600, 3000 ) ) );
}
public override bool HasBreath{ get{ return true; } } // fire breath enabled
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
public override PackInstinct PackInstinct{ get{ return PackInstinct.Equine; } }
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
public override int TreasureMapLevel{ get{ return 6; } }
public AmazoniteCrystalSteed( 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();
if ( BaseSoundID <= 0 )
BaseSoundID = 0xA8;
}
}
}
I hope someone here can help me i posted all day yesterday on rinuo and got very litle help.
Cerystal Jem
Haazen- 07-10-2006
first error
change

CODE
[Constructable] public AmazoniteCrystalSteed() : this(2) { }

to something like

CODE
[Constructable] public AmazoniteCrystalSteed() : this( "an amazonite crystal steed" ) { }

and change

CODE
[Constructable] public AmazoniteCrystalSteed( int crystalAmount ) : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )

to somethng like

CODE
[Constructable] public AmazoniteCrystalSteed( string name ) : base( name, 0x74, 0x3EA7, AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )

You see a basemount has added parameters for body and mount art.
Second error try changing
SetSkillCap = 16000;
to
SkillsCap = 16000;
There is no definition for SetSkillCap in the scripts nor core.
Nest errors
It should be SkillName.Poisoning
The last errors looks like you do not have a script for Amazonite.
OR
If you do have a script for it, near the beginning of the script there is a line that says namespace ????
what ever the ??? is in Amazonite is for lack of better word is the library that Amazonite is made in. You need to have that listed at the beginning of this script. Such as. using Server.???
These ??? are to be replaced with what is actually in your scripts.
Crystal Jem- 07-10-2006
thank you , I did all the changes you said an am down to one error.
The Errors is:
Errors:
+ Costem/My custems/AmazoniteCrystalSteed.cs:
CS0103: Line 44: The name 'SkillCap' does not exist in the current context
Now my question is. Do i need to override to raise the skill cap on a moble? ot maybe i need to do this in the main mount folder?
I have tryed this every way i can think and it just wont let me.
I want the mount to be able to gain skills over 100 up to 200 but i'm told htere skill cap is only 7000 so they would need more.
An Amazonite is now a Gem. I had to script them lol. where i got the name is from a resource script that has Crystal Elementals, i'm doing the Steed the same hews.
Crystal Jem- 07-10-2006
I took out the line for skillCaps and the script went threw 0 errors thank you for your help. And i'll be giving credit do to you if i release it.
now if i can figger out the spwener to spawn them and test them that way lol.
Haazen- 07-10-2006
For Future refference it is not SkillCap it is SkillsCap
Crystal Jem- 07-11-2006

QUOTE (Haazen @ July 10, 2006 06:54 pm)
For Future refference it is not SkillCap it is SkillsCap

Thank you
I have a bug withthe script at least i think it's called a bug. when i try to tame it it says you have no chance of tameing this creature. so i lowered the min tame to 106 but it still says it and i have my admin set to 300 tameing. would anyone happen to know what i missed?
heres the script :[CODE]using System;
using Server.Items;
using Server.Mobiles;
namespace Server.Mobiles
{
[CorpseName( "a crystal steed corpse" )]
public class AmazoniteCrystalSteed : BaseMount
{
[Constructable]
public AmazoniteCrystalSteed() : this("an amazonite crystal steed" )
{
}
public override WeaponAbility GetWeaponAbility()
{
return WeaponAbility.BleedAttack;
}
[Constructable]
public AmazoniteCrystalSteed( string name ) : base( name, 0x74, 0x3EA7, AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
BaseSoundID = 0xA8;
Hue = 0x58;
SetStr( 900, 1000 );
SetDex( 500, 600 );
SetInt( 800, 900 );
SetHits( 1000, 1250 );
SetDamage( 20, 40 );
SetDamageType( ResistanceType.Physical, 100 );
SetDamageType( ResistanceType.Fire, 100 );
SetResistance( ResistanceType.Physical, 90, 110 );
SetResistance( ResistanceType.Fire, 90, 110 );
SetResistance( ResistanceType.Cold, 90, 110 );
SetResistance( ResistanceType.Poison, 90, 110 );
SetResistance( ResistanceType.Energy, 90, 110 );
SkillsCap = 16000;
Skills[SkillName.Tactics].Cap = 200.0;
Skills[SkillName.Wrestling].Cap = 200.0;
Skills[SkillName.MagicResist].Cap = 200.0;
Skills[SkillName.Anatomy].Cap = 200.0;
Skills[SkillName.Magery].Cap = 200.0;
Skills[SkillName.EvalInt].Cap = 200.0;
Skills[SkillName.Parry].Cap = 200.0;
SetSkill( SkillName.MagicResist, 110.0, 120.0 );
SetSkill( SkillName.Tactics, 120.0 );
SetSkill( SkillName.Wrestling, 120.0 );
SetSkill( SkillName.Magery, 120.0 );
SetSkill( SkillName.Parry, 90.0 );
SetSkill( SkillName.EvalInt, 90.0 );
Fame = 25000;
Karma = -25000;
VirtualArmor = 84;
Tamable = true;
ControlSlots = 3;
MinTameSkill = 106.0;
}
public override void GenerateLoot()
{
PackItem( new AmazoniteCrystal( Utility.RandomMinMax( 20, 50 ) ) );
PackItem( new SulfurousAsh( Utility.RandomMinMax( 151, 300 ) ) );
PackItem( new Amazonite( Utility.RandomMinMax( 16, 30 ) ) );
PackItem( new Gold( Utility.RandomMinMax( 1600, 3000 ) ) );
}
public override bool HasBreath{ get{ return true; } } // fire breath enabled
public override FoodType FavoriteFood{ get{ return FoodType.Meat; } }
public override PackInstinct PackInstinct{ get{ return PackInstinct.Equine; } }
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
public override int TreasureMapLevel{ get{ return 6; } }
public AmazoniteCrystalSteed( 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();
if ( BaseSoundID <= 0 )
BaseSoundID = 0xA8;
}
}
}
I would also like to know how to make it ues all the horse mount bodies at randome.
thank you,
ArteGordon- 07-13-2006

QUOTE (Crystal Jem @ July 11, 2006 11:34 am)

QUOTE
I have a bug withthe script at least i think it's called a bug. when i try to tame it it says you have no chance of tameing this creature. so i lowered the min tame to 106 but it still says it and i have my admin set to 300 tameing. would anyone happen to know what i missed?

it is not a bug in the script. Your skill cap for taming is probably set to 100. Even if you manually set the skill value to 300, the skill cap will be the upper skill limit used. Try this
[get skills.animaltaming.cap
and target yourself. It will tell you the current cap for animal taming.
To change the cap try this
[self set skills.animaltaming.cap 120
Crystal Jem- 07-15-2006

QUOTE (ArteGordon @ July 13, 2006 05:12 pm)

QUOTE (Crystal Jem @ July 11, 2006 11:34 am)

QUOTE
I have a bug withthe script at least i think it's called a bug. when i try to tame it it says you have no chance of tameing this creature. so i lowered the min tame to 106 but it still says it and i have my admin set to 300 tameing. would anyone happen to know what i missed?

it is not a bug in the script. Your skill cap for taming is probably set to 100. Even if you manually set the skill value to 300, the skill cap will be the upper skill limit used. Try this
[get skills.animaltaming.cap
and target yourself. It will tell you the current cap for animal taming.
To change the cap try this
[self set skills.animaltaming.cap 120
animaltaming not found
tamer not found
animaltame not found
taming not found
taming not found
can any one think of any others to try?
ArteGordon- 07-15-2006
what was the exact command that you typed?
Crystal Jem- 07-15-2006

QUOTE (ArteGordon @ July 15, 2006 09:01 pm)
what was the exact command that you typed?

[get skills. animaltaming. cap
[get skills. tamer.cap
[get skills. animaltame.cap
[get skills. tame.cap
[get skills taming.cap
ArteGordon- 07-15-2006
the property you are trying to access is "skills.animaltaming.cap" with no spaces in there
[get skills.animaltaming.cap
Crystal Jem- 07-15-2006

QUOTE (ArteGordon @ July 15, 2006 09:22 pm)
the property you are trying to access is "skills.animaltaming.cap" with no spaces in there [get skills.animaltaming.cap

Thank you now i know there tamable so it seams i have my frist good script