TorgBramblehair.lua 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. --[[
  2. Script Name : SpawnScripts/CryptBetrayal/TorgBramblehair.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.10.30 10:10:41
  5. Script Purpose :
  6. :
  7. --]]
  8. local LittleLostMinotaur = 5387 -- Little Lost Minotaur quest
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, LittleLostMinotaur)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. local conversation = CreateConversation()
  15. if not HasQuest(Spawn, LittleLostMinotaur) and not HasCompletedQuest(Spawn, LittleLostMinotaur) then
  16. PlayFlavor(NPC, "voiceover/english/torg_bramblehair/qey_catacomb03/torg_bramblehair001.mp3", "", "", 1160327358, 2537496149, Spawn)
  17. AddConversationOption(conversation, "Spike's a minotaur?", "Option1")
  18. AddConversationOption(conversation, "This sounds like a job for someone else.")
  19. StartConversation(conversation, NPC, Spawn, "Have you seen a minotaur about this tall with horns? Well, they're all about this tall with horns. Try again, Torg ... Have you seen Spike?")
  20. elseif HasQuest(Spawn, LittleLostMinotaur) then
  21. AddConversationOption(conversation, "No, I haven't seen him.")
  22. if GetQuestStep(Spawn, LittleLostMinotaur) == 2 then
  23. AddConversationOption(conversation, "I've killed ten crypt tempests so he should come out soon.", "Option5")
  24. end
  25. PlayFlavor(NPC, "voiceover/english/torg_bramblehair/qey_catacomb03/torg_bramblehair006.mp3", "", "", 360910423, 1997413636, Spawn)
  26. StartConversation(conversation, NPC, Spawn, "Spike! Where are you? Have you seen him?")
  27. end
  28. end
  29. function respawn(NPC)
  30. spawn(NPC)
  31. end
  32. function Option1(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. local conversation = CreateConversation()
  35. PlayFlavor(NPC, "voiceover/english/torg_bramblehair/qey_catacomb03/torg_bramblehair002.mp3", "", "", 3726549634, 4122557241, Spawn)
  36. AddConversationOption(conversation, "You want me to look for Spike?", "Option2")
  37. AddConversationOption(conversation, "Anyone who makes a minotaur a pet needs more help than I can give.")
  38. StartConversation(conversation, NPC, Spawn, "Spike's not like the other minotaurs, nooooo, sir! I raised him by hand, my own self! But he's run off and got himself in a real mess this time. Can you help me?")
  39. end
  40. function Option2(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. local conversation = CreateConversation()
  43. PlayFlavor(NPC, "voiceover/english/torg_bramblehair/qey_catacomb03/torg_bramblehair003.mp3", "", "", 2401579402, 3167198059, Spawn)
  44. AddConversationOption(conversation, "How can I catch him?", "Option3")
  45. AddConversationOption(conversation, "I'm afraid I can't help you.")
  46. StartConversation(conversation, NPC, Spawn, "Aw, would ya? Spike's my pal, and he's too small to last long in this place. I always tell him not to play down here, but you know minotaurs -- they're kind of bull-headed.")
  47. end
  48. function Option4(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. local conversation = CreateConversation()
  51. PlayFlavor(NPC, "voiceover/english/torg_bramblehair/qey_catacomb03/torg_bramblehair004.mp3", "", "", 3646313566, 3514709231, Spawn)
  52. AddConversationOption(conversation, "I can take care of this. You're sure Spike will come back?", "offer")
  53. AddConversationOption(conversation, "I'm not interested in this.")
  54. StartConversation(conversation, NPC, Spawn, "I'm thinking he's too scared to come back, with all them undead minotaurs and things in here. If you killed ten of them nasty crypt tempests, he'll come back out on his own. That would do the trick.")
  55. end
  56. function Option5(NPC, Spawn)
  57. SetStepComplete(Spawn, LittleLostMinotaur , 2)
  58. FaceTarget(NPC, Spawn)
  59. local conversation = CreateConversation()
  60. PlayFlavor(NPC, "voiceover/english/torg_bramblehair/qey_catacomb03/torg_bramblehair007.mp3", "", "", 840005073, 714277153, Spawn)
  61. AddConversationOption(conversation, "He's Here?")
  62. StartConversation(conversation, NPC, Spawn, "There he is! Spike! Here, boy! I said, here, boy! Spike!")
  63. local Spike = SpawnMob(NPC, 2010062, false, -27.7625, 6.91103, -14.8451, 125.266) -- spawns "Spike"
  64. end
  65. function offer(NPC, Spawn)
  66. OfferQuest(NPC, Spawn, LittleLostMinotaur)
  67. end