9
3

MerchantEdmond.lua 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/MerchantEdmond.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.20 04:05:08
  5. Script Purpose :
  6. :
  7. --]]
  8. local DoOrDieSaysIrizian = 5226
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. local conversation = CreateConversation()
  14. if GetQuestStep(Spawn, DoOrDieSaysIrizian) == 1 then
  15. AddConversationOption(conversation, "Irizan sent me.", "Option1")
  16. elseif GetQuestStep(Spawn, DoOrDieSaysIrizian) == 4 then
  17. AddConversationOption(conversation, "I helped the dark elf. What now?", "Option4")
  18. end
  19. AddConversationOption(conversation, "Just browsing.")
  20. StartConversation(conversation, NPC, Spawn, "Are you looking for something in particular? ")
  21. PlayFlavor(NPC, "voiceover/english/merchant_edmond/commonlands/quests/merchant_edmond/merchant_edmond001.mp3", "", "", 1980071880, 2174379061, Spawn)
  22. end
  23. function Option1(NPC, Spawn)
  24. SetStepComplete(Spawn, DoOrDieSaysIrizian, 1)
  25. FaceTarget(NPC, Spawn)
  26. local conversation = CreateConversation()
  27. AddConversationOption(conversation, "Do I have a choice?", "Option2")
  28. StartConversation(conversation, NPC, Spawn, "So, you're the one he sent, huh? I take it you want your assignment.")
  29. PlayFlavor(NPC, "voiceover/english/merchant_edmond/commonlands/quests/merchant_edmond/merchant_edmond002.mp3", "", "", 4096006744, 2786667309, Spawn)
  30. end
  31. function Option2(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. local conversation = CreateConversation()
  34. AddConversationOption(conversation, "Got it. Just give me my assignment.", "Option3")
  35. StartConversation(conversation, NPC, Spawn, "No, no you don't. And don't go getting any funny ideas. A bit of free advice, stranger: Don't cross Irizan. That is one man you don't want on your bad side. Got it?")
  36. PlayFlavor(NPC, "voiceover/english/merchant_edmond/commonlands/quests/merchant_edmond/merchant_edmond003.mp3", "", "", 1028429091, 149503362, Spawn)
  37. end
  38. function Option3(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. local conversation = CreateConversation()
  41. AddConversationOption(conversation, "Got it.")
  42. StartConversation(conversation, NPC, Spawn, "All right. Find the dark elf at the other side of this here crossroads. You can't miss her; just listen for the whiny little wretch. You're going to lend her a hand. Do what ever you can to help. Your future is at stake. Don't screw this up. And whatever you find while aiding her, you return to me. Understand?")
  43. PlayFlavor(NPC, "voiceover/english/merchant_edmond/commonlands/quests/merchant_edmond/merchant_edmond004.mp3", "", "", 729041430, 1811697734, Spawn)
  44. end
  45. function Option4(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. local conversation = CreateConversation()
  48. AddConversationOption(conversation, "She said she's from Qeynos. Did you know that?", "Option5")
  49. StartConversation(conversation, NPC, Spawn, "Let's see what you got. ... Huh. You might as well keep it. Let me finish my report to Irizan, then you'll be on your way.")
  50. PlayFlavor(NPC, "voiceover/english/merchant_edmond/commonlands/quests/merchant_edmond/merchant_edmond006.mp3", "", "", 4245737478, 67718472, Spawn)
  51. end
  52. function Option5(NPC, Spawn)
  53. SetStepComplete(Spawn, DoOrDieSaysIrizian, 4)
  54. FaceTarget(NPC, Spawn)
  55. local conversation = CreateConversation()
  56. AddConversationOption(conversation, "Alright.")
  57. StartConversation(conversation, NPC, Spawn, "There is little we don't know. Take this ledger to Irizan. If you know what's good for you, you won't read it, and you won't ask questions.")
  58. PlayFlavor(NPC, "voiceover/english/merchant_edmond/commonlands/quests/merchant_edmond/merchant_edmond007.mp3", "", "", 3708992911, 3982515418, Spawn)
  59. end
  60. function respawn(NPC)
  61. spawn(NPC)
  62. end