9
3

AbelardRaleigh.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : SpawnScripts/SouthQeynos/AbelardRaleigh.lua
  3. Script Purpose : Abelard Raleigh
  4. Script Author : Dorbin
  5. Script Date : 2022.05.18
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 5000, "EmoteLoop")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. RandomGreeting(NPC, Spawn)
  16. FaceTarget(NPC,Spawn)
  17. end
  18. function RandomGreeting(NPC, Spawn)
  19. local choice = MakeRandomInt(1,2)
  20. if choice == 1 then
  21. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", 0, 0, Spawn)
  22. elseif choice == 2 then
  23. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", 0, 0, Spawn)
  24. end
  25. end
  26. function EmoteLoop(NPC)
  27. local emoteChoice = MakeRandomInt(1,4)
  28. if emoteChoice == 1 then
  29. -- ponder
  30. PlayAnimation(NPC, 12030)
  31. AddTimer(NPC, MakeRandomInt(15000,18000), "EmoteLoop")
  32. elseif emoteChoice == 2 then
  33. -- sniff
  34. PlayAnimation(NPC, 12329)
  35. AddTimer(NPC, MakeRandomInt(6000,9000), "EmoteLoop")
  36. elseif emoteChoice == 3 then
  37. -- drink
  38. PlayAnimation(NPC,11422)
  39. AddTimer(NPC, MakeRandomInt(6000,9000), "EmoteLoop")
  40. else
  41. -- tapfoot
  42. PlayAnimation(NPC, 13056)
  43. AddTimer(NPC, MakeRandomInt(15000,18000), "EmoteLoop")
  44. end
  45. end