9
3

aGruttoothwitchdoctor.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : SpawnScripts/GrimgashsLair/aGruttoothwitchdoctor.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.09.20 02:09:26
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. AddTimer(NPC,2000,"EmoteLoop")
  12. end
  13. function EmoteLoop(NPC,Spawn)
  14. if IsInCombat(NPC) == false and HasMoved(NPC) == false then
  15. choice = MakeRandomInt(1,13)
  16. if choice == 1 then
  17. PlayFlavor(NPC, "", "", "neener", 0, 0, Spawn, 0)
  18. elseif choice == 2 then
  19. PlayFlavor(NPC, "", "", "rude", 0, 0, Spawn, 0)
  20. elseif choice == 3 then
  21. PlayFlavor(NPC, "", "", "scratch", 0, 0, Spawn, 0)
  22. elseif choice == 4 then
  23. PlayFlavor(NPC, "", "", "dance", 0, 0, Spawn, 0)
  24. elseif choice == 5 then
  25. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn, 0)
  26. elseif choice == 6 then
  27. PlayFlavor(NPC, "", "", "orate", 0, 0, Spawn, 0)
  28. elseif choice == 7 then
  29. PlayFlavor(NPC, "", "", "duck", 0, 0, Spawn, 0)
  30. elseif choice == 8 then
  31. PlayFlavor(NPC, "", "", "cackle", 0, 0, Spawn, 0)
  32. elseif choice == 9 then
  33. PlayFlavor(NPC, "", "", "notworthy", 0, 0, Spawn, 0)
  34. elseif choice == 10 then
  35. PlayFlavor(NPC, "", "", "taunt", 0, 0, Spawn, 0)
  36. elseif choice == 11 then
  37. PlayFlavor(NPC, "", "", "peer", 0, 0, Spawn, 0)
  38. elseif choice == 12 then
  39. PlayFlavor(NPC, "", "", "doubletake", 0, 0, Spawn, 0)
  40. elseif choice == 13 then
  41. PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn, 0)
  42. end
  43. AddTimer(NPC,MakeRandomInt(7000,9000),"EmoteLoop")
  44. else
  45. AddTimer(NPC,MakeRandomInt(10000,11000),"EmoteLoop")
  46. end
  47. end
  48. function respawn(NPC)
  49. spawn(NPC)
  50. end