document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. class Game_Party
  2.   CAN_MAGIC=[2,7,8,9,10,11,12]
  3.   def gain_bookskill(actor_id, skill_id, book_id, state_id)
  4.     return !CAN_MAGIC.include?($game_actors[actor_id].class_id)
  5.     if $game_party.actors.include?($game_actors[actor_id])
  6.       $game_actors[actor_id].learn_skill(skill_id)
  7.       $game_party.lose_item(book_id,1)
  8.       $game_actors[actor_id].remove_state(state_id)
  9.     end
  10.   end
  11. end
');