9
3

ElvicGarrett.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. --[[
  2. Script Name : SpawnScripts/ForestRuins/ElvicGarrett.lua
  3. Script Purpose : Elvic Garrett
  4. Script Author : Scatman
  5. Script Date : 2009.09.26
  6. Script Notes :
  7. --]]
  8. local HALF_ELF = 6
  9. local HALFELF_MENTOR_QUEST_4 = 221
  10. local QUEST_1 = 1
  11. function spawn(NPC)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. conversation = CreateConversation()
  19. if HasQuest(Spawn, HALFELF_MENTOR_QUEST_4) then
  20. HalfElfMentorQuest(NPC, Spawn, conversation)
  21. else
  22. if HasCompletedQuest(Spawn, QUEST_1) then
  23. elseif HasQuest(Spawn, QUEST_1) then
  24. else
  25. -- posibily a level req of 3 here too.
  26. if GetRace(Spawn) == HALF_ELF then
  27. MyMindOccupied(NPC, Spawn, conversation)
  28. else
  29. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/elvic_garrett/qey_adv02_ruins_revamp/qst_halfelf_elvic_garrett_notonquest_2d73840b.mp3", "The changes to this land scare me.", "", 2326633148, 4032539718, Spawn)
  30. end
  31. end
  32. end
  33. end
  34. --------------------------------------------------------------------------------------------------------------
  35. -- HALFELF_MENTOR_QUEST_4
  36. --------------------------------------------------------------------------------------------------------------
  37. function HalfElfMentorQuest(NPC, Spawn, conversation)
  38. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/elvic_garrett/qey_adv02_ruins/quests/elvic/elvic_daelyn000.mp3", "", "", 422032417, 1174930976, Spawn)
  39. AddConversationOption(conversation, "Daelyn has written something. He would like you to have a copy.", "dlg_0_1")
  40. StartConversation(conversation, NPC, Spawn, "These lands are not as safe as they once were.")
  41. end
  42. function dlg_0_1(NPC, Spawn)
  43. SetStepComplete(Spawn, HALFELF_MENTOR_QUEST_4, 1)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. if not HasCompletedQuest(Spawn, QUEST_1) then
  47. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/elvic_garrett/qey_adv02_ruins/quests/elvic/elvic_daelyn001.mp3", "", "", 361439431, 2027311841, Spawn)
  48. AddConversationOption(conversation, "What has your mind occupied?", "MyMindOccupied")
  49. StartConversation(conversation, NPC, Spawn, "Ah, this is fortuitious. It has been some time since Daelyn has written something. My mind has been occupied as of late, I may have to save reading this for a time when I can focus more on my people.")
  50. -- check too see what quest the player is on here. also do the check in OfferQuest
  51. end
  52. end
  53. --------------------------------------------------------------------------------------------------------------
  54. -- QUEST 1
  55. --------------------------------------------------------------------------------------------------------------
  56. function MyMindOccupied(NPC, Spawn)
  57. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/elvic_garrett/qey_adv02_ruins/quests/elvic/elvic_daelyn002.mp3", "", "", 873310203, 1695943624, Spawn)
  58. AddConversationOption(conversation, "I can help.", "dlg_0_3")
  59. AddConversationOption(conversation, "Well, that's unfortunate. Goodbye.")
  60. StartConversation(conversation, NPC, Spawn, "My mind is occupied with these lands. Something is off, though I know not what. I offered my assistance to the Qeynos guard, but haven't turned up anything yet.")
  61. end
  62. function dlg_0_3(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/elvic_garrett/qey_adv02_ruins/quests/elvic/elvic_daelyn003.mp3", "", "", 3059918187, 1161029478, Spawn)
  66. AddConversationOption(conversation, "I will see what I can find.", "OfferQuest1")
  67. StartConversation(conversation, NPC, Spawn, "Perhaps you can. I've been patrolling the land around the ruins lately, occasionally I come across abandoned camps. Usually a fire pit or a collection of firewood that hasn't yet been burnt. Sometimes these abandoned camps have what may end up being clues, other times they contain worthless junk. If you could do me the favor of seeking out these camps it may help unwravel the mystery that is going on here.")
  68. end
  69. function OfferQuest1(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. if not HasQuest(Spawn, QUEST_1) then
  72. OfferQuest(NPC, Spawn, QUEST_1)
  73. end
  74. end
  75. function dlg_1_1(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. conversation = CreateConversation()
  78. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/elvic_garrett/qey_adv02_ruins/quests/elvic/elvic_daelyn003.mp3", "", "", 3059918187, 1161029478, Spawn)
  79. AddConversationOption(conversation, "I will see what I can find.", "dlg_1_2")
  80. StartConversation(conversation, NPC, Spawn, "Perhaps you can. I've been patrolling the land around the ruins lately, occasionally I come across abandoned camps. Usually a fire pit or a collection of firewood that hasn't yet been burnt. Sometimes these abandoned camps have what may end up being clues, other times they contain worthless junk. If you could do me the favor of seeking out these camps it may help unwravel the mystery that is going on here.")
  81. end