9
3

SeafoodSurprise.lua 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : Quests/Commonlands/SeafoodSurprise.lua
  3. Script Author : premierio015
  4. Script Date : 2018.12.30 10:12:33
  5. Script Purpose :
  6. Zone : Commonlands
  7. Quest Giver: Mooshga
  8. Preceded by: None
  9. Followed by: Hyenas Jerky
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need to collect huge freshwater crab claws", 10, 100, "I need to collect ten huge freshwater crab claws for Mooshga. I should look to the southeast near a tower by the ruins.", 1085, 330247, 330568)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Step1Complete(Quest, QuestGiver, Player)
  16. UpdateQuestStepDescription(Quest, 1, "I have collected the crab claws.")
  17. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected ten huge freshwater crab claws.")
  18. AddQuestStepChat(Quest, 2, "I should return to Mooshga", 1, "I should take these crab claws back to Mooshga.", 11, 331133)
  19. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  20. end
  21. function QuestComplete(Quest, QuestGiver, Player)
  22. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  23. UpdateQuestStepDescription(Quest, 2, " I have returned to Mooshga.")
  24. UpdateQuestTaskGroupDescription(Quest, 2, "I have returned to Mooshga outside the Freeport gates.")
  25. UpdateQuestDescription(Quest, "I collected ten huge freshwater crab claws and returned them to Mooshga.")
  26. GiveQuestReward(Quest, Player)
  27. end
  28. function Accepted(Quest, QuestGiver, Player)
  29. FaceTarget(QuestGiver, Player)
  30. local conversation = CreateConversation()
  31. AddConversationOption(conversation, "Oh, that does sound yummy. I'll be right back.")
  32. StartConversation(conversation, QuestGiver, Player, "Mooshga will make seafood surprise for you!")
  33. end
  34. function Declined(Quest, QuestGiver, Player)
  35. end
  36. function Deleted(Quest, QuestGiver, Player)
  37. -- Remove any quest specific items here when the quest is deleted
  38. end
  39. function QuestComplete(Quest, QuestGiver, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Step1Complete(Quest, QuestGiver, Player)
  44. elseif Step == 2 then
  45. QuestComplete(Quest, QuestGiver, Player)
  46. end
  47. end