DanyaHalfmoon.lua 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --[[
  2. Script Name : SpawnScripts/Darklight/DanyaHalfmoon.lua
  3. Script Purpose : Danya Halfmoon
  4. Script Author : John Adams Updated by Cynnar
  5. Script Date : 2009.01.31
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local SableveinRubble = 137
  9. local SealingTheRift = 122
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, SableveinRubble)
  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 not HasCompletedQuest(Spawn, SealingTheRift) then
  20. PlayFlavor(NPC, "voiceover/english/neriak/danya_halfmoon/darklight_wood/quest/hates_envy/qst_danya_toolow_d63cbe27.mp3", "", "", 1007828063, 3522254640, Spawn)
  21. StartConversation(conversation, NPC, Spawn, "I'm a little tense, perhaps you should leave me be.")
  22. elseif HasCompletedQuest(Spawn, SableveinRubble) then
  23. --
  24. elseif not HasQuest(Spawn, SableveinRubble) then
  25. PlayFlavor(NPC, "voiceover/english/neriak/danya_halfmoon/darklight_wood/hates_envy/danya/danya000.mp3", "", "", 3154437003, 176778633, Spawn)
  26. AddConversationOption(conversation, "Yes.", "QuestChat_0_1")
  27. AddConversationOption(conversation, "No.")
  28. StartConversation(conversation, NPC, Spawn, "What do you need? Just looking for a job?")
  29. elseif HasQuest(Spawn, SableveinRubble) and GetQuestStep(Spawn, SableveinRubble) == 1 then
  30. PlayFlavor(NPC, "voiceover/english/neriak/danya_halfmoon/darklight_wood/hates_envy/danya/danya006.mp3", "", "", 2899629615, 2055968822, Spawn)
  31. AddConversationOption(conversation, "No.")
  32. StartConversation(conversation, NPC, Spawn, "I am eager to work, have you brought the ore?")
  33. elseif HasQuest(Spawn, SableveinRubble) and GetQuestStep(Spawn, SableveinRubble) == 2 then
  34. PlayFlavor(NPC, "voiceover/english/neriak/danya_halfmoon/darklight_wood/hates_envy/danya/danya006.mp3", "", "", 2899629615, 2055968822, Spawn)
  35. AddConversationOption(conversation, "Yes, here you are.", "QuestChat_1_0")
  36. StartConversation(conversation, NPC, Spawn, "I am eager to work, have you brought the ore?")
  37. else
  38. PlayFlavor(NPC, "voiceover/english/neriak/danya_halfmoon/darklight_wood/quest/hates_envy/qst_danya_done_ba2066a8.mp3", "", "", 2678058007, 1352299031, Spawn)
  39. StartConversation(conversation, NPC, Spawn, "You know, one of the reasons I asked you to get me ore is so I can get some work done!")
  40. end
  41. end
  42. function QuestChat_0_1(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. PlayFlavor(NPC, "voiceover/english/neriak/danya_halfmoon/darklight_wood/hates_envy/danya/danya003.mp3", "", "", 470214479, 1083810129, Spawn)
  46. AddConversationOption(conversation, "You want ore from the mine.", "QuestChat_0_2")
  47. StartConversation(conversation, NPC, Spawn, "I haven't been able to get the ore I need ever since the elementals pushed the miners out of Sablevein Tear. I'm sure you see where this is going.")
  48. end
  49. function QuestChat_0_2(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. PlayFlavor(NPC, "voiceover/english/neriak/danya_halfmoon/darklight_wood/hates_envy/danya/danya004.mp3", "", "", 3325647670, 962149852, Spawn)
  53. AddConversationOption(conversation, "I can get it.", "OfferQuest1")
  54. AddConversationOption(conversation, "I don't have time for this.")
  55. StartConversation(conversation, NPC, Spawn, "Bingo. The ore is mixed in with other rocks and bits of earth within the cave. Bring me some of the Sablevein rubble from the cave and I can refine the ore in it and turn it into something workable.")
  56. end
  57. function OfferQuest1(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. OfferQuest(NPC, Spawn, SableveinRubble)
  60. end
  61. function QuestChat_1_0(NPC, Spawn)
  62. SetStepComplete(Spawn, SableveinRubble, 2)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. PlayFlavor(NPC, "voiceover/english/neriak/danya_halfmoon/darklight_wood/hates_envy/danya/danya007.mp3", "", "", 2771597308, 3920757098, Spawn)
  66. AddConversationOption(conversation, "You're welcome.")
  67. StartConversation(conversation, NPC, Spawn, "Finally! You have my thanks, and the thanks of everyone who's had to deal with me in the past few days.")
  68. end