generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
28
_module/nss/if_removekey1.nss
Normal file
28
_module/nss/if_removekey1.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: if_removekey1
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
If the current variable on the player is:
|
||||
"removekey" == 1, then check to see if the PC
|
||||
has one of the 6 room keys. If they do,
|
||||
remove it. Else, have innkeeper shout a
|
||||
warning to go get it.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: SorcererOfShadows
|
||||
//:: Created On: Jan 30, 2006
|
||||
//:://////////////////////////////////////////////
|
||||
#include "if_nokey_noentry"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if (GetLocalInt(oPC, "removekey")== 1)
|
||||
{
|
||||
GetHasKey();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user