HoS_PRC8/_mod/_module/nss/ou_waterlever.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

18 lines
437 B
Plaintext

// ou_waterlever
#include "puzzle_h"
void main()
{
object oPC=GetLastUsedBy();
object oMe=OBJECT_SELF;
object oMod=GetModule();
int nLevel=GetLocalInt(oMod,"nTempleWaterLevel");
if (GetLocalInt(oMe,"bUsed")==FALSE)
{
nLevel=nLevel-1;
fnSetWaterLevel(nLevel);
SetLocalInt(oMe,"bUsed",TRUE);
SendMessageToPC(oPC,"You use the lever which opens the door in the hole to drain some of the water away.");
}
}