//:://///////////////////////////////////////////// //:: 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(); } }