cameron1900
Member
Something like this:
Getting a crash not sure if this is the problem.
Code:
protected override void OnTarget(Mobile from, object targeted)
{
PlayerMobile player = from as PlayerMobile;
if (targeted is PlayerMobile)
{
player.SendMessage("You cannot target yourself or other players.");
}
if (targeted is BaseCreature)
{
if (targeted is Dragon && bc.ControlMaster == player)
{
bc = (Dragon)targeted;
player.SendMessage("You have selected a Dragon");
bc.RawStr = test;
}
if (targeted is Nightmare)
{
bc = (Nightmare)targeted;
player.SendMessage("You have selected a Nightmare");
}
}
else
{
player.SendMessage("That is not a valid target");
}
}
Getting a crash not sure if this is the problem.