Skip to content

Commit

Permalink
Move VehicleExit and WarMode to manually command
Browse files Browse the repository at this point in the history
  • Loading branch information
Neogeekmo committed Apr 15, 2024
1 parent 9394ecb commit a13ec4a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 14 deletions.
20 changes: 20 additions & 0 deletions Commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion Event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
29 changes: 16 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,25 +57,28 @@
<p style="text-align: left;"><span style="font-size: 18px;"> <span style="font-family: arial;"> Using the <em> <strong>/aprrc</strong> </em> prefix, the below commands are available. </span> <span style="font-family: arial;"> <br /> </span> </span> <span style="font-family: arial; font-size: 18px;"> <span style="font-size: 14px;"> <em> <strong>Note:</strong> These commands are displayed with their shorthand versions, variations may be omitted from this list.</em></span></span></p>
<ul>
<li><span style="font-family: arial; font-size: 18px;"><span style="text-decoration: underline;"><em><strong><span style="font-size: 14px;">/aprrc help, h</span></strong> </em> </span><span style="font-size: 14px;"> - Displays the <em>(up-to-date)</em> commands in-game.<span style="font-family: arial;"><span style="font-family: arial;"><br /> </span> </span> </span></span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc range&nbsp;</strong></em>- Add Range step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc waypoint&nbsp;</strong></em>- Add Waypoint step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc pickupdb</strong>&nbsp;</em>- Add PickUpDB step option.</span></li>
<li><span style="font-size: 14px;"><span style="font-family: arial;"><em><strong>/aprrc qpartdb</strong>&nbsp;</em>- Add QpartDB step option.</span></span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc achievement&nbsp;</strong></em>- Add&nbsp; HasAchievement step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc button, btn&nbsp;</strong></em>- Add Button or SpellButton step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc class&nbsp;</strong></em>- Add Class step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc donedb</strong>&nbsp;</em>- Add DoneDB step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc text, txt</strong>&nbsp;</em>- Add ExtraLineText step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc zonetrigger</strong>&nbsp;</em>- Add ZoneStepTrigger step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc eta&nbsp;</strong></em>- Add ETA step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc noarrow&nbsp;</strong></em>- Add NoArrow step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc export&nbsp;</strong></em>- Open export frame.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc faction&nbsp;</strong></em>- Add Faction step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc race&nbsp;</strong></em>- Add Race step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc fillers, filler&nbsp;</strong></em>- Add Fillers step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc gender&nbsp;</strong></em>- Add Gender step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc class&nbsp;</strong></em>- Add Class step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc grind&nbsp;</strong></em>- Add Grind step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc spelltrigger&nbsp;</strong></em>- Add SpellTrigger step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc button, btn&nbsp;</strong></em>- Add Button or SpellButton step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc fillers, filler&nbsp;</strong></em>- Add Fillers step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc achievement&nbsp;</strong></em>- Add&nbsp; HasAchievement step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc noachievement&nbsp;</strong></em>- Add DontHaveAchievement step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc noarrow&nbsp;</strong></em>- Add NoArrow step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc pickupdb</strong>&nbsp;</em>- Add PickUpDB step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc qpartdb</strong>&nbsp;</em>- Add QpartDB step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc race&nbsp;</strong></em>- Add Race step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc range&nbsp;</strong></em>- Add Range step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc spelltrigger&nbsp;</strong></em>- Add SpellTrigger step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc text, txt</strong>&nbsp;</em>- Add ExtraLineText step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc vehicle&nbsp;</strong></em>- Add VehicleExit step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc warmode&nbsp;</strong></em>- Add WarMode step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc waypoint&nbsp;</strong></em>- Add Waypoint step option.</span></li>
<li><span style="font-family: arial; font-size: 14px;"><em><strong>/aprrc zonetrigger</strong>&nbsp;</em>- Add ZoneStepTrigger step option.</span></li>
</ul>
<p>&nbsp;</p>
<ul>
Expand Down

0 comments on commit a13ec4a

Please sign in to comment.