UW2_PRC8/_module/nss/deathport.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

24 lines
481 B
Plaintext

//Put this on action taken in the conversation editor
void main()
{
object oPC = GetPCSpeaker();
object oTarget;
location lTarget;
//Teleport Guild Member back to where they last died.
lTarget = GetCampaignLocation("LOCATIONS", "dth_stored_loc", oPC);
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID)
{
FloatingTextStringOnCreature("Location Unavailable", oPC, FALSE);
return;
}
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionJumpToLocation(lTarget));
}