9
3

Crattok.lua 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. --[[
  2. Script Name : SpawnScripts/BigBend/Crattok.lua
  3. Script Purpose : Crattok
  4. Script Author : torsten
  5. Script Date : 2022.07.12
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local MuchAdoAboutRallos = 5634
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if GetQuestStep(Spawn, MuchAdoAboutRallos) == 6 then
  17. Dialog6(NPC, Spawn)
  18. elseif GetQuestStep(Spawn, MuchAdoAboutRallos) == 8 then
  19. Dialog9(NPC, Spawn)
  20. else
  21. Dialog10(NPC, Spawn)
  22. end
  23. RandomGreeting(NPC, Spawn)
  24. end
  25. function RandomGreeting(NPC, Spawn)
  26. local choice = MakeRandomInt(1,4)
  27. if choice == 1 then
  28. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1031.mp3", 0, 0, Spawn)
  29. elseif choice == 2 then
  30. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1031.mp3", 0, 0, Spawn)
  31. elseif choice == 3 then
  32. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1031.mp3", 0, 0, Spawn)
  33. elseif choice == 4 then
  34. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1055.mp3", 0, 0, Spawn)
  35. end
  36. end
  37. function Dialog6(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. Dialog.New(NPC, Spawn)
  40. Dialog.AddDialog("You want elf skull? It still have delicious ears! ")
  41. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/crattok/fprt_hood01/newbie_path_ogre/crattok001.mp3", 3953050857, 4128026214)
  42. Dialog.AddOption("No. I have been sent to get incense from you. ", "Dialog2")
  43. Dialog.Start()
  44. end
  45. function Dialog2(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. Dialog.New(NPC, Spawn)
  48. Dialog.AddDialog("Cence what? ")
  49. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/crattok/fprt_hood01/newbie_path_ogre/crattok002.mp3", 2315939514, 3958347700)
  50. Dialog.AddOption("Since now. ", "Dialog1")
  51. Dialog.Start()
  52. end
  53. function Dialog1(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. Dialog.New(NPC, Spawn)
  56. Dialog.AddDialog("... ")
  57. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/crattok/fprt_hood01/newbie_path_ogre/crattok005.mp3", 3557141822, 3698658818)
  58. Dialog.AddOption("Smelly powder, with smoke. ", "Dialog4")
  59. Dialog.Start()
  60. end
  61. function Dialog4(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. Dialog.New(NPC, Spawn)
  64. Dialog.AddDialog("Ah! Crattok have that! You gots money for it? ")
  65. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/crattok/fprt_hood01/newbie_path_ogre/crattok006.mp3", 1271671749, 4236549240)
  66. Dialog.AddOption("No. Kroota did not mention paying for it. ", "Dialog7")
  67. Dialog.AddOption("Yes, but Kroota did not mention paying for it. ", "Dialog7")
  68. Dialog.Start()
  69. end
  70. function Dialog7(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. Dialog.New(NPC, Spawn)
  73. Dialog.AddDialog("I good business. You no pay, you no get smoke!")
  74. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/crattok/fprt_hood01/newbie_path_ogre/crattok007.mp3", 1896222771, 4148742307)
  75. Dialog.AddOption("How much for the smoke powder? ", "Dialog8")
  76. Dialog.Start()
  77. end
  78. function Dialog8(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. Dialog.New(NPC, Spawn)
  81. Dialog.AddDialog("One silver. ")
  82. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/crattok/fprt_hood01/newbie_path_ogre/crattok008.mp3", 963455611, 3752670021)
  83. Dialog.AddOption("Fine.")
  84. Dialog.AddOption("I'll be back once I speak to Kroota.", "Dialog3")
  85. Dialog.Start()
  86. end
  87. function Dialog3(NPC, Spawn)
  88. FaceTarget(NPC, Spawn)
  89. Dialog.New(NPC, Spawn)
  90. Dialog.AddDialog("Hurry! I's may sell powder to othersez.")
  91. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/crattok/fprt_hood01/newbie_path_ogre/crattok013.mp3", 688670611, 2473738773)
  92. Dialog.AddOption("Do what you have to.")
  93. Dialog.Start()
  94. SetStepComplete(Spawn, MuchAdoAboutRallos, 6)
  95. end
  96. --=================
  97. function Dialog9(NPC, Spawn)
  98. FaceTarget(NPC, Spawn)
  99. Dialog.New(NPC, Spawn)
  100. Dialog.AddDialog("You back for powder? You have four silver? ")
  101. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/crattok/fprt_hood01/newbie_path_ogre/crattok011.mp3", 3635361774, 3095148594)
  102. Dialog.AddOption("I have something worth more! I brought you ten fresh rats for the smoke powder. ", "Dialog5")
  103. Dialog.Start()
  104. end
  105. function Dialog5(NPC, Spawn)
  106. FaceTarget(NPC, Spawn)
  107. Dialog.New(NPC, Spawn)
  108. Dialog.AddDialog("Deal! I's need'n good food. ")
  109. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/crattok/fprt_hood01/newbie_path_ogre/crattok012.mp3", 1507687832, 2571146708)
  110. Dialog.AddOption("Nice doing business with you.")
  111. Dialog.Start()
  112. SetStepComplete(Spawn, MuchAdoAboutRallos, 8)
  113. end
  114. function Dialog10(NPC, Spawn)
  115. FaceTarget(NPC, Spawn)
  116. Dialog.New(NPC, Spawn)
  117. Dialog.AddDialog("You give hunting work for Crattok?")
  118. Dialog.AddVoiceover("voiceover/english/tutorial_revamp/crattok/fprt_hood01/newbie_path_ogre/crattok004.mp3", 816036049, 1788596289)
  119. Dialog.AddOption("I hunt. No need to hire you.")
  120. Dialog.Start()
  121. end