//if you want to put a book in the bookstand set the Dir to "I" dont put it in L or anything.
//This Object was bought to you by ptapasu in association with the Bishopia Literacy Society!

IfBumped                                          //PlayerBumpsBookStand
  SetTargetToWhoeverBumped          //Targets the Bumper
  IfTargetIsAPlayer                                  //Is the Bumper a player?
    SetTargetToSelf                                      //If He is then look at yourself
    tmpargument = 1
    IfContentIs                                       //is the content 1?
      KeepAction                                    //then keep doing the same action
    Else                                              //otherwise
      SetTargetToSelf
      tmpargument = [BOOK]                   //has the bookstand got a book?
      IfTargetHasItemID                          //if it has then
        DropItems                                      // drop the book
        tmpargument = ACTIONJA             //and show the empty bookstand anim
        DoAction
        KeepAction                                      //FOREVER MUAHAHA
        tmpargument = 0                            //tell the player the book was dropped
        SendMessageNear
        
        //Award some xp
        tmpargument = 10			
        tmpdistance = EXPSECRET
        GiveExperienceToTarget
      Else
        tmpargument = ACTIONDB         //open the book and play a random message
        DoAction
        KeepAction
        
        //Can they read?
        tmpargument = [READ]
        IfTargetHasSkillID
          tmpargument = rand % 8 + 2   //They can read
        Else
          tmpargument = 1             //They cannot read!
        SendMessageNear
        
        //Page turning sound
        tmpargument = 0
        PlaySound		
        
      //set content to one so that anims, and messages aren't repeated!
      tmpargument = 1
      SetContent   

End
