public bool Spawn(int regionId, int x, int y)
{
// Already spawned
if (this.Region != Region.Limbo)
{
Log.Error("NPC.Spawn: Failed to spawn '{0}', it was spawned already.", this.RaceId, this.RegionId);
return false;
}
// Save spawn location
this.SpawnLocation = new Location(this.RegionId, x, y);
// Warp to spawn point
if (!this.Warp(regionId, x, y))
{
Log.Error("NPC.Spawn: Failed to spawn '{0}', region '{1}' doesn't exist.", this.RaceId, this.RegionId);
return false;
}
return true;
}