TertiaryMakKi.lua 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/TertiaryMakKi.lua
  3. Script Purpose : Tertiary Mak'Ki
  4. Script Author : John Adams
  5. Script Date : 2009.02.22
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. QUEST_1 = 119
  9. QUEST_2 = 120
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, QUEST_1)
  12. ProvidesQuest(NPC, QUEST_2)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. conversation = CreateConversation()
  20. if HasCompletedQuest(Spawn, QUEST_1) then
  21. if HasCompletedQuest(Spawn, QUEST_2) then
  22. Say(NPC, "We are done.", Spawn)
  23. elseif HasQuest(Spawn, QUEST_2) then
  24. Say(NPC, "We are done.", Spawn)
  25. else
  26. DidYouFindThem(NPC, Spawn, conversation)
  27. end
  28. elseif HasQuest(Spawn, QUEST_1) then
  29. DidYouFindThem(NPC, Spawn, conversation)
  30. else
  31. Greetings(NPC, Spawn, conversation)
  32. end
  33. end
  34. -----------------------------------------------------------------------------------------------
  35. -- QUEST 1
  36. -----------------------------------------------------------------------------------------------
  37. function Greetings(NPC, Spawn, conversation)
  38. PlayFlavor(NPC, "voiceover/english/rok_questvo/tertiary_mak_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/makki/makki000.mp3", "", "", 1111104911, 1918008449, Spawn)
  39. AddConversationOption(conversation, "I could get some samples for you.", "OfferQuest1")
  40. StartConversation(conversation, NPC, Spawn, "Greetings, I am Tertiary Mak'Ki. I have been studying the native species of this island and determining what purpose, if any, they may serve in our military maneuvers. Most recently I have become interested in the crusty rustbeasts in the Timeworn Pools far to the west. Their acidic secretions are rife with potential. Unfortunately, I am stuck here for the time being working on a previous project.")
  41. end
  42. function OfferQuest1(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. OfferQuest(NPC, Spawn, QUEST_1)
  45. end
  46. function DidYouFindThem(NPC, Spawn, conversation)
  47. if (HasCompletedQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_2)) or (HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2) then
  48. AddConversationOption(conversation, "Yes, here are their acid sacs. Potent indeed.", "dlg_31_1")
  49. else
  50. AddConversationOption(conversation, "No.")
  51. end
  52. PlayFlavor(NPC, "voiceover/english/rok_questvo/tertiary_mak_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/makki/makki002.mp3", "", "", 2068402346, 4245581855, Spawn)
  53. StartConversation(conversation, NPC, Spawn, "Did you find them?")
  54. end
  55. function dlg_31_1(NPC, Spawn)
  56. if HasQuest(Spawn, QUEST_1) then
  57. SetStepComplete(Spawn, QUEST_1, 2)
  58. end
  59. FaceTarget(NPC, Spawn)
  60. conversation = CreateConversation()
  61. PlayFlavor(NPC, "voiceover/english/rok_questvo/tertiary_mak_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/makki/makki003.mp3", "", "", 2020057663, 3501237642, Spawn)
  62. AddConversationOption(conversation, "All right, I'll deliver them.", "OfferQuest2")
  63. StartConversation(conversation, NPC, Spawn, "Ah, perfect! This... is impressive! These don't even need to be treated--look at how easily the substance affects this metal. I know just the person who can put these to use. His contact is Secondary Arozik Sky'Ki. Bring them to him. You can find him up in Trythec Loft to the southwest.")
  64. end
  65. -------------------------------------------------------------------------------------------
  66. -- QUEST 2
  67. -------------------------------------------------------------------------------------------
  68. function OfferQuest2(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. OfferQuest(NPC, Spawn, QUEST_2)
  71. end
  72. --[[ raw_conversations
  73. PlayFlavor(NPC, "voiceover/english/rok_questvo/tertiary_mak_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/qst_makki_too_low_95835260.mp3", "The inhabitants of this island are truly quite interesting.", "", 3282226466, 1304950151, Spawn)
  74. --]]