Ancordia_PRC8/_module/nss/afterlife_enter.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

10 lines
346 B
Plaintext

#include "x4_inc_functions"
void main()
{
//Set this place as the PC's spawn point
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
string sLastTown = GetCampaignString(CharacterDB(oPC), "TOWN_SPAWN");
if (sLastTown != "WP_AREA_AFTERLIFE") SetCampaignString(CharacterDB(oPC), "TOWN_SPAWN", "WP_AREA_AFTERLIFE");
}