GregorEarthstride.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/GregorEarthstride.lua
  3. Script Author : Rylec
  4. Script Date : 2021.09.06 12:09:08
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 3000, "EmoteLoop")
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. local choice = MakeRandomInt(1, 3)
  14. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..choice.."_1008.mp3", "I can't ever seem to find the arrows I need! Nightbow's shop here is good, but it's a bit pricey.", "idle", 0, 0, Spawn)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function EmoteLoop(NPC)
  20. local emoteChoice = MakeRandomInt(1,5)
  21. if emoteChoice == 1 then
  22. -- boggle
  23. PlayAnimation(NPC, 10856)
  24. AddTimer(NPC, MakeRandomInt(5000,9000), "EmoteLoop")
  25. elseif emoteChoice == 2 then
  26. -- confused
  27. PlayAnimation(NPC, 11214)
  28. AddTimer(NPC, MakeRandomInt(7000,11000), "EmoteLoop")
  29. elseif emoteChoice == 3 then
  30. -- heckno
  31. PlayAnimation(NPC, 11680)
  32. AddTimer(NPC, MakeRandomInt(4000,8000), "EmoteLoop")
  33. elseif emoteChoice == 4 then
  34. -- no
  35. PlayAnimation(NPC, 11881)
  36. AddTimer(NPC, MakeRandomInt(4000,8000), "EmoteLoop")
  37. else
  38. -- whome
  39. PlayAnimation(NPC, 13295)
  40. AddTimer(NPC, MakeRandomInt(5000,9000), "EmoteLoop")
  41. end
  42. end