MeriBogfoot.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/MeriBogfoot.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.07.30
  5. Script Purpose : Meri Bogfoot dialog
  6. Modified Date : 2020.04.09
  7. Modified by : premierio015
  8. Notes : Added dialogues and anims.
  9. --]]
  10. function spawn(NPC)
  11. hailed(NPC,Spawn)
  12. EmoteLoop(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,4)
  21. str = tostring(choice)
  22. if choice == 1 then
  23. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1019.mp3", "Left foot, right foot, spin...", "", 0, 0, Spawn)
  24. elseif choice == 2 then
  25. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1019.mp3", "I hope my father doesn't see this.", "", 0, 0, Spawn)
  26. elseif choice == 3 then
  27. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1019.mp3", "My father runs the bank here over behind Myrrin's tower", "", 0, 0, Spawn)
  28. else
  29. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1019.mp3", "Left foot, right foot, spin...", "", 0, 0, Spawn)
  30. end
  31. end
  32. function EmoteLoop (NPC)
  33. math.randomseed(os.time())
  34. local choice = math.random(1,5)
  35. str = tostring(choice)
  36. if choice == 1 then
  37. PlayAnimation(NPC, 11298)
  38. FaceTarget(NPC, 2530054)
  39. AddTimer(NPC, 5000, "EmoteLoop")
  40. elseif choice == 2 then
  41. PlayAnimation(NPC, 11558)
  42. FaceTarget(NPC, 2530054)
  43. AddTimer(NPC, 5000, "EmoteLoop")
  44. elseif choice == 3 then
  45. PlayAnimation(NPC, 12235)
  46. FaceTarget(NPC, 2530054)
  47. AddTimer(NPC, 5000, "EmoteLoop")
  48. elseif choice == 4 then
  49. PlayAnimation(NPC, 11762)
  50. FaceTarget(NPC, 2530054)
  51. AddTimer(NPC, 5000, "EmoteLoop")
  52. else
  53. PlayAnimation(NPC, 298)
  54. FaceTarget(NPC, 2530054)
  55. AddTimer(NPC, 5000, "EmoteLoop")
  56. end
  57. end