Ingrid.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/Ingrid.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.07.27
  5. Script Purpose : Ingrid dialog
  6. Modified Data : 2020.04.03
  7. Modified by : premierio015
  8. Notes : Added Animations
  9. --]]
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. math.randomseed(os.time())
  18. voice = math.random(1,4)
  19. str = tostring(voice)
  20. emote = math.random(1,3)
  21. if voice == 1 then
  22. PlayFlavor(NPC, "voiceover/english/ingrid/boat_06p_tutorial02_fvo_007.mp3", "Yo ho ho and a bottle of rum!", "smile", 964088856, 3568852318, Spawn)
  23. elseif voice == 2 then
  24. PlayFlavor(NPC, "voiceover/english/ingrid/boat_06p_tutorial02_fvo_009.mp3", "I hate rats, every time we dock they get on board and eat our supplies.", "nod", 3636322414, 1973183674, Spawn)
  25. elseif voice == 3 then
  26. PlayFlavor(NPC, "voiceover/english/ingrid/boat_06p_tutorial02_fvo_008.mp3", "Don't you just love the sea?", "agree", 541733813, 1294072887, Spawn)
  27. elseif voice == 4 then
  28. PlayFlavor(NPC, "voiceover/english/ingrid/tutorial_island02_fvo_notask.mp3", "Isn't the sky so beautiful?", "yawn", 3774632668, 3543752772, Spawn)
  29. end
  30. if emote == 1 then
  31. PlayAnimation(NPC, 11682)
  32. elseif emote == 2 then
  33. PlayAnimation(NPC, 11882)
  34. else
  35. PlayAnimation(NPC, 12285)
  36. end
  37. end