9
3

aGruttoothprotector.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/aGruttoothprotector.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.09.13 08:09:15
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseGoblin2.lua")
  9. require "SpawnScripts/Generic/NPCModule"
  10. function spawn(NPC, Spawn)
  11. NPCModule(NPC, Spawn)
  12. EmoteLoop(NPC,Spawn)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function EmoteLoop(NPC,Spawn)
  18. if IsInCombat(NPC) == false and HasMoved(NPC)==false then
  19. choice = MakeRandomInt(1,10)
  20. if choice == 1 then
  21. PlayFlavor(NPC, "", "", "treaten", 0, 0, Spawn, 0)
  22. elseif choice == 2 then
  23. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn, 0)
  24. elseif choice == 3 then
  25. PlayFlavor(NPC, "", "", "frustrated", 0, 0, Spawn, 0)
  26. elseif choice == 4 then
  27. PlayFlavor(NPC, "", "", "peer", 0, 0, Spawn, 0)
  28. elseif choice == 5 then
  29. PlayFlavor(NPC, "", "", "feint", 0, 0, Spawn, 0)
  30. elseif choice == 6 then
  31. PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn, 0)
  32. elseif choice == 7 then
  33. PlayFlavor(NPC, "", "", "treaten", 0, 0, Spawn, 0)
  34. elseif choice == 8 then
  35. PlayFlavor(NPC, "", "", "stare", 0, 0, Spawn, 0)
  36. elseif choice == 9 then
  37. PlayFlavor(NPC, "", "", "brandish", 0, 0, Spawn, 0)
  38. elseif choice == 10 then
  39. PlayFlavor(NPC, "", "", "cackle", 0, 0, Spawn, 0)
  40. end
  41. AddTimer(NPC,MakeRandomInt(7000,9000),"EmoteLoop")
  42. else
  43. AddTimer(NPC,MakeRandomInt(10000,11000),"EmoteLoop")
  44. end
  45. end