ProprietorBlagard.lua 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/ProprietorBlagard.lua
  3. Script Purpose : Proprietor Blagard
  4. Script Author : John Adams, premierio015
  5. Script Date : 2008.09.23, modified on 03.10.2021
  6. Script Notes : Added quest dialogues
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local AnIntriguingEye = 5366
  10. local TheMotleyMerchantManifest = 5368
  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. Dialog.New(NPC, Spawn)
  19. Dialog.AddDialog("Step up to the bar, my friend. Never has coin been better spent.")
  20. Dialog.AddVoiceover("voiceover/english/proprietor_blagard/qey_village02/blagard000.mp3", 3622450968, 3253656744)
  21. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  22. if GetQuestStep(Spawn, AnIntriguingEye) == 7 then
  23. Dialog.AddOption("I am looking for the coin you swiped from Penwiggle. ", "Option1")
  24. elseif GetQuestStep(Spawn, TheMotleyMerchantManifest) == 4 then
  25. Dialog.AddOption("I believe you need to sign this manifest. ", "Option5")
  26. end
  27. Dialog.AddOption("No thanks")
  28. Dialog.Start()
  29. end
  30. function Option1(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. Dialog.New(NPC, Spawn)
  33. Dialog.AddDialog("You'd be wise to forget about that coin. It'll lead you to nothing but trouble and a one-way ticket to the tower of Ethernere.")
  34. Dialog.AddVoiceover("voiceover/english/banker_orudormo/qey_village02/bankerorudormo001.mp3",1118118280, 1928490568)
  35. PlayFlavor(NPC, "", "", "stare", 0, 0, Spawn)
  36. Dialog.AddOption("I earned that coin. Where is it? ", "Option2")
  37. Dialog.AddOption("What coin? Farewell.")
  38. Dialog.Start()
  39. end
  40. function Option2(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. Dialog.New(NPC, Spawn)
  43. Dialog.AddDialog("My associates said you'd be persistent. They instructed me to tell you that if you ever procure another coin, they'll be waiting for you beyond the hand in the Down Below.")
  44. Dialog.AddVoiceover("voiceover/english/banker_orudormo/qey_village02/bankerorudormo002.mp3",2782696877, 1213798417)
  45. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  46. Dialog.AddOption("Who are your associates? ", "Option4")
  47. Dialog.Start()
  48. end
  49. function Option4(NPC, Spawn)
  50. SetStepComplete(Spawn, AnIntriguingEye, 7)
  51. FaceTarget(NPC, Spawn)
  52. Dialog.New(NPC, Spawn)
  53. Dialog.AddDialog("I prefer to keep my supply of rarities flowing, so I'll keep my mouth shut about that. As far as I know, you might be a mole of Constable Arathur.")
  54. Dialog.AddVoiceover("voiceover/english/banker_orudormo/qey_village02/bankerorudormo003.mp3",2943536645, 2598970112)
  55. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  56. Dialog.AddOption("Constable Arathur you say? Thanks and farewell.")
  57. Dialog.Start()
  58. end
  59. function Option5(NPC, Spawn)
  60. SetStepComplete(Spawn, TheMotleyMerchantManifest, 4)
  61. SetStepComplete(Spawn, AnIntriguingEye, 7)
  62. FaceTarget(NPC, Spawn)
  63. Dialog.New(NPC, Spawn)
  64. Dialog.AddDialog("You again! I see the Hand has made use of you rather than making a training dummy outta you. Now, shove off before the guards come waltzing over to see what all the hush hush is about.")
  65. Dialog.AddVoiceover("voiceover/english/banker_orudormo/qey_village02/bankerorudormo004.mp3",732322808, 602463247)
  66. PlayFlavor(NPC, "", "", "duck", 0, 0, Spawn)
  67. Dialog.AddOption("I'll be going now.")
  68. Dialog.Start()
  69. end