From a13ec4aa7f201146b99213539c5fb2538dc6d8e5 Mon Sep 17 00:00:00 2001 From: Aldric Ducreux Date: Tue, 16 Apr 2024 00:36:31 +0200 Subject: [PATCH] Move VehicleExit and WarMode to manually command --- Commands.lua | 20 ++++++++++++++++++++ Event.lua | 2 +- README.md | 29 ++++++++++++++++------------- 3 files changed, 37 insertions(+), 14 deletions(-) diff --git a/Commands.lua b/Commands.lua index 469e88b..5d3ac10 100644 --- a/Commands.lua +++ b/Commands.lua @@ -49,6 +49,8 @@ function AprRC.command:SlashCmd(input) print("|cffeda55f/aprrc range |r- " .. "Range") print("|cffeda55f/aprrc spelltrigger |r- " .. "SpellTrigger") print("|cffeda55f/aprrc text, txt |r- " .. "ExtraLineText") + print("|cffeda55f/aprrc vehicle |r- " .. "VehicleExit") + print("|cffeda55f/aprrc warmode |r- " .. "WarMode") print("|cffeda55f/aprrc waypoint |r- " .. "Waypoint") print("|cffeda55f/aprrc zonetrigger |r- " .. "ZoneStepTrigger") return @@ -208,6 +210,24 @@ function AprRC.command:SlashCmd(input) print("|cff00bfffDontHaveAchievement - " .. tonumber(text, 10) .. "|r Added") end) return + elseif inputText == "vehicle" then + if not AprRC:HasStepOption("VehicleExit") then + local currentStep = AprRC:GetLastStep() + currentStep["VehicleExit"] = 1 + print("|cff00bfffDVehicleExit|r Added") + return + end + print("|cff00bfffVehicleExit|r already exist on this step") + return + elseif inputText == "warmode" then + if not AprRC:HasStepOption("WarMode") then + local step = { WarMode = AprRC:FindClosestIncompleteQuest() } + AprRC:NewStep(step) + print("|cff00bfffWarMode|r Added") + return + end + print("|cff00bfffWarMode|r already exist on this step") + return elseif inputText == "save" then if AprRCData.CurrentRoute.name ~= "" then local step = { ZoneDoneSave = 1 } diff --git a/Event.lua b/Event.lua index 6bc1e7f..2ad0796 100644 --- a/Event.lua +++ b/Event.lua @@ -21,7 +21,7 @@ local events = { spell = "UNIT_SPELLCAST_SUCCEEDED", raidIcon = "RAID_TARGET_UPDATE", -- warMode = "WAR_MODE_STATUS_UPDATE", -- add option - vehicle = { "UNIT_ENTERING_VEHICLE", "UNIT_EXITING_VEHICLE" }, + -- vehicle = { "UNIT_ENTERING_VEHICLE", "UNIT_EXITING_VEHICLE" }, pet = { "PET_BATTLE_CLOSE", "PET_BATTLE_OPENING_START" }, emote = "CHAT_MSG_TEXT_EMOTE", taxi = { "TAXIMAP_OPENED", "TAXIMAP_CLOSED" }, diff --git a/README.md b/README.md index df8f174..4c6554d 100644 --- a/README.md +++ b/README.md @@ -57,25 +57,28 @@

Using the /aprrc prefix, the below commands are available.
Note: These commands are displayed with their shorthand versions, variations may be omitted from this list.