p19EliseSecretDoorKey.lua 717 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : SpawnScripts/Nektropos1/p19EliseSecretDoorKey.lua
  3. Script Author : smash
  4. Script Date : 2016.01.28 04:01:06
  5. Script Purpose : the spawns that allow access to secret doors in the castle
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/PlayerHistory"
  9. function spawn(NPC)
  10. SetRequiredHistory(NPC, HISTORY.NEK_CASTLE_SCONCE_KEY_ACCESS, 1)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function casted_on(NPC, Spawn, Message)
  16. SetPlayerHistory(Spawn, HISTORY.NEK_CASTLE_SCONCE_KEY_ACCESS, 0)
  17. SetPlayerHistory(Spawn, HISTORY.NEK_CASTLE_SCONCE_ACCESS, 1)
  18. SendMessage(Spawn, "You find a note hidden behind the cue rack.")
  19. SummonItem(Spawn, 1896, 1)
  20. end