generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
33
_module/nss/opw_jump_exit.nss
Normal file
33
_module/nss/opw_jump_exit.nss
Normal file
@@ -0,0 +1,33 @@
|
||||
///////////////////////////////////////////////////////
|
||||
// Olander's Jumping/Climbing Boots
|
||||
// htf_exwater
|
||||
// By Don Anderson
|
||||
// dandersonru@msn.com
|
||||
//
|
||||
// Place this script in the Trigger On Exit Event
|
||||
//
|
||||
///////////////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetExitingObject();
|
||||
object oArea = GetArea(oPC);
|
||||
|
||||
if(GetIsPC(oPC) == TRUE)
|
||||
{
|
||||
int nInterior = GetIsAreaInterior(oArea);
|
||||
|
||||
if(nInterior == FALSE)
|
||||
{
|
||||
SetLocalInt(oPC,"ALLOWJUMP",1);
|
||||
return;
|
||||
}
|
||||
|
||||
if(nInterior == TRUE)
|
||||
{
|
||||
SetLocalInt(oPC,"ALLOWJUMP",0);
|
||||
SendMessageToPC(oPC,"You can NOT Climb or Jump using boots now.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user