9
3

aGruttoothscout.lua 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/aGruttoothscout.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.05 06:09:07
  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,26)
  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, "", "", "flex", 0, 0, Spawn, 0)
  35. elseif choice == 7 then
  36. PlayFlavor(NPC, "", "", "sneer", 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, "", "", "swear", 0, 0, Spawn, 0)
  41. elseif choice == 10 then
  42. PlayFlavor(NPC, "", "", "threaten", 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, "", "", "raisehand", 0, 0, Spawn, 0)
  49. elseif choice == 14 then
  50. PlayFlavor(NPC, "", "", "point", 0, 0, Spawn, 0)
  51. elseif choice == 14 then
  52. PlayFlavor(NPC, "", "", "shiver", 0, 0, Spawn, 0)
  53. elseif choice == 15 then
  54. PlayFlavor(NPC, "", "", "crazy", 0, 0, Spawn, 0)
  55. elseif choice == 16 then
  56. PlayFlavor(NPC, "", "", "scheme", 0, 0, Spawn, 0)
  57. elseif choice == 17 then
  58. PlayFlavor(NPC, "", "", "sneeze", 0, 0, Spawn, 0)
  59. elseif choice == 18 then
  60. PlayFlavor(NPC, "", "", "sneer", 0, 0, Spawn, 0)
  61. elseif choice == 19 then
  62. PlayFlavor(NPC, "", "", "sulk", 0, 0, Spawn, 0)
  63. elseif choice == 20 then
  64. PlayFlavor(NPC, "", "", "smirk", 0, 0, Spawn, 0)
  65. elseif choice == 21 then
  66. PlayFlavor(NPC, "", "", "squeal", 0, 0, Spawn, 0)
  67. elseif choice == 22 then
  68. PlayFlavor(NPC, "", "", "feint", 0, 0, Spawn, 0)
  69. elseif choice == 23 then
  70. PlayFlavor(NPC, "", "", "duck", 0, 0, Spawn, 0)
  71. elseif choice == 24 then
  72. PlayFlavor(NPC, "", "", "doh", 0, 0, Spawn, 0)
  73. elseif choice == 25 then
  74. PlayFlavor(NPC, "", "", "taunt", 0, 0, Spawn, 0)
  75. elseif choice == 26 then
  76. PlayFlavor(NPC, "", "", "tantrum", 0, 0, Spawn, 0)
  77. end
  78. AddTimer(NPC,MakeRandomInt(7000,9000),"EmoteLoop")
  79. else
  80. AddTimer(NPC,MakeRandomInt(10000,11000),"EmoteLoop")
  81. end
  82. end
  83. function InRange(NPC,Spawn)
  84. if IsInCombat(NPC) == false then
  85. SetTarget(NPC,Spawn)
  86. FaceTarget(NPC,Spawn)
  87. end
  88. end
  89. function aggro(NPC,Spawn)
  90. SetTarget(NPC,Spawn)
  91. end