QUOTE |
-Error: Scripts\Engines\Quests\Haochi´s Trials\Items\SamuraiTeleporter.cs: CS0246: <Line 7, column 35> The type or namespace name ´Teleporter´could not be found <are you missing a using directive or an assemblye refrernce?> |
CODE |
using System; using Server; using Server.Mobiles; namespace Server.Engines.Quests { public class SamuraiTeleporter : Teleporter { public override int LabelNumber { get { return 1049382; } } // a magical teleporter [Constructable] public SamuraiTeleporter() { Hue = 0xFA; } public override bool GetDestination( PlayerMobile player, ref Point3D loc, ref Map map ) { loc = new Point3D( 384, 733, 0 ); map = Map.Malas; return true; } public SamuraiTeleporter( 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(); } } } |
QUOTE |
those errors all indicate that the scripts that you are using are referring to modifed methods in a variety of classes. If you are trying to just drop in scripts that were designed for RunUO RE into a standard RunUO distribution, this is generally what will happen. RunUO RE has many modifications to the standard classes and so scripts designed for it just wont work without those modifications. |
CODE |
using System; using Server; using Server.Items; using Server.Mobiles; using Server.Engines.Quests; namespace Server.Engines.Quests.SE { public class BlueTeleporter : Teleporter { [Constructable] public BlueTeleporter() { Hue = 0x2; } public override bool GetDestination( PlayerMobile player, ref Point3D loc, ref Map map ) { QuestSystem qs = player.Quest; if ( qs is EminosUndertakingQuest ) { QuestObjective obj = qs.FindObjective( typeof( TakeBlueTeleporterObjective ) ); if ( obj != null ) { if ( X == 423 && Y == 805 && Z == -1 ) { loc = new Point3D( 411, 1116, 0 ); } if ( X == 411 && Y == 1117 && Z == 0 ) { loc = new Point3D( 424, 807, 0 ); } map = Map.Malas; return true; } } return false; } public BlueTeleporter( 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(); } } } |
QUOTE (BiO_ZeRg @ May 26, 2006 04:16 pm) |
but i dont want to use runuo re just i want that quest and skilss too there is anyway to make works with runuo with the runuo scripts am a little confuse :S |
QUOTE (BiO_ZeRg @ May 26, 2006 04:21 pm) |
if i send you the files you can help me? just check it and tell me if is too hard |