Cles.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : SpawnScripts/Freeport/Cles.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.08.21 04:08:51
  5. Script Purpose :
  6. :
  7. --]]
  8. QUEST = 575
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. if HasQuest(Spawn, QUEST) and GetQuestStep(Spawn, QUEST) == 4 then
  14. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1032.mp3", "", "", 0, 0, Spawn)
  15. local conversation = CreateConversation()
  16. AddConversationOption(conversation, "Listen to me? I haven't tried to say anything yet!", "dlg01")
  17. StartConversation(conversation, NPC, Spawn, "You! You can go away! I do not need to listen to you!")
  18. else
  19. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1032.mp3", "", "", 0, 0, Spawn)
  20. end
  21. end
  22. function dlg01(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. PlayAnimation(NPC, 12028)
  25. local conversation = CreateConversation()
  26. AddConversationOption(conversation, "You've heard voices speaking about the Dark Agenda?", "dlg02")
  27. StartConversation(conversation, NPC, Spawn, "Oh, but I hear your voice. I've heard the whispers of the Dark Agenda! You think you're going to wipe us all out, but you won't! We'll get out of this city! We'll go to Qeynos if we have to!")
  28. end
  29. function dlg02(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. local conversation = CreateConversation()
  32. AddConversationOption(conversation, "I promise I am not one of the roekillik followers. I am here to help...", "progress")
  33. StartConversation(conversation, NPC, Spawn, "I have! You don't think I can hear you, but I can! You may fool others, but you'll never fool me!")
  34. end
  35. function progress(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. SetStepComplete(Spawn, QUEST, 4)
  38. PlayAnimation(NPC, 12182)
  39. local conversation = CreateConversation()
  40. AddConversationOption(conversation, "I'll go then. Farewell to you, Cles.")
  41. StartConversation(conversation, NPC, Spawn, "Just go! I'll find a way out of this city, and I don't want you following me!")
  42. end
  43. function respawn(NPC)
  44. end