9
3

EoradalanuOtuden.lua 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --[[
  2. Script Name : SpawnScripts/SouthQeynos/EoradalanuOtuden.lua
  3. Script Purpose : Eoradalanu Otuden
  4. Script Author : Dorbin
  5. Script Date : 2022.05.15
  6. Script Notes :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. local Tower = 5554
  10. function spawn(NPC)
  11. SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
  12. ProvidesQuest(NPC,Tower)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. if GetFactionAmount(Spawn,11) <0 then
  17. FactionChecking(NPC, Spawn, faction)
  18. else
  19. local conversation = CreateConversation()
  20. FaceTarget(NPC,Spawn)
  21. PlayFlavor(NPC, "voiceover/english/eoradalanu_otuden/qey_south/eoradalanuotuden000.mp3", "", "bow", 2497124550, 1074104218, Spawn, 0)
  22. if not HasQuest(Spawn,Tower) and not HasCompletedQuest(Spawn, Tower)then
  23. AddConversationOption(conversation, "The tower is quite the sight!","QuestStart")
  24. end
  25. AddConversationOption(conversation, "Alright.")
  26. StartConversation(conversation, NPC, Spawn, "Welcome to the grounds of the Tree Towers. Walk... lightly. Speak... quietly. The mages within are deep in concentration. Disruptions can cause impediments to progress. Please move along.")
  27. end
  28. end
  29. function QuestStart(NPC,Spawn)
  30. FaceTarget(NPC, Spawn)
  31. PlayFlavor(NPC, "voiceover/english/eoradalanu_otuden/qey_south/eoradalanuotuden001.mp3", "", "agree", 4187976248, 890864421, Spawn)
  32. local conversation = CreateConversation()
  33. AddConversationOption(conversation, "How might I get to the other tower?", "QuestStart2")
  34. AddConversationOption(conversation, "Interesting. Thank you for the information.")
  35. StartConversation(conversation, NPC, Spawn, "Aye, it is. It required many years of blending magic with skilled worksmanship of the stone by craftsman. A similar tower exists out in the Antonican hills. A good distance from the city. It isn't quite as impressive, but it is still a sight to behold.")
  36. end
  37. function QuestStart2(NPC,Spawn)
  38. FaceTarget(NPC, Spawn)
  39. PlayFlavor(NPC, "voiceover/english/eoradalanu_otuden/qey_south/eoradalanuotuden002.mp3", "", "orate", 3791578980, 3282103774, Spawn)
  40. local conversation = CreateConversation()
  41. AddConversationOption(conversation, "I think I'll go see this tower for myself.", "QuestStart3")
  42. AddConversationOption(conversation, "It sounds like a bunch of hooey!","Act")
  43. StartConversation(conversation, NPC, Spawn, "The Tower of Oracles is operated by the Order of Coldwind. They choose to do their research away from the populace of Qeynos and shun contact with those outside their order. They desire to understand the nature of mana and what caused the moon of Luclin to rip asunder! It is worthy research, indeed.")
  44. end
  45. function InRange(NPC,Spawn)
  46. if GetFactionAmount(Spawn,11) <0 then
  47. FactionCheckingCallout(NPC, Spawn, faction)
  48. end
  49. end
  50. function Act(NPC,Spawn)
  51. FaceTarget(NPC, Spawn)
  52. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn)
  53. end
  54. function QuestStart3(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. OfferQuest(NPC, Spawn,Tower)
  57. end