widgetrolledleather.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : SpawnScripts/VerminSnye/widgetrolledleather.lua
  3. Script Author : premierio015
  4. Script Date : 2020.05.17 03:05:39
  5. Script Purpose :
  6. :
  7. --]]
  8. local RatsWhatRats = 536
  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, RatsWhatRats) and not HasCompletedQuest(Spawn, RatsWhatRats) then
  16. if Message == "examine pallet" then
  17. local con = CreateConversation()
  18. AddConversationOption(con, "Unroll pallet.", "unrolled")
  19. AddConversationOption(con, "Leave it alone.")
  20. StartDialogConversation(con, 1, NPC, Spawn, "You find a rolled, leather sleeping pallet.")
  21. end
  22. end
  23. function unrolled(NPC, Spawn)
  24. OfferQuest(NPC, Spawn, RatsWhatRats)
  25. local con = CreateConversation()
  26. AddConversationOption(con, "I will exterminate the rats.")
  27. AddConversationOption(con, "exit.")
  28. StartDialogConversation(con, 1, NPC, Spawn, "After unrollling the pallet, you see that it is completely ruined, having been chewed through by what probably was a very big rat. As you look around you also notice large rat droppings all over the area. Someone should do something about these rats!")
  29. end
  30. end