Ingrid.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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,3)
  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!", "", 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.", "", 3636322414, 1973183674, Spawn)
  25. else
  26. PlayFlavor(NPC, "voiceover/english/ingrid/boat_06p_tutorial02_fvo_008.mp3", "Don't you just love the sea?", "", 541733813, 1294072887, Spawn)
  27. end
  28. if emote == 1 then
  29. PlayAnimation(NPC, 11682)
  30. elseif emote == 2 then
  31. PlayAnimation(NPC, 11882)
  32. else
  33. PlayAnimation(NPC, 12285)
  34. end
  35. end