PriestAaronolisSwornlove.lua 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/PriestAaronolisSwornlove.lua
  3. Script Purpose : Priest Aaronolis Swornlove
  4. Script Author : theFoof
  5. Script Date : 2013.09.16
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 15, "InRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. if GetTempVariable(NPC, "chat_timer") == nil then
  16. SetTempVariable(NPC, "chat_timer", "1")
  17. AddTimer(NPC, 25000, "chat_timer")
  18. local choice = math.random(1,2)
  19. if choice == 1 then
  20. PlayFlavor(NPC, "", "Were she still with us, Erollisi would have wanted you to spread love and friendship on this day.", "agree", 0, 0)
  21. elseif choice == 2 then
  22. PlayFlavor(NPC, "", "The Fanthom Lord, The Truthbringer, and The Forge Lord all had their hand in establishing this holy place. It is awe inspiring!", "nod", 0, 0)
  23. end
  24. end
  25. end
  26. function hailed(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. conversation = CreateConversation()
  29. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1054.mp3", "", "", 0, 0, Spawn)
  30. AddConversationOption(conversation, "Is that a statue of her?", "Chat1")
  31. StartConversation(conversation, NPC, Spawn, "Welcome to the Cairn of The Huntress, " .. GetName(Spawn) .. "! Here we remember The Goddess of Love, Erollisi Marr, The Loving Huntress, The Queen of Love, Sister of Light.")
  32. end
  33. function Chat1(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. conversation = CreateConversation()
  36. AddConversationOption(conversation, "It is not what I would have expected her to look like.", "Chat2")
  37. AddConversationOption(conversation, "It is pretty.", "Chat4")
  38. StartConversation(conversation, NPC, Spawn, "It is! It was sculpted by the Forge Lord, Varig Ro, and presented to Mithaniel Marr prior to Erollisi's self sacrifice. Varig truly captured her loving presence while still honoring her skill for hunting.")
  39. end
  40. function Chat2(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. conversation = CreateConversation()
  43. AddConversationOption(conversation, "How did it end up here?", "Chat3")
  44. AddConversationOption(conversation, "I see what you mean. Good day.")
  45. StartConversation(conversation, NPC, Spawn, "The deities of Norrath have often shown themselves in different forms, but what's important is that it captured her essence quite well.")
  46. end
  47. function Chat3(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. AddConversationOption(conversation, "Thank you for sharing this with me.")
  51. StartConversation(conversation, NPC, Spawn, "Mithaniel blessed us! He placed it here to share it with the world to serve as a reminder and spiritual inspiration to all. It reminds us of what she stood for and what there is to continue fighting for.")
  52. end
  53. function Chat4(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. conversation = CreateConversation()
  56. AddConversationOption(conversation, "Good day, Priest Swornlove.")
  57. StartConversation(conversation, NPC, Spawn, "I am glad you think so, too.")
  58. end
  59. function chat_timer(NPC)
  60. SetTempVariable(NPC, "chat_timer", nil)
  61. end