9
3

MeriBogfoot.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. EmoteLoop(NPC)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. math.randomseed(os.time())
  19. voice = math.random (1,4)
  20. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1019.mp3", "", "", 0, 0, Spawn)
  21. text = math.random(1,3)
  22. if text == 1 then
  23. Say(NPC, "Left foot, right foot, spin...")
  24. elseif text == 2 then
  25. Say(NPC, "I hope my father doesn't see this.")
  26. else
  27. Say(NPC, "My father runs the bank here over behind Myrrin's tower")
  28. end
  29. end
  30. function EmoteLoop (NPC)
  31. math.randomseed(os.time())
  32. local choice = math.random(1,6)
  33. if choice == 1 then
  34. -- dance
  35. PlayAnimation(NPC, 11298)
  36. AddTimer(NPC, 10500, "Idle")
  37. elseif choice == 2 then
  38. -- flustered
  39. PlayAnimation(NPC, 11558)
  40. AddTimer(NPC, 4500, "Idle")
  41. elseif choice == 3 then
  42. -- shimmy
  43. PlayAnimation(NPC, 12235)
  44. AddTimer(NPC, 1700, "Idle")
  45. elseif choice == 4 then
  46. -- kiss
  47. PlayAnimation(NPC, 11762)
  48. AddTimer(NPC, 3500, "Idle")
  49. elseif choice == 5 then
  50. -- flirt
  51. PlayAnimation(NPC, 11557)
  52. AddTimer(NPC, 30000, "Idle")
  53. else
  54. -- flourish
  55. PlayAnimation(NPC, 298)
  56. AddTimer(NPC, 8500, "Idle")
  57. end
  58. end
  59. function Idle(NPC)
  60. PlayAnimation(NPC, 323)
  61. EmoteLoop(NPC)
  62. end