Add files via upload

This commit is contained in:
Dinkledork
2023-03-05 05:05:45 -07:00
committed by GitHub
parent e0323b4ed6
commit 6725c3bbdf
9 changed files with 2117 additions and 23 deletions

16
Auctioneer.lua Normal file
View File

@@ -0,0 +1,16 @@
local Auctioneer = {};
function Auctioneer.OnGossipHello(event, player, object)
player:GossipClearMenu()
player:GossipMenuAddItem(0, "What happened here?", 0, 0)
player:GossipSendMenu(1, object)
end
function Auctioneer.OnGossipSelect(event, player, object, sender, intid, code, menuid)
if (intid == 0) then
object:SendUnitSay("Big block of ice came tumbling out of the sky and smacked right into the Auctionhouse. We're lucky we even made it out alive...", 0)
end
end
RegisterCreatureGossipEvent(400063, 1, Auctioneer.OnGossipHello)
RegisterCreatureGossipEvent(400063, 2, Auctioneer.OnGossipSelect)

2037
ChromieEventScripts.lua Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -8,7 +8,7 @@ creature:CastSpell(target, 20228, true)
end
function Golemagg.CastEarthquake(eventId, delay, calls, creature)
creature:CastSpell(creature, 19798, true)
creature:CastSpell(creature, 19798, false)
creature:RegisterEvent(Golemagg.CastEarthquake, 17000, 0)
end

View File

