TarocheDryZok.lua 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/TarocheDryZok.lua
  3. Script Purpose : Taroche Dry'Zok <Chrykori Village Provisioner>
  4. Script Author : John Adams
  5. Script Date : 2009.02.06
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. QUEST_1 = 108
  9. QUEST_2 = 109
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, QUEST_1)
  12. ProvidesQuest(NPC, QUEST_2)
  13. SetPlayerProximityFunction(NPC, 10, "InRange")
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function InRange(NPC, Spawn)
  19. if not HasQuest(Spawn, QUEST_1) and not HasQuest(Spawn, QUEST_2) then
  20. PlayFlavor(NPC, "voiceover/english/rok_questvo/taroche_dry_zok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/qst_dryzok_notyet_8309503.mp3", "I like gathering supplies, but cooking is my real passion.", "", 2106991296, 1231493315, Spawn)
  21. end
  22. end
  23. function hailed(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. conversation = CreateConversation()
  26. if HasCompletedQuest(Spawn, QUEST_1) then
  27. if HasCompletedQuest(Spawn, QUEST_2) then
  28. Say(NPC, "I thank you for your help.", Spawn)
  29. elseif HasQuest(Spawn, QUEST_2) then
  30. Say(NPC, "I thank you for your help.", Spawn)
  31. else
  32. DidYouGetThem(NPC, Spawn, conversation)
  33. end
  34. elseif HasQuest(Spawn, QUEST_1) then
  35. DidYouGetThem(NPC, Spawn, conversation)
  36. else
  37. if GetLevel(Spawn) < 3 then
  38. PlayFlavor(NPC, "voiceover/english/rok_questvo/taroche_dry_zok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/qst_dryzok_notyet_8309503.mp3", "I like gathering supplies, but cooking is my real passion.", "", 2106991296, 1231493315, Spawn)
  39. else
  40. IAmTaroche(NPC, Spawn, conversation)
  41. end
  42. end
  43. end
  44. --------------------------------------------------------------------------------------------------------------------
  45. -- QUEST 1
  46. --------------------------------------------------------------------------------------------------------------------
  47. function IAmTaroche(NPC, Spawn, conversation)
  48. PlayFlavor(NPC, "voiceover/english/rok_questvo/taroche_dry_zok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dryzok/dryzok000.mp3", "", "", 2444124489, 3391325099, Spawn)
  49. AddConversationOption(conversation, "Sure, I can collect them.", "OfferQuest1")
  50. StartConversation(conversation, NPC, Spawn, "I am Taroche Dry'Zok. It is my responsibility to gather foodstuff for the residents of Chrykori Village, as well as our fighters all over Chrykori Island. Whenever I try to make new dishes, my fellows insist that I prepare only my stuffed grit gorger claws! I prepare them so often that I have run totally out of claws. The grit gorgers are dense in the waters to the northwest, but I've no time to harvest them. Would you like to collect some claws for me? ")
  51. end
  52. function OfferQuest1(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. OfferQuest(NPC, Spawn, QUEST_1)
  55. end
  56. function DidYouGetThem(NPC, Spawn, conversation)
  57. PlayFlavor(NPC, "voiceover/english/rok_questvo/taroche_dry_zok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dryzok/dryzok002.mp3", "", "", 518805158, 3249451755, Spawn)
  58. if (HasCompletedQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_2)) or (HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2) then
  59. AddConversationOption(conversation, "Yes.", "dlg_4_1")
  60. else
  61. AddConversationOption(conversation, "No.")
  62. end
  63. StartConversation(conversation, NPC, Spawn, "Did you get them?")
  64. end
  65. function dlg_4_1(NPC, Spawn)
  66. if HasQuest(Spawn, QUEST_1) then
  67. SetStepComplete(Spawn, QUEST_1, 2)
  68. end
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. PlayFlavor(NPC, "voiceover/english/rok_questvo/taroche_dry_zok/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dryzok/dryzok003.mp3", "", "", 688427221, 1519973906, Spawn)
  72. AddConversationOption(conversation, "Sure, I can deliver it.", "OfferQuest2")
  73. StartConversation(conversation, NPC, Spawn, "Our troops will be pleased. I needed you to gather them for me because I have been busy working on creating something special for one of our veterans. Would you care to deliver this special bait to Niba'Ouz for me? With this special concoction on his line, he is sure to land magnificent catches. You can find him fishing just east of here.")
  74. end
  75. ------------------------------------------------------------------------------------------------------------
  76. -- QUEST 2
  77. ------------------------------------------------------------------------------------------------------------
  78. function OfferQuest2(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. OfferQuest(NPC, Spawn, QUEST_2)
  81. end