sword_for_aadalian.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/CastleviewHamlet/sword_for_aadalian.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.25 09:01:30
  5. Script Purpose :
  6. Zone : CastleviewHamlet
  7. Quest Giver: Aadalian Farenair
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to speak with Froptub.", 1, "I must see about Aadalian's sword at Froptub's smithy in Castleview.", 11, 2360018)
  13. AddQuestStepCompleteAction(Quest, 1, "Pickedup")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function Pickedup(Quest, QuestGiver, Player)
  25. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  26. UpdateQuestStepDescription(Quest, 1, "I've retrieved Aadalian's sword.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I've retrieved Aadalian's sword from Froptub's smithy.")
  28. AddQuestStepChat(Quest, 2, "I need to return to Aadalian.", 1, "I need to deliver Aadalian's family sword to him.", 11, 2360019)
  29. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  30. end
  31. function QuestComplete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 1, "I've returned Aadalian's sword.")
  33. UpdateQuestTaskGroupDescription(Quest, 1, "I've returned Aadalian's sword, but he doesn't seem too impressed with the craftsmanship.")
  34. UpdateQuestDescription(Quest, "I suppose Aadalian was pleased with the work Froptub did. The mark was not to my own liking, but under the circumstances, I believe it was decent work.")
  35. GiveQuestReward(Quest, Player)
  36. end
  37. function Reload(Quest, QuestGiver, Player, Step)
  38. if Step == 1 then
  39. Pickedup(Quest, QuestGiver, Player)
  40. elseif Step == 2 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end