IntelligenceOfficerGezlowe.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : SpawnScripts/Freeport/IntelligenceOfficerGezlowe.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.08.07 07:08:31
  5. Script Purpose :
  6. :
  7. --]]
  8. local QUEST = 573
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange", Spawn)
  11. end
  12. function InRange(NPC, Spawn)
  13. if HasQuest(Spawn, QUEST) and GetQuestStep(Spawn, QUEST) == 1 then
  14. PlayFlavor(NPC, "", "You there! If you don't wish to be found in violation of treason, you'd better have a word with me.", "beckon", 1689589577, 4560189, Spawn)
  15. end
  16. end
  17. function LeaveRange(NPC, Spawn)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. if HasQuest(Spawn, QUEST) and GetQuestStep(Spawn, QUEST) == 1 then
  22. conversation = CreateConversation()
  23. PlayFlavor(NPC, "intelligence_officer_gezlowe/fprt_west/io_gezlowe001.mp3", "", "", 4100697640, 2084488414, Spawn)
  24. AddConversationOption(conversation, "Enemies of the state?", "option1")
  25. AddConversationOption(conversation, "I was just getting more information so I could find the rest of them.", "option2")
  26. StartConversation(conversation, NPC, Spawn, "Good, good. I'm glad you made the right choice. I understand you've agreed to do a bit of work for a prisoner. Lucan doesn't take kindly to those who would aid enemies of the state.")
  27. else
  28. PlayFlavor(NPC, "", "Move along, move along.", "", 1689589577, 4560189, Spawn)
  29. end
  30. end
  31. function option1(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. conversation = CreateConversation()
  34. PlayFlavor(NPC, "intelligence_officer_gezlowe/fprt_west/io_gezlowe002.mp3", "", "", 2574431215, 475612057, Spawn)
  35. AddConversationOption(conversation, "Yeah, I understand.", "option2_1")
  36. StartConversation(conversation, NPC, Spawn, "Frogloks. If the legends are to be believed, they've got some sort of religious relation to Lucan's old enemies. Can't have them wandering around, understand?")
  37. end
  38. function option2(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. PlayFlavor(NPC, "intelligence_officer_gezlowe/fprt_west/io_gezlowe003.mp3", "", "", 1225667417, 2186564758, Spawn)
  42. AddConversationOption(conversation, "No, sir.", "option2_1")
  43. StartConversation(conversation, NPC, Spawn, "Good, right along our line of thinking. We can't just have these multi-colored dissidents wandering around, can we?")
  44. end
  45. function option2_1(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. SetStepComplete(Spawn, QUEST, 1)
  49. PlayFlavor(NPC, "intelligence_officer_gezlowe/fprt_west/io_gezlowe004.mp3", "", "", 2945684159, 2849117183, Spawn)
  50. AddConversationOption(conversation, "No, sir.")
  51. StartConversation(conversation, NPC, Spawn, "So what we're going to do is take care of this little incident before we find more of these things on our doorstep. Go find the one you're looking for. Kill it. Then tell the frog that it died of sunstroke or something.")
  52. end