EngineerKlaaska.lua 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/EngineerKlaaska.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.23 06:05:29
  5. Script Purpose :
  6. :
  7. --]]
  8. local WheelOfVaniki = 5230
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. local conversation = CreateConversation()
  14. if GetQuestStep(Spawn, WheelOfVaniki) == 3 then
  15. AddConversationOption(conversation, "The surveyor suggested I ask you about this.", "Option2")
  16. AddConversationOption(conversation, "My mistake.")
  17. StartConversation(conversation, NPC, Spawn, "Quick, then, or the winged ones will roast me alive for sure. What is your question?")
  18. else
  19. if GetQuestStep(Spawn, WheelOfVaniki) == 10 then
  20. AddConversationOption(conversation, "I think I've repaired the Wheel of Vaniki.", "Option5")
  21. end
  22. AddConversationOption(conversation, "No problem.")
  23. StartConversation(conversation, NPC, Spawn, "I am terribly busy! Terribly busy! Come later when I have time to talk!")
  24. end
  25. end
  26. function Option2(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. local conversation = CreateConversation()
  29. AddConversationOption(conversation, "I can do that.", "Option3")
  30. StartConversation(conversation, NPC, Spawn, "This is only one part of what we would consider the sacred Wheel of Vaniki! I cannot believe those upstarts destroyed the Wheel. If I were not so busy with my work for our investors, I would teach them some respect! Perhaps you can help us by gathering together what we need to recreate the Wheel?")
  31. end
  32. function Option3(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. local conversation = CreateConversation()
  35. AddConversationOption(conversation, "Where are all these things?", "Option4")
  36. StartConversation(conversation, NPC, Spawn, "Excellent! First you shall need to locate the Sacred Bottle of Contentment and pour its contents into the Wheel, rotating thusly. Next, you must find the Vial of Interaction and add that to the Wheel, aiming it to the cardinal points on the map. Finally, you must take the wheel to the Ancient Alkaline Barrel and encrust the entire Wheel with the barrel's contents. This last step is crucial!")
  37. end
  38. function Option4(NPC, Spawn)
  39. SetStepComplete(Spawn, WheelOfVaniki, 3)
  40. FaceTarget(NPC, Spawn)
  41. local conversation = CreateConversation()
  42. AddConversationOption(conversation, "Okay. Guess I'm on my own.")
  43. StartConversation(conversation, NPC, Spawn, "If we knew that, we could have done this ourselves! Some things the little ones took out of spite, as they did with the Wheel. The barrel is too big for them; something else must have taken it. You must take the Wheel with you, for it must be with you in order to be fully restored.")
  44. end
  45. function Option5(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. local conversation = CreateConversation()
  48. AddConversationOption(conversation, "Savor it?", "Option6")
  49. StartConversation(conversation, NPC, Spawn, "Let me see the Wheel! Ooooh, you have indeed restored it! We shall savor it soon, yes!")
  50. end
  51. function Option6(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. local conversation = CreateConversation()
  54. AddConversationOption(conversation, "You can't mean...", "Option7")
  55. StartConversation(conversation, NPC, Spawn, "For many years we have sought the device you found, which is the only container in which the Wheel of Vaniki can be made. Your assistance has given us back the greatest delicacy of ancient times!")
  56. end
  57. function Option7(NPC, Spawn)
  58. if HasItem(Spawn, 14377) then
  59. RemoveItem(Spawn, 14377)
  60. end
  61. SetStepComplete(Spawn, WheelOfVaniki, 10)
  62. FaceTarget(NPC, Spawn)
  63. local conversation = CreateConversation()
  64. AddConversationOption(conversation, "I can't believe I did all that work for ... cheese!")
  65. StartConversation(conversation, NPC, Spawn, "Legends have been told of the Wheel's power to make tasty cheese! All we had were the list of ingredients but no way to make it. You have proven invaluable to our service! We are very appreciative!")
  66. end
  67. function respawn(NPC)
  68. spawn(NPC)
  69. end