Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
44
trunk/smp/phs_s_imprisonb.nss
Normal file
44
trunk/smp/phs_s_imprisonb.nss
Normal file
@@ -0,0 +1,44 @@
|
||||
/*:://////////////////////////////////////////////
|
||||
//:: Spell Name Imprisonment : On Exit
|
||||
//:: Spell FileName PHS_S_ImprisonB
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Spell Effects Applied / Notes
|
||||
//:://////////////////////////////////////////////
|
||||
On Exit area
|
||||
|
||||
- Turn off plot flag
|
||||
- Delete local variables
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Jasperre
|
||||
//::////////////////////////////////////////////*/
|
||||
|
||||
#include "PHS_INC_SPELLS"
|
||||
|
||||
void main()
|
||||
{
|
||||
// Set plot flag on the exiter to false (if not a DM)
|
||||
object oExiter = GetExitingObject();
|
||||
object oThierPrisonObject;
|
||||
|
||||
if(!GetIsDM(oExiter) && GetIsObjectValid(oExiter))
|
||||
{
|
||||
// If it is an NPC, we set them to commandable.
|
||||
SetCommandable(TRUE, oExiter);
|
||||
|
||||
// We make sure that we delete the maze object associated with them
|
||||
oThierPrisonObject = GetLocalObject(oExiter, PHS_MAZEPRISON_OBJECT);
|
||||
SetPlotFlag(oThierPrisonObject, FALSE);
|
||||
// Destroy it
|
||||
DestroyObject(oThierPrisonObject);
|
||||
|
||||
// Remove the spells effects (the visual mostly)
|
||||
PHS_RemoveSpellEffectsFromTarget(PHS_SPELL_IMPRISONMENT, oExiter);
|
||||
// Plot flag remove
|
||||
SetPlotFlag(oExiter, FALSE);
|
||||
// Delete locals
|
||||
DeleteLocalLocation(oExiter, PHS_S_MAZEPRISON_LOCATION);
|
||||
DeleteLocalObject(oExiter, PHS_S_MAZEPRISON_OLD_AREA);
|
||||
DeleteLocalInt(oExiter, PHS_S_MAZE_ROUND_COUNTER);
|
||||
DeleteLocalObject(oExiter, PHS_MAZEPRISON_OBJECT);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user