Rilkrik.lua 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/Rilkrik.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.01.03 08:01:57
  5. Script Purpose :
  6. :
  7. --]]
  8. local AnOrcishTrinket = 5254
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. if not HasQuest(Spawn, AnOrcishTrinket) then
  14. PlayFlavor(NPC, "", "Not everything I have for sale is useful to everyone. Keep that in mind.", "", 1689589577, 4560189, Spawn)
  15. elseif GetQuestStep(Spawn, AnOrcishTrinket) == 1 then
  16. local conversation = CreateConversation()
  17. AddConversationOption(conversation, "Do you know much about orcs?", "Option1")
  18. StartConversation(conversation, NPC, Spawn, "Not everything I have for sale is useful to everyone. Keep that in mind.")
  19. end
  20. end
  21. function Option1(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. local conversation = CreateConversation()
  24. AddConversationOption(conversation, "What can you tell me about this item?", "Option2")
  25. StartConversation(conversation, NPC, Spawn, "Hah, guess you've got no idea who you're talking to. Rilkrik here. I'm somewhat of an orc scholar, in all honesty.")
  26. end
  27. function Option2(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. local conversation = CreateConversation()
  30. AddConversationOption(conversation, "Huh?", "Option3")
  31. StartConversation(conversation, NPC, Spawn, "By Argorym's blade!")
  32. end
  33. function Option3(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. local conversation = CreateConversation()
  36. AddConversationOption(conversation, "Raegnir? Argorym?", "Option4")
  37. StartConversation(conversation, NPC, Spawn, "A saying among orc scholars... I guess it's sort of elitist, Raegnir isn't that widely known, but the blade is and Raegnir held it. Knowledge of obscure trivia helps make one feel special. Anyway, this is part of the blade from which that saying originates: Argorym's blade.")
  38. end
  39. function Option4(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. local conversation = CreateConversation()
  42. AddConversationOption(conversation, "What did he seek?", "Option5")
  43. StartConversation(conversation, NPC, Spawn, "Argorym is an orc of legend about whom little is known. Feared in combat, immortal to his enemies, and so on. Raegnir was one of many Deathfist outcasts who came to live in the Commonlands. He rallied orcs under his banner. Unlike most orc leaders he never sought to create a massive army of orcs.")
  44. end
  45. function Option5(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. local conversation = CreateConversation()
  48. AddConversationOption(conversation, "Does he haunt these lands?", "Option6")
  49. StartConversation(conversation, NPC, Spawn, "Raegnir sought only the strongest, fiercest orcs. His army--squad may be a better word to describe it--was quite feared once. He led a mission within the walls of Freeport--can you imagine that? An orc INSIDE Freeport--and was killed by orcs who thought a few shots from a catapult might help his mission. They brought down a building on Raegnir's entire crew and an unlucky guard captain. If you've found a part of his blade then perhaps you can be the one to return it to him.")
  50. end
  51. function Option6(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. local conversation = CreateConversation()
  54. AddConversationOption(conversation, "How do I respect his memory?", "Option7")
  55. StartConversation(conversation, NPC, Spawn, "Not exactly, but his grief is known to all who know him. He was no mere orc, Ighi. To respect the memory of a fierce warrior is neither shameful nor treasonous.")
  56. end
  57. function Option7(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. local conversation = CreateConversation()
  60. AddConversationOption(conversation, "What do I do there?", "Option8")
  61. StartConversation(conversation, NPC, Spawn, "Gather the remnants of his sword. Legend says it was broken down, the blade and the two jewels: the children of the sky. The leather wrap has long since rotted, I am certain, but that is less important than the blade and the jewels. Once you have collected these items travel to the Siege Lands.")
  62. end
  63. function Option8(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. local conversation = CreateConversation()
  66. AddConversationOption(conversation, "I think I can do this.", "Option9")
  67. StartConversation(conversation, NPC, Spawn, "Find the spirit of Raegnir and offer the blade pieces to him. Whatever gods you worship and wherever your alliances stand, Raegnir will appreciate the offer.")
  68. end
  69. function Option9(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. local conversation = CreateConversation()
  72. AddConversationOption(conversation, "I will find them.", "Option10")
  73. StartConversation(conversation, NPC, Spawn, "Good, gather all the pieces: Argorym's blade, the Daughter of the Sky, and the Son of the Sky. With these Raegnir's memory will be honored.")
  74. end
  75. function Option10(NPC, Spawn)
  76. SetStepComplete(Spawn, AnOrcishTrinket, 1)
  77. FaceTarget(NPC, Spawn)
  78. local conversation = CreateConversation()
  79. StartConversation(conversation, NPC, Spawn, "Good luck!")
  80. end
  81. function respawn(NPC)
  82. end