9
3

Pohpiks.lua 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. --[[
  2. Script Name : SpawnScripts/TheLostVillageofKugup/Pohpiks.lua
  3. Script Purpose : Pohpiks
  4. Script Author : neatz09
  5. Script Date : 2023.05.05
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Trash = 5810
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, Trash)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. if not HasQuest(Spawn, Trash) and not HasCompletedQuest(Spawn, Trash) then Dialog1(NPC, Spawn) else
  19. RandomGreeting(NPC, Spawn)
  20. end
  21. end
  22. function RandomGreeting(NPC, Spawn)
  23. local choice = MakeRandomInt(1,6)
  24. if choice == 1 then
  25. PlayFlavor(NPC, "", "Shouldn't you get back to whatever you're working on?", "", 0, 0, Spawn, 0)
  26. elseif choice == 2 then
  27. PlayFlavor(NPC, "", "Ah! This new spell sure is powerful!", "", 0, 0, Spawn, 0)
  28. elseif choice == 3 then
  29. PlayFlavor(NPC, "", "Ready or not, here goes!", "", 0, 0, Spawn, 0)
  30. elseif choice == 4 then
  31. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1029.mp3", 0, 0, Spawn)
  32. elseif choice == 5 then
  33. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1029.mp3", 0, 0, Spawn)
  34. elseif choice == 6 then
  35. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1029.mp3", 0, 0, Spawn)
  36. end
  37. end
  38. function Dialog1(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. Dialog.New(NPC, Spawn)
  41. Dialog.AddDialog("Huh, what do you want? Who are you? I'm very busy, can't you see?")
  42. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_1_1029.mp3", 0, 0)
  43. Dialog.AddOption("What are you busy doing?", "Dialog2")
  44. Dialog.AddOption("Sorry to bother you!")
  45. Dialog.Start()
  46. end
  47. function Dialog2(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. Dialog.New(NPC, Spawn)
  50. Dialog.AddDialog("I am trying to perfect a new spell. I think I finally have it; I just need something to test it out on!")
  51. Dialog.AddOption("Is there anything I can help with?", "Dialog4")
  52. Dialog.AddOption("Oh, well I can't help you there.")
  53. Dialog.Start()
  54. end
  55. function Dialog3(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. Dialog.New(NPC, Spawn)
  58. Dialog.AddDialog("Huh, what do you want? Who are you? I'm very busy, can't you see?")
  59. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_3_1029.mp3", 0, 0)
  60. Dialog.AddOption("What are you busy doing?", "Dialog2")
  61. Dialog.AddOption("Sorry to bother you!")
  62. Dialog.Start()
  63. end
  64. function Dialog4(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. Dialog.New(NPC, Spawn)
  67. Dialog.AddDialog("Yes. As a matter of fact, I believe you can. I need some suitable targets to test this spell on and, if you're willing, I think I know where to find some.")
  68. Dialog.AddOption("Sure, just let me know where to look.", "TakingOuttheTrash") --Was dialog 7
  69. Dialog.AddOption("I'm sort of busy. Sorry!")
  70. Dialog.Start()
  71. end
  72. function Dialog5(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. Dialog.New(NPC, Spawn)
  75. Dialog.AddDialog("Huh, what do you want? Who are you? I'm very busy, can't you see?")
  76. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_2_1029.mp3", 0, 0)
  77. Dialog.AddOption("What are you busy doing?", "Dialog2")
  78. Dialog.AddOption("Sorry to bother you!")
  79. Dialog.Start()
  80. end
  81. function Dialog6(NPC, Spawn)
  82. FaceTarget(NPC, Spawn)
  83. Dialog.New(NPC, Spawn)
  84. Dialog.AddDialog("Ah, I see all the bags are collected. Great! Now to test the spell. I'll give you a moment to stand back, just in case...")
  85. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_1_1029.mp3", 0, 0)
  86. Dialog.AddOption("Okay.")
  87. Dialog.Start()
  88. end
  89. --[[function Dialog7(NPC, Spawn)
  90. FaceTarget(NPC, Spawn)
  91. Dialog.New(NPC, Spawn)
  92. Dialog.AddDialog("Great, this should be simple. Just gather trash bags from the garbage boxes around the village and bring all the bags back over here to my target platform. Those should make a fine target!")
  93. Dialog.AddOption("Eww... trash.")
  94. Dialog.Start()
  95. end]]--
  96. function TakingOuttheTrash(NPC, Spawn)
  97. FaceTarget(NPC, Spawn)
  98. OfferQuest(NPC, Spawn, Trash)
  99. end