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

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

//Put this OnOpen
void main()
{

object oPC = GetLastOpenedBy();

if (!GetIsPC(oPC)) return;

if (GetLocalInt(oPC, "bookshelf_opened")!= 1)
   {
   CreateItemOnObject("divine_note", OBJECT_SELF);
   }
}