9
3

SentryActon.lua 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --[[
  2. Script Name : SpawnScripts/Antonica/SentryActon.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.05.09 12:05:14
  5. Script Purpose :
  6. :
  7. --]]
  8. local Quest2 = 5783
  9. local greetingsTable = { "voiceover/english/voice_emotes/greetings/greetings_1_1034.mp3",
  10. "voiceover/english/voice_emotes/greetings/greetings_2_1034.mp3",
  11. "voiceover/english/voice_emotes/greetings/greetings_3_1034.mp3"};
  12. function spawn(NPC, Spawn)
  13. end
  14. function hailed(NPC, Spawn)
  15. PlayFlavor(NPC, greetingsTable[math.random(#greetingsTable)], "", "", 0, 0, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. local conversation = CreateConversation()
  18. if HasQuest(Spawn,Quest2) and GetQuestStep(Spawn,Quest2)==3 then
  19. AddConversationOption(conversation, "Counselor Vemerik has asked me to give you a message.","Dialog1")
  20. end
  21. AddConversationOption(conversation, "Thanks for the advice!")
  22. StartConversation(conversation, NPC, Spawn, "Watch yourself out here. All kinds of bad things can happen - never know when a gnoll might sneak up behind ya and ... GRAB ya!")
  23. end
  24. function Dialog1(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. PlayFlavor(NPC,"","","doubletake",0,0,Spawn)
  27. local conversation = CreateConversation()
  28. AddConversationOption(conversation, "He says your sister is ill but she's being taken care of.","Dialog2")
  29. StartConversation(conversation, NPC, Spawn, "You mean Counselor Vemerik, as in the Queen's personal advisor Vemerik? He has a message for me? Uhhh ... what's the message?")
  30. end
  31. function Dialog2(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. PlayFlavor(NPC,"","","frustrated",0,0,Spawn)
  34. local conversation = CreateConversation()
  35. AddConversationOption(conversation, "Are you alright? Why was she in Freeport?","Dialog4")
  36. StartConversation(conversation, NPC, Spawn, "My sister? Taken care of... my sister?! She was supposed to be in Freeport already! This is... this is terrible!")
  37. end
  38. function Dialog3(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. PlayFlavor(NPC,"","","grumble",0,0,Spawn)
  41. local conversation = CreateConversation()
  42. AddConversationOption(conversation, "I'll just be on my way...","Dialog4")
  43. StartConversation(conversation, NPC, Spawn, "I knew we should have left sooner. I TOLD her we needed to get out of this wet-dog stinking hole sooner. That uppity silver-tongued elf-haired \'Counselor\' should watch his back if he knows what's good for him!")
  44. end
  45. function Dialog4(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. PlayFlavor(NPC,"","","point",0,0,Spawn)
  48. local conversation = CreateConversation()
  49. AddConversationOption(conversation, "I have no idea what you're talking about! I was just given a message your sister was sick!","Dialog5")
  50. StartConversation(conversation, NPC, Spawn, "I must rescue her!... You... You are in on this too, aren't you?! So where was she taken? Speak now or I'll remove your tongue!")
  51. end
  52. function Dialog5(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. PlayFlavor(NPC,"","","shakefist",0,0,Spawn)
  55. PlayFlavor(Spawn,"","","whome",0,0,Spawn)
  56. local conversation = CreateConversation()
  57. AddConversationOption(conversation, "I have no idea where she is. When did you last speak with her? Perhaps she said something?","Dialog6")
  58. StartConversation(conversation, NPC, Spawn, "What? That's ridiculous. That's a ridiculous story. I don't believe you. Just return my sister, I'll pay you whatever you want, there's no need for these shenanigans. ")
  59. end
  60. function Dialog6(NPC, Spawn)
  61. SetStepComplete(Spawn,Quest2,3)
  62. FaceTarget(NPC, Spawn)
  63. PlayFlavor(NPC,"","","wince",0,0,Spawn)
  64. local conversation = CreateConversation()
  65. AddConversationOption(conversation, "...Right. All preserve Queen Antonia.")
  66. StartConversation(conversation, NPC, Spawn, "Wait... my sister already wrote to me of her safe passage! I... uh... ignore what I said before... For the glory of Qeynos!")
  67. end
  68. --I do not think it is any of your business, my friend. If you truly wish to help find my sister, you will do as I say.
  69. --I need to get my sister out of there. If you can't do it with words, could you do it by force?
  70. --
  71. -- No buts about it! I am not giving any information out about my sister until I know you can be trusted!
  72. --Suspicious, me? Uh... I was just testing you to see if you were truly interested. I am so worried about my sister but I do not want just some random person helping us find it... I mean, uh her... yes, her is what I meant.
  73. function respawn(NPC)
  74. spawn(NPC)
  75. end