Skip to content

Commit

Permalink
add LearnProfession step option command
Browse files Browse the repository at this point in the history
  • Loading branch information
Neogeekmo committed May 8, 2024
1 parent 4264dde commit d6f7b01
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function AprRC.command:SlashCmd(input)
elseif inputText == "help" or inputText == "h" then
print(L_APR["COMMAND_LIST"] .. ":")
print("|cffeda55f/aprrc achievement |r- " .. "HasAchievement")
print("|cffeda55f/aprrc addjob |r- " .. "LearnProfession")
print("|cffeda55f/aprrc button, btn |r- " .. "Button")
print("|cffeda55f/aprrc class |r- " .. "Class")
print("|cffeda55f/aprrc donedb |r- " .. "DoneDB")
Expand Down Expand Up @@ -66,6 +67,16 @@ function AprRC.command:SlashCmd(input)
AprRC:NewStep(step)
print("|cff00bfffWaypoint|r Added")
return
elseif inputText == "addjob" then
AprRC.questionDialog:CreateEditBoxPopupWithCallback("Profession spellID", function(text)
local step = {
LearnProfession = tonumber(text, 10)
}
AprRC:SetStepCoord(step)
AprRC:NewStep(step)
print("|cff00bfffLearnProfession|r Added")
end)
return
elseif inputText == "range" then
AprRC.questionDialog:CreateEditBoxPopupWithCallback("Range (number)", function(text)
local currentStep = AprRC:GetLastStep()
Expand Down

0 comments on commit d6f7b01

Please sign in to comment.