9
3

Nikora.lua 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/Nikora.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.11.17 04:11:31
  5. Script Purpose : Nikora Dialog
  6. :
  7. --]]
  8. local AFriendInNeed = 422
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange", Spawn)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. SpawnSet(NPC, "visual_state", "221")
  15. conversation = CreateConversation()
  16. if HasQuest(Spawn, AFriendInNeed) and GetQuestStep(Spawn, AFriendInNeed) == 1 then
  17. PlayFlavor(NPC, "nikora/commonlands/quests/nikora/nikora001.mp3", "", "", 4103594663, 2537440722, Spawn)
  18. AddConversationOption(conversation, "[Crouch Down and Listen]", "dlg1")
  19. StartConversation(conversation, NPC, Spawn, "Shhh! Quiet, I'm trying to listen to this. And I said, get down! We'll talk in a minute.")
  20. elseif HasQuest(Spawn, AFriendInNeed) and GetQuestStep(Spawn, AFriendInNeed) == 3 then
  21. PlayFlavor(NPC, "", "Many thanks friend, I'll let Nethet know about this, he should help you out with whatever you need. I'm going to stay here a while longer and see if the Blackshields have anything else up their sleeves.", "thanks", 1689589577, 4560189, Spawn)
  22. end
  23. end
  24. function dlg1(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. conversation = CreateConversation()
  27. PlayFlavor(NPC, "nikora/commonlands/quests/nikora/nikora006.mp3", "Now, what is it that they are up to I wonder...", "", 2881821401, 700046352, Spawn)
  28. AddTimer(NPC, 6000, "dlg2", 1, Spawn)
  29. PlayAnimation(Spawn, 219)
  30. AddTimer(NPC, 1000, "crouch", 1, Spawn)
  31. end
  32. function crouch(NPC, Spawn)
  33. PlayAnimation(Spawn, 221)
  34. end
  35. function dlg2(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. conversation = CreateConversation()
  38. PlayFlavor(NPC, "nikora/commonlands/quests/nikora/nikora002.mp3", "", "", 301114199, 2689059708, Spawn)
  39. AddConversationOption(conversation, "Yes, he said you were in trouble.", "dlg3")
  40. StartConversation(conversation, NPC, Spawn, "I assume Nethet sent you?")
  41. end
  42. function dlg3(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. SetStepComplete(Spawn, AFriendInNeed, 1)
  45. conversation = CreateConversation()
  46. PlayFlavor(NPC, "nikora/commonlands/quests/nikora/nikora003.mp3", "", "", 3358631854, 2819585545, Spawn)
  47. AddConversationOption(conversation, "So you want me to kill them right?", "dlg4")
  48. AddConversationOption(conversation, "What do you want me to do?", "dlg5")
  49. StartConversation(conversation, NPC, Spawn, "That's true I'm in a bit of a bind. If you can help me then I'll put in a good word to Nethet to help you out with whatever you need. I can't very much make a deal with these smugglers if they are trying to kill me.")
  50. end
  51. function dlg4(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. conversation = CreateConversation()
  54. PlayFlavor(NPC, "nikora/commonlands/quests/nikora/nikora004.mp3", "", "", 2959996, 3817902828, Spawn)
  55. AddConversationOption(conversation, "Consider it done.")
  56. AddConversationOption(conversation, "I am not getting involved in this, goodbye.")
  57. StartConversation(conversation, NPC, Spawn, "Are you insane? No, I just need the assassins they've sent after me to disappear if you know what I mean. If they can't do the job then I can live long enough to have Nethet smooth all this misunderstanding out.")
  58. end
  59. function dlg5(NPC, Spawn)
  60. FaceTarget(NPC, Spawn)
  61. conversation = CreateConversation()
  62. PlayFlavor(NPC, "nikora/commonlands/quests/nikora/nikora005.mp3", "", "", 1585465383, 992323409, Spawn)
  63. AddConversationOption(conversation, "I'll get right to it.")
  64. AddConversationOption(conversation, "I am not getting involved in this, goodbye.")
  65. StartConversation(conversation, NPC, Spawn, "I need the assassins they've sent after me to disappear if you know what I mean. If they can't do the job then I can live long enough to have Nethet smooth all this misunderstanding out.")
  66. end
  67. function respawn(NPC)
  68. spawn(NPC)
  69. end
  70. function InRange(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. PlayFlavor(NPC, "", "What are you doing? Get down! They'll see you!", "", 0, 0, Spawn)
  73. end
  74. function LeaveRange(NPC, Spawn)
  75. end