RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

35 Custom Quests

Draegen

Sorceror
35 Custom Quests

I have found a 2.0 Custom Quest package had 35 quests in it. So here is what i done to have them updated even further with lastest SVN

This Quests all work with Lastest SVN


Changelog

Fixed onHit Errors
Added Necro_AI Script
Fixed Magi Quest
Fixed Elf Quest
Changed The Elf Quest Mobiles to look like elfs, Using ML elfs
Removed Loot token check off crayma quest. So it loads up on Distro
Removed Blue ethereal Mobiles due to conflict with Distro.

Installing

Unzip them in your custom folder.

Go into BaseAI.cs and add this line.

Code:
        AI_Necro

Then go into Basecreature.cs and add this line.

Code:
                case AIType.AI_Necro:
                    m_AI = new NecroAI(this);
                    break;

Then go into OppositionGroup.cs and add this.

Code:
        private static OppositionGroup m_FireSteedAndIceSteed = new OppositionGroup(new Type[][]
			{
				new Type[]
				{
					typeof( FireSteed )
					
				},
				new Type[]
				{
					typeof( IceSteed )
					
				}
			});

        public static OppositionGroup FireSteedAndIceSteed
        {
            get { return m_FireSteedAndIceSteed; }
        }

Thats it If you have any questions about this feel free to ask.
 

Attachments

  • CustomQuests.rar
    597.3 KB · Views: 952

Johabius

Knight
Just wanted to say thank you for updating these quests. Some of these I remember quite fondly, and it's nice to have them all in one place again.:)
 

Draegen

Sorceror
You are welcome i will be updating this even more.

I have found mispelling in a lot of them. But i have fixed that but still needs more updates done.

Like i will be going though fixing the hues on some items and stats on others. possiable changing some of they rewards as well. so more shards ill use this quests.
 

Tylius

Sorceror
IceSteed is missing from the quest pack, I added it from the Advanced Taming System and removed the references to NextLevel inside of that, seems to compile fine now
 

Elora

Wanderer
ack, I've probably done something wrong. After unzipping into custom, and making the changes in first post, I get this error:

Code:
Errors:
 + Custom/Ore Elementals/OreElementals.cs:
    CS0101: Line 280: The namespace 'Server.Mobiles' already contains a definiti
on for 'JadeElemental'
 + Items/Resources/Blacksmithing/Ore.cs:
    CS0101: Line 744: The namespace 'Server.Items' already contains a definition
 for 'JadeOre'

Can anyone point me in the right direction? It was working perfectly before I added the quests, and made the changes.
Any help would be greatly appreciated.
Thanks,
~Elora
 

Cyndrz

Wanderer
Tons of nice quests in here. Thank You

This will help out a ton.

I havent tried my luck at updating to many files myself yet.

I was wondering if you or anyone else has maybe seem the Hades creature updated anywhere?

Sorry if that question was inapropriate but seeing all these quests made me think of it.

Thank you agian.
 

Raynew43

Sorceror
Jorme;753756 said:
Where should I add those lines? If I add them in the end of the file, the server wont start!

I'll try to answer this. Still being relatively new to scripting just by playing around, I hope someone will correct me if wrong :)

In BaseAI.cs, add AI_Necro here between Lines 19 and 30
Code:
public enum AIType
	{
		AI_Use_Default,
		AI_Melee,
		AI_Animal,
		AI_Archer,
		AI_Healer,
		AI_Vendor,
		AI_Mage,
		AI_Berserk,
		AI_Predator,
		AI_Thief
                          [COLOR="Red"]AI_Necro[/COLOR]
	}

In BaseCreature.cs, add around line 1979

