/*   Script generated by
Lilac Soul's NWN Script Generator, v. 1.6

For download info, please visit:
http://www.lilacsoul.revility.com    */

//Put this OnUsed
void main()
{

object oPC = GetLastUsedBy();

if (!GetIsPC(oPC)) return;



int nInt;
nInt=GetLocalInt(oPC, "intBrakingLeverOn");

if (nInt == 0)
   {
   FloatingTextStringOnCreature("You hear the distant grinding of stone in the distance.  When you let go of the wheel, it spins back to it's original position.  As it spins you hear the distant sound of grinding stone again.", oPC);

   }
else
   {
   FloatingTextStringOnCreature("You hear the distant grinding of stone.  When you let the wheel go it spins back slightly but then catches and holds in place.", oPC);
   object oTarget;
    oTarget = GetObjectByTag("c53Rock1");

    DestroyObject(oTarget, 0.0);

    oTarget = GetObjectByTag("c53Rock2");

    DestroyObject(oTarget, 0.0);

    oTarget = GetObjectByTag("c53Rock3");

    DestroyObject(oTarget, 0.0);
   }

}

