-
-
Save drozco/562f2f6f5e806f71ef03c9f274ffecb7 to your computer and use it in GitHub Desktop.
Eluna script to 'skip' DK starter quests for Death Knight characters. Target a DK character (including yourself) and type .dk.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------- | |
-- DK Skip DROZ --- | |
--------------------------- | |
-- copy to your lua scripts folder and reload eluna/server | |
local quests = {12593, 12619, 12842, 12848, 12636, 12641, 12657, 12678, 12679, 12680, 12687, 12698, 12701, 12706, 12716, 12719, 12720, 12722, 12724, 12725, 12727, 12733, -1, 12751, 12754, 12755, 12756, 12757, 12779, 12801, 13165, 13166} | |
local racequests = {12742, 12748, 12744, 12743, 12750, 12739, 12745, 12749, -1, 12747, 12746} | |
local function dkskip(event, player, message, Type, lang) | |
if (message:lower() == "dk") then | |
selectTarget = player:GetSelection() | |
if (not selectTarget) then | |
return false | |
end | |
targetClass = selectTarget:GetClass() | |
if targetClass ~= 6 then | |
return false | |
end | |
targetRace = selectTarget:GetRace() | |
targetTeam = selectTarget:GetTeam() | |
if targetTeam == 0 then | |
-- alliance end quest | |
quests[33] = 13188 | |
else | |
-- horde | |
quests[33] = 13189 | |
end | |
quests[23] = racequests[targetRace] | |
for _, i in ipairs(quests) do | |
selectTarget:AddQuest(i) | |
selectTarget:CompleteQuest(i) | |
selectTarget:RewardQuest(i) | |
end | |
selectTarget:AddItem(6948) | |
selectTarget:AddItem(38664) | |
selectTarget:AddItem(39322) | |
selectTarget:AddItem(38632) | |
if selectTarget:GetLevel() < 58 then | |
selectTarget:SetLevel(58) | |
end | |
selectTarget:SaveToDB() | |
if targetTeam == 0 then | |
-- stormwind teleport/bind | |
selectTarget:Teleport(0, -8833.37, 628.62, 94.00, 1.06) | |
selectTarget:SetBindPoint(0, -8866.55, 671.39, 97.90, 5.27) | |
else | |
-- Orgrimmar teleport/bind | |
selectTarget:Teleport(1, 1569.59, -4397.63, 7.70, 0.54) | |
selectTarget:SetBindPoint(1, 1637.62, -4440.22, 15.78, 2.42) | |
end | |
return false | |
end | |
end | |
RegisterPlayerEvent(42, dkskip) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment