9
3

ProprietorBlagard.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. SetInfoStructString(NPC, "action_state", "tapfoot")
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. Dialog.New(NPC, Spawn)
  20. Dialog.AddDialog("Step up to the bar, my friend. Never has coin been better spent.")
  21. Dialog.AddVoiceover("voiceover/english/proprietor_blagard/qey_village02/blagard000.mp3", 3622450968, 3253656744)
  22. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  23. if GetQuestStep(Spawn, AnIntriguingEye) == 7 then
  24. Dialog.AddOption("I am looking for the coin you swiped from Penwiggle. ", "Option1")
  25. elseif GetQuestStep(Spawn, TheMotleyMerchantManifest) == 4 then
  26. Dialog.AddOption("I believe you need to sign this manifest. ", "Option5")
  27. end
  28. Dialog.AddOption("No thanks")
  29. Dialog.Start()
  30. end
  31. function Option1(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. Dialog.New(NPC, Spawn)
  34. 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.")
  35. Dialog.AddVoiceover("voiceover/english/banker_orudormo/qey_village02/bankerorudormo001.mp3",1118118280, 1928490568)
  36. PlayFlavor(NPC, "", "", "stare", 0, 0, Spawn)
  37. Dialog.AddOption("I earned that coin. Where is it? ", "Option2")
  38. Dialog.AddOption("What coin? Farewell.")
  39. Dialog.Start()
  40. end
  41. function Option2(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. Dialog.New(NPC, Spawn)
  44. 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.")
  45. Dialog.AddVoiceover("voiceover/english/banker_orudormo/qey_village02/bankerorudormo002.mp3",2782696877, 1213798417)
  46. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  47. Dialog.AddOption("Who are your associates? ", "Option4")
  48. Dialog.Start()
  49. end
  50. function Option4(NPC, Spawn)
  51. SetStepComplete(Spawn, AnIntriguingEye, 7)
  52. FaceTarget(NPC, Spawn)
  53. Dialog.New(NPC, Spawn)
  54. 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.")
  55. Dialog.AddVoiceover("voiceover/english/banker_orudormo/qey_village02/bankerorudormo003.mp3",2943536645, 2598970112)
  56. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  57. Dialog.AddOption("Constable Arathur you say? Thanks and farewell.")
  58. Dialog.Start()
  59. end
  60. function Option5(NPC, Spawn)
  61. SetStepComplete(Spawn, TheMotleyMerchantManifest, 4)
  62. SetStepComplete(Spawn, AnIntriguingEye, 7)
  63. FaceTarget(NPC, Spawn)
  64. Dialog.New(NPC, Spawn)
  65. 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.")
  66. Dialog.AddVoiceover("voiceover/english/banker_orudormo/qey_village02/bankerorudormo004.mp3",732322808, 602463247)
  67. PlayFlavor(NPC, "", "", "duck", 0, 0, Spawn)
  68. Dialog.AddOption("I'll be going now.")
  69. Dialog.Start()
  70. end