/trunk
L.LIVESTOCK_SPELL_RUBYHARE = "Ruby Hare" |
L.LIVESTOCK_SPELL_RUNNINGWILD = "Running Wild" |
L.LIVESTOCK_SPELL_SEALEGS = "Sea Legs" |
L.LIVESTOCK_SPELL_CAMOUFLAGE = "Camouflage" |
L.LIVESTOCK_TOOLTIP_VERY = "very" |
L.LIVESTOCK_TOOLTIP_EXTREMELY = "extremely" |
L.LIVESTOCK_SPELL_RUBYHARE = "Liebre rub\195\173" |
L.LIVESTOCK_SPELL_RUNNINGWILD = "Galopada Salvaje" |
L.LIVESTOCK_SPELL_SEALEGS = "Piernas de mar" |
L.LIVESTOCK_SPELL_CAMOUFLAGE = "Camuflaje" |
L.LIVESTOCK_TOOLTIP_VERY = "muy" |
L.LIVESTOCK_TOOLTIP_EXTREMELY = "extremadamente" |
L.LIVESTOCK_SPELL_TWILIGHTSERPENT = "Serpent du cr\195\169puscule" |
L.LIVESTOCK_SPELL_SAPPHIREOWL = "Chouette de saphir" |
L.LIVESTOCK_SPELL_RUBYHARE = "Li\195\168vre de rubis" |
L.LIVESTOCK_SPELL_CAMOUFLAGE = "Dissimulation" |
L.LIVESTOCK_TOOLTIP_VERY = "tr\195\168s" |
L.LIVESTOCK_TOOLTIP_EXTREMELY = "extr\195\170mement" |
L.LIVESTOCK_SPELL_TWILIGHTSERPENT = "Zwielichtschlange" |
L.LIVESTOCK_SPELL_SAPPHIREOWL = "Saphireule" |
L.LIVESTOCK_SPELL_RUBYHARE = "Rubinhase" |
L.LIVESTOCK_SPELL_CAMOUFLAGE = "Camouflage" |
L.LIVESTOCK_TOOLTIP_VERY = "sehr" |
L.LIVESTOCK_TOOLTIP_EXTREMELY = "extrem" |
L.LIVESTOCK_EQUIPMENT_DONCARLOS = "Don Carlos' ber\195\188hmter Hut" |
L.LIVESTOCK_EQUIPMENT_BLOODSAIL = "Blutsegeladmiralshut" |
end |
LivestockSettings.mountinstealth = 1 - LivestockSettings.mountinstealth |
LivestockComboButton:SetAttribute("mountinstealth", LivestockSettings.mountinstealth) |
LivestockComboButton:SetAttribute("state-smartmap",LivestockComboButton:GetAttribute("state-smartmap")) end) |
if class ~= "MAGE" and class ~= "ROGUE" and class ~= "DRUID" and race ~= "NightElf" then sb3:Disable() end |
if class ~= "MAGE" and class ~= "ROGUE" and class ~= "DRUID" and class ~= "HUNTER" and race ~= "NightElf" then sb3:Disable() end |
local sb4 = Recompense.CreateButtonAndText("LivestockSmartPreferencesFrameToggleCombatForms", smartprefs, 5, -64, "LivestockSmartPreferencesFrameToggleCombatFormsText") |
sb4:SetScript("OnClick", function() |
sbb:SetWidth(145) |
sbb:SetHeight(25) |
sbb:SetPoint("BOTTOM", 0, 15) |
sbb:SetScript("OnClick", function() Recompense.TransitionFromInterfaceOptionsToFrame(LivestockMenuFrame) end) |
L.LIVESTOCK_SPELL_TWILIGHTSERPENT, |
L.LIVESTOCK_SPELL_RUBYHARE, |
L.LIVESTOCK_SPELL_SAPPHIREOWL, |
L.LIVESTOCK_SPELL_CAMOUFLAGE, |
} |
local restrictSummonForThisEquipment = { -- equipment that, when worn, should prevent autosummoning from happening |
L.LIVESTOCK_SPELL_VANISH, |
L.LIVESTOCK_SPELL_CLOAKING, |
L.LIVESTOCK_SPELL_SHADOWMELD, |
L.LIVESTOCK_SPELL_CAMOUFLAGE, |
} |
-- Variable declaration |
elseif event == "UNIT_SPELLCAST_SUCCEEDED" then |
local unit, spell, rank = ... |
if unit == "player" then |
if spell == L.LIVESTOCK_SPELL_STEALTH or spell == L.LIVESTOCK_SPELL_PROWL or spell == L.LIVESTOCK_SPELL_FEIGNDEATH or spell == L.LIVESTOCK_SPELL_INVISIBILITY or spell == L.LIVESTOCK_SPELL_VANISH or spell == L.LIVESTOCK_SPELL_SHADOWMELD then |
if spell == L.LIVESTOCK_SPELL_STEALTH or spell == L.LIVESTOCK_SPELL_PROWL or spell == L.LIVESTOCK_SPELL_FEIGNDEATH or |
spell == L.LIVESTOCK_SPELL_INVISIBILITY or spell == L.LIVESTOCK_SPELL_VANISH or spell == L.LIVESTOCK_SPELL_SHADOWMELD or |
spell == L.LIVESTOCK_SPELL_CAMOUFLAGE then |
if LivestockSettings.dismissonstealth == 1 then |
if LivestockSettings.PVPdismiss == 0 then |
DismissCompanion("CRITTER") |
local race = select(2, UnitRace("player")) |
if class ~= "DRUID" and class ~= "ROGUE" and class ~= "MAGE" and race ~= "NightElf" then |
if class ~= "HUNTER" then |
LivestockPetPreferencesFrameAutoDismissOnStealthText:SetTextColor(0.4, 0.4, 0.4) |
end |
if class ~= "DRUID" and class ~= "ROGUE" and class ~= "MAGE" and class ~= "HUNTER" and race ~= "NightElf" then |
LivestockPetPreferencesFrameAutoDismissOnStealthText:SetTextColor(0.4, 0.4, 0.4) |
LivestockSmartPreferencesFrameMountInStealthText:SetTextColor(0.4, 0.4, 0.4) |
end |
Version 1.5.2 |
- Add support for camouflage |
Version 1.5.1 |
- Added exceptions for swimming turtle mounts |
## Notes: Enables easy random summoning of vanity pets and mounts, including the option of "smart mounting." |
## Author: Recompense - Uldum(US) |
## X-eMail: scott.snowman@gmail.com |
## Version: 1.5.1 |
## Version: 1.5.2 |
## SavedVariablesPerCharacter: LivestockSettings |
LibRecompense\RecompenseTools.lua |