Changed folder name.
Changed folder name.
This commit is contained in:
43
_module/nss/rearm_trap1.nss
Normal file
43
_module/nss/rearm_trap1.nss
Normal file
@@ -0,0 +1,43 @@
|
||||
//Script Name: rearm_trap1
|
||||
//////////////////////////////////////////
|
||||
//Created By: Genisys (Guile)
|
||||
//Created On: 8/19/08
|
||||
/////////////////////////////////////////
|
||||
/*
|
||||
This is my auto resetting script to
|
||||
re-activate a trap on a door only.
|
||||
|
||||
You should always make the trap not
|
||||
recoverable, so the PC will not be able
|
||||
to take the trap!
|
||||
*/
|
||||
////////////////////////////////////////
|
||||
|
||||
//Main Script
|
||||
void main()
|
||||
{
|
||||
object oPC = GetLastDisarmed();
|
||||
|
||||
//Reward the PC for disarming the trap.. (You can change the 30 XP)
|
||||
if(GetIsPC(oPC))
|
||||
{
|
||||
GiveXPToCreature(oPC, 30);
|
||||
}
|
||||
|
||||
object oTarget;
|
||||
oTarget = OBJECT_SELF;
|
||||
|
||||
//After 3 minutes reset the trap..
|
||||
DelayCommand(180.0, SetTrapActive(oTarget, TRUE));
|
||||
|
||||
DelayCommand(180.0, SetTrapDetectable(oTarget, TRUE));
|
||||
|
||||
DelayCommand(180.0, SetTrapOneShot(oTarget, FALSE));
|
||||
|
||||
DelayCommand(180.0, SetTrapRecoverable(oTarget, FALSE));
|
||||
|
||||
DelayCommand(180.0, SetTrapDetectDC(oTarget, 28));
|
||||
|
||||
DelayCommand(180.0, SetTrapDisarmDC(oTarget, 28));
|
||||
|
||||
}
|
Reference in New Issue
Block a user