Code:
switch ( NewAI )
			{
				case AIType.AI_Melee:
					m_AI = new MeleeAI(this);
					break;
				case AIType.AI_Animal:
					m_AI = new AnimalAI(this);
					break;
				case AIType.AI_Berserk:
					m_AI = new BerserkAI(this);
					break;
				case AIType.AI_Archer:
					m_AI = new ArcherAI(this);
					break;
				case AIType.AI_Healer:
					m_AI = new HealerAI(this);
					break;
				case AIType.AI_Vendor:
					m_AI = new VendorAI(this);
					break;
				case AIType.AI_Mage:
					m_AI = new MageAI(this);
					break;
				case AIType.AI_Predator:
					//m_AI = new PredatorA(this);
					m_AI = new MeleeAI(this);
					break;
				case AIType.AI_Thief:
					m_AI = new ThiefAI(this);
					break;
                                                   [COLOR="red"]case AIType.AI_Necro:
                                                               m_AI = new NecroAI(this);
                                                               break; [/COLOR]    
			}
		}

For OppositionGroup.cs, you can add at the end and there should be no problem


For myself, I hope it's right:D
 

peepeetree

Sorceror
I am coming up with all kinds of errors..

Code:
RunUO - [www.runuo.com] Version 2.0, Build 3118.36516
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (8 errors)
Errors:
 + Nerun's Distro/Customs/CustomQuests/Banner Quest-D/SilkWorm.cs:
    CS0115: Line 43: 'Server.Mobiles.SilkWorm.OnCarve(Server.Mobile, Server.Item
s.Corpse)': no suitable method found to override
 + Nerun's Distro/Customs/CustomQuests/craftman quest/earwen/landblood.cs:
    CS0535: Line 15: 'Server.Items.LandBlood' does not implement interface membe
r 'Server.Items.ICommodity.DescriptionNumber'
 + Nerun's Distro/Customs/CustomQuests/craftman quest/gwindor/crystallinesand.cs
:
    CS0535: Line 15: 'Server.Items.CrystallineSand' does not implement interface
 member 'Server.Items.ICommodity.DescriptionNumber'
 + Nerun's Distro/Customs/CustomQuests/craftman quest/gwindor/DarkMatter.cs:
    CS0535: Line 15: 'Server.Items.DarkMatter' does not implement interface memb
er 'Server.Items.ICommodity.DescriptionNumber'
 + Nerun's Distro/Customs/CustomQuests/Diablo Quest/Red Bone/RedBone.cs:
    CS0535: Line 6: 'Server.Items.RedBone' does not implement interface member '
Server.Items.ICommodity.DescriptionNumber'
 + Nerun's Distro/Customs/CustomQuests/FarmerPilock/PureWhiteFeather.cs:
    CS0535: Line 6: 'Server.Items.PureWhiteFeather' does not implement interface
 member 'Server.Items.ICommodity.DescriptionNumber'
 + Nerun's Distro/Customs/CustomQuests/Water Elemental Quest/CrystalFireElementa
l.cs:
    CS0115: Line 67: 'Server.Mobiles.CrystalFireElemental.OnCarve(Server.Mobile,
 Server.Items.Corpse)': no suitable method found to override
 - Press return to exit, or R to try again.
 

Grom09

Sorceror
i got same error for this quest.. someones conversions from 1.0 to 2.0 are not good

CS0115: Line 43: 'Server.Mobiles.SilkWorm.OnCarve(Server.Mobile, Server.Item
s.Corpse)': no suitable method found to override

the line is

public override void OnCarve(Mobile from, Corpse corpse)

what to change
-
tumaaa help help comon, its not compatible at all Nuba!! oMG.....
 

koluch

Sorceror
peepeetree;777144 said:
I am coming up with all kinds of errors..

Code:
RunUO - [www.runuo.com] Version 2.0, Build 3118.36516
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (8 errors)
Errors:
 + Nerun's Distro/Customs/CustomQuests/Banner Quest-D/SilkWorm.cs:
    CS0115: Line 43: 'Server.Mobiles.SilkWorm.OnCarve(Server.Mobile, Server.Item
s.Corpse)': no suitable method found to override
 + Nerun's Distro/Customs/CustomQuests/craftman quest/earwen/landblood.cs:
    CS0535: Line 15: 'Server.Items.LandBlood' does not implement interface membe
