Hi guys!
i'm just a beginner of writing script.
when i use the package of druid , the server show 3 errors and 3 warnings.
since i'm not good in english...i don't know how to translate those chinese into english~~
i hope u guys can understand what i mean
- Warning: Scripts\Customs\MOTD\motd.cs: CS0183: (line 205, column 49) 指定的é‹
ç®—å¼æ°¸é*為æ供的 ('Server.Mobiles.PlayerMobile') 型別
- Warning: Scripts\Customs\New\Commands\SpawnEditor.cs: CS0162: (line 548, colu
mn 6) åµæ¸¬åˆ°ä¸å¯èƒ½åŸ·è¡Œåˆ°çš„程å¼ç¢¼
- Warning: Scripts\Customs\New\Commands\SpawnEditor.cs: CS0219: (line 614, colu
mn 10) 已指派變數 'check',但從未使用其值
- Error: Scripts\Spells\Reagent.cs: CS0118: (line 24, column 13) 'Server.Spells
.Reagent.Blackrock' 代表 '屬性',但是必é*ˆæ˜¯ '類別'
- Error: Scripts\Spells\Reagent.cs: CS0118: (line 28, column 21) 'Server.Spells
.Reagent.WyrmsHeart' 代表 '屬性',但是必é*ˆæ˜¯ '類別'
- Error: Scripts\Spells\Reagent.cs: CS0246: (line 29, column 21) 找ä¸åˆ°åž‹åˆ¥æˆ–命
å空間å稱 'SerpentsScale' (您是å¦éºæ¼ using 指示詞或組件åƒè€ƒ?)
Scripts: One or more scripts failed to compile or no script files were found.
Here is my reagent.cs :
using System;
using Server.Items;
namespace Server.Spells
{
public class Reagent
{
private static Type[] m_Types = new Type[20]
{
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 ),
typeof( Carrot ),
typeof( Blackrock ),
typeof( SpringWater ),
typeof( DestroyingAngel ),
typeof( PetrafiedWood ),
typeof( WyrmsHeart ),
typeof( SerpentsScale )
};
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; }
}
public static Type Carrot
{
get{ return m_Types[13]; }
set{ m_Types[13] = value; }
}
public static Type Blackrock
{
get{ return m_Types[14]; }
set{ m_Types[14] = value; }
}
public static Type SpringWater
{
get{ return m_Types[15]; }
set{ m_Types[15] = value; }
}
public static Type DestroyingAngel
{
get{ return m_Types[16]; }
set{ m_Types[16] = value; }
}
public static Type PetrafiedWood
{
get{ return m_Types[17]; }
set{ m_Types[17] = value; }
}
public static Type WyrmsHeart
{
get{ return m_Types[18]; }
set{ m_Types[18] = value; }
}
public static Type SerpentScale
{
get{ return m_Types[19]; }
set{ m_Types[19] = value; }
}
}
}
THANKS for help ..... i really want to enjoy this Druid Spells!!