@@ -1,23 +1,23 @@
Hazzrash = {}
Hazzrash = {};
function Hazzrash.CastArcaneBarage(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 44425, true)
creature:CastSpell(creature:GetVictim(), 44425, false)
end
function Hazzrash.CastArcaneBlast(eventId, delay, calls, creature)
local targets = creature:GetAITargets(10)
local target = targets[math.random(#targets)]
creature:CastSpell(target, 30451, true)
creature:CastSpell(target, 30451, false)
end
function Hazzrash.CastChainBurn(eventId, delay, calls, creature)
local targets = creature:GetAITargets(10)
local target = targets[math.random(#targets)]
creature:CastSpell(target, 8211, true)
creature:CastSpell(target, 8211, false)
end
function Hazzrash.CastCrystalFlash(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 5106, true)
creature:CastSpell(creature:GetVictim(), 5106, false)
end
function Hazzrash.CastEvocation(eventId, delay, calls, creature)
@@ -38,7 +38,7 @@ creature:RegisterEvent(Hazzrash.CastArcaneBarage, 6000, 0)
creature:RegisterEvent(Hazzrash.CastArcaneBlast, 18000, 0)
creature:RegisterEvent(Hazzrash.CastCrystalFlash, 25000, 0)
creature:RegisterEvent(Hazzrash.CastChainBurn, 44000, 0)
creature:RegisterEvent(Hazzrash.CastEvocation, 90000, 1)
creature:RegisterEvent(Hazzrash.CastEvocation, 60000, 1)
end
function Hazzrash.OnLeaveCombat(event, creature)

View File

@@ -2,15 +2,15 @@ local Lucifron = {}
Lucifron.enrageCasted = false
function Lucifron.CastImpendingDoom(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 19702, true)
creature:CastSpell(creature:GetVictim(), 19702, false)
end
function Lucifron.CastLucifronCurse(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 19703, true)
creature:CastSpell(creature:GetVictim(), 19703, false)
end
function Lucifron.CastShadowShock(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 20603, true)
creature:CastSpell(creature:GetVictim(), 20603, false)
end
function Lucifron.CastFlamestrike(eventId, delay, calls, creature)

View File

@@ -27,12 +27,12 @@ creature:RemoveEvents()
end
function Magmadar.Frenzy(event, delay, calls, creature)
creature:CastSpell(creature, SPELL_FRENZY, true)
creature:CastSpell(creature, SPELL_FRENZY, false)
creature:SendUnitEmote("Magmadar goes into a killing Frenzy!")
end
function Magmadar.Panic(event, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), SPELL_PANIC, true)
creature:CastSpell(creature:GetVictim(), SPELL_PANIC, false)
end
function Magmadar.LavaBomb(event, delay, calls, creature)
@@ -42,7 +42,7 @@ if targetCount > 0 then
local targetIndex = math.random(1, targetCount)
local target = targets[targetIndex]
if target:GetDistance(creature) <= MELEE_TARGET_LOOKUP_DIST then
creature:CastSpell(target, SPELL_LAVA_BOMB, true)
creature:CastSpell(target, SPELL_LAVA_BOMB, false)
end
end
end
@@ -51,7 +51,7 @@ function Magmadar.LavaBombRanged(event, delay, calls, creature)
local targets = creature:GetPlayersInRange(100.0)
for _, target in pairs(targets) do
if target:GetDistance(creature) > MELEE_TARGET_LOOKUP_DIST then
creature:CastSpell(target, SPELL_LAVA_BOMB_RANGED, true)
creature:CastSpell(target, SPELL_LAVA_BOMB_RANGED, false)
break
end
end

View File

@@ -1,21 +1,27 @@
Magmakin = {}
function Magmakin.CastFlameBuffet(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 23189, true)
if not creature:IsCasting() then
creature:CastSpell(creature:GetVictim(), 23341, false)
end
end
function Magmakin.CastMagmaBlast(eventId, delay, calls, creature)
if not creature:IsCasting() then
local targets = creature:GetAITargets(10)
local target = targets[math.random(#targets)]
creature:CastSpell(target, 20565, true)
creature:CastSpell(target, 20565, false)
end
end
function Magmakin.CastLavaBurst(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 21158, true)
if not creature:IsCasting() then
creature:CastSpell(creature:GetVictim(), 11678, false)
end
end
function Magmakin.OnEnterCombat(event, creature, target)
creature:RegisterEvent(Magmakin.CastFlameBuffet, 15000, 0)
creature:RegisterEvent(Magmakin.CastFlameBuffet, 18000, 0)
creature:RegisterEvent(Magmakin.CastMagmaBlast, 16000, 0)
creature:RegisterEvent(Magmakin.CastLavaBurst, 8000, 0)
end
@@ -29,6 +35,7 @@ creature:RemoveEvents()
end
function Magmakin.OnSpawn(event, creature)
creature:SetMaxPower(0, 10000000)
creature:SetMaxHealth(349000)
end

View File

@@ -1,18 +1,24 @@
local Smolder = {};
local healthCheck = false;
local isCastingSummonElemental = false;
local function CastFlameBreath(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 23341, true)
if isCastingSummonElemental then return end
if creature:HealthBelowPct(15) and not creature:IsCasting() then
creature:CastSpell(creature:GetVictim(), 23341, false)
end
end
local function CastCharredEarth(eventId, delay, calls, creature)
if isCastingSummonElemental then return end
local targetCount = creature:GetAITargetsCount()
local randomTarget = math.random(1, targetCount)
local target = creature:GetAITargets()
creature:CastSpell(target[randomTarget], 100148, true)
creature:CastSpell(target[randomTarget], 100148, false)
end
local function CastPyroblast(eventId, delay, calls, creature)
if isCastingSummonElemental then return end
local targets = {}
for i = 1, 3 do
local targetCount = creature:GetAITargetsCount()
@@ -26,23 +32,30 @@ end
end
local function CastSummonElemental(eventId, delay, calls, creature)
isCastingSummonElemental = true
creature:SendUnitYell("Minions of fire, rise and serve your master!", 0)
creature:PlayDirectSound(20422)
creature:CastSpell(creature, 364728, true)
isCastingSummonElemental = false
end
local function CastTailSweep(eventId, delay, calls, creature)
if isCastingSummonElemental then return end
creature:CastSpell(creature:GetVictim(), 52144, true)
end
local function CastScorch(eventId, delay, calls, creature)
creature:CastSpell(creature:GetVictim(), 42858, true)
if isCastingSummonElemental then return end
if not creature:IsCasting() then
creature:CastSpell(creature:GetVictim(), 42858, false)
end
end
local function CastBellowingRoar(eventId, delay, calls, creature)
if isCastingSummonElemental then return end
creature:SendUnitYell("Feel the power of my roar!", 0)
creature:PlayDirectSound(20421)
creature:CastSpell(creature, 22686, true)
creature:CastSpell(creature, 22686, false)
end
local function OnEnterCombat(event, creature, target)
@@ -52,7 +65,7 @@ creature:RegisterEvent(CastScorch, 6000, 0)
creature:RegisterEvent(CastFlameBreath, 13000, 0)
creature:RegisterEvent(CastCharredEarth, 12000, 0)
creature:RegisterEvent(CastPyroblast, 10000, 0)
creature:RegisterEvent(CastSummonElemental, 60000, 0)
creature:RegisterEvent(CastSummonElemental, 63500, 0)
creature:RegisterEvent(CastTailSweep, 8000, 0)
creature:RegisterEvent(CastBellowingRoar, 33000, 0)
end
@@ -75,10 +88,15 @@ healthCheck = true
end
end
function OnSpawn(event, creature)
creature:SetMaxPower(0, 14379003)
end
RegisterCreatureEvent(83001, 1, OnEnterCombat)
RegisterCreatureEvent(83001, 2, OnLeaveCombat)
RegisterCreatureEvent(83001, 4, OnDied)
RegisterCreatureEvent(83001, 9, OnDamageTaken)
RegisterCreatureEvent(83001, 5, OnSpawn)

16
Yelmek.lua Normal file
View File

@@ -0,0 +1,16 @@
local Yelmek = {};
function Yelmek.OnGossipHello(event, player, object)
player:GossipClearMenu()
player:GossipMenuAddItem(0, "What happened here?", 0, 0)
player:GossipSendMenu(1, object)
end
function Yelmek.OnGossipSelect(event, player, object, sender, intid, code, menuid)
if (intid == 0) then
object:SendUnitSay("Man...I really overdid it this time. I don't really want to go into detail...You can see the results for yourself...", 0)
end
end
RegisterCreatureGossipEvent(400062, 1, Yelmek.OnGossipHello)
RegisterCreatureGossipEvent(400062, 2, Yelmek.OnGossipSelect)