Aschbourne_PRC8/_module/nss/stonestoresloc.nss
GetOffMyYarn bd6efd3825 Changes and Fixes
Removed old cripple creek maps and added originals back in. Fixed outfits for some mobs that were not showing up previously. Added and fixed some transitions.
2024-10-07 11:32:07 -04:00

27 lines
773 B
Plaintext

void main()
{
object oPC = GetPCSpeaker();
object oToken = GetItemPossessedBy(oPC, "idtoken");
string sName = GetName(oToken);
object oArea = GetArea(oPC);
location lSaved = GetLocation(oPC);
object oWay = GetNearestObjectByTag("no_recall", oPC);
int nMulti = GetLocalInt(GetModule(), "multi");
//Don't store information if the location is invalid!
if(oArea!=OBJECT_INVALID && oWay == OBJECT_INVALID)
{
SetLocalLocation(oToken, "RECALL_LOC", lSaved);
if(nMulti) //If Multiplayer, Save Their Toon!
{
ExportSingleCharacter(oPC);
}
}
effect eVis;
eVis = EffectVisualEffect(VFX_IMP_GOOD_HELP);
DelayCommand(0.4, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oPC, 0.0f));
DelayCommand(0.5, SendMessageToPC(oPC, "Recall Location Stored!"));
}