mirror of
https://github.com/ornfelt/azerothcore_lua_scripts
synced 2026-08-22 06:26:03 -04:00
20 lines
649 B
Lua
20 lines
649 B
Lua
|
|
-- 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)
|