statuewidget.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/statuewidget.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.25 12:09:22
  5. Script Purpose :
  6. :
  7. --]]
  8. local LasydiasCall = 5756
  9. function casted_on(NPC, Spawn, Message)
  10. if Message == "Read Inscription" then
  11. local con = CreateConversation()
  12. if not HasQuest(Spawn, LasydiasCall) and not HasCompletedQuest(Spawn, LasydiasCall) then
  13. AddConversationOption(con, "Touch the statue", "QuestOffer1")
  14. end
  15. AddConversationOption(con, "Leave the statue", "CloseConversation")
  16. if not HasQuest(Spawn, LasydiasCall) and not HasCompletedQuest(Spawn, LasydiasCall) then
  17. StartDialogConversation(con, 1, NPC, Spawn, "\"Lasydia - as divinely merciful as she is beautiful. Deliverer of the drowned and caretaker of the castaway.\"\n\nA feeling of purpose surrounds and penetrates you. You have a sudden desire to touch the statue.")
  18. else
  19. StartDialogConversation(con, 1, NPC, Spawn, "\"Lasydia - as divinely merciful as she is beautiful. Deliverer of the drowned and caretaker of the castaway.\"")
  20. end
  21. end
  22. end
  23. function QuestOffer1(NPC,Spawn)
  24. local con = CreateConversation()
  25. AddConversationOption(con, "I will remove these dangers from the water", "QuestOffer2")
  26. AddConversationOption(con, "Leave the statue", "CloseConversation")
  27. StartDialogConversation(con, 1, NPC, Spawn, "Tourching the sunken statue of Lasydia overwhelms you with a need to help make these waters safer.")
  28. end
  29. function QuestOffer2(NPC,Spawn)
  30. OfferQuest(NPC, Spawn, LasydiasCall)
  31. CastSpell(Spawn, 5479)
  32. SendMessage(Spawn, "You are blessed by Lasydia!")
  33. SendPopUpMessage(Spawn, "You are blessed by Lasydia!", 200, 200, 200)
  34. CloseConversation(NPC,Spawn)
  35. --5-10 min Buff casted on player Blessing of Lasydia: Grants water-breathing to the chosen of Lasydia
  36. --You are blessed by Lasydia!
  37. end