r 'Server.Items.ICommodity.DescriptionNumber'
 + Nerun's Distro/Customs/CustomQuests/craftman quest/gwindor/crystallinesand.cs
:
    CS0535: Line 15: 'Server.Items.CrystallineSand' does not implement interface
 member 'Server.Items.ICommodity.DescriptionNumber'
 + Nerun's Distro/Customs/CustomQuests/craftman quest/gwindor/DarkMatter.cs:
    CS0535: Line 15: 'Server.Items.DarkMatter' does not implement interface memb
er 'Server.Items.ICommodity.DescriptionNumber'
 + Nerun's Distro/Customs/CustomQuests/Diablo Quest/Red Bone/RedBone.cs:
    CS0535: Line 6: 'Server.Items.RedBone' does not implement interface member '
Server.Items.ICommodity.DescriptionNumber'
 + Nerun's Distro/Customs/CustomQuests/FarmerPilock/PureWhiteFeather.cs:
    CS0535: Line 6: 'Server.Items.PureWhiteFeather' does not implement interface
 member 'Server.Items.ICommodity.DescriptionNumber'
 + Nerun's Distro/Customs/CustomQuests/Water Elemental Quest/CrystalFireElementa
l.cs:
    CS0115: Line 67: 'Server.Mobiles.CrystalFireElemental.OnCarve(Server.Mobile,
 Server.Items.Corpse)': no suitable method found to override
 - Press return to exit, or R to try again.

