9
3

OracleUlinara.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --[[
  2. Script Name : SpawnScripts/Antonica/OracleUlinara.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.22 08:08:17
  5. Script Purpose :
  6. :
  7. --]]
  8. local TreeWithinATree = 5345
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, TreeWithinATree)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. local conversation = CreateConversation()
  15. PlayFlavor(NPC, "voiceover/english/oracle_ulinara/antonica/oracleulinara000.mp3", "", "", 3934113789, 4233620470, Spawn)
  16. if not HasQuest(Spawn, TreeWithinATree) and not HasCompletedQuest(Spawn, TreeWithinATree) then
  17. AddConversationOption(conversation, "You saw what?", "Option1")
  18. elseif GetQuestStep(Spawn, TreeWithinATree) == 2 then
  19. Option3(NPC, Spawn)
  20. end
  21. AddConversationOption(conversation, "Sorry, I didn't mean to disturb you.")
  22. StartConversation(conversation, NPC, Spawn, "It appeared in the Karma Pool, while I was in trance. I saw it! So beautiful.")
  23. end
  24. function Option1(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. local conversation = CreateConversation()
  27. PlayFlavor(NPC, "voiceover/english/oracle_ulinara/antonica/oracleulinara001.mp3", "", "", 3087449530, 830881104, Spawn)
  28. AddConversationOption(conversation, "Fine, I'll be on my way.", "Option2")
  29. StartConversation(conversation, NPC, Spawn, "I am sorry, but we are having a private meeting. This is no concern of yours.")
  30. end
  31. function Option2(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. local conversation = CreateConversation()
  34. PlayFlavor(NPC, "voiceover/english/oracle_ulinara/antonica/oracleulinara002.mp3", "", "", 2282102456, 2757764872, Spawn)
  35. AddConversationOption(conversation, "I suppose I could. Where should I look?", "offer")
  36. AddConversationOption(conversation, "I'm too busy to go looking for a tree. ")
  37. StartConversation(conversation, NPC, Spawn, "Wait! Please do not go. You ... you may be of use to us. I want to find the tree I saw and confirm its location. Unfortunately, I must remain here in the tower with my studies. Would you please help me?")
  38. end
  39. function Option3(NPC, Spawn)
  40. SetStepComplete(Spawn, TreeWithinATree, 2)
  41. FaceTarget(NPC, Spawn)
  42. local conversation = CreateConversation()
  43. PlayFlavor(NPC, "voiceover/english/oracle_ulinara/antonica/oracleulinara004.mp3", "", "", 511083873, 3460113598, Spawn)
  44. AddConversationOption(conversation, "The spot should be right here if I remember correctly.")
  45. StartConversation(conversation, NPC, Spawn, "Thank you so much. You have succeeded wonderfully. This is the very acorn from my vision; it is exactly what I saw. Will you please do one more thing for me? Will you please mark on this map the location of the tree? Then I will give you, in return, a recipe for making a magic food with the Golden Acorn.")
  46. end
  47. function offer(NPC, Spawn)
  48. OfferQuest(NPC, Spawn, TreeWithinATree)
  49. end
  50. function respawn(NPC)
  51. spawn(NPC)
  52. end