Further file organization

Further file organization
This commit is contained in:
Jaysyn904
2023-08-23 22:11:00 -04:00
parent 3062876237
commit d87fe14826
22364 changed files with 0 additions and 3253 deletions

View File

@@ -0,0 +1,29 @@
//:://////////////////////////////////////////////
//:: Teleport System: Mark location OnRest
//:: prc_telep_mrkrst
//:://////////////////////////////////////////////
/** @file
Script for storing the user's current location
as a teleport target location when resting.
*/
//:://////////////////////////////////////////////
//:: Created By: Ornedan
//:: Created On: 15.08.2005
//:://////////////////////////////////////////////
#include "prc_alterations"
#include "prc_inc_teleport"
void main()
{
object oPC = GetLastBeingRested();
// Get the location of whomever triggered this script "Last rested here"
struct metalocation mlocToStore = LocationToMetalocation(GetLocation(oPC), GetStringByStrRef(16825310));
SetPersistantLocalMetalocation(oPC, PRC_TELEPORT_ARRAY_NAME + "_0", mlocToStore);
// Tell the user the location was added
// "Added teleport location: "
SendMessageToPC(oPC, GetStringByStrRef(16825303) + " " + MetalocationToString(mlocToStore));
}