Add files via upload

This commit is contained in:
Dinkledork
2023-03-23 02:54:00 -06:00
committed by GitHub
parent e6968d3ebf
commit 4a9aec8175
2 changed files with 44 additions and 0 deletions

25
CooldownFreeFlying.lua Normal file
View File

@@ -0,0 +1,25 @@
--This script is for people who want to remove the cooldowns for Up, Up and Away and Skyburst spells
--Up, Up and Away will still have a CD but is reset when you cast Skyburst
local resetCooldown = false -- Set to true to enable
local castFullHeal = false -- Set to true to enable. This will remove the damage caused to the player by Skyburst
local function ResetCooldowns(event, player, spell)
local spellId = spell:GetEntry()
if resetCooldown and (spellId == 100209 or spellId == 100217 or spellId == 100216 or spellId == 100221) then
player:ResetSpellCooldown(100210)
player:ResetSpellCooldown(100211)
player:ResetSpellCooldown(100218)
player:ResetSpellCooldown(100219)
player:ResetSpellCooldown(100214)
player:ResetSpellCooldown(100213)
player:ResetSpellCooldown(100215)
player:ResetSpellCooldown(100220)
elseif castFullHeal and not player:IsInCombat() and (spellId == 100210 or spellId == 100211 or spellId == 100218 or spellId == 100219 or spellId == 100214 or spellId == 100213 or spellId == 100215 or spellId == 100220) then
player:CastSpell(player, 17683, true)
end
end
RegisterPlayerEvent(5, ResetCooldowns)

19
KeinDK.lua Normal file
View File

@@ -0,0 +1,19 @@
-- Just for you, Kein666
-- This script allows dks to equip shields and dw 2h without db edits.
local ENABLE_SCRIPT = false -- Set to true to enable the script, false to disable it
local EVENT_ON_LOGIN = 3
local DEATH_KNIGHT_CLASS = 6
local SHIELD_SKILL_ID = 433
local function SetShieldSkillForDeathKnights(event, player)
if ENABLE_SCRIPT and player:GetClass() == DEATH_KNIGHT_CLASS then
player:SetSkill(SHIELD_SKILL_ID, 1, 1, 1)
player:LearnSpell(46917) -- Titan's Grip spells
player:LearnSpell(49152)
player:LearnSpell(50483)
end
end
RegisterPlayerEvent(EVENT_ON_LOGIN, SetShieldSkillForDeathKnights)