MaylinMeadowlark.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/MaylinMeadowlark.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.07.30
  5. Script Purpose : Maylin Meadowlark dialog
  6. Modified Date : 2020.04.09
  7. Modified by : premierio015
  8. Notes : Added all dialogues and anims
  9. --]]
  10. function spawn(NPC)
  11. EmotePoint(NPC)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. math.randomseed(os.time())
  19. choice = math.random (1, 3)
  20. str = tostring(choice)
  21. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..choice.."_1005.mp3", "", "", 0, 0, Spawn)
  22. text = math.random (1, 3)
  23. if text == 1 then
  24. Say(NPC, "I think I saw something moving out there!")
  25. elseif text == 2 then
  26. Say(NPC, "I wouldn't go swimming over at those ruins in the bay if I were you.")
  27. else
  28. Say(NPC, "I think I see it, over there!")
  29. end
  30. end
  31. function EmotePoint(NPC)
  32. PlayAnimation(NPC, 12028)
  33. local time = math.random (10000,15000)
  34. AddTimer(NPC, time, "EmotePoint")
  35. end