LibraryDoor.lua 478 B

123456789101112131415161718192021
  1. --[[
  2. Script Name : SpawnScripts/Nektropos1/LibraryDoor.lua
  3. Script Author : smash
  4. Script Date : 2016.02.06 12:02:35
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/PlayerHistory"
  9. function spawn(NPC)
  10. end
  11. function can_use_command(NPC, Spawn, Message)
  12. if GetPlayerHistory(Spawn, HISTORY.NEK_CASTLE_LIBRARY_ACCESS) ~= 1 then
  13. SendMessage(Spawn, "This door seems magically barred", "yellow")
  14. return false
  15. end
  16. return true
  17. end