9
3

TrialofFire.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --[[
  2. Script Name : SpawnScripts/SummonersTest/TrialofFire.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.12 04:11:14
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseFireElemental1.lua")
  9. dofile("SpawnScripts/SummonersTest/dpoinvisiblecube.lua")
  10. require "SpawnScripts/Generic/CombatModule"
  11. function spawn(NPC, Spawn)
  12. combatModule(NPC, Spawn)
  13. SetSpawnAnimation(NPC, 13016)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function death (NPC,Spawn)
  19. local zone = GetZone(Spawn)
  20. local Ring = GetSpawnByLocationID(zone,133780576)
  21. if Ring ~= nil then
  22. Trial4Done(Ring,Spawn)
  23. end
  24. if GetQuestStep(Spawn,5770)==1 then
  25. SetStepComplete(Spawn,5770,1)
  26. end
  27. end
  28. function Light1(NPC, Spawn)
  29. local zone = GetZone(Spawn)
  30. local candle1 = GetSpawnByLocationID(zone,133780562)
  31. local candle2 = GetSpawnByLocationID(zone,133780563)
  32. local candle3 = GetSpawnByLocationID(zone,133780564)
  33. local candle4 = GetSpawnByLocationID(zone,133780565)
  34. local candle5 = GetSpawnByLocationID(zone,133780566)
  35. local candle6 = GetSpawnByLocationID(zone,133780568)
  36. local candle7 = GetSpawnByLocationID(zone,133780569)
  37. SpawnSet(candle1,"model_type",5963)
  38. SpawnSet(candle2,"model_type",5963)
  39. SpawnSet(candle3,"model_type",5963)
  40. SpawnSet(candle4,"model_type",5963)
  41. SpawnSet(candle5,"model_type",5963)
  42. SpawnSet(candle6,"model_type",5963)
  43. SpawnSet(candle7,"model_type",5963)
  44. end
  45. function Light2(NPC, Spawn)
  46. local zone = GetZone(Spawn)
  47. local candle8 = GetSpawnByLocationID(zone,133780570)
  48. local candle9 = GetSpawnByLocationID(zone,133780571)
  49. local candle10 = GetSpawnByLocationID(zone,133780572)
  50. local candle11 = GetSpawnByLocationID(zone,133780573)
  51. local candle12 = GetSpawnByLocationID(zone,133780574)
  52. local candle13 = GetSpawnByLocationID(zone,133780575)
  53. local candle14 = GetSpawnByLocationID(zone,133780567)
  54. SpawnSet(candle8,"model_type",5963)
  55. SpawnSet(candle9,"model_type",5963)
  56. SpawnSet(candle10,"model_type",5963)
  57. SpawnSet(candle11,"model_type",5963)
  58. SpawnSet(candle12,"model_type",5963)
  59. SpawnSet(candle13,"model_type",5963)
  60. SpawnSet(candle14,"model_type",5963)
  61. end
  62. function Ring(NPC, Spawn)
  63. local zone = GetZone(Spawn)
  64. local SummonRing = GetSpawnByLocationID(zone,133780576)
  65. SpawnSet(SummonRing,"visual_state",34342)
  66. end