Mikthebug
Member
So since the cendors are just standing around and being boring, i wanted to just make npcs as shop keepers insted to get a more "alive" feel to the citys.
But i get a few errors and i'm not sure why.
This is the first script im trying this with.
And the errors i get are.
Any help is appreciated
But i get a few errors and i'm not sure why.
This is the first script im trying this with.
GatonHill:
using System;
using Server;
using Server.Items;
using Server.Misc;
using Server.Network;
using Server.Mobiles;
using Server.ContextMenus;
using System.Collections.Generic;
namespace Server.Mobiles
{
public class GaltonHill : BaseCreature
{
[Constructable]
public GaltonHill() : base(AIType.AI_Melee, FightMode.Evil, 10, 1, 0.8, 3.0)
{
{
this.Body = 0x190;
Hue = Utility.RandomSkinHue();
this.Name = "Galton Hill";
SpeechHue = Utility.RandomDyedHue();
int hairHue = Utility.RandomNondyedHue();
Utility.AssignRandomHair( this, hairHue );
if( Utility.Random( 7 ) != 0 )
Utility.AssignRandomFacialHair( this, hairHue );
}
{
SetStr( 150 );
SetDex( 150 );
SetInt( 100 );
SetHits( 500 );
SetMana( 200 );
SetDamage( 15, 25 );
SetResistance( ResistanceType.Physical, 70 );
SetResistance( ResistanceType.Fire, 55 );
SetResistance( ResistanceType.Cold, 55 );
SetResistance( ResistanceType.Poison, 55 );
SetResistance( ResistanceType.Energy, 55 );
SetSkill( SkillName.MagicResist, 110.0 );
SetSkill( SkillName.Parry, 110.0 );
SetSkill( SkillName.Tactics, 110.0 );
SetSkill( SkillName.Fencing, 110.0 );
SetSkill( SkillName.Healing, 110.0 );
SetSpecialAbility(SpecialAbility.Heal);
}
{
Container pack = new Backpack();
pack.DropItem(new Gold(0, 50));
pack.Movable = false;
AddItem(pack);
}
{
PlateGorget pg = new PlateGorget();
pg.Resource = CraftResource.Bronze;
pg.Movable = false;
AddItem(pg);
}
{
PlateChest pc = new PlateChest();
pc.Resource = CraftResource.Bronze;
pc.Movable = false;
AddItem(pc);
}
{
PlateArms pa = new PlateArms();
pa.Resource = CraftResource.Bronze;
pa.Movable = false;
AddItem(pa);
}
{
PlateGloves pgs = new PlateGloves();
pgs.Resource = CraftResource.Bronze;
pgs.Movable = false;
AddItem(pgs);
}
{
PlateLegs pl = new PlateLegs();
pl.Resource = CraftResource.Bronze;
pl.Movable = false;
AddItem(pl);
}
{
Kryss kss = new Kryss();
kss.Movable = false;
AddItem(kss);
}
{
MetalShield mss = new MetalShield();
mss.Resource = CraftResource.Bronze;
mss.Movable = false;
AddItem(mss);
}
}
public override void AddNameProperties(ObjectPropertyList list)
{
base.AddNameProperties(list);
List<string> lines = new List<string>();
lines.Add(String.Format("Captain of the Guard", 1));
list.Add(String.Join("<br>", lines));
}
public GaltonHill(Serial serial)
: base(serial)
{
}
public override bool IsActiveVendor
{
get
{
return true;
}
}
public override void InitSBInfo()
{
this.SBInfos.Add(new SBGaltonHill());
}
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();
}
}
}
And the errors i get are.
C#:
Scripts: Compiling C# scripts...Failed with: 1 errors, 0 warnings
Errors:
+ Customs/Mobiles/Humanoid/Vesper/People/GaltonHill.cs:
CS0115: Line 124: 'GaltonHill.IsActiveVendor': no suitable method found to override
CS0115: Line 132: 'GaltonHill.InitSBInfo()': no suitable method found to override
Scripts: One or more scripts failed to compile or no script files were found.
Any help is appreciated