SurveyorMenak.lua 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/SurveyorMenak.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.23 09:05:52
  5. Script Purpose :
  6. :
  7. --]]
  8. local WheelOfVaniki = 5230
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, WheelOfVaniki)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. local conversation = CreateConversation()
  15. if not HasQuest(Spawn, WheelOfVaniki) and not HasCompletedQuest(Spawn, WheelOfVaniki) then
  16. AddConversationOption(conversation, "What are you doing?", "Option1")
  17. elseif GetQuestStep(Spawn, WheelOfVaniki) == 2 then
  18. AddConversationOption(conversation, "I'm not sure if this is what you were looking for.", "Option5")
  19. end
  20. AddConversationOption(conversation, "No.")
  21. StartConversation(conversation, NPC, Spawn, "Yes? You are asking a question to be answered?")
  22. PlayAnimation(NPC, 11882)
  23. end
  24. function Option1(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. local conversation = CreateConversation()
  27. AddConversationOption(conversation, "What about the stuff that's already here?", "Option2")
  28. StartConversation(conversation, NPC, Spawn, "I am looking at things. Looking closely. All this land unused! Unused! That is a waste. We will fix that. We know our way around dirt! Dig up some here, push dirt aside there. Yes, yes; this is perfect.")
  29. end
  30. function Option2(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. local conversation = CreateConversation()
  33. AddConversationOption(conversation, "Drafts?", "Option3")
  34. StartConversation(conversation, NPC, Spawn, "Nothing stands in the way of progress! They may stay or they may go. Might be better if they go, so the dra...drafts do not upset them. Digging goes on, very drafty.")
  35. end
  36. function Option3(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. local conversation = CreateConversation()
  39. AddConversationOption(conversation, "What kinds of things?", "Option4")
  40. StartConversation(conversation, NPC, Spawn, "Wind blowing. Smell that? That is why we are good at this: our noses are very sensitive. The littlest change in the air and we know. Some things are here at our feet. Other things are farther away.")
  41. end
  42. function Option4(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. local conversation = CreateConversation()
  45. AddConversationOption(conversation, "I could try.", "offer")
  46. AddConversationOption(conversation, "You've told me all I need to know.")
  47. StartConversation(conversation, NPC, Spawn, "One thing we smell is that which we seek. Our investors tell us what we must seek. It is underground and so we dig. Our engineer studies how to get what we seek. Ask the engineer about the dirty work. The other thing we smell is that which we want. Your legs are long. Can you help us find what we want?")
  48. end
  49. function Option5(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. local conversation = CreateConversation()
  52. AddConversationOption(conversation, "Huh?", "Option6")
  53. StartConversation(conversation, NPC, Spawn, "Let me see! Let me see! Oooooh. Yes and no. Yes, it is something that we seek. No, it is not exactly what we hoped you would find.")
  54. end
  55. function Option6(NPC, Spawn)
  56. SetStepComplete(Spawn, WheelOfVaniki, 2)
  57. FaceTarget(NPC, Spawn)
  58. local conversation = CreateConversation()
  59. AddConversationOption(conversation, "Indeed!")
  60. StartConversation(conversation, NPC, Spawn, "Clearly you can see that this is hollow? The Wheel is not hollow! They have taken out its precious center and filled it with air! Not good! There must be an explanation. But where? I regret I must return to my work but you might ask Engineer Klaaska about this.")
  61. PlayAnimation(NPC, 11882)
  62. end
  63. function offer(NPC, Spawn)
  64. OfferQuest(NPC, Spawn, WheelOfVaniki)
  65. end
  66. function respawn(NPC)
  67. spawn(NPC)
  68. end