9
3

aGruttoothmysticTaunt.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/aGruttoothmysticTaunt.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.09.06 02:09:44
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseGoblin1.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC, Spawn)
  11. NPCModule(NPC, Spawn)
  12. SetPlayerProximityFunction(NPC, 20, "InRange", "LeaveRange")
  13. EmoteLoop(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end
  20. function EmoteLoop(NPC,Spawn)
  21. if IsInCombat(NPC) == false then
  22. choice = MakeRandomInt(1,13)
  23. if choice == 1 then
  24. PlayFlavor(NPC, "", "", "neener", 0, 0, Spawn, 0)
  25. elseif choice == 2 then
  26. PlayFlavor(NPC, "", "", "rude", 0, 0, Spawn, 0)
  27. elseif choice == 3 then
  28. PlayFlavor(NPC, "", "", "scratch", 0, 0, Spawn, 0)
  29. elseif choice == 4 then
  30. PlayFlavor(NPC, "", "", "dance", 0, 0, Spawn, 0)
  31. elseif choice == 5 then
  32. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn, 0)
  33. elseif choice == 6 then
  34. PlayFlavor(NPC, "", "", "orate", 0, 0, Spawn, 0)
  35. elseif choice == 7 then
  36. PlayFlavor(NPC, "", "", "duck", 0, 0, Spawn, 0)
  37. elseif choice == 8 then
  38. PlayFlavor(NPC, "", "", "cackle", 0, 0, Spawn, 0)
  39. elseif choice == 9 then
  40. PlayFlavor(NPC, "", "", "notworthy", 0, 0, Spawn, 0)
  41. elseif choice == 10 then
  42. PlayFlavor(NPC, "", "", "taunt", 0, 0, Spawn, 0)
  43. elseif choice == 11 then
  44. PlayFlavor(NPC, "", "", "peer", 0, 0, Spawn, 0)
  45. elseif choice == 12 then
  46. PlayFlavor(NPC, "", "", "doubletake", 0, 0, Spawn, 0)
  47. elseif choice == 13 then
  48. PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn, 0)
  49. end
  50. AddTimer(NPC,MakeRandomInt(7000,9000),"EmoteLoop")
  51. else
  52. AddTimer(NPC,MakeRandomInt(10000,11000),"EmoteLoop")
  53. end
  54. end
  55. function InRange(NPC,Spawn)
  56. if IsInCombat(NPC) == false then
  57. SetTarget(NPC,Spawn)
  58. FaceTarget(NPC,Spawn)
  59. end
  60. end
  61. function aggro(NPC,Spawn)
  62. SetTarget(NPC,Spawn)
  63. end