9
3

ThervenSenshun.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --[[
  2. Script Name : SpawnScripts/ForestRuins/ThervenSenshun.lua
  3. Script Purpose : Therven Senshun
  4. Script Author : Dorbin
  5. Script Date : 2022.02.23
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. ProvidesQuest(NPC, 5487)
  10. end
  11. function hailed(NPC, Spawn)
  12. if HasCompletedQuest(Spawn,5487) then
  13. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1022.mp3", "This stuff is much harder to work with than I anticipated.", "", 1689589577, 4560189)
  14. elseif not HasCompletedQuest(Spawn,5487) then
  15. FaceTarget(NPC, Spawn)
  16. local conversation = CreateConversation()
  17. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1022.mp3", "", "hello", 0, 0)
  18. if GetQuestStep (Spawn,5487)==3 then
  19. AddConversationOption(conversation, "Actually, I already did. Here are your shells.", "Turnin")
  20. end
  21. AddConversationOption(conversation, "What do you need?", "Option1")
  22. StartConversation(conversation, NPC, Spawn, "Hello there! Have you got time to lend a hand?")
  23. end
  24. end
  25. function Option1(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. local conversation = CreateConversation()
  28. AddConversationOption(conversation, "Interesting. What did you need from me?", "Option2")
  29. StartConversation(conversation, NPC, Spawn, "Well, I'm trying some new leather tanning methods and in my work I've found that some of my techniques create an amazingly soft product when used on turtle shells. Amazing, I know! I'm not sure what use it may have, but I'd like to perfect the process anyway.")
  30. end
  31. function Option2(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. local conversation = CreateConversation()
  34. AddConversationOption(conversation, "Sure, I'll do it.", "Option3")
  35. StartConversation(conversation, NPC, Spawn, "Well, this process is delicate and requires a lot of time. That means that I'm unable to hunt the turtles around here. If you could hunt them for me I would be grateful.")
  36. end
  37. function Option3(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. local conversation = CreateConversation()
  40. AddConversationOption(conversation, "All right.", "Option4")
  41. StartConversation(conversation, NPC, Spawn, "Excellent! If you could get me six leathershell snapper shells and six stoneshell snapper shells I think that would be enough to finalize this process. You can find them in the pond northwest of here.")
  42. end
  43. function Option4(NPC, Spawn)
  44. OfferQuest(NPC,Spawn,5487)
  45. FaceTarget(NPC, Spawn)
  46. local conversation = CreateConversation()
  47. AddConversationOption(conversation, "Okay!")
  48. StartConversation(conversation, NPC, Spawn, "Bring them back as soon as you get them!")
  49. end
  50. function Turnin(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. local conversation = CreateConversation()
  53. PlayFlavor(NPC, "", "", "happy", 0, 0)
  54. AddConversationOption(conversation, "Thank you.","Reward")
  55. StartConversation(conversation, NPC, Spawn, "Ah, yes. These will do nicely. Please, take something for your troubles. You've saved me all the work of gathering these shells!")
  56. end
  57. function Reward(NPC,Spawn)
  58. SetStepComplete(Spawn, 5487, 3)
  59. end