Whooper7777
Wanderer
i know that there is mayby this missing } or { but just cant find the place
Whooper7777 said:i know that there is mayby this missing } or { but just cant find the place
- Error: Scripts\Customs\Artifacts\VialofBlood.cs: CS1513: [color=red](line 40,[/color] column 4)
} expected
- Error: Scripts\Customs\Artifacts\VialofBlood.cs: CS1518: (line 46, column 16)
Expected class, delegate, enum, interface, or struct
- Error: Scripts\Customs\Artifacts\VialofBlood.cs: CS1518: (line 50, column 25)
Expected class, delegate, enum, interface, or struct
- Error: Scripts\Customs\Artifacts\VialofBlood.cs: CS1518: (line 57, column 25)
Expected class, delegate, enum, interface, or struct
- Error: Scripts\Customs\Artifacts\VialofBlood.cs: CS1022: (line 64, column 1)
Type or namespace definition, or end-of-file expected
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
using System;
using Server;
namespace Server.Items
{
public class VialofBlood : BaseItem
{
[Constructable]
public VialofBlood()
{
Name = "Vial of Blood";
ItemID = 3620;
Weight = 3.0;
Hue = 2671;
}
public override void OnDoubleClick( Mobile from )
{
string modName = m.Serial.ToString();
StatMod smod = m.GetStatMod( "Str" );
StatMod dmod = m.GetStatMod( "Dex" );
StatMod imod = m.GetStatMod( "Int" );
if ( smod != null && imod != null && dmod != null)
{
m.SendMessage( "You applied blood to your own blood!" );
}
else if (smod == null && imod == null && dmod == null)
{
m.AddStatMod( new StatMod( StatType.Int, modName + "Int", 20, TimeSpan.FromMinutes( 5 ) ) );
m.AddStatMod( new StatMod( StatType.Dex, modName + "Dex", 20, TimeSpan.FromMinutes( 5 ) ) );
m.AddStatMod( new StatMod( StatType.Str, modName + "Str", 20, TimeSpan.FromMinutes( 5 ) ) );
m.Hits = m.HitsMax ;
m.Mana = m.ManaMax ;
m.Stam = m.StamMax ;
this.Delete();
m.SendMessage( "You feel Super!" );
}
}
public override TimeSpan Duration{ get{ return TimeSpan.FromMinutes( 3.0 ); } }
}
public VialofBlood( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
public override TimeSpan Duration{ get{ return TimeSpan.FromMinutes( 3.0 ); } }
}
} public override TimeSpan Duration{ get{ return TimeSpan.FromMinutes( 3.0 ); } }
using System;
using Server;
using Server.Items;
namespace Server.Items
{
public class VialofBlood : Item
{
[Constructable]
public VialofBlood()
{
Name = "Vial of Blood";
ItemID = 3620;
Weight = 3.0;
Hue = 2671;
}
public override void OnDoubleClick( Mobile from )
{
string modName = from.Serial.ToString();
StatMod smod = from.GetStatMod( "Str" );
StatMod dmod = from.GetStatMod( "Dex" );
StatMod imod = from.GetStatMod( "Int" );
if ( smod != null && imod != null && dmod != null)
{
from.SendMessage( "You applied blood to your own blood!" );
}
else if (smod == null && imod == null && dmod == null)
{
from.AddStatMod( new StatMod( StatType.Int, modName + "Int", 20, TimeSpan.FromMinutes( 5 ) ) );
from.AddStatMod( new StatMod( StatType.Dex, modName + "Dex", 20, TimeSpan.FromMinutes( 5 ) ) );
from.AddStatMod( new StatMod( StatType.Str, modName + "Str", 20, TimeSpan.FromMinutes( 5 ) ) );
from.Hits = from.HitsMax;
from.Mana = from.ManaMax;
from.Stam = from.StamMax;
this.Delete();
from.SendMessage( "You feel Super!" );
}
}
public VialofBlood( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}