9
3

aGruttoothmysticTaunt.lua 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. function spawn(NPC)
  10. local Level = GetLevel(NPC)
  11. local level1 = 3
  12. local level2 = 4
  13. local difficulty1 = 6
  14. local hp1 = 75
  15. local power1 = 55
  16. local difficulty2 = 6
  17. local hp2 = 110
  18. local power2 = 65
  19. if Level == level1 then
  20. SpawnSet(NPC, "difficulty", difficulty1)
  21. SpawnSet(NPC, "hp", hp1)
  22. SpawnSet(NPC, "power", power1)
  23. elseif Level == level2
  24. then
  25. SpawnSet(NPC, "difficulty", difficulty2)
  26. SpawnSet(NPC, "hp", hp2)
  27. SpawnSet(NPC, "power", power2)
  28. end
  29. SetPlayerProximityFunction(NPC, 20, "InRange", "LeaveRange")
  30. EmoteLoop(NPC)
  31. end
  32. function hailed(NPC, Spawn)
  33. end
  34. function respawn(NPC)
  35. spawn(NPC)
  36. end
  37. function EmoteLoop(NPC,Spawn)
  38. if IsInCombat(NPC) == false then
  39. choice = MakeRandomInt(1,13)
  40. if choice == 1 then
  41. PlayFlavor(NPC, "", "", "neener", 0, 0, Spawn, 0)
  42. elseif choice == 2 then
  43. PlayFlavor(NPC, "", "", "rude", 0, 0, Spawn, 0)
  44. elseif choice == 3 then
  45. PlayFlavor(NPC, "", "", "scratch", 0, 0, Spawn, 0)
  46. elseif choice == 4 then
  47. PlayFlavor(NPC, "", "", "dance", 0, 0, Spawn, 0)
  48. elseif choice == 5 then
  49. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn, 0)
  50. elseif choice == 6 then
  51. PlayFlavor(NPC, "", "", "orate", 0, 0, Spawn, 0)
  52. elseif choice == 7 then
  53. PlayFlavor(NPC, "", "", "duck", 0, 0, Spawn, 0)
  54. elseif choice == 8 then
  55. PlayFlavor(NPC, "", "", "cackle", 0, 0, Spawn, 0)
  56. elseif choice == 9 then
  57. PlayFlavor(NPC, "", "", "notworthy", 0, 0, Spawn, 0)
  58. elseif choice == 10 then
  59. PlayFlavor(NPC, "", "", "taunt", 0, 0, Spawn, 0)
  60. elseif choice == 11 then
  61. PlayFlavor(NPC, "", "", "peer", 0, 0, Spawn, 0)
  62. elseif choice == 12 then
  63. PlayFlavor(NPC, "", "", "doubletake", 0, 0, Spawn, 0)
  64. elseif choice == 13 then
  65. PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn, 0)
  66. end
  67. AddTimer(NPC,MakeRandomInt(7000,9000),"EmoteLoop")
  68. else
  69. AddTimer(NPC,MakeRandomInt(10000,11000),"EmoteLoop")
  70. end
  71. end
  72. function InRange(NPC,Spawn)
  73. if IsInCombat(NPC) == false then
  74. SetTarget(NPC,Spawn)
  75. FaceTarget(NPC,Spawn)
  76. end
  77. end
  78. function aggro(NPC,Spawn)
  79. SetTarget(NPC,Spawn)
  80. end