aDefenderofKugup.lua 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : SpawnScripts/TheLostVillageofKugup/aDefenderofKugup.lua
  3. Script Purpose : a Defender of Kugup
  4. Script Author : neatz09
  5. Script Date : 2023.04.18
  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. RandomGreeting(NPC, Spawn)
  16. end
  17. function RandomGreeting(NPC, Spawn)
  18. local choice = MakeRandomInt(1,10)
  19. if choice == 1 then
  20. PlayFlavor(NPC, "", "Thou be'st a stranger to this village. FrroOOOaaAk!", "yawn", 0, 0, Spawn, 0)
  21. elseif choice == 2 then
  22. PlayFlavor(NPC, "", "Pardon? Pail? What dost thou mea... Ah, HAIL... Right, well...", "", 0, 0, Spawn, 0)
  23. elseif choice == 3 then
  24. PlayFlavor(NPC, "", "I see there is still much to be done before you have earned the right to speak with the chief.", "", 0, 0, Spawn, 0)
  25. elseif choice == 4 then
  26. PlayFlavor(NPC, "", "There is still plenty to do around here before the chief will speak with you.", "", 0, 0, Spawn, 0)
  27. elseif choice == 5 then
  28. PlayFlavor(NPC, "", "We do not have time to help those who cannot help us.", "", 0, 0, Spawn, 0)
  29. elseif choice == 6 then
  30. PlayFlavor(NPC, "", "Dost thou need something? I pray thee, continue about thy business.", "", 0, 0, Spawn, 0)
  31. elseif choice == 7 then
  32. PlayFlavor(NPC, "", "Canst thou see that I am rather busy?", "", 0, 0, Spawn, 0)
  33. elseif choice == 8 then
  34. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1024.mp3", 0, 0, Spawn)
  35. elseif choice == 9 then
  36. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1024.mp3", 0, 0, Spawn)
  37. elseif choice == 10 then
  38. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1024.mp3", 0, 0, Spawn)
  39. end
  40. end
  41. function Dialog1(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. Dialog.New(NPC, Spawn)
  44. Dialog.AddDialog("Well, I implore you to act with respect toward our people while in this village. We will be watching you, outsider.")
  45. Dialog.AddOption("You don't have to worry about me.")
  46. Dialog.Start()
  47. end
  48. function Dialog2(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. Dialog.New(NPC, Spawn)
  51. Dialog.AddDialog("Hey, I don't think I've ever seen you before! What are you doing here?")
  52. Dialog.AddOption("I am investigating the village.", "Dialog1")
  53. Dialog.AddOption("Nothing you need to worry about.", "Dialog1")
  54. Dialog.Start()
  55. end