BezokMyliKi.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/BezokMyliKi.lua
  3. Script Purpose : Bezok Myli'Ki <Chrykori Standard>
  4. Script Author : John Adams
  5. Script Date : 2009.02.27
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. QUEST_1 = 131
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, QUEST_1)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. if HasCompletedQuest(Spawn, QUEST_1) then
  19. Say(NPC, "Everything counts in all amounts.", Spawn)
  20. elseif HasQuest(Spawn, QUEST_1) then
  21. HaveYouFreedThem(NPC, Spawn, conversation)
  22. else
  23. StruckSwiftly(NPC, Spawn, conversation)
  24. end
  25. end
  26. -----------------------------------------------------------------------------------------------------------------------------------------------------
  27. -- QUEST 1
  28. -----------------------------------------------------------------------------------------------------------------------------------------------------
  29. function StruckSwiftly(NPC, Spawn, conversation)
  30. PlayFlavor(NPC, "voiceover/english/rok_questvo/bezok_myli_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/myliki/myliki000.mp3", "", "", 532076941, 871385780, Spawn)
  31. AddConversationOption(conversation, "I will free them.", "OfferQuest1")
  32. StartConversation(conversation, NPC, Spawn, "The Haoaerans struck as swiftly as their kind can muster, and yet we still managed to push them off. Unfortunately, this does not mean we are clear from the storm. What we need right now is more soldiers. The Haoaerans have a number of our soldiers imprisoned within Pyrrin Roost. If you can go kill their jailers and free them, they can return to Chrykori Village to regroup, and then return to Thulwun Station in force.")
  33. end
  34. function OfferQuest1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. OfferQuest(NPC, Spawn, QUEST_1)
  37. end
  38. function HaveYouFreedThem(NPC, Spawn, conversation)
  39. PlayFlavor(NPC, "voiceover/english/rok_questvo/bezok_myli_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/myliki/myliki002.mp3", "", "", 2957815254, 2149733637, Spawn)
  40. if HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2 then
  41. AddConversationOption(conversation, "Yes, they have fled to Chrykori Village.", "dlg_14_1")
  42. else
  43. AddConversationOption(conversation, "Not yet.")
  44. end
  45. StartConversation(conversation, NPC, Spawn, "Have you freed them?")
  46. end
  47. function dlg_14_1(NPC, Spawn)
  48. SetStepComplete(Spawn, QUEST_1, 2)
  49. FaceTarget(NPC, Spawn)
  50. conversation = CreateConversation()
  51. PlayFlavor(NPC, "voiceover/english/rok_questvo/bezok_myli_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/myliki/myliki003.mp3", "", "", 344889731, 1839794732, Spawn)
  52. AddConversationOption(conversation, "You're welcome.")
  53. StartConversation(conversation, NPC, Spawn, "Great work, " .. GetName(Spawn) .. ". Every soldier is one more at their throats. Thank you.")
  54. end