9
3

BrawlerBently.lua 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : SpawnScripts/VerminSnye/BrawlerBently.lua
  3. Script Purpose : Brawler Bently Dialog
  4. Script Author : premierio015
  5. Script Date : 03.05.2020
  6. Script Notes :
  7. --]]
  8. local CalcifiedBoneOfTheTortured = 527
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, QUEST)
  11. SetPlayerProximityFunction(NPC, 15, "InRange", "LeaveRange", Spawn)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. if HasQuest(Spawn, CalcifiedBoneOfTheTortured) then
  19. PlayFlavor(NPC, "voiceover/english/brawler_bently/qey_catacomb02/quest_character/brawler_bently_aoicallout01_171ba5cc.mp3", "Hey! I heard you destroyed Lika the Tortured!", "", 2007283087, 1004410230, Spawn)
  20. end
  21. end
  22. function LeaveRange(NPC, Spawn)
  23. end
  24. function hailed(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. if HasQuest(Spawn, CalcifiedBoneOfTheTortured) and GetQuestStep(Spawn, CalcifiedBoneOfTheTortured) == 1 then
  27. conversation = CreateConversation()
  28. PlayFlavor(NPC, "voiceover/english/brawler_bently/qey_catacomb02/brawlerbently002.mp3", "", "", 2544659380, 3123934221, Spawn)
  29. AddConversationOption(conversation, "I have her arm bone.", "ArmBone")
  30. AddConversationOption(conversation, "Nothing of value.")
  31. StartConversation(conversation, NPC, Spawn, "Lika the Tortured has sent many starry eyed young adventurers to ther early doom. Good to hear you put her to rest once and for all! So what did you loot from her remains?")
  32. else
  33. Advice(NPC, Spawn)
  34. end
  35. end
  36. function ArmBone(NPC, Spawn)
  37. SetStepComplete(Spawn, CalcifiedBoneOfTheTortured, 1)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. PlayFlavor(NPC, "voiceover/english/brawler_bently/qey_catacomb02/brawlerbently003.mp3", "", "", 2024118320, 3061111092, Spawn)
  41. AddConversationOption(conversation, "Thank you for the suggestion.", "Multistep")
  42. StartConversation(conversation, NPC, Spawn, "This bone is very strong. Urgh! It won't even flex or crack when I try to bend it! This would make a great weapon! Take it to Dylan Ironforge in North Qeynos. He'll craft something out of it. Besides, he owes me a favor. HAHA!")
  43. end
  44. function Advice(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. conversation = CreateConversation()
  47. PlayFlavor(NPC, "voiceover/english/brawler_bently/qey_catacomb02/brawlerbently001.mp3", "", "", 615717805, 349513668, Spawn)
  48. AddConversationOption(conversation, "Thanks for the advice.")
  49. StartConversation(conversation, NPC, Spawn, "Be careful down in the catacombs. Nasty creatures who'd be happy to take their frustrations out on you live in bowels below, the least of which is Lika the Tortured!")
  50. end