ProprietorBlagard.lua 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. local AnIntriguingEye = 5366
  9. local TheMotleyMerchantManifest = 5368
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. PlayFlavor(NPC, "voiceover/english/proprietor_blagard/qey_village02/blagard000.mp3", "", "", 3622450968, 3253656744, Spawn)
  19. if GetQuestStep(Spawn, AnIntriguingEye) == 7 then
  20. AddConversationOption(conversation, "I am looking for the coin you swiped from Penwiggle. ", "Option1")
  21. elseif GetQuestStep(Spawn, TheMotleyMerchantManifest) == 4 then
  22. AddConversationOption(conversation, "I believe you need to sign this manifest. ", "Option5")
  23. end
  24. AddConversationOption(conversation, "No thanks")
  25. StartConversation(conversation, NPC, Spawn, "Step up to the bar, my friend. Never has coin been better spent.")
  26. end
  27. function Option1(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. local conversation = CreateConversation()
  30. PlayFlavor(NPC, "voiceover/english/proprietor_blagard/qey_village02/blagard001.mp3", "", "", 1118118280, 1928490568, Spawn)
  31. AddConversationOption(conversation, "I earned that coin. Where is it? ", "Option2")
  32. AddConversationOption(conversation, "What coin? Farewell.")
  33. StartConversation(conversation, NPC, Spawn, "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. end
  35. function Option3(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. local conversation = CreateConversation()
  38. PlayFlavor(NPC, "voiceover/english/proprietor_blagard/qey_village02/blagard002.mp3", "", "", 2782696877, 1213798417, Spawn)
  39. AddConversationOption(conversation, "Who are your associates? ", "Option4")
  40. StartConversation(conversation, NPC, Spawn, "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. ")
  41. end
  42. function Option4(NPC, Spawn)
  43. SetStepComplete(Spawn, AnIntriguingEye, 7)
  44. FaceTarget(NPC, Spawn)
  45. local conversation = CreateConversation()
  46. PlayFlavor(NPC, "voiceover/english/proprietor_blagard/qey_village02/blagard003.mp3", "", "", 2943536645, 2598970112, Spawn)
  47. AddConversationOption(conversation, "Constable Arathur you say? Thanks and farewell. ")
  48. StartConversation(conversation, NPC, Spawn, "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.")
  49. end
  50. function Option5(NPC, Spawn)
  51. SetStepComplete(Spawn, TheMotleyMerchantManifest, 4)
  52. FaceTarget(NPC, Spawn)
  53. local conversation = CreateConversation()
  54. PlayFlavor(NPC, "voiceover/english/proprietor_blagard/qey_village02/blagard004.mp3", "", "duck", 732322808, 602463247, Spawn)
  55. AddConversationOption(conversation, "I'll be going now.")
  56. StartConversation(conversation, NPC, Spawn, "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.")
  57. end