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!

Help with race stone errors plz

Help with race stone errors plz

UPDATED per Request

Racestone.cs
[code:1]
using System;
using Server;
using Server.Mobiles;
using Server.Items;
using Server.Gumps;
using Server.Network;

namespace Server.Items
{
public class RaceStone : Item
{
[Constructable]
public RaceStone() : base( 0xED4 )
{
Movable = false;
Name = "Race Stone";
Hue = 33;
}

public override void OnDoubleClick( Mobile from )
{
from.SendGump(new RaceGump(from, RacePage.Info) );
}

public RaceStone( 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 enum RacePage
{
Info,
WildElf,
GreyElf,
ArcticElf,
MountainDwarf,
DrowElf,
DarkDwarf,
HillDwarf,
Orc,
}

public class RaceGump : Gump
{
private Mobile m_From;
private RacePage m_Page;

private const int Blanco = 0xFFFFFF;
private const int Azul = 0x8080FF;

public void AddPageButton( int x, int y, int buttonID, string text, RacePage page, params RacePage[] subpage )
{
bool seleccionado = ( m_Page == page );

for ( int i = 0; !seleccionado && i < subpage.Length; ++i )
seleccionado = ( m_Page == subpage );

AddButton( x, y - 1, seleccionado ? 4006 : 4005, 4007, buttonID, GumpButtonType.Reply, 0 );
AddHtml( x + 35, y, 200, 20, Color( text, seleccionado ? Azul : Blanco ), false, false );
}

public void AddButtonLabeled( int x, int y, int buttonID, string text )
{
AddButton( x, y - 1, 4005, 4007, buttonID, GumpButtonType.Reply, 0 );
AddHtml( x + 35, y, 240, 20, Color( text, Blanco ), false, false );
}

public int GetButtonID( int type, int index )
{
return 1 + (index * 15) + type;
}

public string Color( string text, int color )
{
return String.Format( "<BASEFONT COLOR=#{0:X6}>{1}</BASEFONT>", color, text );
}

public RaceGump ( Mobile from, RacePage page) : base ( 40, 45 )
{
from.CloseGump( typeof( RaceGump ) );

m_From = from;
m_Page = page;
Closable = true;
Dragable = false;
from.Frozen = true;

AddPage( 0 );
AddBackground( 0, 0, 531, 360, 5054 );
AddAlphaRegion( 10, 10, 511, 340 );


AddImageTiled( 11, 37, 149, 19, 0x52 );
AddImageTiled( 11, 37, 148, 18, 0xBBC );
AddLabel( 35, 37, 0, "Choose Your Race" ); // choose your race

AddImageTiled( 11, 11, 509, 21, 0x52 );
AddImageTiled( 11, 11, 507, 19, 0xBBC );
AddLabel( 165, 11, 0, "Race Selection Menu" ); // Race selection menu


AddImageTiled( 10, 32, 511, 5, 5058 );
AddImageTiled( 10, 287, 511, 5, 5058 );
AddImageTiled( 160, 37, 5, 250, 5058 );

AddPageButton( 40, 75, GetButtonID( 0, 0 ), "Initial Page", RacePage.Info ); //Initial Page
AddPageButton( 40, 110, GetButtonID( 0, 1 ), "Wild Elf", RacePage.WildElf); // WildElf
AddPageButton( 40, 135, GetButtonID( 0, 2 ), "Grey Elf", RacePage.GreyElf); // GreyElf
AddPageButton( 40, 160, GetButtonID( 0, 3 ), "Arctic Elf", RacePage.ArcticElf); // ArcticElf
AddPageButton( 40, 185, GetButtonID( 0, 4 ), "Mountain Dwarf", RacePage.MountainDwarf); // MountainDwarf
AddPageButton( 40, 210, GetButtonID( 0, 5 ), "Drow Elf", RacePage.DrowElf); // DrowElf
AddPageButton( 40, 235, GetButtonID( 0, 6 ), "Dark Dwarf", RacePage.DarkDwarf); // DarkDwarf
AddPageButton( 40, 260, GetButtonID( 0, 7 ), "Hill Dwarf", RacePage.HillDwarf); // HillDwarf
AddPageButton( 40, 285, GetButtonID( 0, 8 ), "Orc", RacePage.Orc); // Orc

switch ( page )
{
case RacePage.Info:
{
AddHtml( 172, 40, 337, 245, String.Format("Welcome to the Land of Tunirus Race Stone. Please select your race from the menu provided.\n"), true, true );
break;
}
case RacePage.WildElf:
{
AddHtml( 172, 40, 337, 245, String.Format("<center>* The Wild Elf *</center>\nThe Wild Elves live in the large forests all over the land. Wild elves generally are stronger and bigger than their civilized cousins and dislike the hustle and bustle of the big cities, preferring the quiet atmosphere of their forests. The Wild Elves almost perished during the Great Rendering and now call the lands of Malas their home. The most famous Wild Elf is Amalas, who led the wild elves away from the council of Kirish' Da, thus separating from their Grey Elf cousins.\n"), true, true ); // Wild Elf Description
AddPageButton( 50, 317, GetButtonID( 1, 0 ), "Back To Main Menu", RacePage.Info); // Back to Main Menu
AddButtonLabeled( 300, 317, GetButtonID( 1, 1 ), "I Want To Be A Wild Elf" ); // I want to be a Wild Elf
break;
}

case RacePage.GreyElf:
{
AddHtml( 172, 40, 337, 245, String.Format("<center>* The Grey Elf *</center>\nGrey Elves are slighter than most humans, as well as being shorter and more fragile. The grey elves were brought into the world by the Gods of Good, and they enjoy natural beauty and live long lives, allowing things to take their course. Grey elves live to be 1200 years old, though they generally leave the world before this time.\n\nThe grey elf race is inherently magical, shaping natural elements of the world to their will and keeping things in balance. Grey elves possess a high level of dexterity as well as infravision, the ability to see infrared outlines of creatures in the dark. Tunirus Grey Elves are haughty creatures, considering themselves superior to the lesser races.\n\nThey consider themselves to be the purest elves-in fact they fought the War of Sorrow because of it. Ga'lith, the traditional elvenhome, went to war with the Valihann Empire to preserve their purity and to root out the half-elves born through illicit unions of elves and humans. After the war, the elven nation split, and those choosing to remain in Ga'lith became even more set in their ways. The Grey Elves are ruled by the Speaker of the Waves, who lives in the capitol, Lakeshire. Famous Grey Elves are Galyrion, Laril Keladon, Alhana Starlight and Anar Vithril the Lightbringer.\n"), true, true ); // Wild Elf Description
AddPageButton( 50, 317, GetButtonID( 1, 0 ), "Back To Main Menu", RacePage.Info); // Back to Main Menu
AddButtonLabeled( 300, 317, GetButtonID( 1, 2 ), "I Want To Be A Grey Elf" ); // I want to be a Grey Elf
break;
}

case RacePage.ArcticElf:
{
AddHtml( 172, 40, 337, 245, String.Format("<center>* The Arctic Elf *</center>\nThe Arctic Elves live in the frozen regions all over the land. Arctic elves generally are stronger and bigger than their cousins and dislike the warmth and greenery of the rest of the land, preferring the quiet atmosphere of their glaciers. The Arctic Elves almost perished during the Great Rendering and now call all the arctic lands of Tunirus their home. The most famous Arctic Elf is Blanir, who led the arctic elves to safety during the Great Renering, thus separating them from their Elvish cousins.\n\nFor Elven build see Elves.\n\n"), true, true ); // Arctic Elf Description
AddPageButton( 50, 317, GetButtonID( 1, 0 ), "Back To Main Menu", RacePage.Info); // Back to Main Menu
AddButtonLabeled( 300, 317, GetButtonID( 1, 3 ), "I Want To Be A Arctic Elf" ); // I want to be a Arctic Elf
break;
}

case RacePage.MountainDwarf:
{
AddHtml( 172, 40, 337, 245, String.Format("<center>* The Mountain Dwarf *</center>\nMountain Dwarves are shorter and stockier than humans or elves, but as such they are more solid than either of the taller races. Mountain Dwarves live in underground dwellings for the most part, preferring to spend their days mining precious metals or shaping stone and metal to their will. They are exceptional blacksmiths and craftsmen. Mountain Dwarves live to be about 350 years old.\n\nThe most important feature of any dwarf is his beard. Even dwarven women have whiskers, but the men are able to grow a full beard, of which they are intensely proud. The only dwarf to shave his beard was Damak Hammerfell, the dwarven hero, who shaved it to show his shame in killing his countrymen during the BloodyAxe War. In addition, dwarves have infravision, the ability to sense direction, depth and slope underground and are incredibly resistant to magic, distrusting its properties almost entirely.\n\nLike the elves, the dwarves experienced a split in their unity when some of the dwarves who preferred to live outside left the underground dwellings for the freedom of the exterior. These dwarves came to be known as the Ragers, or Hill Dwarves. The remaining clans of Mountain Dwarves are known as the Hammerfell, Hammerhand, Fireforge, Mastersmith, Stonemason, , GreatAxe and IronFist. \n"), true, true ); // Mountain Dwarf Description
AddPageButton( 50, 317, GetButtonID( 1, 0 ), "Back To The Main Menu", RacePage.Info); // Back to Main Menu
AddButtonLabeled( 300, 317, GetButtonID( 1, 4 ), "I Want To Be A Mountain Dwarf"); // I want to be a Mountain Dwarf
break;
}

case RacePage.DrowElf:
{
AddHtml( 172, 40, 337, 245, String.Format("<center>* The Drow Elf*</center>\nThis nationality of elf was created by the evil Goddess Taimat following the War of Sorrow. These 'Dark' elves left the light in an effort to get away from the rigidity of their cousins; however they have become rigid over time as well. The Drow Elves are basically an underworld elf. They are evil & chaotic in nature and can be murderous and vindictive if you get on their bad side. They are the darkside of the elven species. The Drow are ruled by the Valsharess d' Oloth. The most famous and notable of Drow Elves are the likes of Kalmak, Linmir, Giltanis, and Pakela\n "), true, true ); // Drow Elf Description
AddPageButton( 50, 317, GetButtonID( 1, 0 ), "Back ToMain Menu", RacePage.Info); // Back to Main Menu
AddButtonLabeled( 300, 317, GetButtonID( 1, 5 ), "I Want To Be A Drow Elf" ); // I want to be a Drow Elf
break;
}


case RacePage.DarkDwarf:
{
AddHtml( 172, 40, 337, 245, String.Format("<center>* The Dark Dwarf *</center>\nDark Dwarves are shorter and thinner than their Dwarven cousins, but as such they are still more solid than either of the taller races. Dark Dwarves live very deep in the mountains preferring underground dwellings for the most part, preferring to spend their days plotting the demise of their closest cousins the Mountain Dwarves. They feel it is the Mountain Dwarves fault that the Gods punished them for their part in the BloodAxe War by placing them deep within the mountains to where even Mountain Dwarves dare not venture.They are exceptional warriors and poisoners. Dark Dwarves live to be about 230 years old.\n\nThe most important item of any dark dwarf is his weapon. Even dark dwarven women have weapons hidden upon the persons, but the men carry several battle tested weapons at once, of which they are intensely proud. In addition, dwarves have infravision, the ability to sense direction, depth and slope underground and are incredibly resistant to magic, distrusting its properties almost entirely.\n\nLike the elves, the dwarves experienced a split in their unity when some of the dwarves who preferred to move to the outside, or to stay inside continuing to live in underground dwellings for the safety and convienence, yet some dwell very deep as they pay for their treachory in the BloodAxe War. These dwarves came to be known as the Ugars, or Dark Dwarves. The remaining clans of Dark Dwarves are known as the Steelfist, Rustblade, ColdAxe, Firebrand, Greatsmith, Bloodhammer and Darkhand.\n "), true, true ); // Dark Dwarf Description
AddPageButton( 50, 317, GetButtonID( 1, 0 ), "Back ToMain Menu", RacePage.Info); // Back to Main Menu
AddButtonLabeled( 300, 317, GetButtonID( 1, 6 ), "I Want To Be A Dark Dwarf" ); // I want to be a Dark Dwarf
break;
}

case RacePage.HillDwarf:
{
AddHtml( 172, 40, 337, 245, String.Format("<center>* The Hill Dwarf *</center>\nHill Dwarves are taller and stockier than the Mountain Dwarves yet still shorter then humans or elves, but as such they are still more solid than either of the taller races. Hill Dwarves live in small villages in the foot hills of mountains for the most part, preferring to spend their days deal in precious metals or shaping stone, wood, and metal to their will. They are exceptional metalsmiths and craftsmen. Hill Dwarves live to be about 360 years old.\n\nThe most important feature of any dwarf is his beard. Even dwarven women have whiskers, but the men are able to grow a full beard, of which they are intensely proud. The only dwarf to shave his beard was Damak Hammerfell, the dwarven hero, who shaved it to show his shame in killing his countrymen during the BloodyAxe War. In addition, dwarves have infravision, the ability to sense direction, depth and slope underground and are incredibly resistant to magic, distrusting its properties almost entirely.\n\nLike the elves, the dwarves experienced a split in their unity when some of the dwarves who preferred to stay inside continuing to live in underground dwellings for the safety and convienence. These dwarves came to be known as the Kelgers, or Mountain Dwarves. The remaining clans of Hill Dwarves are known as the Hammerfist, Swifthand, StoneAxe, FireStoke, Chiselhand, Feldstone and Ironsmith. \n "), true, true ); // Hill Dwarf Description
AddPageButton( 50, 317, GetButtonID( 1, 0 ), "Back To The Main Menu", RacePage.Info); // Back to Main Menu
AddButtonLabeled( 300, 317, GetButtonID( 1, 7 ), "I Want To Be A Hill Dwarf" ); // I want to be a Hill Dwarf
break;
}

case RacePage.Orc:
{
AddHtml( 172, 40, 337, 245, String.Format("<center>* The Orc *</center>\nHill Dwarves are taller and stockier than the Mountain Dwarves yet still shorter then humans or elves, but as such they are still more solid than either of the taller races. Hill Dwarves live in small villages in the foot hills of mountains for the most part, preferring to spend their days deal in precious metals or shaping stone, wood, and metal to their will. They are exceptional metalsmiths and craftsmen. Hill Dwarves live to be about 360 years old.\n\nThe most important feature of any dwarf is his beard. Even dwarven women have whiskers, but the men are able to grow a full beard, of which they are intensely proud. The only dwarf to shave his beard was Damak Hammerfell, the dwarven hero, who shaved it to show his shame in killing his countrymen during the BloodyAxe War. In addition, dwarves have infravision, the ability to sense direction, depth and slope underground and are incredibly resistant to magic, distrusting its properties almost entirely.\n\nLike the elves, the dwarves experienced a split in their unity when some of the dwarves who preferred to stay inside continuing to live in underground dwellings for the safety and convienence. These dwarves came to be known as the Kelgers, or Mountain Dwarves. The remaining clans of Hill Dwarves are known as the Hammerfist, Swifthand, StoneAxe, FireStoke, Chiselhand, Feldstone and Ironsmith. \n "), true, true ); // Orc Description
AddPageButton( 50, 317, GetButtonID( 1, 0 ), "Back To The Main Menu", RacePage.Info); // Back to Main Menu
AddButtonLabeled( 300, 317, GetButtonID( 1, 8 ), "I Want To Be An Orc" ); // I want to be an Orc
break;
}
}

}

public override void OnResponse( Server.Network.NetState sender, RelayInfo info )
{
int val = info.ButtonID - 1;

if ( val < 0 )
return;

Mobile from = m_From;
from.Frozen = false;

int type = val % 15;
int index = val / 15;

switch ( type )
{
case 0:
{
RacePage page;

switch ( index )
{
case 0: page = RacePage.Info; break;
case 1: page = RacePage.WildElf; break;
case 2: page = RacePage.GreyElf; break;
case 3: page = RacePage.ArcticElf; break;
case 4: page = RacePage.MountainDwarf; break;
case 5: page = RacePage.DrowElf; break;
case 6: page = RacePage.DarkDwarf; break;
case 7: page = RacePage.HillDwarf; break;
case 8: page = RacePage.Orc; break;
default: return;
}

from.SendGump( new RaceGump( from, page) );
break;
}

case 1:
{
switch ( index )
{
case 0:
{
from.SendGump( new RaceGump( from, RacePage.Info) );
break;
}

case 1:
{

WildElfInit(from);
break;
}

case 2:
{

GreyElfInit(from);
break;
}

case 3:
{


ArcticElfInit(from);
break;
}

case 4:
{
MountainDwarfInit(from);
break;
}

case 5:
{

DrowElfInit(from);
break;
}

case 6:
{
DarkDwarfInit(from);
break;
}

case 7:
{
HillDwarfInit(from);
break;
}

case 8:
{


OrcInit(from);
break;
}

}
break;
}

}

}

private void WildElfInit(Mobile from)
{
dovPlayerMobile mp = ((dovPlayerMobile )from );


mp.Hue = 1027;
if ( mp.Hair == null )
{
mp.AddItem( new LongHair() );
mp.Hair.Hue = 1125;
}

if (mp.Female)
{
mp.Hair.Hue = 1126;
mp.Name += ", the Wild Elf";
}
else
{
mp.Hair.Hue = 1125;
mp.Beard.Hue = 1125;
mp.Name += ", the Wild Elf";
}

//SKILLS//
//mp.Skills[SkillName.Anatomy].Cap = 120.0;
//mp.Skills[SkillName.ArmsLore].Cap = 120.0;
//mp.Skills[SkillName.AnimalLore].Cap = 120.0;
//mp.Skills[SkillName.AnimalTaming].Cap = 120.0;
//mp.Skills[SkillName.Begging].Cap = 120.0;
//mp.Skills[SkillName.DetectHidden].Cap = 120.0;
//mp.Skills[SkillName.Discordance].Cap = 120.0;
//mp.Skills[SkillName.EvalInt].Cap = 120.0;
//mp.Skills[SkillName.Forensics].Cap = 120.0;
//mp.Skills[SkillName.Hiding].Cap = 120.0;
//mp.Skills[SkillName.ItemID].Cap = 120.0;
//mp.Skills[SkillName.Meditation].Cap = 120.0;
//mp.Skills[SkillName.Peacemaking].Cap = 120.0;
//mp.Skills[SkillName.Poisoning].Cap = 120.0;
//mp.Skills[SkillName.Provocation].Cap = 120.0;
//mp.Skills[SkillName.RemoveTrap].Cap = 120.0;
//mp.Skills[SkillName.SpiritSpeak].Cap = 120.0;
//mp.Skills[SkillName.Stealing].Cap = 120.0;
//mp.Skills[SkillName.Stealth].Cap = 120.0;
//mp.Skills[SkillName.TasteID].Cap = 120.0;
//mp.Skills[SkillName.Tracking].Cap = 120.0;
//mp.Skills[SkillName.Camping].Cap = 120.0;
//mp.Skills[SkillName.Cooking].Cap = 120.0;
//mp.Skills[SkillName.Fishing].Cap = 120.0;
//mp.Skills[SkillName.Healing].Cap = 120.0;
//mp.Skills[SkillName.Herding].Cap = 120.0;
//mp.Skills[SkillName.Lockpicking].Cap = 120.0;
//mp.Skills[SkillName.Lumberjacking].Cap = 120.0;
//mp.Skills[SkillName.Musicianship].Cap = 120.0;
//mp.Skills[SkillName.Snooping].Cap = 120.0;
//mp.Skills[SkillName.Veterinary].Cap = 120.0;
//mp.Skills[SkillName.Blacksmith].Cap = 120.0;
//mp.Skills[SkillName.Fletching].Cap = 120.0;
//mp.Skills[SkillName.Carpentry].Cap = 120.0;
//mp.Skills[SkillName.Alchemy].Cap = 120.0;
//mp.Skills[SkillName.Inscribe].Cap = 120.0;
//mp.Skills[SkillName.Cartography].Cap = 120.0;
//mp.Skills[SkillName.Tinkering].Cap = 120.0;
//mp.Skills[SkillName.Tailoring].Cap = 120.0;
//mp.Skills[SkillName.Archery].Cap = 120.0;
//mp.Skills[SkillName.Fencing].Cap = 120.0;
//mp.Skills[SkillName.Macing].Cap = 120.0;
//mp.Skills[SkillName.Magery].Cap = 120.0;
//mp.Skills[SkillName.Parry].Cap = 120.0;
//mp.Skills[SkillName.Swords].Cap = 120.0;
//mp.Skills[SkillName.Tactics].Cap = 120.0;
//mp.Skills[SkillName.Wrestling].Cap = 120.0;
//mp.Skills[SkillName.MagicResist].Cap = 120.0;
//mp.Skills[SkillName.Mining].Cap = 120.0;
//mp.Skills[SkillName.Chivalry].Cap = 120.0;
//mp.Skills[SkillName.Necromancy].Cap = 120.0;
//mp.Skills[SkillName.Focus].Cap = 120.0;

//VerifySkills( from );

//stats//
mp.Str += 50;
mp.Dex += 40;
mp.Int += 15;
mp.StrCap = 100;
mp.DexCap = 100;
mp.IntCap = 100;


mp.Race = RaceType.WildElf;
mp.PlaySound( 0x4E );
mp.Location = new Point3D( 1255, 966, -15 );
mp.SendMessage("You are now a Wild Elf");
}

private void GreyElfInit(Mobile from)
{
dovPlayerMobile mp = ((dovPlayerMobile )from );

mp.Hue = 1801;
if ( mp.Hair == null )
{
mp.AddItem( new LongHair() );
mp.Hair.Hue = 1117;
}

if ( mp.Beard == null )
{
mp.AddItem( new ShortBeard() );
mp.Beard.Hue = 1117;
}

if (mp.Female)
{
mp.Hair.Hue = 1117;
mp.Beard.Hue = 1117;
mp.Name += ", the Grey Elf";
}
else
{
mp.Hair.Hue = 1117;
mp.Beard.Hue = 1117;
mp.Name += ", the Grey Elf";
}
//SKILLS//
//mp.Skills[SkillName.Anatomy].Cap = 120.0;
//mp.Skills[SkillName.ArmsLore].Cap = 120.0;
//mp.Skills[SkillName.AnimalLore].Cap = 120.0;
//mp.Skills[SkillName.AnimalTaming].Cap = 120.0;
//mp.Skills[SkillName.Begging].Cap = 120.0;
//mp.Skills[SkillName.DetectHidden].Cap = 120.0;
//mp.Skills[SkillName.Discordance].Cap = 120.0;
//mp.Skills[SkillName.EvalInt].Cap = 120.0;
//mp.Skills[SkillName.Forensics].Cap = 120.0;
//mp.Skills[SkillName.Hiding].Cap = 120.0;
//mp.Skills[SkillName.ItemID].Cap = 120.0;
//mp.Skills[SkillName.Meditation].Cap = 120.0;
//mp.Skills[SkillName.Peacemaking].Cap = 120.0;
//mp.Skills[SkillName.Poisoning].Cap = 120.0;
//mp.Skills[SkillName.Provocation].Cap = 120.0;
//mp.Skills[SkillName.RemoveTrap].Cap = 120.0;
//mp.Skills[SkillName.SpiritSpeak].Cap = 120.0;
//mp.Skills[SkillName.Stealing].Cap = 120.0;
//mp.Skills[SkillName.Stealth].Cap = 120.0;
//mp.Skills[SkillName.TasteID].Cap = 120.0;
//mp.Skills[SkillName.Tracking].Cap = 120.0;
//mp.Skills[SkillName.Camping].Cap = 120.0;
//mp.Skills[SkillName.Cooking].Cap = 120.0;
//mp.Skills[SkillName.Fishing].Cap = 120.0;
//mp.Skills[SkillName.Healing].Cap = 120.0;
//mp.Skills[SkillName.Herding].Cap = 120.0;
//mp.Skills[SkillName.Lockpicking].Cap = 120.0;
//mp.Skills[SkillName.Lumberjacking].Cap = 120.0;
//mp.Skills[SkillName.Musicianship].Cap = 120.0;
//mp.Skills[SkillName.Snooping].Cap = 120.0;
//mp.Skills[SkillName.Veterinary].Cap = 120.0;
//mp.Skills[SkillName.Blacksmith].Cap = 120.0;
//mp.Skills[SkillName.Fletching].Cap = 120.0;
//mp.Skills[SkillName.Carpentry].Cap = 120.0;
//mp.Skills[SkillName.Alchemy].Cap = 120.0;
//mp.Skills[SkillName.Inscribe].Cap = 120.0;
//mp.Skills[SkillName.Cartography].Cap = 120.0;
//mp.Skills[SkillName.Tinkering].Cap = 120.0;
//mp.Skills[SkillName.Tailoring].Cap = 120.0;
//mp.Skills[SkillName.Archery].Cap = 120.0;
//mp.Skills[SkillName.Fencing].Cap = 120.0;
//mp.Skills[SkillName.Macing].Cap = 120.0;
//mp.Skills[SkillName.Magery].Cap = 120.0;
//mp.Skills[SkillName.Parry].Cap = 120.0;
//mp.Skills[SkillName.Swords].Cap = 120.0;
//mp.Skills[SkillName.Tactics].Cap = 120.0;
//mp.Skills[SkillName.Wrestling].Cap = 120.0;
//mp.Skills[SkillName.MagicResist].Cap = 120.0;
//mp.Skills[SkillName.Mining].Cap = 120.0;
//mp.Skills[SkillName.Chivalry].Cap = 120.0;
//mp.Skills[SkillName.Necromancy].Cap = 120.0;
//mp.Skills[SkillName.Focus].Cap = 120.0;

//VerifySkills( from );

//stats//
mp.Str += 45;
mp.Dex += 35;
mp.Int += 5;
mp.StrCap = 100;
mp.DexCap = 100;
mp.IntCap = 100;

mp.Race = RaceType.GreyElf;
mp.PlaySound( 0x4E );
mp.Location = new Point3D( 1201, 1134, -25 );
mp.SendMessage("You are now a Grey Elf");
}

private void ArcticElfInit(Mobile from)
{
dovPlayerMobile mp = ((dovPlayerMobile )from );

mp.Hue = 1337;
if ( mp.Hair == null )
{
mp.AddItem( new LongHair() );
mp.Hair.Hue = 1109;
}

if ( mp.Beard == null )
{
mp.AddItem( new ShortBeard() );
mp.Beard.Hue = 1110;
}

if (mp.Female)
{
mp.Hair.Hue = 1110;
mp.Beard.Hue = 1110;
mp.Name += ", the Arctic Elf";
}
else
{
mp.Hair.Hue = 1110;
mp.Beard.Hue = 1110;
mp.Name += ", the Arctic Elf";
}
//SKILLS//
//mp.Skills[SkillName.Anatomy].Cap = 120.0;
//mp.Skills[SkillName.ArmsLore].Cap = 120.0;
//mp.Skills[SkillName.AnimalLore].Cap = 120.0;
//mp.Skills[SkillName.AnimalTaming].Cap = 120.0;
//mp.Skills[SkillName.Begging].Cap = 120.0;
//mp.Skills[SkillName.DetectHidden].Cap = 120.0;
//mp.Skills[SkillName.Discordance].Cap = 120.0;
//mp.Skills[SkillName.EvalInt].Cap = 120.0;
//mp.Skills[SkillName.Forensics].Cap = 120.0;
//mp.Skills[SkillName.Hiding].Cap = 120.0;
//mp.Skills[SkillName.ItemID].Cap = 120.0;
//mp.Skills[SkillName.Meditation].Cap = 120.0;
//mp.Skills[SkillName.Peacemaking].Cap = 120.0;
//mp.Skills[SkillName.Poisoning].Cap = 120.0;
//mp.Skills[SkillName.Provocation].Cap = 120.0;
//mp.Skills[SkillName.RemoveTrap].Cap = 120.0;
//mp.Skills[SkillName.SpiritSpeak].Cap = 120.0;
//mp.Skills[SkillName.Stealing].Cap = 120.0;
//mp.Skills[SkillName.Stealth].Cap = 120.0;
//mp.Skills[SkillName.TasteID].Cap = 120.0;
//mp.Skills[SkillName.Tracking].Cap = 120.0;
//mp.Skills[SkillName.Camping].Cap = 120.0;
//mp.Skills[SkillName.Cooking].Cap = 120.0;
//mp.Skills[SkillName.Fishing].Cap = 120.0;
//mp.Skills[SkillName.Healing].Cap = 120.0;
//mp.Skills[SkillName.Herding].Cap = 120.0;
//mp.Skills[SkillName.Lockpicking].Cap = 120.0;
//mp.Skills[SkillName.Lumberjacking].Cap = 120.0;
//mp.Skills[SkillName.Musicianship].Cap = 120.0;
//mp.Skills[SkillName.Snooping].Cap = 120.0;
//mp.Skills[SkillName.Veterinary].Cap = 120.0;
//mp.Skills[SkillName.Blacksmith].Cap = 120.0;
//mp.Skills[SkillName.Fletching].Cap = 120.0;
//mp.Skills[SkillName.Carpentry].Cap = 120.0;
//mp.Skills[SkillName.Alchemy].Cap = 120.0;
//mp.Skills[SkillName.Inscribe].Cap = 120.0;
//mp.Skills[SkillName.Cartography].Cap = 120.0;
//mp.Skills[SkillName.Tinkering].Cap = 120.0;
//mp.Skills[SkillName.Tailoring].Cap = 120.0;
//mp.Skills[SkillName.Archery].Cap = 120.0;
//mp.Skills[SkillName.Fencing].Cap = 120.0;
//mp.Skills[SkillName.Macing].Cap = 120.0;
//mp.Skills[SkillName.Magery].Cap = 120.0;
//mp.Skills[SkillName.Parry].Cap = 120.0;
//mp.Skills[SkillName.Swords].Cap = 120.0;
//mp.Skills[SkillName.Tactics].Cap = 120.0;
//mp.Skills[SkillName.Wrestling].Cap = 120.0;
//mp.Skills[SkillName.MagicResist].Cap = 120.0;
//mp.Skills[SkillName.Mining].Cap = 120.0;
//mp.Skills[SkillName.Chivalry].Cap = 120.0;
//mp.Skills[SkillName.Necromancy].Cap = 120.0;
//mp.Skills[SkillName.Focus].Cap = 120.0;

//VerifySkills( from );

//stats//
mp.Str += 45;
mp.Dex += 50;
mp.Int += 5;
mp.StrCap = 100;
mp.DexCap = 100;
mp.IntCap = 100;

mp.Race = RaceType.ArcticElf;
mp.PlaySound( 0x4E );
mp.Location = new Point3D( 4206, 612, 0 );
mp.SendMessage("You are now a Arctic Elf");
}


private void MountainDwarfInit(Mobile from)
{
dovPlayerMobile mp = ((dovPlayerMobile )from );

mp.Hue = 1740;
if ( mp.Hair == null )
{
mp.AddItem( new LongHair() );
mp.Hair.Hue = 1046;
}

if ( mp.Beard == null )
{
mp.AddItem( new MediumLongBeard() );
mp.Beard.Hue = 1046;
}

if (mp.Female)
{
mp.Hair.Hue = 1046;
mp.Beard.Hue = 1046;
mp.Name += ", the Mountain Dwarf";
}
else
{
mp.Hair.Hue = 1046;
mp.Beard.Hue = 1046;
mp.Name += ", the Mountain Dwarf";
}
//SKILLS//
//mp.Skills[SkillName.Anatomy].Cap = 120.0;
//mp.Skills[SkillName.ArmsLore].Cap = 120.0;
//mp.Skills[SkillName.AnimalLore].Cap = 120.0;
//mp.Skills[SkillName.AnimalTaming].Cap = 120.0;
//mp.Skills[SkillName.Begging].Cap = 120.0;
//mp.Skills[SkillName.DetectHidden].Cap = 120.0;
//mp.Skills[SkillName.Discordance].Cap = 120.0;
//mp.Skills[SkillName.EvalInt].Cap = 120.0;
//mp.Skills[SkillName.Forensics].Cap = 120.0;
//mp.Skills[SkillName.Hiding].Cap = 120.0;
//mp.Skills[SkillName.ItemID].Cap = 120.0;
//mp.Skills[SkillName.Meditation].Cap = 120.0;
//mp.Skills[SkillName.Peacemaking].Cap = 120.0;
//mp.Skills[SkillName.Poisoning].Cap = 120.0;
//mp.Skills[SkillName.Provocation].Cap = 120.0;
//mp.Skills[SkillName.RemoveTrap].Cap = 120.0;
//mp.Skills[SkillName.SpiritSpeak].Cap = 120.0;
//mp.Skills[SkillName.Stealing].Cap = 120.0;
//mp.Skills[SkillName.Stealth].Cap = 120.0;
//mp.Skills[SkillName.TasteID].Cap = 120.0;
//mp.Skills[SkillName.Tracking].Cap = 120.0;
//mp.Skills[SkillName.Camping].Cap = 120.0;
//mp.Skills[SkillName.Cooking].Cap = 120.0;
//mp.Skills[SkillName.Fishing].Cap = 120.0;
//mp.Skills[SkillName.Healing].Cap = 120.0;
//mp.Skills[SkillName.Herding].Cap = 120.0;
//mp.Skills[SkillName.Lockpicking].Cap = 120.0;
//mp.Skills[SkillName.Lumberjacking].Cap = 120.0;
//mp.Skills[SkillName.Musicianship].Cap = 120.0;
//mp.Skills[SkillName.Snooping].Cap = 120.0;
//mp.Skills[SkillName.Veterinary].Cap = 120.0;
//mp.Skills[SkillName.Blacksmith].Cap = 120.0;
//mp.Skills[SkillName.Fletching].Cap = 120.0;
//mp.Skills[SkillName.Carpentry].Cap = 120.0;
//mp.Skills[SkillName.Alchemy].Cap = 120.0;
//mp.Skills[SkillName.Inscribe].Cap = 120.0;
//mp.Skills[SkillName.Cartography].Cap = 120.0;
//mp.Skills[SkillName.Tinkering].Cap = 120.0;
//mp.Skills[SkillName.Tailoring].Cap = 120.0;
//mp.Skills[SkillName.Archery].Cap = 120.0;
//mp.Skills[SkillName.Fencing].Cap = 120.0;
//mp.Skills[SkillName.Macing].Cap = 120.0;
//mp.Skills[SkillName.Magery].Cap = 120.0;
//mp.Skills[SkillName.Parry].Cap = 120.0;
//mp.Skills[SkillName.Swords].Cap = 120.0;
//mp.Skills[SkillName.Tactics].Cap = 120.0;
//mp.Skills[SkillName.Wrestling].Cap = 120.0;
//mp.Skills[SkillName.MagicResist].Cap = 120.0;
//mp.Skills[SkillName.Mining].Cap = 120.0;
//mp.Skills[SkillName.Chivalry].Cap = 120.0;
//mp.Skills[SkillName.Necromancy].Cap = 120.0;
//mp.Skills[SkillName.Focus].Cap = 120.0;

//VerifySkills( from );


//stats//
mp.Str += 85;
mp.Dex += 45;
mp.Int += 5;
mp.StrCap = 100;
mp.DexCap = 100;
mp.IntCap = 100;


mp.Race = RaceType.MountainDwarf;
mp.PlaySound( 0x4E );
mp.Location = new Point3D( 976, 507, -80 );
mp.SendMessage("You are now a Mountain Dwarf");
}


private void DrowElfInit(Mobile from)
{
dovPlayerMobile mp = ((dovPlayerMobile )from );

mp.Hue = 1908;

if ( mp.Hair == null )
{
mp.AddItem( new LongHair() );
mp.Hair.Hue = 1153;
}

if (mp.Female)
{
mp.Hair.Hue = 1153;
mp.Name += ", the Drow Elf";
}
else
{
mp.Hair.Hue = 1153;
mp.Beard.Hue = 1153;
mp.Name += ", the Drow Elf";
}
//SKILLS//
//mp.Skills[SkillName.Anatomy].Cap = 120.0;
//mp.Skills[SkillName.ArmsLore].Cap = 120.0;
//mp.Skills[SkillName.AnimalLore].Cap = 120.0;
//mp.Skills[SkillName.AnimalTaming].Cap = 120.0;
//mp.Skills[SkillName.Begging].Cap = 120.0;
//mp.Skills[SkillName.DetectHidden].Cap = 120.0;
//mp.Skills[SkillName.Discordance].Cap = 120.0;
//mp.Skills[SkillName.EvalInt].Cap = 120.0;
//mp.Skills[SkillName.Forensics].Cap = 120.0;
//mp.Skills[SkillName.Hiding].Cap = 120.0;
//mp.Skills[SkillName.ItemID].Cap = 120.0;
//mp.Skills[SkillName.Meditation].Cap = 120.0;
//mp.Skills[SkillName.Peacemaking].Cap = 120.0;
//mp.Skills[SkillName.Poisoning].Cap = 120.0;
//mp.Skills[SkillName.Provocation].Cap = 120.0;
//mp.Skills[SkillName.RemoveTrap].Cap = 120.0;
//mp.Skills[SkillName.SpiritSpeak].Cap = 120.0;
//mp.Skills[SkillName.Stealing].Cap = 120.0;
//mp.Skills[SkillName.Stealth].Cap = 120.0;
//mp.Skills[SkillName.TasteID].Cap = 120.0;
//mp.Skills[SkillName.Tracking].Cap = 120.0;
//mp.Skills[SkillName.Camping].Cap = 120.0;
//mp.Skills[SkillName.Cooking].Cap = 120.0;
//mp.Skills[SkillName.Fishing].Cap = 120.0;
//mp.Skills[SkillName.Healing].Cap = 120.0;
//mp.Skills[SkillName.Herding].Cap = 120.0;
//mp.Skills[SkillName.Lockpicking].Cap = 120.0;
//mp.Skills[SkillName.Lumberjacking].Cap = 120.0;
//mp.Skills[SkillName.Musicianship].Cap = 120.0;
//mp.Skills[SkillName.Snooping].Cap = 120.0;
//mp.Skills[SkillName.Veterinary].Cap = 120.0;
//mp.Skills[SkillName.Blacksmith].Cap = 120.0;
//mp.Skills[SkillName.Fletching].Cap = 120.0;
//mp.Skills[SkillName.Carpentry].Cap = 120.0;
//mp.Skills[SkillName.Alchemy].Cap = 120.0;
//mp.Skills[SkillName.Inscribe].Cap = 120.0;
//mp.Skills[SkillName.Cartography].Cap = 120.0;
//mp.Skills[SkillName.Tinkering].Cap = 120.0;
//mp.Skills[SkillName.Tailoring].Cap = 120.0;
//mp.Skills[SkillName.Archery].Cap = 120.0;
//mp.Skills[SkillName.Fencing].Cap = 120.0;
//mp.Skills[SkillName.Macing].Cap = 120.0;
//mp.Skills[SkillName.Magery].Cap = 120.0;
//mp.Skills[SkillName.Parry].Cap = 120.0;
//mp.Skills[SkillName.Swords].Cap = 120.0;
//mp.Skills[SkillName.Tactics].Cap = 120.0;
//mp.Skills[SkillName.Wrestling].Cap = 120.0;
//mp.Skills[SkillName.MagicResist].Cap = 120.0;
//mp.Skills[SkillName.Mining].Cap = 120.0;
//mp.Skills[SkillName.Chivalry].Cap = 120.0;
//mp.Skills[SkillName.Necromancy].Cap = 120.0;
//mp.Skills[SkillName.Focus].Cap = 120.0;

//VerifySkills( from );


//stats//
mp.Str += 50;
mp.Dex += 60;
mp.Int += 15;
mp.StrCap = 100;
mp.DexCap = 100;
mp.IntCap = 100;

mp.Race = RaceType.DrowElf;
mp.PlaySound( 0x4E );
mp.Location = new Point3D( 2039, 1316, -84 );
mp.SendMessage("You are now a Drow Elf.");
}

private void DarkDwarfInit(Mobile from)
{
dovPlayerMobile mp = ((dovPlayerMobile )from );

mp.Hue = 992;

if ( mp.Hair == null )
{
mp.AddItem( new PonyTail() );
mp.Hair.Hue = 1337;
}

if ( mp.Beard == null )
{
mp.AddItem( new MediumLongBeard() );
mp.Beard.Hue = 1337;
}

if (mp.Female)
{
mp.Hair.Hue = 1337;
mp.Beard.Hue = 1337;
mp.Name += ", the Dark Dwarf";
}
else
{
mp.Hair.Hue = 1337;
mp.Beard.Hue = 1337;
mp.Name += ", the Dark Dwarf";
}
//SKILLS//
//mp.Skills[SkillName.Anatomy].Cap = 120.0;
//mp.Skills[SkillName.ArmsLore].Cap = 120.0;
//mp.Skills[SkillName.AnimalLore].Cap = 120.0;
//mp.Skills[SkillName.AnimalTaming].Cap = 120.0;
//mp.Skills[SkillName.Begging].Cap = 120.0;
//mp.Skills[SkillName.DetectHidden].Cap = 120.0;
//mp.Skills[SkillName.Discordance].Cap = 120.0;
//mp.Skills[SkillName.EvalInt].Cap = 120.0;
//mp.Skills[SkillName.Forensics].Cap = 120.0;
//mp.Skills[SkillName.Hiding].Cap = 120.0;
//mp.Skills[SkillName.ItemID].Cap = 120.0;
//mp.Skills[SkillName.Meditation].Cap = 120.0;
//mp.Skills[SkillName.Peacemaking].Cap = 120.0;
//mp.Skills[SkillName.Poisoning].Cap = 120.0;
//mp.Skills[SkillName.Provocation].Cap = 120.0;
//mp.Skills[SkillName.RemoveTrap].Cap = 120.0;
//mp.Skills[SkillName.SpiritSpeak].Cap = 120.0;
//mp.Skills[SkillName.Stealing].Cap = 120.0;
//mp.Skills[SkillName.Stealth].Cap = 120.0;
//mp.Skills[SkillName.TasteID].Cap = 120.0;
//mp.Skills[SkillName.Tracking].Cap = 120.0;
//mp.Skills[SkillName.Camping].Cap = 120.0;
//mp.Skills[SkillName.Cooking].Cap = 120.0;
//mp.Skills[SkillName.Fishing].Cap = 120.0;
//mp.Skills[SkillName.Healing].Cap = 120.0;
//mp.Skills[SkillName.Herding].Cap = 120.0;
//mp.Skills[SkillName.Lockpicking].Cap = 120.0;
//mp.Skills[SkillName.Lumberjacking].Cap = 120.0;
//mp.Skills[SkillName.Musicianship].Cap = 120.0;
//mp.Skills[SkillName.Snooping].Cap = 120.0;
//mp.Skills[SkillName.Veterinary].Cap = 120.0;
//mp.Skills[SkillName.Blacksmith].Cap = 120.0;
//mp.Skills[SkillName.Fletching].Cap = 120.0;
//mp.Skills[SkillName.Carpentry].Cap = 120.0;
//mp.Skills[SkillName.Alchemy].Cap = 120.0;
//mp.Skills[SkillName.Inscribe].Cap = 120.0;
//mp.Skills[SkillName.Cartography].Cap = 120.0;
//mp.Skills[SkillName.Tinkering].Cap = 120.0;
//mp.Skills[SkillName.Tailoring].Cap = 120.0;
//mp.Skills[SkillName.Archery].Cap = 120.0;
//mp.Skills[SkillName.Fencing].Cap = 120.0;
//mp.Skills[SkillName.Macing].Cap = 120.0;
//mp.Skills[SkillName.Magery].Cap = 120.0;
//mp.Skills[SkillName.Parry].Cap = 120.0;
//mp.Skills[SkillName.Swords].Cap = 120.0;
//mp.Skills[SkillName.Tactics].Cap = 120.0;
//mp.Skills[SkillName.Wrestling].Cap = 120.0;
//mp.Skills[SkillName.MagicResist].Cap = 120.0;
//mp.Skills[SkillName.Mining].Cap = 120.0;
//mp.Skills[SkillName.Chivalry].Cap = 120.0;
//mp.Skills[SkillName.Necromancy].Cap = 120.0;
//mp.Skills[SkillName.Focus].Cap = 120.0;

//VerifySkills( from );


//stats//
mp.Str += 75;
mp.Dex += 35;
mp.Int += 5;
mp.StrCap = 100;
mp.DexCap = 100;
mp.IntCap = 100;

mp.Race = RaceType.DarkDwarf;
mp.PlaySound( 0x4E );
mp.Location = new Point3D( 651, 1302, -58 );
mp.SendMessage("You are now a Dark Dwarf.");
}

private void HillDwarfInit(Mobile from)
{
dovPlayerMobile mp = ((dovPlayerMobile )from );

mp.Hue = 33824;

if ( mp.Hair == null )
{
mp.AddItem( new LongHair() );
mp.Hair.Hue = 1134;
}
if (mp.Female)
{
mp.Hair.Hue = 1134;
mp.Name += ", the Hill Dwarf";
}
else
{
mp.Hair.Hue = 1134;
mp.Beard.Hue = 1134;
mp.Name += ", the Hill Dwarf";
}
//SKILLS//
//mp.Skills[SkillName.Anatomy].Cap = 120.0;
//mp.Skills[SkillName.ArmsLore].Cap = 120.0;
//mp.Skills[SkillName.AnimalLore].Cap = 120.0;
//mp.Skills[SkillName.AnimalTaming].Cap = 120.0;
//mp.Skills[SkillName.Begging].Cap = 120.0;
//mp.Skills[SkillName.DetectHidden].Cap = 120.0;
//mp.Skills[SkillName.Discordance].Cap = 120.0;
//mp.Skills[SkillName.EvalInt].Cap = 120.0;
//mp.Skills[SkillName.Forensics].Cap = 120.0;
//mp.Skills[SkillName.Hiding].Cap = 120.0;
//mp.Skills[SkillName.ItemID].Cap = 120.0;
//mp.Skills[SkillName.Meditation].Cap = 120.0;
//mp.Skills[SkillName.Peacemaking].Cap = 120.0;
//mp.Skills[SkillName.Poisoning].Cap = 120.0;
//mp.Skills[SkillName.Provocation].Cap = 120.0;
//mp.Skills[SkillName.RemoveTrap].Cap = 120.0;
//mp.Skills[SkillName.SpiritSpeak].Cap = 120.0;
//mp.Skills[SkillName.Stealing].Cap = 120.0;
//mp.Skills[SkillName.Stealth].Cap = 120.0;
//mp.Skills[SkillName.TasteID].Cap = 120.0;
//mp.Skills[SkillName.Tracking].Cap = 120.0;
//mp.Skills[SkillName.Camping].Cap = 120.0;
//mp.Skills[SkillName.Cooking].Cap = 120.0;
//mp.Skills[SkillName.Fishing].Cap = 120.0;
//mp.Skills[SkillName.Healing].Cap = 120.0;
//mp.Skills[SkillName.Herding].Cap = 120.0;
//mp.Skills[SkillName.Lockpicking].Cap = 120.0;
//mp.Skills[SkillName.Lumberjacking].Cap = 120.0;
//mp.Skills[SkillName.Musicianship].Cap = 120.0;
//mp.Skills[SkillName.Snooping].Cap = 120.0;
//mp.Skills[SkillName.Veterinary].Cap = 120.0;
//mp.Skills[SkillName.Blacksmith].Cap = 120.0;
//mp.Skills[SkillName.Fletching].Cap = 120.0;
//mp.Skills[SkillName.Carpentry].Cap = 120.0;
//mp.Skills[SkillName.Alchemy].Cap = 120.0;
//mp.Skills[SkillName.Inscribe].Cap = 120.0;
//mp.Skills[SkillName.Cartography].Cap = 120.0;
//mp.Skills[SkillName.Tinkering].Cap = 120.0;
//mp.Skills[SkillName.Tailoring].Cap = 120.0;
//mp.Skills[SkillName.Archery].Cap = 120.0;
//mp.Skills[SkillName.Fencing].Cap = 120.0;
//mp.Skills[SkillName.Macing].Cap = 120.0;
//mp.Skills[SkillName.Magery].Cap = 120.0;
//mp.Skills[SkillName.Parry].Cap = 120.0;
//mp.Skills[SkillName.Swords].Cap = 120.0;
//mp.Skills[SkillName.Tactics].Cap = 120.0;
//mp.Skills[SkillName.Wrestling].Cap = 120.0;
//mp.Skills[SkillName.MagicResist].Cap = 120.0;
//mp.Skills[SkillName.Mining].Cap = 120.0;
//mp.Skills[SkillName.Chivalry].Cap = 120.0;
//mp.Skills[SkillName.Necromancy].Cap = 120.0;
//mp.Skills[SkillName.Focus].Cap = 120.0;

//VerifySkills( from );


//stats//
mp.Str += 80;
mp.Dex += 55;
mp.Int += 3;
mp.StrCap = 100;
mp.DexCap = 100;
mp.IntCap = 100;

mp.Race = RaceType.HillDwarf;
mp.PlaySound( 0x4E );
mp.Location = new Point3D( 544, 465, -63 );
mp.SendMessage("You are now a Hill Dwarf.");
}

private void OrcInit(Mobile from)
{
dovPlayerMobile mp = ((dovPlayerMobile )from );

mp.Hue = 1441;

if ( mp.Hair == null )
{
mp.AddItem( new LongHair() );
mp.Hair.Hue = 1134;
}
if (mp.Female)
{
mp.Hair.Hue = 1134;
mp.Name += ", the Orc";
}
else
{
mp.Hair.Hue = 1134;
mp.Beard.Hue = 1134;
mp.Name += ", the Orc";
}
//SKILLS//
//mp.Skills[SkillName.Anatomy].Cap = 120.0;
//mp.Skills[SkillName.ArmsLore].Cap = 120.0;
//mp.Skills[SkillName.AnimalLore].Cap = 120.0;
//mp.Skills[SkillName.AnimalTaming].Cap = 120.0;
//mp.Skills[SkillName.Begging].Cap = 120.0;
//mp.Skills[SkillName.DetectHidden].Cap = 120.0;
//mp.Skills[SkillName.Discordance].Cap = 120.0;
//mp.Skills[SkillName.EvalInt].Cap = 120.0;
//mp.Skills[SkillName.Forensics].Cap = 120.0;
//mp.Skills[SkillName.Hiding].Cap = 120.0;
//mp.Skills[SkillName.ItemID].Cap = 120.0;
//mp.Skills[SkillName.Meditation].Cap = 120.0;
//mp.Skills[SkillName.Peacemaking].Cap = 120.0;
//mp.Skills[SkillName.Poisoning].Cap = 120.0;
//mp.Skills[SkillName.Provocation].Cap = 120.0;
//mp.Skills[SkillName.RemoveTrap].Cap = 120.0;
//mp.Skills[SkillName.SpiritSpeak].Cap = 120.0;
//mp.Skills[SkillName.Stealing].Cap = 120.0;
//mp.Skills[SkillName.Stealth].Cap = 120.0;
//mp.Skills[SkillName.TasteID].Cap = 120.0;
//mp.Skills[SkillName.Tracking].Cap = 120.0;
//mp.Skills[SkillName.Camping].Cap = 120.0;
//mp.Skills[SkillName.Cooking].Cap = 120.0;
//mp.Skills[SkillName.Fishing].Cap = 120.0;
//mp.Skills[SkillName.Healing].Cap = 120.0;
//mp.Skills[SkillName.Herding].Cap = 120.0;
//mp.Skills[SkillName.Lockpicking].Cap = 120.0;
//mp.Skills[SkillName.Lumberjacking].Cap = 120.0;
//mp.Skills[SkillName.Musicianship].Cap = 120.0;
//mp.Skills[SkillName.Snooping].Cap = 120.0;
//mp.Skills[SkillName.Veterinary].Cap = 120.0;
//mp.Skills[SkillName.Blacksmith].Cap = 120.0;
//mp.Skills[SkillName.Fletching].Cap = 120.0;
//mp.Skills[SkillName.Carpentry].Cap = 120.0;
//mp.Skills[SkillName.Alchemy].Cap = 120.0;
//mp.Skills[SkillName.Inscribe].Cap = 120.0;
//mp.Skills[SkillName.Cartography].Cap = 120.0;
//mp.Skills[SkillName.Tinkering].Cap = 120.0;
//mp.Skills[SkillName.Tailoring].Cap = 120.0;
//mp.Skills[SkillName.Archery].Cap = 120.0;
//mp.Skills[SkillName.Fencing].Cap = 120.0;
//mp.Skills[SkillName.Macing].Cap = 120.0;
//mp.Skills[SkillName.Magery].Cap = 120.0;
//mp.Skills[SkillName.Parry].Cap = 120.0;
//mp.Skills[SkillName.Swords].Cap = 120.0;
//mp.Skills[SkillName.Tactics].Cap = 120.0;
//mp.Skills[SkillName.Wrestling].Cap = 120.0;
//mp.Skills[SkillName.MagicResist].Cap = 120.0;
//mp.Skills[SkillName.Mining].Cap = 120.0;
//mp.Skills[SkillName.Chivalry].Cap = 120.0;
//mp.Skills[SkillName.Necromancy].Cap = 120.0;
//mp.Skills[SkillName.Focus].Cap = 120.0;

//VerifySkills( from );


//stats//
mp.Str += 65;
mp.Dex += 50;
mp.Int += 1;
mp.StrCap = 100;
mp.DexCap = 100;
mp.IntCap = 100;


mp.Race = RaceType.Orc;
mp.PlaySound( 0x4E );
mp.Location = new Point3D( 2171, 1331, 0 );
mp.SendMessage("You are now an Orc.");
}


private void VerifySkills( Mobile m )
{
for ( int i = 0; i < 52; ++i )
{
if ( m.Skills.Base > m.Skills.Cap )
m.Skills.Base = m.Skills.Cap;
}
return;
}
}
}

[/code:1]

Sorry for the length no place to put it for ftp, Compiles ok, but crashes when used. Any help would be appricated.
 

Spooky

Wanderer
I havent run up your code to see the errors but off the top of my head.
[code:1]PlayerMobile mp = from as PlayerMobile;[/code:1]
 

Ceday

Page
strcap,dexcap,intcap doesnt exist in PlayerMobile, that is the reason why you are getting those erros.

try :

HitsMax
StamMax
ManaMax
 
tried the Hitsmax thing and the error says its read only for all those, its also saying there is no deffinition for Race in theplayer mobile

Server.mobiles.playermobile does not contain a definition for 'Race'.
 

Ceday

Page
hmz, there is not "set" method for them in PM..you can add by hand or override it in the race system..
 
Ceday if you can point me in the right direction for either method i would appriacate it, this is only my 2nd stab at scripting having given up on the class stone idea for the moment.
 
Ceday if you can point me in the right direction for either method i would appriacate it, this is only my 2nd stab at scripting having given up on the class stone idea for the moment.
 

Ceday

Page
hmz, you have to override the method. set wouldnt work since they are "readonly"..

I dont know if you have custom scripts for race system..

but what you should change is those methods I wrote..

do a search in PlayerMobile.cs
 
i used RawStr ect for stone seems to be working, still getting the no definition for race in server.mobiles.playermobile, and a new error unreconized escape sequence
 

Phantom

Knight
grasshopper73 said:
i used RawStr ect for stone seems to be working, still getting the no definition for race in server.mobiles.playermobile, and a new error unreconized escape sequence

Post the error and entire class please.
 
I keep getting these errors.


Unreconized escape sequence

'Server.Mobiles.Playermobile' does not contain a definition for 'Race'

Sorry i don't know how to copy the acual errors with the lines from the screen.
 
ok got rid of the Unreconized sequence errors, and it compiles and load ok, but when you use the stone it crashes the shard??

the is what crash log says:

Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Server.Items.RaceGump.OrcInit(Mobile from)
at Server.Items.RaceGump.OnResponse(NetState sender, RelayInfo info)
at Server.Network.PacketHandlers.DisplayGumpResponse(NetState state, PacketReader pvSrc)
at Server.Network.MessagePump.HandleReceive(NetState ns)
at Server.Network.MessagePump.Slice()
at Server.Core.Main(String[] args)



Updated the code in the post as well
 

Tru

Knight
make sure you use a character created after you added the code
in other words make a new character and try again
 

ViWinfii

Sorceror
yep, what he said :)

Also, make sure that in CharacterCreation.cs, you make the change to create dovPlayerMobiles instead of PlayerMobiles when you create a new character.
 
I am using new char, and the player mobile uses the dovplayermobile, it works sorta, when you load it in game and use it WildElf, DrowElf, and Orc crash the shard, and I set new locations to be teleported to for each race and most of them end up in a very dark place. I have looked over the scripts for the stone, skillcheck, Loginstats, and dovplayermobile, i can't seem to find an error but those 3 races keep crashing the game for some reason.
 

Trixie

Wanderer
They are going to a dark place, because you must have set the co-ordinates wrong. Double check they are going to the right map,k (tram,fel etc.) then double check the co-ordinates, i did that once by mistake, set the z wrong and sent them underground *grins* very dark!
 

Tru

Knight
grasshopper73 said:
WildElf, DrowElf, and Orc crash the shard
, i can't seem to find an error but those 3 races keep crashing the game for some reason.
post your dovPlayermobile.cs and racestone.cs
 
Top