KalraathLVin.lua 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. --[[
  2. Script Name : SpawnScripts/Longshadow/KalraathLVin.lua
  3. Script Purpose : Kalraath L'Vin
  4. Script Author : John Adams
  5. Script Date : 2008.09.29
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. -- Quest ID's
  9. local DARKELF_MENTOR_QUEST_3 = 337
  10. -- Item ID's
  11. local ALCHEMICAL_MEDIUM = 3404
  12. function spawn(NPC)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. conversation = CreateConversation()
  20. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/kalraath_l_vin/fprt_hood05/quests/kalraathlvin/kalraath_x1_000.mp3", "", "", 2994283695, 3900890535, Spawn)
  21. if HasCompletedQuest(Spawn, DARKELF_MENTOR_QUEST_3) then
  22. Say(NPC, "I have no business left with you.", Spawn)
  23. else
  24. if HasQuest(Spawn, DARKELF_MENTOR_QUEST_3) then
  25. if GetQuestStep(Spawn, DARKELF_MENTOR_QUEST_3) == 1 then
  26. AddConversationOption(conversation, "You are right, I am in search of something. I was sent by Aldera, so I am pretty certain you do have something for me.", "dlg_2_1")
  27. else
  28. AddConversationOption(conversation, "I fear that somehow, the medium you gave me earlier has been...consumed.", "GiveAnotherMedium")
  29. end
  30. end
  31. AddConversationOption(conversation, "If you insist.")
  32. StartConversation(conversation, NPC, Spawn, "You look like someone who is searching for something. I do not have anything for you though, so you should search elsewhere.")
  33. end
  34. end
  35. ---------------------------------------------------------------------------------------------------------
  36. -- DARKELF_MENTOR_QUEST_3
  37. --------------------------------------------------------------------------------------------------------
  38. function dlg_2_1(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/kalraath_l_vin/fprt_hood05/quests/kalraathlvin/kalraath_x1_001.mp3", "", "", 4039460783, 1284796777, Spawn)
  42. AddConversationOption(conversation, "She is looking for an alchemical medium.", "dlg_2_2")
  43. StartConversation(conversation, NPC, Spawn, "Really? I'm not expecting any business from her today. What exactly is she up to now?")
  44. end
  45. function dlg_2_2(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/kalraath_l_vin/fprt_hood05/quests/kalraathlvin/kalraath_x1_002.mp3", "", "", 1820176504, 2436528040, Spawn)
  49. AddConversationOption(conversation, "An ingestible one. She said you should have it.", "dlg_2_3")
  50. StartConversation(conversation, NPC, Spawn, "What type of medium is she looking for? There are lots of things that can be used as a medium you know.")
  51. end
  52. function dlg_2_3(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/kalraath_l_vin/fprt_hood05/quests/kalraathlvin/kalraath_x1_003.mp3", "", "", 3888786503, 1438196062, Spawn)
  56. AddConversationOption(conversation, "She is teaching me the ancient arts of the Teir'Dal and it is required to complete my lesson.", "dlg_2_4")
  57. StartConversation(conversation, NPC, Spawn, "I do, but what exactly does she want to use it for?")
  58. end
  59. function dlg_2_4(NPC, Spawn)
  60. SetStepComplete(Spawn, DARKELF_MENTOR_QUEST_3, 1)
  61. FaceTarget(NPC, Spawn)
  62. conversation = CreateConversation()
  63. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/kalraath_l_vin/fprt_hood05/quests/kalraathlvin/kalraath_x1_004.mp3", "", "", 85765803, 4029729488, Spawn)
  64. AddConversationOption(conversation, "Thank you.", "dlg_2_5")
  65. StartConversation(conversation, NPC, Spawn, "Fine, take it, I do not have time to pry the whys and wherefores from you... at least, not at this moment. Let her know she owes me the normal price for it.")
  66. end
  67. function GiveAnotherMedium(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. conversation = CreateConversation()
  70. -- Alchemical Medium
  71. if not HasItem(Spawn, ALCHEMICAL_MEDIUM) then
  72. SummonItem(Spawn, ALCHEMICAL_MEDIUM)
  73. end
  74. AddConversationOption(conversation, "Thank you, I will keep that in mind.")
  75. StartConversation(conversation, NPC, Spawn, "And you seek another. You must be careful with your items, for not everyone you meet will be as generous as I am in giving you another.")
  76. end