p34sheiladresser.lua 791 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : SpawnScripts/Nektropos1/p34sheiladresser.lua
  3. Script Author : smash
  4. Script Date : 2016.09.09 02:09:02
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function casted_on(NPC, Spawn, Message)
  11. local conversation = CreateConversation()
  12. AddConversationOption(conversation, "Try to break it open?", "SpawnSheila")
  13. AddConversationOption(conversation, "Leave it.", "CloseConversation")
  14. StartDialogConversation(conversation, 1, NPC, Spawn, "All of the dresser drawers are locked.")
  15. end
  16. function SpawnSheila(NPC, Spawn)
  17. if GetTempVariable(NPC, "SheilaSpawned") ~= "true" then
  18. SetTempVariable(NPC, "SheilaSpawned", "true")
  19. SpawnByLocationID(GetZone(NPC), 616585)
  20. end
  21. CloseConversation(NPC, Spawn)
  22. end