generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
39
_module/nss/opw_jump_aroen.nss
Normal file
39
_module/nss/opw_jump_aroen.nss
Normal file
@@ -0,0 +1,39 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Olander's Jumping/Climbing Boots - On Area Enter
|
||||
// opw_jump_aroen
|
||||
// By Don Anderson
|
||||
// dandersonru@msn.com
|
||||
//
|
||||
// Allows Climbing and Jumping in Outdoor Areas
|
||||
//
|
||||
// Place this in the Area On Enter Event
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
object oMod = GetModule();
|
||||
object oArea = GetArea(oPC);
|
||||
|
||||
|
||||
//Only Run For Players
|
||||
if(GetIsPC(oPC) == TRUE)
|
||||
{
|
||||
int nInterior = GetIsAreaInterior(oArea);
|
||||
|
||||
if(nInterior == FALSE)
|
||||
{
|
||||
SetLocalInt(oPC,"ALLOWJUMP",1);
|
||||
SendMessageToPC(oPC,"This is an Outdoor Area. You can Climb or Jump using boots here.");
|
||||
return;
|
||||
}
|
||||
|
||||
if(nInterior == TRUE)
|
||||
{
|
||||
SetLocalInt(oPC,"ALLOWJUMP",0);
|
||||
SendMessageToPC(oPC,"This is an Indoor Area. You can NOT Climb or Jump here.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user