p53scrollofopening.lua 786 B

1234567891011121314151617181920
  1. --[[
  2. Script Name : SpawnScripts/Nektropos1/p53scrollofopening.lua
  3. Script Author : smash
  4. Script Date : 2016.09.13 11:09:11
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/PlayerHistory"
  9. function casted_on(NPC, Spawn, Message)
  10. local conversation = CreateConversation()
  11. AddConversationOption(conversation, "Examine the scroll", "GiveAccess")
  12. StartDialogConversation(conversation, 1, NPC, Spawn, "This scroll roughly shows the location of a number of secret doors in the basement, you think you could probably find them now. It appears too fragile to pick up and bring with you.")
  13. end
  14. function GiveAccess(NPC, Spawn)
  15. CloseConversation(NPC, Spawn)
  16. SetPlayerHistory(Spawn, HISTORY.NEK_CASTLE_BASEMENT_ACCESS, 1)
  17. end