18 lines
437 B
Plaintext
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.");
|
|
}
|
|
}
|