void main()
{
object oTarget;
// Get the creature who triggered this event.
object oPC = GetEnteringObject();
// Only fire for (real) PCs.
if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) )
return;
// Abort if the PC is not a certain race.
if ( GetRacialType(oPC) != RACIAL_TYPE_DWARF &&
GetRacialType(oPC) != RACIAL_TYPE_ELF &&
GetRacialType(oPC) != RACIAL_TYPE_GNOME &&
GetRacialType(oPC) != RACIAL_TYPE_HALFLING &&
GetRacialType(oPC) != RACIAL_TYPE_HALFELF &&
GetRacialType(oPC) != RACIAL_TYPE_HALFORC )
return;
// Find the location to which to teleport.
oTarget = GetWaypointByTag("EternalRest");
// Teleport the PC.
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, JumpToObject(oTarget));
// If the PC's subrace is blank.
if ( GetSubRace(oPC) == "" )
{
}
else
{
}
// If the PC's subrace is VAMPIRE.
if ( GetSubRace(oPC) == "VAMPIRE" )
{
}
// Else, if the PC is a certain class.
else if ( GetLevelByClass(CLASS_TYPE_CLERIC, oPC) > 0 ||
GetLevelByClass(CLASS_TYPE_PALADIN, oPC) > 0 )
{
}
else
{
}
// Find the location to which to teleport.
// Teleport the PC.
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, JumpToObject(oTarget));
}
`