9
3

Arconicus.lua 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --[[
  2. Script Name : Arconicus.lua
  3. Script Purpose : Arconicus
  4. Script Author : premierio015
  5. Script Date : 26.02.2021
  6. Script Notes : Provides quest "Potion Making"
  7. --]]
  8. local PotionMaking = 440
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, PotionMaking)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. PlayFlavor(NPC, "voiceover/english/arconicus/commonlands/arconicus_hail.mp3", "", "", 747320614, 1941555874, Spawn)
  18. local conversation = CreateConversation()
  19. if not HasQuest(Spawn, PotionMaking) and not HasCompletedQuest(Spawn, PotionMaking) then
  20. AddConversationOption(conversation, "What's a mage doing out here in this village? Shouldn't you be at the Academy?", "Option1")
  21. end
  22. AddConversationOption(conversation, "I won't. I'll just tell you goodbye.")
  23. if GetQuestStep(Spawn, PotionMaking) == 2 then
  24. AddConversationOption(conversation, "I've managed to collect the wisp dust.", "Option2")
  25. elseif GetQuestStep(Spawn, PotionMaking) == 4 then
  26. AddConversationOption(conversation, "I have the glands you're looking for.", "Option3")
  27. end
  28. StartConversation(conversation, NPC, Spawn, "What do you want? Please don't tell me you're another one of these country bumpkins who has never seen a mage before.")
  29. end
  30. function Option1(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. local conversation = CreateConversation()
  33. PlayFlavor(NPC, "voiceover/english/arconicus/commonlands/quests/arconicus/arconicus_x1_initial.mp3", "", "", 3455315407, 1419372696, Spawn)
  34. AddConversationOption(conversation, "That sounds like something I can do. What do you need?", "Option4")
  35. StartConversation(conversation, NPC, Spawn, "I am conducting research on the qualities of certain natural reagents in the surrounding area. Perhaps you can help me? If you help gather some of these resources, then I might be able to pay you for your time, hmm?")
  36. end
  37. function Option4(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. PlayFlavor(NPC, "voiceover/english/arconicus/commonlands/quests/arconicus/arconicus_x1_accept.mp3", "", "", 1785612055, 106861043, Spawn)
  40. local conversation = CreateConversation()
  41. AddConversationOption(conversation, "Sounds good. I'll be back when I've collected enough.", "offer")
  42. StartConversation(conversation, NPC, Spawn, "I am currently gathering the remains of what is left once a wisp is destroyed. It's difficult to see it at first, but if you know what to look for, you'll see it everytime. Once a wisp is killed, all that's left is very fine dust, and not much of it either. I need you to gather me a half-vial of wisp dust. Once you have it, bring it back and I'll pay you for it.")
  43. end
  44. function Option2(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. PlayFlavor(NPC, "voiceover/english/arconicus/commonlands/quests/arconicus/arconicus_x1_return.mp3", "", "", 3346984094, 1813921082, Spawn)
  47. local conversation = CreateConversation()
  48. SetStepComplete(Spawn, PotionMaking, 2)
  49. AddConversationOption(conversation, "Only as long as you keep paying me. What do you need?", "Option5")
  50. StartConversation(conversation, NPC, Spawn, "Let me see it... yes, this is exactly what I needed. Here is your payment. If you're still interested, I am in need of other ingredients as well. Shall we continue doing business?")
  51. end
  52. function Option5(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. PlayFlavor(NPC, "voiceover/english/arconicus/commonlands/quests/arconicus/arconicus_x1_return2.mp3", "", "", 1461719988, 241309941, Spawn )
  55. local conversation = CreateConversation()
  56. AddConversationOption(conversation, "I'll be back when I have them.")
  57. StartConversation(conversation, NPC, Spawn, "It has come to my attention that I've run out of the standard catalyst I use in order to process the magical properties of this wisp dust. All I need is a small little piece of flesh found within the skull of a sentient creature. Fortunately, there are a number of zombies near the graveyard that have these 'glands'. Gather me some of these 'glands' and I will pay you for your time.")
  58. end
  59. function Option3(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. PlayFlavor(NPC, "voiceover/english/arconicus/commonlands/quests/arconicus/arconicus_x1_finish.mp3", "", "", 1288675809, 4059495329, Spawn )
  62. local conversation = CreateConversation()
  63. SetStepComplete(Spawn, PotionMaking, 4)
  64. AddConversationOption(conversation, "Sheesh... bye.")
  65. StartConversation(conversation, NPC, Spawn, "Yes, these will do the job. As promised, here is your payment. Now if you don't mind, I need to start working on these growth potions and you're distracting me. Good bye.")
  66. end
  67. function offer(NPC, Spawn)
  68. OfferQuest(NPC, Spawn, PotionMaking)
  69. end