9
3

widgetbigcabinet.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : SpawnScripts/VerminSnye/widgetbigcabinet.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.05.18 03:05:04
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheShrillerCatcher = 537
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function casted_on(NPC, Spawn, Message)
  15. if not HasQuest(Spawn, TheShrillerCatcher) and not HasCompletedQuest(Spawn, TheShrillerCatcher) then
  16. if Message == "examine cabinet" then
  17. local con = CreateConversation()
  18. AddConversationOption(con, "Look inside cabinet.", "Inside")
  19. AddConversationOption(con, "Leave the cabinet alone.")
  20. StartDialogConversation(con, 1, NPC, Spawn, "You see a large cabinet with its door slightly ajar.")
  21. end
  22. end
  23. function Inside(NPC, Spawn)
  24. OfferQuest(NPC, Spawn, TheShrillerCatcher)
  25. local con = CreateConversation()
  26. AddConversationOption(con, "I'll finish the job.")
  27. AddConversationOption(con, "exit.")
  28. StartDialogConversation(con, 1, NPC, Spawn, "Inside the cabinet you see a lagre net attached to the end of a pole and a note that reads: ''Sorry boss, but these rabid shrillers are scaring me to death! Someone else is going to have to exterminate them, I quit!''")
  29. end
  30. end