9
3

ArchaeologistElurad.lua 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. --[[
  2. Script Name : SpawnScripts/Stormhold/ArchaeologistElurad.lua
  3. Script Purpose : Archaeologist Elurad
  4. Script Author : TyroneSWG
  5. Script Date : 2020.06.12
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local QUEST_RELICS_FOR_ELURAD_ID = 5712
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. ProvidesQuest (NPC, QUEST_RELICS_FOR_ELURAD_ID)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. end
  18. function LeaveRange(NPC, Spawn)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. conversation = CreateConversation()
  23. if HasCompletedQuest(Spawn, QUEST_RELICS_FOR_ELURAD_ID) or HasQuest(Spawn, QUEST_RELICS_FOR_ELURAD_ID) then
  24. else
  25. RelicsForElurad(NPC, Spawn, conversation)
  26. end
  27. --[[
  28. local choice = math.random(1,2)
  29. if choice == 1 then
  30. PlayFlavor(NPC, "voiceover/english/archaeologist_elurad/befallen/quest/010_archaeologist_elurad_notcompletedquest_71f32dc8.mp3", "Hail adventurer! You wouldn't happen to be interested in fortune and glory, would you?", "hello", 801293320, 145198187, Spawn)
  31. elseif choice == 2 then
  32. PlayFlavor(NPC, "voiceover/english/archaeologist_elurad/befallen/quest/010_archaeologist_elurad_completedquest_60e979f5.mp3", "Well, have you retrieved the items yet?", "peer", 3772633495, 1778716381, Spawn)
  33. else
  34. end
  35. --]]
  36. end
  37. --------------
  38. -- Relics for Elurad
  39. --------------
  40. function RelicsForElurad(NPC, Spawn, conversation)
  41. --PlayFlavor
  42. AddConversationOption(conversation, "What artifacts?", "dlg_1_1")
  43. AddConversationOption(conversation, "I'm not interested.")
  44. StartConversation(conversation, NPC, Spawn, "You see, it seems that there are quite a few ghoulish creatures standing before myself and a few of the artifacts I plan to recover down here.")
  45. end
  46. function dlg_1_1(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. conversation = CreateConversation()
  49. --PlayFlavor
  50. AddConversationOption(conversation, "No need to explain, just tell me what I'm looking for.", "OfferQuestRelicsForElurad")
  51. AddConversationOption(conversation, "Tell me about them.", "dlg_2_2")
  52. AddConversationOption(conversation, "I'm not interested, sorry.")
  53. StartConversation(conversation, NPC, Spawn, "Not so much artifacts, really, but relics. It's all quite a long story, but I'd be happy to explain if you're interested.")
  54. end
  55. function dlg_2_2(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. --PlayFlavor
  59. AddConversationOption(conversation, "Then I'll help you.", "OfferQuestRelicsForElurad")
  60. AddConversationOption(conversation, "Thanks for the explanation, but I don't think I'm cut out for this.")
  61. StartConversation(conversation, NPC, Spawn, "Each of these three items, while not instrumental to the order, is of significant historical value. I've dreamed of studying them, but when I arrived here, I found that I could no more make my way down through these depths than I could sneak into Freeport to get a peek at the library in the Academy of Arcane Science.")
  62. end
  63. function OfferQuestRelicsForElurad(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. OfferQuest(NPC, Spawn, QUEST_RELICS_FOR_ELURAD_ID)
  66. end