9
3

Pikspoh.lua 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. --[[
  2. Script Name : SpawnScripts/TheLostVillageofKugup/Pikspoh.lua
  3. Script Purpose : Pikspoh
  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. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. RandomGreeting(NPC, Spawn)
  17. end
  18. function RandomGreeting(NPC, Spawn)
  19. local choice = MakeRandomInt(1,5)
  20. if choice == 1 then
  21. PlayFlavor(NPC, "", "This channeling gem really packs some punch! ", "", 0, 0, Spawn, 0)
  22. elseif choice == 2 then
  23. PlayFlavor(NPC, "", "Ah, if only you weren't already helping someone else...", "", 0, 0, Spawn, 0)
  24. elseif choice == 3 then
  25. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1015.mp3", 0, 0, Spawn)
  26. elseif choice == 4 then
  27. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1015.mp3", 0, 0, Spawn)
  28. elseif choice == 5 then
  29. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1015.mp3", 0, 0, Spawn)
  30. end
  31. end
  32. function Dialog1(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. Dialog.New(NPC, Spawn)
  35. Dialog.AddDialog("Oh, it's nothing you'd understand, I'm sure. It's just that my channeling gem seems to have cracked, so my wand is broken! Right when I was about to do some training too!")
  36. Dialog.AddOption("Yikes, is there anything I can do?", "Dialog3")
  37. Dialog.AddOption("That's too bad... I have to be going.")
  38. Dialog.Start()
  39. end
  40. function Dialog2(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. Dialog.New(NPC, Spawn)
  43. Dialog.AddDialog("Hey, this is a good one! Wow, it's really yellow. This is going to make a great lightning wand.")
  44. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_3_1015.mp3", 0, 0)
  45. Dialog.AddOption("I'm happy I could be of service.")
  46. Dialog.Start()
  47. end
  48. function Dialog3(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. Dialog.New(NPC, Spawn)
  51. Dialog.AddDialog("Hmm, if you were willing to find me another channeling stone, I could fix it right up. Would you be willing to do that for me?")
  52. Dialog.AddOption("Definitely!", "Dialog4")
  53. Dialog.AddOption("Um... no.")
  54. Dialog.Start()
  55. end
  56. function Dialog4(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. Dialog.New(NPC, Spawn)
  59. Dialog.AddDialog("Wonderful! I would start by looking over by the miners to see if there are any gems in the rubble over there.")
  60. Dialog.AddOption("I'm on it!")
  61. Dialog.Start()
  62. end
  63. function Dialog5(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. Dialog.New(NPC, Spawn)
  66. Dialog.AddDialog("Drat! I can't believe it! Why does something like this have to happen now, of all times?!")
  67. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_1_1015.mp3", 0, 0)
  68. Dialog.AddOption("What happened?", "Dialog1")
  69. Dialog.AddOption("I'm busy right now.")
  70. Dialog.Start()
  71. end
  72. function Dialog6(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. Dialog.New(NPC, Spawn)
  75. Dialog.AddDialog("Drat! I can't believe it! Why does something like this have to happen now, of all times?!")
  76. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_3_1015.mp3", 0, 0)
  77. Dialog.AddOption("What happened?", "Dialog1")
  78. Dialog.AddOption("I'm busy right now.")
  79. Dialog.Start()
  80. end
  81. function Dialog7(NPC, Spawn)
  82. FaceTarget(NPC, Spawn)
  83. Dialog.New(NPC, Spawn)
  84. Dialog.AddDialog("Drat! I can't believe it! Why does something like this have to happen now, of all times?!")
  85. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_2_1015.mp3", 0, 0)
  86. Dialog.AddOption("What happened?", "Dialog1")
  87. Dialog.AddOption("I'm busy right now.")
  88. Dialog.Start()
  89. end