9
3

Fiercecry.lua 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --[[
  2. Script Name : SpawnScripts/Graystone/Fiercecry.lua
  3. Script Purpose : Fiercecry <Guard>
  4. Script Author : Dorbin
  5. Script Date : 2022.03.07
  6. Script Notes :
  7. --]]
  8. local Pickup = 5501
  9. function spawn(NPC)
  10. ProvidesQuest(NPC,Pickup)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. conversation = CreateConversation()
  15. if not HasCompletedQuest(Spawn,Pickup) and not HasQuest(Spawn,Pickup) then
  16. AddConversationOption(conversation, "Have any work for me?", "Work")
  17. end
  18. if GetQuestStep(Spawn,Pickup)== 2 then
  19. AddConversationOption(conversation, "Here is your suit of armor", "Delivery")
  20. end
  21. PlayFlavor(NPC, "voiceover/english/deputy_fiercecry/qey_village03/watchmanfiercecry.mp3", "", "", 3942378197, 2231045108, Spawn)
  22. AddConversationOption(conversation, "Good to know.")
  23. StartConversation(conversation, NPC, Spawn, "We are the Graystone Watch. We're here to prevent trouble in our village.")
  24. end
  25. function Work(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. conversation = CreateConversation()
  28. PlayFlavor(NPC, "voiceover/english/deputy_fiercecry/qey_village03/watchmanfiercecry000.mp3", "", "", 4019767468, 1074744721, Spawn)
  29. AddConversationOption(conversation, "Sure.","Sure")
  30. AddConversationOption(conversation, "Nope. I don't want that kind of work.")
  31. StartConversation(conversation, NPC, Spawn, "Nothing in the line of duty, but you can help me with a personal favor. You see, I don't have time to visit the smithy during business hours. Could you retrieve something from ol' Snowboot for me?")
  32. end
  33. function Sure(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. conversation = CreateConversation()
  36. PlayFlavor(NPC, "voiceover/english/deputy_fiercecry/qey_village03/watchmanfiercecry001.mp3", "", "nod", 1749884142, 1265571351, Spawn)
  37. AddConversationOption(conversation, "I'll go get the armor for you.","QuestStart")
  38. StartConversation(conversation, NPC, Spawn, "Then go to the smithy and speak with Armorsmith Snowboot. Mention my name and he'll give you my suit. He sized me up for it two weeks ago, so it should be done by now.")
  39. end
  40. function QuestStart(NPC,Spawn)
  41. FaceTarget(NPC, Spawn)
  42. OfferQuest(NPC,Spawn, Pickup)
  43. end
  44. function Delivery(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. conversation = CreateConversation()
  47. PlayFlavor(NPC, "voiceover/english/deputy_fiercecry/qey_village03/watchmanfiercecry002.mp3", "", "agree", 2453642384, 1700290184, Spawn)
  48. AddConversationOption(conversation, "No trouble. He seemed happy to help.","Delivery2")
  49. StartConversation(conversation, NPC, Spawn, "Great! Thanks for your help. Let me see I have some coins somewhere... Old Snowboot didn't give you any problems, did he?")
  50. end
  51. function Delivery2(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. conversation = CreateConversation()
  54. SetStepComplete(Spawn, Pickup, 2)
  55. PlayFlavor(NPC, "voiceover/english/deputy_fiercecry/qey_village03/watchmanfiercecry003.mp3", "", "thank", 3345345008, 1850310113, Spawn)
  56. AddConversationOption(conversation, "Thank you.")
  57. StartConversation(conversation, NPC, Spawn, "Good to know Old Snowboot takes care of his customers. Here's a bit of payment for your fine service!")
  58. end