TacklemasterMoyna.lua 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --[[
  2. Script Name : SpawnScripts/Graystone/TacklemasterMoyna.lua
  3. Script Purpose : Tacklemaster Moyna
  4. Script Author : Scatman
  5. Script Date : 2008.09.19
  6. Script Notes :
  7. --]]
  8. local QUEST_1 = 293
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, QUEST_1)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. conversation = CreateConversation()
  15. RandomVoice(NPC, Spawn)
  16. if HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2 then
  17. AddConversationOption(conversation, "I've returned with the bait you requested.", "ReturnedWithBait")
  18. elseif not HasQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_1) then
  19. AddConversationOption(conversation, "I'm interested in finding a little work around here.", "FindingWork")
  20. end
  21. PlayFlavor(NPC, "voiceover/english/tacklemaster_moyna/qey_village03/tacklemastermoyna.mp3", "", "", 2910658366, 1466320622, Spawn)
  22. AddConversationOption(conversation, "No thanks, not today.")
  23. StartConversation(conversation, NPC, Spawn, "Welcome to Graystone! With our Kerran population, the fish supply is never enough. If you're looking to fill that supply, you'll need some of my goods. Care to have a look?")
  24. end
  25. function respawn(NPC)
  26. spawn(NPC)
  27. end
  28. function RandomVoice(NPC, Spawn)
  29. local choice = math.random(1, 3)
  30. if choice == 1 then
  31. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1001.mp3", "", "", 0, 0, Spawn)
  32. elseif choice == 2 then
  33. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1001.mp3", "", "", 0, 0, Spawn)
  34. else
  35. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1001.mp3", "", "", 0, 0, Spawn)
  36. end
  37. end
  38. -----------------------------------------------------------------------------------------------------
  39. -- QUEST 1
  40. -----------------------------------------------------------------------------------------------------
  41. function FindingWork(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. PlayFlavor(NPC, "voiceover/english/tacklemaster_moyna/qey_village03/tacklemastermoyna001.mp3", "", "", 530187050, 1736772086, Spawn)
  45. AddConversationOption(conversation, "Provided the job actually pays, I'll do it.", "ProvidedItPays")
  46. AddConversationOption(conversation, "No thanks, sounds icky.")
  47. StartConversation(conversation, NPC, Spawn, "You're in luck. I need more bait. If you're interested, you could fetch me some centipede meat. Ubani and Brice catch all the fish from the pier, and I always need more bait.")
  48. end
  49. function ProvidedItPays(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. PlayFlavor(NPC, "voiceover/english/tacklemaster_moyna/qey_village03/tacklemastermoyna002.mp3", "", "", 3085757696, 757857128, Spawn)
  53. AddConversationOption(conversation, "I'll be back when I've got what you need.", "OfferQuest1")
  54. StartConversation(conversation, NPC, Spawn, "It'll pay but not too well. The bait business is decent next to the pier, but the stuff isn't exactly worth its weight in platinum, if you know what I mean. I need you to gather some centipede meat for me from the Forest Ruins.")
  55. end
  56. function OfferQuest1(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. OfferQuest(NPC, Spawn, QUEST_1)
  59. end
  60. function ReturnedWithBait(NPC, Spawn)
  61. SetStepComplete(Spawn, QUEST_1, 2)
  62. FaceTarget(NPC, Spawn)
  63. conversation = CreateConversation()
  64. AddConversationOption(conversation, "Thank you Moyna!")
  65. StartConversation(conversation, NPC, Spawn, "Thank you! With this supply, I can keep my bait buckets filled for at least another day or two. Well done. Here's your reward as promised.")
  66. end