ManiusGalla.lua 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity/ManiusGalla.lua
  3. Script Purpose : Manius Galla
  4. Script Author : Neatz09
  5. Script Date : 12/31/2018
  6. Script Notes :
  7. --]]
  8. local QUEST_1 = 389
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, QUEST_1)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. RandomVoiceOver(NPC, Spawn)
  19. if not HasCompletedQuest(Spawn, QUEST_1) then
  20. if HasQuest(Spawn, QUEST_1) then
  21. if GetQuestStep(Spawn, QUEST_1) == 6 then
  22. AddConversationOption(conversation, "I've killed the raiders.", "dlg_17_1")
  23. end
  24. else
  25. AddConversationOption(conversation, "I want to join your gang.", "dlg_9_1")
  26. end
  27. end
  28. AddConversationOption(conversation, "I didn't see anything.")
  29. StartConversation(conversation, NPC, Spawn, "Mind your own business. If you keep gawking, you'll be walking away with a limp. And that's only because I'm in a good mood today.")
  30. end
  31. function RandomVoiceOver(NPC, Spawn)
  32. local choice = math.random(1, 3)
  33. if choice == 1 then
  34. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", "", "", 0, 0, Spawn)
  35. elseif choice == 2 then
  36. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1004.mp3", "", "", 0, 0, Spawn)
  37. elseif choice == 3 then
  38. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0, Spawn)
  39. end
  40. end
  41. function dlg_9_1(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. AddConversationOption(conversation, "Why don't you give me a test?", "dlg_9_2")
  45. AddConversationOption(conversation, "I don't need to take this from you. Good bye.")
  46. StartConversation(conversation, NPC, Spawn, "Did you hear that, boys? This runt wants to join our gang! HA HA HA HA! You couldn't fight your way out of a wet parchment bag let alone join us. HA HA HA! We keep people safe inside the city districts! You're better off paying us for protection, runt.")
  47. end
  48. function dlg_9_2(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. conversation = CreateConversation()
  51. OfferQuest(NPC, Spawn, QUEST_1)
  52. AddConversationOption(conversation, "Okay, I'll be back when they're dead.", "dlg_9_3")
  53. StartConversation(conversation, NPC, Spawn, "A test, huh? Yeah ... hey, boys ... let's give this runt a bit of a test. Okay, here's your test: Go deeper in this place and find some of the lackeys who hang around the raiders. Kill some of them and maybe you can work for us.")
  54. end
  55. function dlg_9_3(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. AddConversationOption(conversation, "Don't worry about it.", "dlg_9_4")
  59. StartConversation(conversation, NPC, Spawn, "Don't even bother coming back if they ain't!")
  60. end
  61. function dlg_17_1(NPC, Spawn)
  62. SetStepComplete(Spawn, QUEST_1, 6)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. AddConversationOption(conversation, "I'll check back.")
  66. StartConversation(conversation, NPC, Spawn, "Crispin already heard. Hpmh ... You got lucky, I guess. Either way, those Raiders won't bother our clients in the Court anymore. I don't know if I should let you join our gang ... let me think about it.")
  67. end