GerhildMaclennan.lua 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. --[[
  2. Script Name : SpawnScripts/Freeport/GerhildMaclennan.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.08.30 07:08:48
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheHiddenNewHalasian = 578
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 50, "InRange", "InRange")
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. if GetQuestStep(Spawn, TheHiddenNewHalasian) == 3 then
  15. conversation = CreateConversation()
  16. PlayFlavor(NPC, "gerhild_maclennan/freeport_combined/quest/racial/barbarian/gerhild_maclennan_001.mp3", "", "", 1385565985, 2770955771, Spawn)
  17. AddConversationOption(conversation, "A question of faith.", "dlg1")
  18. StartConversation(conversation, NPC, Spawn, "What brings you in, this day?")
  19. end
  20. end
  21. function dlg1(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. conversation = CreateConversation()
  24. PlayFlavor(NPC, "gerhild_maclennan/freeport_combined/quest/racial/barbarian/gerhild_maclennan_002.mp3", "", "", 769732258, 2457685776, Spawn)
  25. AddConversationOption(conversation, "It can certainly shake one's faith." , "dlg2")
  26. StartConversation(conversation, NPC, Spawn, "Oddly, a common enough topic in these days. Seems ya can't go a season without gods rising, falling or ascending.")
  27. end
  28. function dlg2(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. conversation = CreateConversation()
  31. PlayFlavor(NPC, "gerhild_maclennan/freeport_combined/quest/racial/barbarian/gerhild_maclennan_003.mp3", "", "", 2945748388, 2492751437, Spawn)
  32. AddConversationOption(conversation, "You didn't?", "dlg3")
  33. StartConversation(conversation, NPC, Spawn, "Agreed. I watched as many had to reevaluate their faith due to Rallos Zek's death.")
  34. end
  35. function dlg3(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. conversation = CreateConversation()
  38. PlayFlavor(NPC, "gerhild_maclennan/freeport_combined/quest/racial/barbarian/gerhild_maclennan_004.mp3", "", "no", 2147169257, 517808444, Spawn)
  39. AddConversationOption(conversation, "You have revealed your true feelings!", "fight")
  40. AddConversationOption(conversation, "You should be careful who you admit that to.", "onyourway")
  41. StartConversation(conversation, NPC, Spawn, "No. The Warlord's death did nothing to shake my faith. On the other hand, learning of Erollisi's death shook my faith greatly! If truth be told, I've often given thought to visiting New Halas. I could see the Cairn of The Huntress, the statue crafted by Varig Ro commemorating her.")
  42. end
  43. function fight(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. PlayFlavor(NPC, "", "I will not stand here and take such judgment!", "", 1689589577, 4560189, Spawn)
  46. SetStepComplete(Spawn, TheHiddenNewHalasian, 3)
  47. SpawnSet(NPC, "attackable", 1)
  48. SpawnSet(NPC, "show_level", 1)
  49. SpawnSet(NPC, "faction", 1)
  50. Attack(NPC, Spawn)
  51. end
  52. function onyourway(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. SetStepComplete(Spawn, TheHiddenNewHalasian, 3)
  55. PlayFlavor(NPC, "", "Be on your way. My work does not concern you.", "", 1689589577, 4560189, Spawn)
  56. end
  57. function InRange(NPC, Spawn)
  58. PlayersLevel = GetLevel(Spawn)
  59. SpawnSet(NPC, "level", PlayersLevel)
  60. end
  61. function respawn(NPC)
  62. spawn(NPC)
  63. end