Salla.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : SpawnScripts/Freeport/Salla.lua
  3. Script Author : Premierio015
  4. Script Date : 2020.08.19 07:08:58
  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) == 3 then
  14. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1031.mp3", "", "point", 0, 0, Spawn)
  15. local conversation = CreateConversation()
  16. AddConversationOption(conversation, "Wait, one of who?", "dlg01")
  17. StartConversation(conversation, NPC, Spawn, "Who are you?? Are you... are you one of them?")
  18. else
  19. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1031.mp3", "", "", 0, 0, Spawn)
  20. end
  21. end
  22. function dlg01(NPC, Spawn)
  23. FaceTarget(NPC, Spawn)
  24. local conversation = CreateConversation()
  25. AddConversationOption(conversation, "Here in Freeport? Aren't they outside the gates?", "dlg02")
  26. StartConversation(conversation, NPC, Spawn, "The followers of the roekillik. I've heard things... I've heard whispers from around corners, and seen mysterious figures just on the edge of my sight.")
  27. end
  28. function dlg02(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. local conversation = CreateConversation()
  31. AddConversationOption(conversation, "Is that so? Do you think that the roekillik spies are here, then?", "progress")
  32. StartConversation(conversation, NPC, Spawn, "I've seen them out there in Commonlands before, of course. We would take care of the ones we would find who strayed to close to the city, but they stayed out beyond the walls. But the things I've seen... they are in our walls. Inside Freeport.")
  33. end
  34. function progress(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. SetStepComplete(Spawn, QUEST, 3)
  37. local conversation = CreateConversation()
  38. AddConversationOption(conversation, "No, they shouldn't. Let's hope you were mistaken. Farewell.")
  39. StartConversation(conversation, NPC, Spawn, "I don't know, and all I can do is hope that it's all my imagination. I thought we were safe here! The roekillik shouldn't be near us here!")
  40. end
  41. function respawn(NPC)
  42. end