SilkWorm.cs
Code:
[B][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a][SIZE=2][COLOR=#a52a2a]override [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#191970][SIZE=2][COLOR=#191970]OnCarve[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Mobile [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]from[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Corpse corpse[/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Item item [/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]corpse[/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Carved [/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2]base[/B][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#191970][SIZE=2][COLOR=#191970]OnCarve[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]from[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]corpse[/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]item [/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]else if [/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]( ![/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]corpse[/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Carved [/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]([/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Utility[/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#191970][SIZE=2][COLOR=#191970]Random[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#00008b][SIZE=2][COLOR=#00008b]3 [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]) == [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#00008b][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]) 
{ 
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]corpse[/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#191970][SIZE=2][COLOR=#191970]DropItem[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b][SIZE=2][COLOR=#008b8b]new [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#191970][SIZE=2][COLOR=#191970]WormSilk[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]() );
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]from[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#191970][SIZE=2][COLOR=#191970]SendMessage[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"You dig through the worm goo and find some silk!" [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]corpse[/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Carved [/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b][SIZE=2][COLOR=#008b8b]true[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]else 
[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]from[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#191970][SIZE=2][COLOR=#191970]SendMessage[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"You carve into the gooey worm corpse, but find nothing useful." [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]corpse[/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Carved [/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b][SIZE=2][COLOR=#008b8b]true[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400];
}
}
[/COLOR][/SIZE][/COLOR][/SIZE]

CrystalFireElemental.cs

Code:
[B][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]public [/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#a52a2a][SIZE=2][COLOR=#a52a2a]override [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#ff0000][SIZE=2][COLOR=#ff0000]void [/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#191970][SIZE=2][COLOR=#191970]OnCarve[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Mobile [/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]from[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Corpse corpse[/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Item item [/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]corpse[/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Carved [/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400])
[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2]base[/B][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#191970][SIZE=2][COLOR=#191970]OnCarve[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]from[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]corpse[/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400], [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]item [/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]else if [/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]( ![/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]corpse[/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Carved [/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400])
{
[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if [/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]([/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Utility[/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#191970][SIZE=2][COLOR=#191970]Random[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#00008b][SIZE=2][COLOR=#00008b]6 [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]) == [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#00008b][SIZE=2][COLOR=#00008b]1 [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]) 
{ 
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]corpse[/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#191970][SIZE=2][COLOR=#191970]DropItem[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b][SIZE=2][COLOR=#008b8b]new [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#191970][SIZE=2][COLOR=#191970]WaterCrystal[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]() );
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]from[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#191970][SIZE=2][COLOR=#191970]SendMessage[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"You carve into the beast and find a strange crystal." [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]corpse[/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Carved [/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b][SIZE=2][COLOR=#008b8b]true[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400];
}
[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]else 
[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000080][SIZE=2][COLOR=#000080]from[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#191970][SIZE=2][COLOR=#191970]SendMessage[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]( [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]"You carve into the beast, but find nothing useful." [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]);
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]corpse[/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400].[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]Carved [/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400]= [/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#008b8b][SIZE=2][COLOR=#008b8b]true[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#006400][SIZE=2][COLOR=#006400];
}
}
 
[COLOR=black]Attached it the IceSteed.cs to go with the opposition of the Firesteed and the different pet immune and alter melee damage to pets found in a couple of these scripts :][/COLOR]
[/COLOR][/SIZE][/COLOR][/SIZE]
 

Attachments

  • IceSteed.cs
    2.1 KB · Views: 52

simian

Wanderer
Hmmm?

Hey. I really try and figure things out for myself concerning scripting here, but Im a total noob and cant get this to work.
Here is what I keep getting...

Errors:
+ Engines/AI/Creature/OppositionGroup.cs
CS1014: Line 139: A get or set accessor expected
CS1513: Line 151: > expected
CS1022: Line 160: Type or namespace definition, or end-of-file expected

can anyone help me out?
 

gloriagao

Wanderer
peepeetree;777144 said:
I am coming up with all kinds of errors..

Code:
RunUO - [www.runuo.com] Version 2.0, Build 3118.36516
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (8 errors)
Errors:
 + Nerun's Distro/Customs/CustomQuests/Banner Quest-D/SilkWorm.cs:
    CS0115: Line 43: 'Server.Mobiles.SilkWorm.OnCarve(Server.Mobile, Server.Item
s.Corpse)': no suitable method found to override
 + Nerun's Distro/Customs/CustomQuests/craftman quest/earwen/landblood.cs:
    CS0535: Line 15: 'Server.Items.LandBlood' does not implement interface membe
r 'Server.Items.ICommodity.DescriptionNumber'
 + Nerun's Distro/Customs/CustomQuests/craftman quest/gwindor/crystallinesand.cs
:
    CS0535: Line 15: 'Server.Items.CrystallineSand' does not implement interface
 member 'Server.Items.ICommodity.DescriptionNumber'
 + Nerun's Distro/Customs/CustomQuests/craftman quest/gwindor/DarkMatter.cs:
    CS0535: Line 15: 'Server.Items.DarkMatter' does not implement interface memb
er 'Server.Items.ICommodity.DescriptionNumber'
 + Nerun's Distro/Customs/CustomQuests/Diablo Quest/Red Bone/RedBone.cs:
    CS0535: Line 6: 'Server.Items.RedBone' does not implement interface member '
Server.Items.ICommodity.DescriptionNumber'
 + Nerun's Distro/Customs/CustomQuests/FarmerPilock/PureWhiteFeather.cs:
    CS0535: Line 6: 'Server.Items.PureWhiteFeather' does not implement interface
 member 'Server.Items.ICommodity.DescriptionNumber'
 + Nerun's Distro/Customs/CustomQuests/Water Elemental Quest/CrystalFireElementa
l.cs:
    CS0115: Line 67: 'Server.Mobiles.CrystalFireElemental.OnCarve(Server.Mobile,
 Server.Items.Corpse)': no suitable method found to override
 - Press return to exit, or R to try again.

find the way to fix the does not implement interface
member 'Server.Items.ICommodity.DescriptionNumber' problems


open the script find the

public class ***** : Item, ICommodity

ADD THE LINE IN RED, AND IT SHOULD LOOK LIKE THE FOLLOW


Code:
public class RedBone : Item, ICommodity
	{
		string ICommodity.Description
		{
			get
			{
				return String.Format( Amount == 1 ? "{0} redbone" : "{0} redbones", Amount );
			}
		}
       [COLOR="Red"] int ICommodity.DescriptionNumber { get { return LabelNumber; } }[/COLOR]
 
Top