Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 02-11-2006, 11:05 AM   #1 (permalink)
Forum Newbie
 
Lucifer TOP's Avatar
 
Join Date: Oct 2005
Location: Hell
Age: 42
Posts: 90
Default Error Message

Hi I need help fast on this my server is down until I get this fixed.

An yes I did ask this question in the right forum first but Im not getting any answers an Im sure its an easy fix but Im still new to scripting basics.

My error:

Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
 - Error: Scripts\Spells\Reagent.cs: CS0101: (line 27, column 15) The namespace
'Server.Spells' already contains a definition for 'Reagent'
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.

Now the script:

Code:
/*
Special thanks to Ryan.
With RunUO we now have the ability to become our own Richard Garriott.
All Spells System created by x-SirSly-x, Admin of Land of Obsidian.
All Spells System 4.0 created & supported by Lucid Nagual, Admin of The Conjuring.
All Spells System 5.0 created by A_li_N.
    _________________________________
 -=(_)_______________________________)=-
   /   .   .   . ____  . ___      _/
  /~ /    /   / /     / /   )2005 /
 (~ (____(___/ (____ / /___/     (
  \ ----------------------------- \
   \     lucidnagual@gmail.com     \
    \_     ===================      \
     \   -Admin of "The Conjuring"-  \
      \_     ===================     ~\
       )       All Spells System       )
      /~      Version [5].0.1        _/
    _/_______________________________/
 -=(_)_______________________________)=-
 */
using System;
using Server.Items;

namespace Server.Spells
{
	public class Reagent
	{
////////////////////////////
//  All Spell s Edit 1/3  //
////////////////////////////
		private static Type[] m_Types = new Type[17]  //Changed for # of items to include Lost Alchemy
////////////////////////////
//      End Edit 1/3      //
////////////////////////////
			{
				typeof( BlackPearl ),
				typeof( Bloodmoss ),
				typeof( Garlic ),
				typeof( Ginseng ),
				typeof( MandrakeRoot ),
				typeof( Nightshade ),
				typeof( SulfurousAsh ),
				typeof( SpidersSilk ),
				typeof( BatWing ),
				typeof( GraveDust ),
				typeof( DaemonBlood ),
				typeof( NoxCrystal ),
				typeof( PigIron ),
////////////////////////////
//  All Spell s Edit 2/3  //
////////////////////////////
				typeof( SpringWater ),
				typeof( DestroyingAngel ),
				typeof( PetrafiedWood ),
				typeof( Kindling )
////////////////////////////
//      End Edit 2/3      //
////////////////////////////
			};

		public Type[] Types
		{
			get{ return m_Types; }
		}

		public static Type BlackPearl
		{
			get{ return m_Types[0]; }
			set{ m_Types[0] = value; }
		}

		public static Type Bloodmoss
		{
			get{ return m_Types[1]; }
			set{ m_Types[1] = value; }
		}

		public static Type Garlic
		{
			get{ return m_Types[2]; }
			set{ m_Types[2] = value; }
		}

		public static Type Ginseng
		{
			get{ return m_Types[3]; }
			set{ m_Types[3] = value; }
		}

		public static Type MandrakeRoot
		{
			get{ return m_Types[4]; }
			set{ m_Types[4] = value; }
		}

		public static Type Nightshade
		{
			get{ return m_Types[5]; }
			set{ m_Types[5] = value; }
		}

		public static Type SulfurousAsh
		{
			get{ return m_Types[6]; }
			set{ m_Types[6] = value; }
		}

		public static Type SpidersSilk
		{
			get{ return m_Types[7]; }
			set{ m_Types[7] = value; }
		}

		public static Type BatWing
		{
			get{ return m_Types[8]; }
			set{ m_Types[8] = value; }
		}

		public static Type GraveDust
		{
			get{ return m_Types[9]; }
			set{ m_Types[9] = value; }
		}

		public static Type DaemonBlood
		{
			get{ return m_Types[10]; }
			set{ m_Types[10] = value; }
		}

		public static Type NoxCrystal
		{
			get{ return m_Types[11]; }
			set{ m_Types[11] = value; }
		}

		public static Type PigIron
		{
			get{ return m_Types[12]; }
			set{ m_Types[12] = value; }
		}
////////////////////////////
//  All Spell s Edit 3/3  //
////////////////////////////
		public static Type SpringWater
		{
			get{ return m_Types[13]; }
			set{ m_Types[13] = value; }
		}
		public static Type DestroyingAngel
		{
			get{ return m_Types[14]; }
			set{ m_Types[14] = value; }
		}
		public static Type PetrafiedWood
		{
			get{ return m_Types[15]; }
			set{ m_Types[15] = value; }
		}
		public static Type Kindling
		{
			get{ return m_Types[16]; }
			set{ m_Types[16] = value; }
		}
		
////////////////////////////
//      End Edit 3/3      //
////////////////////////////
             
 	}
}

Please Any help would be greatly enjoyed.

Lucifer
Time Of Peril
Lucifer TOP is offline  
Old 02-11-2006, 12:58 PM   #2 (permalink)
CEO
Forum Novice
 
CEO's Avatar
 
Join Date: Jun 2004
Age: 48
Posts: 782
Default

The error message is pretty self explanatory.

Code:
 - Error: Scripts\Spells\Reagent.cs: CS0101: (line 27, column 15) The namespace
'Server.Spells' already contains a definition for 'Reagent'
You have 2 definitions of the class Reagent. Did you copy Reagent.cs and make the mods in the copy? If so, move the old Reagent.cs out of the scripts directory. Somewhere there is another class defined in one of your script files, you'll need to find it.
__________________
If you PM me and ask me to write scripts for you I will add you to my ignore list.
Please don't add me to your friends list, I have enough friends. Thx
CEO is offline  
Old 02-11-2006, 01:23 PM   #3 (permalink)
Forum Newbie
 
Lucifer TOP's Avatar
 
Join Date: Oct 2005
Location: Hell
Age: 42
Posts: 90
Default Thanks

Thks for the reply,

I figured as much but needed confirmation before I deleated something that I needed.

thks
Lucifer
Lucifer TOP is offline  
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5