Initial upload.

Adding base PRC 4.19a files to repository.
This commit is contained in:
Jaysyn904
2022-10-07 13:51:24 -04:00
parent 646eb01834
commit 1662218bb4
22441 changed files with 1274376 additions and 0 deletions

44
trunk/smp/phs_s_mazed.nss Normal file
View File

@@ -0,0 +1,44 @@
/*:://////////////////////////////////////////////
//:: Spell Name Maze : Jump Out
//:: Spell FileName PHS_S_MazeC
//:://////////////////////////////////////////////
//:: Spell Effects Applied / Notes
//:://////////////////////////////////////////////
Jump Mazed Out
This is executed on the (N)PC and jumps them out of the area.
This is also used for Imprisonment removal VIA. freedom.
//:://////////////////////////////////////////////
//:: Created By: Jasperre
//::////////////////////////////////////////////*/
#include "PHS_INC_SPELLS"
void main()
{
// Delcare Major Variables
object oTarget = OBJECT_SELF;
// Imprisonment or Maze?
if(GetHasSpellEffect(PHS_SPELL_IMPRISONMENT, oTarget))
{
SendMessageToPC(oTarget, "You are released from your prison!");
}
else
{
SendMessageToPC(oTarget, "You see the maze's exit!");
}
// - Move them back to thier location
location lMoveTo = GetLocalLocation(oTarget, PHS_S_MAZEPRISON_LOCATION);
object oMoveToArea = GetLocalObject(oTarget, PHS_S_MAZEPRISON_OLD_AREA);
// Debug check...
if(GetIsObjectValid(oMoveToArea) &&
GetAreaFromLocation(lMoveTo) == oMoveToArea)
{
// Set NPCs to commandable
SetCommandable(TRUE, oTarget);
ClearAllActions();
JumpToLocation(lMoveTo);
}
}