9
3

aGruttoothsparkcaster.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : SpawnScripts/GrimgashsLair/aGruttoothsparkcaster.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.23 01:09:03
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function death(NPC,Spawn)
  14. local zone = GetZone(NPC)
  15. local Gob1 = GetSpawnByLocationID(zone, 133776472)
  16. local Gob2 = GetSpawnByLocationID(zone, 133776473)
  17. local Gob3 = GetSpawnByLocationID(zone, 133776474)
  18. local GobChamp = GetSpawnByLocationID(zone, 133776471)
  19. local Grimgash = GetSpawnByLocationID(zone, 133776469)
  20. if IsAlive(Gob1) == false and IsAlive(Gob2) == false and IsAlive(Gob3) == false then
  21. SetTarget(Grimgash,Spawn)
  22. SetTarget(GobChamp,Spawn)
  23. FaceTarget(Grimgash,Spawn)
  24. FaceTarget(GobChamp,Spawn)
  25. AddTimer(NPC,1200,"Taunt",1,Spawn)
  26. AddTimer(NPC,5000,"GrimAttack",1,Spawn)
  27. end
  28. end
  29. function Taunt(NPC,Spawn)
  30. local zone = GetZone(NPC)
  31. local GobChamp = GetSpawnByLocationID(zone, 133776471)
  32. local Grimgash = GetSpawnByLocationID(zone, 133776469)
  33. if not HasLanguage(Spawn,20)then
  34. PlayFlavor(GobChamp,"voiceover/english/goblin_base_1/ft/goblin/goblin_base_1_2_garbled_27d93e2a.mp3","They want to kill us all! Charge!","point",4004358685,1661226684,Spawn,20)
  35. else
  36. PlayFlavor(GobChamp,"voiceover/english/goblin_base_1/ft/goblin/goblin_base_1_1_aggro_3e6d7bc3.mp3","They want to kill us all! Charge!","point",1297886042,938149593,Spawn,20)
  37. end
  38. PlayFlavor(Grimgash,"","","shakefist",0,0)
  39. end
  40. function GrimAttack(NPC,Spawn)
  41. local zone = GetZone(NPC)
  42. local GobChamp = GetSpawnByLocationID(zone, 133776471)
  43. local Grimgash = GetSpawnByLocationID(zone, 133776469)
  44. Attack(Grimgash,Spawn)
  45. end