Ingrid.lua 1.0 KB

123456789101112131415161718192021222324252627282930
  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. choice = math.random(1,3)
  19. str = tostring(choice)
  20. if choice == 1 then
  21. PlayFlavor(NPC, "voiceover/english/ingrid/boat_06p_tutorial02_fvo_007.mp3", "Yo ho ho and a bottle of rum!", "smile", 964088856, 3568852318, Spawn)
  22. elseif choice == 2 then
  23. 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)
  24. else
  25. PlayFlavor(NPC, "voiceover/english/ingrid/boat_06p_tutorial02_fvo_008.mp3", "Don't you just love the sea?", "hello", 541733813, 1294072887, Spawn)
  26. end
  27. end