9
3

TheWheelofVaniki.lua 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : ItemScripts/TheWheelofVaniki.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.24 09:05:21
  5. Script Purpose :
  6. :
  7. --]]
  8. local TheWheelOfVaniki = 5230
  9. function examined(Item, Player)
  10. conversation = CreateConversation()
  11. if GetQuestStep(Player, TheWheelOfVaniki) == 5 then
  12. AddConversationOption(conversation, "Add the contents of the bottle to the Wheel.", "Option1")
  13. elseif GetQuestStep(Player, TheWheelOfVaniki) == 7 then
  14. AddConversationOption(conversation, "Add the contents of the Vial to the Wheel.", "Option2")
  15. elseif GetQuestStep(Player, TheWheelOfVaniki) == 9 then
  16. AddConversationOption(conversation, "Dip the Wheel into the Barrel, which is full of sea salt.", "Option3")
  17. end
  18. AddConversationOption(conversation, "Put the object away.", "CloseItemConversation")
  19. StartDialogConversation(conversation, 2, Item, Player, "Though its outer hull is slightly damaged, the object is definitely shaped like a wheel -- the Wheel of Vaniki. Even with the cracks in the wooden shell, it's possible that the instructions given to you by Engineer Klaaska will restore it to whatever its former glory may have been.")
  20. end
  21. function Option1(Item, Player)
  22. SetStepComplete(Player, TheWheelOfVaniki, 5)
  23. conversation = CreateConversation()
  24. AddConversationOption(conversation, "Put the Wheel of Vaniki away.")
  25. StartDialogConversation(conversation, 2, Item, Player, "You pour the contents of the bottle into the Wheel and are surprised to see that whatever damage the Wheel has sustained, it has not sprung any leaks. Engineer Klaaska's instructions state that you will need to rotate the Wheel. The bottle's contents coat its interior; perhaps it is some sort of hardening agent. Now you must locate a vial the roekillik had hidden and add that to the Wheel.")
  26. end
  27. function Option2(Item, Player)
  28. SetStepComplete(Player, TheWheelOfVaniki, 7)
  29. conversation = CreateConversation()
  30. AddConversationOption(conversation, "Put the Wheel of Vaniki away.")
  31. StartDialogConversation(conversation, 2, Item, Player, "You pour the contents of the Vial into the Wheel and swirl it together with the contents of the Sacred Bottle of Contentment. It's too dark to see what's happening on the inside, but the Wheel's balance is slowly restored. The last step will be to locate the Ancient Alkaline Barrel, which is too big for the ''little ones'' to have carried away.")
  32. end
  33. function Option3(Item, Player)
  34. SetStepComplete(Player, TheWheelOfVaniki, 9)
  35. conversation = CreateConversation()
  36. AddConversationOption(conversation, "Put the Wheel of Vaniki away.")
  37. StartDialogConversation(conversation, 2, Item, Player, "You place the Wheel into the Barrel and coat it in the sea salt. Since salt is a corrosive agent, you're not quite sure how this step will aid the restoration of the Wheel, but Engineer Klaaska said this was the last step. With the Wheel coated in salt, you're ready to return it to the Engineer. Hopefully, all your efforts have restored the Wheel to its former glory.")
  38. end