LasydiasCall.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : LasydiasCall.lua
  3. Script Purpose : Handles the quest, "Lasydia's Call"
  4. Script Author : QuestParser (Replace this)
  5. Script Date : 9/12/2016
  6. Script Notes :
  7. Zone : Queen's Colony
  8. Quest Giver : statue_widget (2530133)
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "It is Lasydia's desire that I slay 5 razortooth sharks.", 5, 100, "I feel an overwhelming urge to end the threat that these razortooth sharks present to the refuges and inhabitants of this isle.", 611, 2530014)
  14. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  15. end
  16. function QuestComplete(Quest, QuestGiver, Player)
  17. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  18. UpdateQuestStepDescription(Quest, 1, "I killed 5 razortooth sharks.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "Lasydia has comforted me and the feeling to slay sharks left me after I had slain a number of them.")
  20. UpdateQuestDescription(Quest, "A mysterious sash floated to me out of the water after my desire to slay the vicious sharks left me. I can only guess if it was by accident or by design that the sash found me.")
  21. GiveQuestReward(Quest, Player)
  22. end
  23. function Reload(Quest, QuestGiver, Player, Step)
  24. if Step == 1 then
  25. QuestComplete(Quest, QuestGiver, Player)
  26. end
  27. end
  28. function Accepted(Quest, QuestGiver, Player)
  29. local con = CreateConversation()
  30. AddConversationOption(con, "[exit]", "CloseConversation")
  31. StartDialogConversation(con, 1, QuestGiver, Player, "\"Lasydia - as divinely merciful as she is beautiful. Deliverer of the drowned and caretaker of the castaway.\" A feeling of purpose surrounds and penetrates you. You feel a sudden desire to make the waters around you a safer place.")
  32. end
  33. function Declined(Quest, QuestGiver, Player)
  34. -- Add dialog here for when the quest is declined
  35. end