HannaDeeppockets.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/HannaDeeppockets.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.07.30
  5. Script Purpose : Hanna Deeppockets dialog
  6. Modified Data : 2020.04.04
  7. Modiefied by : premierio015
  8. Notes : All VoiceOvers addded
  9. --]]
  10. function hailed(NPC, Spawn)
  11. FaceTarget(NPC, Spawn)
  12. math.randomseed(os.time())
  13. str = tostring(choice)
  14. choice = math.random(1,3)
  15. if choice == 1 then
  16. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1019.mp3", "All your basic necessities you'll find here.", "", 0, 0, Spawn)
  17. elseif choice == 2 then
  18. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1019.mp3", "The Deeppockets have a long history of good deals, ask anyone!", "", 0, 0, Spawn)
  19. else
  20. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1019.mp3", "All your basic necessities you'll find here.", "", 0, 0, Spawn)
  21. end
  22. end
  23. function targeted(NPC, Spawn)
  24. if GetDistance(Spawn, NPC) < 10 then
  25. hailed(NPC, Spawn)
  26. end
  27. end