9
3

MaylinMeadowlark.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. hailed(NPC, Spawn)
  12. Emote(NPC)
  13. end
  14. function respawn (NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. math.randomseed(os.time())
  20. choice = math.random (1, 3)
  21. str = tostring(choice)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1005.mp3", "I think I saw something moving out there!", "point", 0, 0, Spawn)
  24. elseif choice == 2 then
  25. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1005.mp3", "I wouldn't go swimming over at those ruins in the bay if i were you.", "point", 0, 0, Spawn)
  26. else
  27. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1005.mp3", "I think i see it, over there!", "point", 0, 0, Spawn)
  28. end
  29. function Emote (NPC)
  30. PlayAnimation(NPC, 12028)
  31. AddTimer(NPC, 10000, "Emote")
  32. end
  33. end