GrayMagnificent.lua 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/GrayMagnificent.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.13 02:05:32
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 5000, "EmoteLoop",1)
  10. AddTimer(NPC, 12000,"SwooningLilly",1)
  11. AddTimer(NPC, 12000,"SwooningLaura",1)
  12. end
  13. function hailed(NPC, Spawn)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function EmoteLoop(NPC)
  19. local emoteChoice = MakeRandomInt(1,4)
  20. if emoteChoice == 1 then
  21. -- flourish
  22. PlayAnimation(NPC, 298)
  23. AddTimer(NPC, MakeRandomInt(10000,12000), "EmoteLoop")
  24. elseif emoteChoice == 2 then
  25. -- kiss
  26. PlayAnimation(NPC, 11762)
  27. AddTimer(NPC, MakeRandomInt(5000,8000), "EmoteLoop")
  28. elseif emoteChoice == 3 then
  29. -- dance
  30. PlayAnimation(NPC, 11298)
  31. AddTimer(NPC, MakeRandomInt(10000,12000), "EmoteLoop")
  32. elseif emoteChoice == 4 then
  33. -- full curtsey
  34. PlayAnimation(NPC, 11633)
  35. AddTimer(NPC, MakeRandomInt(7000,9000), "EmoteLoop")
  36. end
  37. end
  38. function SwooningLaura(NPC,Spawn)
  39. local Laura = GetSpawn(NPC, 2220056)
  40. if Laura ~= nil then
  41. FaceTarget(Laura,NPC)
  42. SetTarget(Laura,NPC)
  43. choice = MakeRandomInt(1,4)
  44. if choice == 1 then
  45. PlayFlavor(Laura, "","", "flustered", 0, 0)
  46. elseif choice == 2 then
  47. PlayFlavor(Laura, "","", "cheer", 0, 0)
  48. elseif choice == 3 then
  49. PlayFlavor(Laura, "","", "snicker", 0, 0)
  50. elseif choice == 4 then
  51. PlayFlavor(Laura, "","", "applaude", 0, 0)
  52. end
  53. end
  54. end
  55. function SwooningLilly(NPC,Spawn)
  56. local Lilly = GetSpawn(NPC, 2220115)
  57. if Lilly ~=nil then
  58. FaceTarget(Lilly,NPC)
  59. SetTarget(Lilly,NPC)
  60. choice = MakeRandomInt(1,4)
  61. if choice == 1 then
  62. PlayFlavor(Lilly, "","", "happy", 0, 0)
  63. elseif choice == 2 then
  64. PlayFlavor(Lilly, "","", "giggle", 0, 0)
  65. elseif choice == 3 then
  66. PlayFlavor(Lilly, "","", "nod", 0, 0)
  67. elseif choice == 4 then
  68. PlayFlavor(Lilly, "","", "applaude", 0, 0)
  69. end
  70. end
  71. AddTimer(NPC, MakeRandomInt(25000,32000), "SwooningLaura",1)
  72. AddTimer(NPC, MakeRandomInt(25000,32000), "SwooningLilly",1)
  73. end