Whooper7777
Wanderer
aha now i have learned something new and i think it works
if this works im sending working set of vampires
if this works im sending working set of vampires
Scripts: Compiling C# scripts...failed (73 errors, 0 warnings)
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\Vampire.cs: CS1513: (line 49,
column 29) } expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
11, column 10) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1002: (line
11, column 24) ; expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
11, column 46) Invalid token ',' in class, struct, or interface member declarati
on
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
11, column 65) Invalid token ',' in class, struct, or interface member declarati
on
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
13, column 9) Invalid token '=' in class, struct, or interface member declaratio
n
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
14, column 9) Invalid token '=' in class, struct, or interface member declaratio
n
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
15, column 16) Invalid token '=' in class, struct, or interface member declarati
on
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
16, column 8) Invalid token '=' in class, struct, or interface member declaratio
n
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
18, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
18, column 12) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
19, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
19, column 12) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
20, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
20, column 12) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
22, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
22, column 13) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
24, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
24, column 15) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
26, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
26, column 42) Identifier expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
26, column 44) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
27, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
27, column 38) Identifier expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
27, column 40) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
28, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
28, column 40) Identifier expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
28, column 42) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
30, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
30, column 42) Identifier expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
30, column 44) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
31, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
31, column 38) Identifier expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
31, column 40) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
32, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
32, column 38) Identifier expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
32, column 40) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
33, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
33, column 40) Identifier expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
33, column 42) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
34, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
34, column 40) Identifier expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
34, column 42) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
36, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
36, column 31) Identifier expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
36, column 33) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
37, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
37, column 30) Identifier expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
37, column 32) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
38, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
38, column 34) Identifier expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
38, column 36) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
39, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
39, column 33) Identifier expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
39, column 35) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
40, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
40, column 35) Identifier expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
40, column 37) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
41, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
41, column 31) Identifier expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
41, column 33) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
42, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1001: (line
42, column 33) Identifier expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
42, column 35) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
44, column 9) Invalid token '=' in class, struct, or interface member declaratio
n
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
45, column 10) Invalid token '=' in class, struct, or interface member declarati
on
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
47, column 17) Invalid token '=' in class, struct, or interface member declarati
on
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
49, column 4) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1031: (line
49, column 18) Type expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1520: (line
62, column 10) Class, struct, or interface method must have a return type
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1002: (line
62, column 39) ; expected
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireLord.cs: CS1519: (line
62, column 54) Invalid token ')' in class, struct, or interface member declarati
on
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\VampireSlave.cs: CS1513: (line
49, column 29) } 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;
using Server.Items;
namespace Server.Mobiles
{
[CorpseName( "an vampire Lord's corpse" )]
public class VampireKing : BaseCreature
{
[Constructable]
public VampireLord() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "Vampire King";
Body = 0x3CA;
BaseSoundID = 0x482;
Hue = 2847;
SetStr( 342, 453 );
SetDex( 115, 145 );
SetInt( 545, 876 );
SetHits( 1000, 1600 );
SetDamage( 47, 69 );
SetDamageType( ResistanceType.Physical, 30 );
SetDamageType( ResistanceType.Cold, 40 );
SetDamageType( ResistanceType.Energy, 40 );
SetResistance( ResistanceType.Physical, 55, 65 );
SetResistance( ResistanceType.Fire, 25, 30 );
SetResistance( ResistanceType.Cold, 50, 60 );
SetResistance( ResistanceType.Poison, 50, 60 );
SetResistance( ResistanceType.Energy, 25, 30 );
SetSkill( SkillName.EvalInt, 120.1, 130.0 );
SetSkill( SkillName.Magery, 120.1, 150.0 );
SetSkill( SkillName.Meditation, 100.1, 101.0 );
SetSkill( SkillName.Poisoning, 110.1, 120.0 );
SetSkill( SkillName.MagicResist, 200.2, 300.0 );
SetSkill( SkillName.Tactics, 140.1, 212.0 );
SetSkill( SkillName.Wrestling, 111.1, 134.0 );
Fame = 23000;
Karma = -23000;
VirtualArmor = 70;
PackNecroReg( 150, 200 );
public override void GenerateLoot()
{
AddLoot( LootPack.SuperBoss, 3 );
AddLoot( LootPack.MedScrolls, 2 );
}
public override bool Unprovokable{ get{ return true; } }
public override bool AlwaysMurderer{ get{ return true; } }
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
public override int TreasureMapLevel{ get{ return 5; } }
public VampireLord( 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();
}
}
}
using System;
using Server;
using Server.Items;
namespace Server.Mobiles
{
[CorpseName( "an vampire Slave's corpse" )]
public class VampireSlave : BaseCreature
{
[Constructable]
public VampireSlave() : base( AIType.AI_Meelee, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "Vampire Guard";
Body = 0x3CA;
BaseSoundID = 0x482;
Hue = 2780;
SetStr( 87, 137 );
SetDex( 96, 115 );
SetInt( 545, 876 );
SetHits( 560, 595 );
SetDamage( 15, 27 );
SetDamageType( ResistanceType.Physical, 20 );
SetDamageType( ResistanceType.Cold, 40 );
SetDamageType( ResistanceType.Energy, 40 );
SetResistance( ResistanceType.Physical, 55, 65 );
SetResistance( ResistanceType.Fire, 25, 30 );
SetResistance( ResistanceType.Cold, 50, 60 );
SetResistance( ResistanceType.Poison, 50, 60 );
SetResistance( ResistanceType.Energy, 25, 30 );
SetSkill( SkillName.EvalInt, 87.1, 130.0 );
SetSkill( SkillName.Magery, 67.1, 130.0 );
SetSkill( SkillName.Meditation, 56.1, 101.0 );
SetSkill( SkillName.Poisoning, 100.1, 101.0 );
SetSkill( SkillName.MagicResist, 175.2, 200.0 );
SetSkill( SkillName.Tactics, 90.1, 100.0 );
SetSkill( SkillName.Wrestling, 75.1, 100.0 );
Fame = 23000;
Karma = -23000;
VirtualArmor = 60;
PackNecroReg( 150, 200 );
public override void GenerateLoot()
{
AddLoot( LootPack.FilthyRich, 3 );
AddLoot( LootPack.MedScrolls, 2 );
}
public override bool Unprovokable{ get{ return true; } }
public override bool AlwaysMurderer{ get{ return true; } }
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
public override int TreasureMapLevel{ get{ return 5; } }
public VampireSlave( 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();
}
}
}
- Error: Scripts\Mobiles\Monsters\Humanoid\Magic\Vampire.cs : CS1513: (line 49,
column 29) [color=red]} expected[/color]
using System;
using Server;
using Server.Items;
namespace Server.Mobiles
{
[CorpseName( "an vampire's corpse" )]
public class Vampire : BaseCreature
{
[Constructable]
public Vampire() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
{
Name = "Vampire";
Body = 0x3CA;
BaseSoundID = 0x482;
Hue = 2708;
SetStr( 145, 234 );
SetDex( 96, 115 );
SetInt( 545, 876 );
SetHits( 560, 595 );
SetDamage( 15, 27 );
SetDamageType( ResistanceType.Physical, 20 );
SetDamageType( ResistanceType.Cold, 40 );
SetDamageType( ResistanceType.Energy, 40 );
SetResistance( ResistanceType.Physical, 55, 65 );
SetResistance( ResistanceType.Fire, 25, 30 );
SetResistance( ResistanceType.Cold, 50, 60 );
SetResistance( ResistanceType.Poison, 50, 60 );
SetResistance( ResistanceType.Energy, 25, 30 );
SetSkill( SkillName.EvalInt, 120.1, 130.0 );
SetSkill( SkillName.Magery, 120.1, 130.0 );
SetSkill( SkillName.Meditation, 100.1, 101.0 );
SetSkill( SkillName.Poisoning, 100.1, 101.0 );
SetSkill( SkillName.MagicResist, 175.2, 200.0 );
SetSkill( SkillName.Tactics, 90.1, 100.0 );
SetSkill( SkillName.Wrestling, 75.1, 100.0 );
Fame = 23000;
Karma = -23000;
VirtualArmor = 60;
PackNecroReg( 150, 200 );
public override void GenerateLoot()
{
AddLoot( LootPack.UltraRich, 3 );
AddLoot( LootPack.MedScrolls, 2 );
}
public override bool Unprovokable{ get{ return true; } }
public override bool AlwaysMurderer{ get{ return true; } }
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
public override int TreasureMapLevel{ get{ return 5; } }
public Vampire( 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();
}
}
}
if (Utility.Random( 15 ) == 1 )
{
PackItem( new SwordofValor() );
}
Murzin said:it is never a good idea to set the chance to drop at either end of the possible outcome because from what i can tell the random number generator isnt very accurate.
think of it more as like a bell-curve.. if you put it in the middle you will get a drop too often.. put it at an extreme range of the possible outcomes and you get too few drops..
Scripts: Compiling C# scripts...failed (5 errors, 0 warnings)
- Error: Scripts\Customs\Artifacts\VialofBlood.cs: CS1513: (line 40, 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();
}
}
}