9
3

MardypPrunt.lua 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. --[[
  2. Script Name : MardypPrunt.lua
  3. Script Purpose : Mardyp Prunt
  4. Script Author : jakejp
  5. Script Date : 04/28/2020
  6. Script Notes : Auto-Generated from a chat log using SpawnScriptDesigner
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. -- Quest ID's
  10. local ANGERFANG = 391
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, ANGERFANG)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. if not HasCompletedQuest(Spawn, ANGERFANG) then
  20. if HasQuest(Spawn, ANGERFANG) then
  21. dlg_1(NPC, Spawn)
  22. else
  23. Dialog.New(NPC, Spawn)
  24. Dialog.AddDialog("Respect enemies!")
  25. Dialog.AddOption("What?", "dlg_3")
  26. Dialog.AddOption("Whatever.")
  27. Dialog.Start()
  28. end
  29. elseif HasCompletedQuest(Spawn, ANGERFANG) then
  30. Say(NPC, "Making fang dust harder than Mardyp thought!", Spawn)
  31. end
  32. end
  33. function dlg_3(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. Dialog.AddDialog("If enemies strong, respect them!")
  37. Dialog.AddOption("Oh.", "dlg_4")
  38. Dialog.Start()
  39. end
  40. function dlg_4(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. Dialog.New(NPC, Spawn)
  43. Dialog.AddDialog("Orc strong! Not THAT strong, but strong enough for respect! Mardyp talk to friend in Big Bend. Friend tell Mardyp that something in orc tusks make orcs more fierce, more strong! Mardyp killing orcs fine, but crushing fangs to eat takes time. You help Mardyp?")
  44. Dialog.AddOption("How can I help?", "dlg_5")
  45. Dialog.Start()
  46. end
  47. function dlg_5(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. Dialog.New(NPC, Spawn)
  50. Dialog.AddDialog("Get more fangs while Mardyp crush ones I already have. All orcs have fangs. Mardyp need 20!")
  51. Dialog.AddOption("Ok, I'll collect some fangs.", "OfferQuest1")
  52. Dialog.Start()
  53. end
  54. function OfferQuest1(NPC, Spawn)
  55. OfferQuest(NPC, Spawn, ANGERFANG)
  56. end
  57. function dlg_1(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. Dialog.New(NPC, Spawn)
  60. Dialog.AddDialog("Orc fangs?")
  61. if GetQuestStep(Spawn, ANGERFANG) == 2 then
  62. Dialog.AddOption("Here you go.", "dlg_7")
  63. else
  64. Dialog.AddOption("Not yet.")
  65. end
  66. Dialog.Start()
  67. end
  68. function dlg_7(NPC, Spawn)
  69. SetStepComplete(Spawn, ANGERFANG, 2)
  70. FaceTarget(NPC, Spawn)
  71. Dialog.New(NPC, Spawn)
  72. Dialog.AddDialog("Good! Mardyp very happy! Soon Mardyp make these into soup or drink or something! Unless that too much work, then Mardyp just eat it.")
  73. Dialog.AddOption("Well, good luck with that.")
  74. Dialog.Start()
  75. end