9
3

InitiateTara.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/InitiateTara.lua
  3. Script Purpose : Initiate Tara
  4. Script Author : Dorbin
  5. Script Date : 2022.05.10
  6. Script Notes :
  7. --]]
  8. local letter = 5527
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, letter)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. if GetFactionAmount(Spawn,11) <0 then
  15. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  16. else
  17. FaceTarget(NPC, Spawn)
  18. conversation = CreateConversation()
  19. PlayFlavor(NPC, "voiceover/english/optional1/initiate_tara/qey_elddar/100_monk_initiate_tara_token1_9ac42d88.mp3", "", "", 3516598133, 1750026138, Spawn)
  20. if not HasQuest(Spawn,letter) and not HasCompletedQuest (Spawn,letter) then
  21. AddConversationOption(conversation, "Did you recently start training here as an initate?","Training")
  22. end
  23. AddConversationOption(conversation, "Please, don't let me interrupt.")
  24. StartConversation(conversation, NPC, Spawn, "Tread softly and speak your purpose.")
  25. end
  26. end
  27. function Training(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. conversation = CreateConversation()
  30. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  31. AddConversationOption(conversation, "Would you like me to send your family a message?","Training2")
  32. AddConversationOption(conversation, "Well, you best get back to training then.")
  33. StartConversation(conversation, NPC, Spawn, "I started not long ago, but I am a bit homesick for my family back in the city. I still long for the sweet aromas and tasty treats we use to bake back home.")
  34. end
  35. function Training2(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. conversation = CreateConversation()
  38. PlayFlavor(NPC, "", "", "ponder", 0, 0, Spawn)
  39. AddConversationOption(conversation, "I'll make sure she gets your letter.","QuestStart")
  40. StartConversation(conversation, NPC, Spawn, "Would you? I've been meaning to deliver this letter to Tabby Copperpot, but my training has been taking up most of my time. If you would do that, I would be most greatful.")
  41. end
  42. function QuestStart(NPC, Spawn)
  43. OfferQuest(NPC,Spawn, letter)
  44. FaceTarget(NPC, Spawn)
  45. PlayFlavor(NPC, "", "", "thanks", 0, 0, Spawn)
  46. end