widgetsmallpainting.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : SpawnScripts/VerminSnye/widgetsmallpainting.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.05.16 08:05:54
  5. Script Purpose :
  6. :
  7. --]]
  8. local BloodsaberRaid = 530
  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, BloodsaberRaid) and not HasCompletedQuest(Spawn, BloodsaberRaid) then
  16. if Message == "Examine the Painting" then
  17. local con = CreateConversation()
  18. AddConversationOption(con, "Look behind painting.", "BehindPainting")
  19. AddConversationOption(con, "Leave painting alone.")
  20. StartDialogConversation(con, 1, NPC, Spawn, "You see an old, moldy painting.")
  21. end
  22. function BehindPainting(NPC, Spawn)
  23. local con = CreateConversation()
  24. OfferQuest(NPC, Spawn, BloodsaberRaid)
  25. AddConversationOption(con, "I will stop them.")
  26. AddConversationOption(con, "exit")
  27. StartDialogConversation(con, 1, NPC, Spawn, "Behind the painting you find a piece of parchment with a crude plan and map outlining plans to raid the Irontoe estate in Qeynos. The plan includes a major diversion by the Bloodsaber proficients, which reside in the Vermin's Snye. They should be stopped at all costs!")
  28. end
  29. end
  30. end