9
3

aGruttoothscout.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 20, "InRange", "LeaveRange")
  11. EmoteLoop(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function EmoteLoop(NPC,Spawn)
  19. if IsInCombat(NPC) == false then
  20. choice = MakeRandomInt(1,26)
  21. if choice == 1 then
  22. PlayFlavor(NPC, "", "", "neener", 0, 0, Spawn, 0)
  23. elseif choice == 2 then
  24. PlayFlavor(NPC, "", "", "rude", 0, 0, Spawn, 0)
  25. elseif choice == 3 then
  26. PlayFlavor(NPC, "", "", "scratch", 0, 0, Spawn, 0)
  27. elseif choice == 4 then
  28. PlayFlavor(NPC, "", "", "dance", 0, 0, Spawn, 0)
  29. elseif choice == 5 then
  30. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn, 0)
  31. elseif choice == 6 then
  32. PlayFlavor(NPC, "", "", "flex", 0, 0, Spawn, 0)
  33. elseif choice == 7 then
  34. PlayFlavor(NPC, "", "", "sneer", 0, 0, Spawn, 0)
  35. elseif choice == 8 then
  36. PlayFlavor(NPC, "", "", "cackle", 0, 0, Spawn, 0)
  37. elseif choice == 9 then
  38. PlayFlavor(NPC, "", "", "swear", 0, 0, Spawn, 0)
  39. elseif choice == 10 then
  40. PlayFlavor(NPC, "", "", "threaten", 0, 0, Spawn, 0)
  41. elseif choice == 11 then
  42. PlayFlavor(NPC, "", "", "peer", 0, 0, Spawn, 0)
  43. elseif choice == 12 then
  44. PlayFlavor(NPC, "", "", "doubletake", 0, 0, Spawn, 0)
  45. elseif choice == 13 then
  46. PlayFlavor(NPC, "", "", "raisehand", 0, 0, Spawn, 0)
  47. elseif choice == 14 then
  48. PlayFlavor(NPC, "", "", "point", 0, 0, Spawn, 0)
  49. elseif choice == 14 then
  50. PlayFlavor(NPC, "", "", "shiver", 0, 0, Spawn, 0)
  51. elseif choice == 15 then
  52. PlayFlavor(NPC, "", "", "crazy", 0, 0, Spawn, 0)
  53. elseif choice == 16 then
  54. PlayFlavor(NPC, "", "", "scheme", 0, 0, Spawn, 0)
  55. elseif choice == 17 then
  56. PlayFlavor(NPC, "", "", "sneeze", 0, 0, Spawn, 0)
  57. elseif choice == 18 then
  58. PlayFlavor(NPC, "", "", "sneer", 0, 0, Spawn, 0)
  59. elseif choice == 19 then
  60. PlayFlavor(NPC, "", "", "sulk", 0, 0, Spawn, 0)
  61. elseif choice == 20 then
  62. PlayFlavor(NPC, "", "", "smirk", 0, 0, Spawn, 0)
  63. elseif choice == 21 then
  64. PlayFlavor(NPC, "", "", "squeal", 0, 0, Spawn, 0)
  65. elseif choice == 22 then
  66. PlayFlavor(NPC, "", "", "feint", 0, 0, Spawn, 0)
  67. elseif choice == 23 then
  68. PlayFlavor(NPC, "", "", "duck", 0, 0, Spawn, 0)
  69. elseif choice == 24 then
  70. PlayFlavor(NPC, "", "", "doh", 0, 0, Spawn, 0)
  71. elseif choice == 25 then
  72. PlayFlavor(NPC, "", "", "taunt", 0, 0, Spawn, 0)
  73. elseif choice == 26 then
  74. PlayFlavor(NPC, "", "", "tantrum", 0, 0, Spawn, 0)
  75. end
  76. AddTimer(NPC,MakeRandomInt(7000,9000),"EmoteLoop")
  77. else
  78. AddTimer(NPC,MakeRandomInt(10000,11000),"EmoteLoop")
  79. end
  80. end
  81. function InRange(NPC,Spawn)
  82. if IsInCombat(NPC) == false then
  83. SetTarget(NPC,Spawn)
  84. FaceTarget(NPC,Spawn)
  85. end
  86. end
  87. function aggro(NPC,Spawn)
  88. SetTarget(NPC,Spawn)
  89. end