forked from ornfelt/azerothcore_lua_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKeinDK.lua
More file actions
19 lines (15 loc) · 649 Bytes
/
KeinDK.lua
File metadata and controls
19 lines (15 loc) · 649 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)