aFireElemental.lua 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. --[[
  2. Script Name : SpawnScripts/qey_epic11_l10_arbor/aFireElemental.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.21 11:11:07
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseFireElemental1.lua")
  9. require "SpawnScripts/Generic/CombatModule"
  10. function spawn(NPC, Spawn)
  11. combatModule(NPC, Spawn)
  12. AddTimer(NPC,7500,"Visual2")
  13. AddTimer(NPC,6500,"Visual1a")
  14. AddTimer(NPC,4000,"Visual1")
  15. end
  16. function Visual1(NPC,Spawn)
  17. ApplySpellVisual(NPC,165)
  18. SpawnSet((GetSpawn(NPC,2180002)),"visual_state",3120)
  19. SpawnSet((GetSpawn(NPC,2180003)),"visual_state",3120)
  20. SpawnSet((GetSpawn(NPC,2180004)),"visual_state",3120)
  21. SpawnSet((GetSpawn(NPC,2180005)),"visual_state",3120)
  22. SpawnSet((GetSpawn(NPC,2180006)),"visual_state",3120)
  23. SpawnSet((GetSpawn(NPC,2180007)),"visual_state",3120)
  24. SpawnSet((GetSpawn(NPC,2180010)),"visual_state",3120)
  25. SpawnSet((GetSpawn(NPC,2180011)),"visual_state",3120)
  26. SpawnSet((GetSpawn(NPC,2180015)),"visual_state",3120)
  27. SpawnSet((GetSpawn(NPC,2180017)),"visual_state",3120)
  28. SpawnSet((GetSpawn(NPC,2180020)),"visual_state",3120)
  29. SpawnSet((GetSpawn(NPC,2180023)),"visual_state",3120)
  30. zone = GetZone(NPC)
  31. SpawnByLocationID(zone, 133780819)
  32. SpawnByLocationID(zone, 133780809)
  33. SpawnByLocationID(zone, 133780810)
  34. SpawnByLocationID(zone, 133780812)
  35. end
  36. function Visual1a(NPC,Spawn)
  37. SpawnSet(NPC,"size",35)
  38. end
  39. function Visual2(NPC,Spawn)
  40. SpawnSet(NPC,"model_type",171)
  41. SpawnSet(NPC,"faction",1)
  42. SpawnSet(NPC,"name","an Enraged Fire Elemental")
  43. SpawnSet(NPC,"targetable",1)
  44. SpawnSet(NPC,"show_level",1)
  45. SpawnSet(NPC,"attackable",1)
  46. end
  47. function death(NPC,Spawn)
  48. PerformCameraShake(Spawn, 0.399999988079071)
  49. SendMessage(Spawn, "The elemental's death triggered the abode's protective enchantment.","white")
  50. PlaySound(Spawn,"sounds/spells/lightning_burst/thunder_01.wav",(GetX(Spawn)),(GetY(Spawn)),(GetZ(Spawn)))
  51. SpawnSet((GetSpawn(NPC,2180002)),"visual_state",1861)
  52. SpawnSet((GetSpawn(NPC,2180003)),"visual_state",0)
  53. SpawnSet((GetSpawn(NPC,2180004)),"visual_state",1861)
  54. SpawnSet((GetSpawn(NPC,2180005)),"visual_state",0)
  55. SpawnSet((GetSpawn(NPC,2180006)),"visual_state",1861)
  56. SpawnSet((GetSpawn(NPC,2180007)),"visual_state",1861)
  57. SpawnSet((GetSpawn(NPC,2180010)),"visual_state",0)
  58. SpawnSet((GetSpawn(NPC,2180011)),"visual_state",0)
  59. SpawnSet((GetSpawn(NPC,2180015)),"visual_state",0)
  60. SpawnSet((GetSpawn(NPC,2180017)),"visual_state",1861)
  61. SpawnSet((GetSpawn(NPC,2180020)),"visual_state",0)
  62. SpawnSet((GetSpawn(NPC,2180023)),"visual_state",0)
  63. zone = GetZone(NPC)
  64. Despawn(GetSpawnByLocationID(zone, 133780812))
  65. Despawn(GetSpawnByLocationID(zone, 133780810))
  66. Despawn(GetSpawnByLocationID(zone, 133780809))
  67. Despawn(GetSpawnByLocationID(zone, 133780819))
  68. SpawnByLocationID(zone, 133780816)--BUBBLES
  69. SpawnByLocationID(zone, 133780817)
  70. SpawnByLocationID(zone, 133780818)
  71. SpawnByLocationID(zone, 133780813)--RAIN
  72. SpawnByLocationID(zone, 133780814)
  73. SpawnByLocationID(zone, 133780815)
  74. SpawnByLocationID(zone, 133780811) --CLOUD
  75. if HasQuest(Spawn, 5775)then
  76. SetStepComplete(Spawn,5775,1)
  77. end
  78. end
  79. function respawn(NPC)
  80. spawn(NPC)
  81. end