9
3

Fruppen.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. --[[
  2. Script Name : SpawnScripts/TheLostVillageofKugup/Fruppen.lua
  3. Script Purpose : Fruppen
  4. Script Author : neatz09
  5. Script Date : 2023.05.06
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local StaffingUpQuest = 5932
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, StaffingUpQuest)
  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, StaffingUpQuest) and not HasCompletedQuest(Spawn, StaffingUpQuest) then
  19. Dialog5(NPC, Spawn)
  20. elseif HasQuest(Spawn, StaffingUpQuest) and GetQuestStep(Spawn, StaffingUpQuest) == 2 then
  21. Dialog2(NPC, Spawn)
  22. else RandomGreeting(NPC, Spawn)
  23. end
  24. end
  25. function RandomGreeting(NPC, Spawn)
  26. local choice = MakeRandomInt(1,4)
  27. if choice == 1 then
  28. PlayFlavor(NPC, "", "I can't believe I finally have a staff of my own! I can't wait to start practicing!", "", 0, 0, Spawn, 0)
  29. elseif choice == 2 then
  30. PlayFlavor(NPC, "", "Woohoo! Freppen, you're my hero!", "", 0, 0, Spawn, 0)
  31. elseif choice == 3 then
  32. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1024.mp3", 0, 0, Spawn)
  33. elseif choice == 4 then
  34. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1024.mp3", 0, 0, Spawn)
  35. end
  36. end
  37. function Dialog1(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. Dialog.New(NPC, Spawn)
  40. Dialog.AddDialog("Hey this branch is perfect! Whoa! Thanks so much!")
  41. SetStepComplete(Spawn, StaffingUpQuest, 2)
  42. Dialog.AddOption("You're welcome. Practice hard!")
  43. Dialog.Start()
  44. end
  45. function Dialog2(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. Dialog.New(NPC, Spawn)
  48. Dialog.AddDialog("Did you find a good staff for me yet? ")
  49. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_1_1024.mp3", 0, 0)
  50. Dialog.AddOption("I sure did.", "Dialog1")
  51. Dialog.AddOption("Not quite yet")
  52. Dialog.Start()
  53. end
  54. function Dialog3(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. Dialog.New(NPC, Spawn)
  57. Dialog.AddDialog("Really?! I can't be a monk right now, though. My dad says I'm too little, but I still want to practice, ya know? It's just that I can't even practice.")
  58. Dialog.AddOption("Why not?", "Dialog9")
  59. Dialog.AddOption("You are too little.")
  60. Dialog.Start()
  61. end
  62. function Dialog4(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. Dialog.New(NPC, Spawn)
  65. Dialog.AddDialog("Wow! Thanks! You should be able to find a good branch on one of these trees around here. Yeah, a nice tree branch. That would work great for my first staff!")
  66. Dialog.AddOption("Okay, I'll find you one.")
  67. Dialog.Start()
  68. end
  69. function Dialog5(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. Dialog.New(NPC, Spawn)
  72. Dialog.AddDialog("Can you believe my big brother is such a good fighter? I sure hope I can be a monk like him someday.")
  73. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_2_1024.mp3", 0, 0)
  74. Dialog.AddOption("I bet you will be!", "Dialog3")
  75. Dialog.AddOption("I suppose it's possible. I have to get going.")
  76. Dialog.Start()
  77. end
  78. function Dialog6(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. Dialog.New(NPC, Spawn)
  81. Dialog.AddDialog("Can you believe my big brother is such a good fighter? I sure hope I can be a monk like him someday.")
  82. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_3_1024.mp3", 0, 0)
  83. Dialog.AddOption("I bet you will be!", "Dialog3")
  84. Dialog.AddOption("I suppose it's possible. I have to get going.")
  85. Dialog.Start()
  86. end
  87. function Dialog7(NPC, Spawn)
  88. FaceTarget(NPC, Spawn)
  89. Dialog.New(NPC, Spawn)
  90. Dialog.AddDialog("Can you believe my big brother is such a good fighter? I sure hope I can be a monk like him someday.")
  91. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_1_1024.mp3", 0, 0)
  92. Dialog.AddOption("I bet you will be!", "Dialog3")
  93. Dialog.AddOption("I suppose it's possible. I have to get going.")
  94. Dialog.Start()
  95. end
  96. function Dialog8(NPC, Spawn)
  97. FaceTarget(NPC, Spawn)
  98. Dialog.New(NPC, Spawn)
  99. Dialog.AddDialog("Really?! I mean... You don't have to if you don't want to. Do you want to?")
  100. Dialog.AddOption("Sure thing!", "StaffingUpInit")
  101. Dialog.AddOption("Not really")
  102. Dialog.Start()
  103. end
  104. function Dialog9(NPC, Spawn)
  105. FaceTarget(NPC, Spawn)
  106. Dialog.New(NPC, Spawn)
  107. Dialog.AddDialog("Well... I mean... I guess I could, but I don't have a staff or anything. How am I supposed to practice without a staff?")
  108. Dialog.AddOption("I could probably get you a staff to practice with.", "Dialog8")
  109. Dialog.AddOption("You are too young.")
  110. Dialog.Start()
  111. end
  112. function StaffingUpInit(NPC, Spawn)
  113. FaceTarget(NPC, Spawn)
  114. OfferQuest(NPC, Spawn, StaffingUpQuest)
  115. Dialog4(NPC, Spawn)
  116. end
  117. --function StaffingUpComplete(NPC, Spawn)
  118. --SetStepComplete(Spawn, StaffingUpQuest, 2)
  119. --end