mirror of
https://github.com/araxiaonline/RandomScriptsforAzerothCore.git
synced 2026-06-13 02:22:19 -04:00
Add files via upload
This commit is contained in:
16
Auctioneer.lua
Normal file
16
Auctioneer.lua
Normal 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
2037
ChromieEventScripts.lua
Normal file
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,7 @@ creature:CastSpell(target, 20228, true)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Golemagg.CastEarthquake(eventId, delay, calls, creature)
|
function Golemagg.CastEarthquake(eventId, delay, calls, creature)
|
||||||
creature:CastSpell(creature, 19798, true)
|
creature:CastSpell(creature, 19798, false)
|
||||||
creature:RegisterEvent(Golemagg.CastEarthquake, 17000, 0)
|
creature:RegisterEvent(Golemagg.CastEarthquake, 17000, 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
12
Hazzrash.lua
12
Hazzrash.lua
@@ -1,23 +1,23 @@
|
|||||||
Hazzrash = {}
|
Hazzrash = {};
|
||||||
|
|
||||||
function Hazzrash.CastArcaneBarage(eventId, delay, calls, creature)
|
function Hazzrash.CastArcaneBarage(eventId, delay, calls, creature)
|
||||||
creature:CastSpell(creature:GetVictim(), 44425, true)
|
creature:CastSpell(creature:GetVictim(), 44425, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Hazzrash.CastArcaneBlast(eventId, delay, calls, creature)
|
function Hazzrash.CastArcaneBlast(eventId, delay, calls, creature)
|
||||||
local targets = creature:GetAITargets(10)
|
local targets = creature:GetAITargets(10)
|
||||||
local target = targets[math.random(#targets)]
|
local target = targets[math.random(#targets)]
|
||||||
creature:CastSpell(target, 30451, true)
|
creature:CastSpell(target, 30451, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Hazzrash.CastChainBurn(eventId, delay, calls, creature)
|
function Hazzrash.CastChainBurn(eventId, delay, calls, creature)
|
||||||
local targets = creature:GetAITargets(10)
|
local targets = creature:GetAITargets(10)
|
||||||
local target = targets[math.random(#targets)]
|
local target = targets[math.random(#targets)]
|
||||||
creature:CastSpell(target, 8211, true)
|
creature:CastSpell(target, 8211, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Hazzrash.CastCrystalFlash(eventId, delay, calls, creature)
|
function Hazzrash.CastCrystalFlash(eventId, delay, calls, creature)
|
||||||
creature:CastSpell(creature:GetVictim(), 5106, true)
|
creature:CastSpell(creature:GetVictim(), 5106, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Hazzrash.CastEvocation(eventId, delay, calls, creature)
|
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.CastArcaneBlast, 18000, 0)
|
||||||
creature:RegisterEvent(Hazzrash.CastCrystalFlash, 25000, 0)
|
creature:RegisterEvent(Hazzrash.CastCrystalFlash, 25000, 0)
|
||||||
creature:RegisterEvent(Hazzrash.CastChainBurn, 44000, 0)
|
creature:RegisterEvent(Hazzrash.CastChainBurn, 44000, 0)
|
||||||
creature:RegisterEvent(Hazzrash.CastEvocation, 90000, 1)
|
creature:RegisterEvent(Hazzrash.CastEvocation, 60000, 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Hazzrash.OnLeaveCombat(event, creature)
|
function Hazzrash.OnLeaveCombat(event, creature)
|
||||||
|
|||||||
@@ -2,15 +2,15 @@ local Lucifron = {}
|
|||||||
Lucifron.enrageCasted = false
|
Lucifron.enrageCasted = false
|
||||||
|
|
||||||
function Lucifron.CastImpendingDoom(eventId, delay, calls, creature)
|
function Lucifron.CastImpendingDoom(eventId, delay, calls, creature)
|
||||||
creature:CastSpell(creature:GetVictim(), 19702, true)
|
creature:CastSpell(creature:GetVictim(), 19702, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Lucifron.CastLucifronCurse(eventId, delay, calls, creature)
|
function Lucifron.CastLucifronCurse(eventId, delay, calls, creature)
|
||||||
creature:CastSpell(creature:GetVictim(), 19703, true)
|
creature:CastSpell(creature:GetVictim(), 19703, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Lucifron.CastShadowShock(eventId, delay, calls, creature)
|
function Lucifron.CastShadowShock(eventId, delay, calls, creature)
|
||||||
creature:CastSpell(creature:GetVictim(), 20603, true)
|
creature:CastSpell(creature:GetVictim(), 20603, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Lucifron.CastFlamestrike(eventId, delay, calls, creature)
|
function Lucifron.CastFlamestrike(eventId, delay, calls, creature)
|
||||||
|
|||||||
@@ -27,12 +27,12 @@ creature:RemoveEvents()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Magmadar.Frenzy(event, delay, calls, creature)
|
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!")
|
creature:SendUnitEmote("Magmadar goes into a killing Frenzy!")
|
||||||
end
|
end
|
||||||
|
|
||||||
function Magmadar.Panic(event, delay, calls, creature)
|
function Magmadar.Panic(event, delay, calls, creature)
|
||||||
creature:CastSpell(creature:GetVictim(), SPELL_PANIC, true)
|
creature:CastSpell(creature:GetVictim(), SPELL_PANIC, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Magmadar.LavaBomb(event, delay, calls, creature)
|
function Magmadar.LavaBomb(event, delay, calls, creature)
|
||||||
@@ -42,7 +42,7 @@ if targetCount > 0 then
|
|||||||
local targetIndex = math.random(1, targetCount)
|
local targetIndex = math.random(1, targetCount)
|
||||||
local target = targets[targetIndex]
|
local target = targets[targetIndex]
|
||||||
if target:GetDistance(creature) <= MELEE_TARGET_LOOKUP_DIST then
|
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
|
end
|
||||||
end
|
end
|
||||||
@@ -51,7 +51,7 @@ function Magmadar.LavaBombRanged(event, delay, calls, creature)
|
|||||||
local targets = creature:GetPlayersInRange(100.0)
|
local targets = creature:GetPlayersInRange(100.0)
|
||||||
for _, target in pairs(targets) do
|
for _, target in pairs(targets) do
|
||||||
if target:GetDistance(creature) > MELEE_TARGET_LOOKUP_DIST then
|
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
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
15
Magmakin.lua
15
Magmakin.lua
@@ -1,21 +1,27 @@
|
|||||||
Magmakin = {}
|
Magmakin = {}
|
||||||
|
|
||||||
function Magmakin.CastFlameBuffet(eventId, delay, calls, creature)
|
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
|
end
|
||||||
|
|
||||||
function Magmakin.CastMagmaBlast(eventId, delay, calls, creature)
|
function Magmakin.CastMagmaBlast(eventId, delay, calls, creature)
|
||||||
|
if not creature:IsCasting() then
|
||||||
local targets = creature:GetAITargets(10)
|
local targets = creature:GetAITargets(10)
|
||||||
local target = targets[math.random(#targets)]
|
local target = targets[math.random(#targets)]
|
||||||
creature:CastSpell(target, 20565, true)
|
creature:CastSpell(target, 20565, false)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function Magmakin.CastLavaBurst(eventId, delay, calls, creature)
|
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
|
end
|
||||||
|
|
||||||
function Magmakin.OnEnterCombat(event, creature, target)
|
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.CastMagmaBlast, 16000, 0)
|
||||||
creature:RegisterEvent(Magmakin.CastLavaBurst, 8000, 0)
|
creature:RegisterEvent(Magmakin.CastLavaBurst, 8000, 0)
|
||||||
end
|
end
|
||||||
@@ -29,6 +35,7 @@ creature:RemoveEvents()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Magmakin.OnSpawn(event, creature)
|
function Magmakin.OnSpawn(event, creature)
|
||||||
|
creature:SetMaxPower(0, 10000000)
|
||||||
creature:SetMaxHealth(349000)
|
creature:SetMaxHealth(349000)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
28
Smolder.lua
28
Smolder.lua
@@ -1,18 +1,24 @@
|
|||||||
local Smolder = {};
|
local Smolder = {};
|
||||||
local healthCheck = false;
|
local healthCheck = false;
|
||||||
|
local isCastingSummonElemental = false;
|
||||||
|
|
||||||
local function CastFlameBreath(eventId, delay, calls, creature)
|
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
|
end
|
||||||
|
|
||||||
local function CastCharredEarth(eventId, delay, calls, creature)
|
local function CastCharredEarth(eventId, delay, calls, creature)
|
||||||
|
if isCastingSummonElemental then return end
|
||||||
local targetCount = creature:GetAITargetsCount()
|
local targetCount = creature:GetAITargetsCount()
|
||||||
local randomTarget = math.random(1, targetCount)
|
local randomTarget = math.random(1, targetCount)
|
||||||
local target = creature:GetAITargets()
|
local target = creature:GetAITargets()
|
||||||
creature:CastSpell(target[randomTarget], 100148, true)
|
creature:CastSpell(target[randomTarget], 100148, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function CastPyroblast(eventId, delay, calls, creature)
|
local function CastPyroblast(eventId, delay, calls, creature)
|
||||||
|
if isCastingSummonElemental then return end
|
||||||
local targets = {}
|
local targets = {}
|
||||||
for i = 1, 3 do
|
for i = 1, 3 do
|
||||||
local targetCount = creature:GetAITargetsCount()
|
local targetCount = creature:GetAITargetsCount()
|
||||||
@@ -26,23 +32,30 @@ end
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function CastSummonElemental(eventId, delay, calls, creature)
|
local function CastSummonElemental(eventId, delay, calls, creature)
|
||||||
|
isCastingSummonElemental = true
|
||||||
creature:SendUnitYell("Minions of fire, rise and serve your master!", 0)
|
creature:SendUnitYell("Minions of fire, rise and serve your master!", 0)
|
||||||
creature:PlayDirectSound(20422)
|
creature:PlayDirectSound(20422)
|
||||||
creature:CastSpell(creature, 364728, true)
|
creature:CastSpell(creature, 364728, true)
|
||||||
|
isCastingSummonElemental = false
|
||||||
end
|
end
|
||||||
|
|
||||||
local function CastTailSweep(eventId, delay, calls, creature)
|
local function CastTailSweep(eventId, delay, calls, creature)
|
||||||
|
if isCastingSummonElemental then return end
|
||||||
creature:CastSpell(creature:GetVictim(), 52144, true)
|
creature:CastSpell(creature:GetVictim(), 52144, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function CastScorch(eventId, delay, calls, creature)
|
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
|
end
|
||||||
|
|
||||||
local function CastBellowingRoar(eventId, delay, calls, creature)
|
local function CastBellowingRoar(eventId, delay, calls, creature)
|
||||||
|
if isCastingSummonElemental then return end
|
||||||
creature:SendUnitYell("Feel the power of my roar!", 0)
|
creature:SendUnitYell("Feel the power of my roar!", 0)
|
||||||
creature:PlayDirectSound(20421)
|
creature:PlayDirectSound(20421)
|
||||||
creature:CastSpell(creature, 22686, true)
|
creature:CastSpell(creature, 22686, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function OnEnterCombat(event, creature, target)
|
local function OnEnterCombat(event, creature, target)
|
||||||
@@ -52,7 +65,7 @@ creature:RegisterEvent(CastScorch, 6000, 0)
|
|||||||
creature:RegisterEvent(CastFlameBreath, 13000, 0)
|
creature:RegisterEvent(CastFlameBreath, 13000, 0)
|
||||||
creature:RegisterEvent(CastCharredEarth, 12000, 0)
|
creature:RegisterEvent(CastCharredEarth, 12000, 0)
|
||||||
creature:RegisterEvent(CastPyroblast, 10000, 0)
|
creature:RegisterEvent(CastPyroblast, 10000, 0)
|
||||||
creature:RegisterEvent(CastSummonElemental, 60000, 0)
|
creature:RegisterEvent(CastSummonElemental, 63500, 0)
|
||||||
creature:RegisterEvent(CastTailSweep, 8000, 0)
|
creature:RegisterEvent(CastTailSweep, 8000, 0)
|
||||||
creature:RegisterEvent(CastBellowingRoar, 33000, 0)
|
creature:RegisterEvent(CastBellowingRoar, 33000, 0)
|
||||||
end
|
end
|
||||||
@@ -75,10 +88,15 @@ healthCheck = true
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function OnSpawn(event, creature)
|
||||||
|
creature:SetMaxPower(0, 14379003)
|
||||||
|
end
|
||||||
|
|
||||||
RegisterCreatureEvent(83001, 1, OnEnterCombat)
|
RegisterCreatureEvent(83001, 1, OnEnterCombat)
|
||||||
RegisterCreatureEvent(83001, 2, OnLeaveCombat)
|
RegisterCreatureEvent(83001, 2, OnLeaveCombat)
|
||||||
RegisterCreatureEvent(83001, 4, OnDied)
|
RegisterCreatureEvent(83001, 4, OnDied)
|
||||||
RegisterCreatureEvent(83001, 9, OnDamageTaken)
|
RegisterCreatureEvent(83001, 9, OnDamageTaken)
|
||||||
|
RegisterCreatureEvent(83001, 5, OnSpawn)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
16
Yelmek.lua
Normal file
16
Yelmek.lua
Normal 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)
|
||||||
Reference in New Issue
Block a user