ResearcherEruwun.lua 5.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. --[[
  2. Script Name : SpawnScripts/ButcherblockMountains/ResearcherEruwun.lua
  3. Script Purpose : Researcher Eruwun
  4. Script Author : jakejp
  5. Script Date : 2018.06.04
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local UnusualPalate = 271
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, UnusualPalate)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. local choice = math.random(1,1)
  19. if HasCompletedQuest(Spawn, UnusualPalate) == false and HasQuest(Spawn, UnusualPalate) == false and CanReceiveQuest(Spawn, UnusualPalate) == true then
  20. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0, Spawn)
  21. AddConversationOption(conversation, "I am. What is it you are looking to have done?", "dlg_1_1")
  22. AddConversationOption(conversation, "Not at the moment. Farewell for now.")
  23. StartConversation(conversation, NPC, Spawn, "Ah, you might be just who I was hoping for. I am assuming you are here looking for some work, are you not?")
  24. elseif GetQuestStep(Spawn, UnusualPalate) == 1 then
  25. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0, Spawn)
  26. AddConversationOption(conversation, "Not yet, but I will return soon.")
  27. StartConversation(conversation, NPC, Spawn, "Were you able to find the glands I need?")
  28. elseif GetQuestStep(Spawn, UnusualPalate) == 2 then
  29. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0, Spawn)
  30. AddConversationOption(conversation, "I have them right here.", "dlg_11_1")
  31. StartConversation(conversation, NPC, Spawn, "Were you able to find the glands I need?")
  32. elseif HasCompletedQuest(Spawn, UnusualPalate) == true then
  33. Say(NPC, "What a wealth of knowledge Faydwer is! If I spend the rest of my days in study here, it will not be enough time.")
  34. else
  35. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0, Spawn)
  36. end
  37. end
  38. function dlg_1_1(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  42. AddConversationOption(conversation, "That's interesting, but what does that have to do with me?", "dlg_1_2")
  43. AddConversationOption(conversation, "Well, that is definitely a boon for them. Farewell.")
  44. StartConversation(conversation, NPC, Spawn, "Excellent. I am looking to research some of the more unique creatures to Faydwer, and one in particular is fascinating to me. The rust creatures that wander the beach can turn metal into rust in very short order, and then consume the corrosion as sustenance. With all the activity on the docks and what comes up on the beaches, they never seem to have a shortage of food.")
  45. end
  46. function dlg_1_2(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. conversation = CreateConversation()
  49. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  50. AddConversationOption(conversation, "We have a deal, then. I will return soon.", "GiveUnusualPalate")
  51. StartConversation(conversation, NPC, Spawn, "I want to know how they turn metal into rust so quickly. I imagine this has something to do with their saliva, and I want to study it. Bring me a few of their saliva glands, if you can extract them without damaging them. I will, of course, pay you for your time.")
  52. end
  53. function dlg_8_1(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. conversation = CreateConversation()
  56. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  57. AddConversationOption(conversation, "That's interesting, but what does that have to do with me?", "dlg_8_2")
  58. AddConversationOption(conversation, "Well, that is definitely a boon for them. Farewell.")
  59. StartConversation(conversation, NPC, Spawn, "Excellent. I am looking to research some of the more unique creatures to Faydwer, and one in particular is fascinating to me. The rust creatures that wander the beach can turn metal into rust in very short order, and then consume the corrosion as sustenance. With all the activity on the docks and what comes up on the beaches, they never seem to have a shortage of food.")
  60. end
  61. function dlg_8_2(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. conversation = CreateConversation()
  64. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  65. AddConversationOption(conversation, "We have a deal, then. I will return soon.", "dlg_8_3")
  66. StartConversation(conversation, NPC, Spawn, "I want to know how they turn metal into rust so quickly. I imagine this has something to do with their saliva, and I want to study it. Bring me a few of their saliva glands, if you can extract them without damaging them. I will, of course, pay you for your time.")
  67. end
  68. function dlg_11_1(NPC, Spawn)
  69. SetStepComplete(Spawn, UnusualPalate, 2)
  70. FaceTarget(NPC, Spawn)
  71. conversation = CreateConversation()
  72. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  73. AddConversationOption(conversation, "Thanks to you as well. Farewell.")
  74. StartConversation(conversation, NPC, Spawn, "Well, well! This is excellent! I may have to get these back to Gorowyn before I can really study them, but I am certainly looking forward to it. Here is the payment you were promised. My thanks again for your work. Farewell.")
  75. end
  76. function GiveUnusualPalate(NPC, Spawn)
  77. OfferQuest(NPC, Spawn, UnusualPalate)
  78. end