/trunk
## Title: Livestock |
## Notes: Enables easy random summoning of vanity pets and mounts, including the option of "smart mounting" |
## Author: Kharthus - Deathwing(US) |
## Version: 3.2.7 |
## Version: 3.2.8 |
## SavedVariablesPerCharacter: LivestockSettings |
LibRecompense\RecompenseTools.lua |
Livestock.UpdateZoneTexts() |
end |
return |
elseif (not item:match("%[(.+)%]") and not fromDrag) then |
elseif (not item:match("|h%[(.+)%]|h") and not fromDrag) then |
print(L.LIVESTOCK_INTERFACE_USEITEMLINK) |
return |
end |
if not fromDrag then |
item = item:match("%[(.+)%]") |
item = item:match("|h%[(.+)%]|h") |
end |
if not (LivestockSettings.Critters[item] or LivestockSettings.Mounts[item]) then |
print(format(L.LIVESTOCK_INTERFACE_HAVENOTLEARNED, item)) |
LivestockSettings.Party[item:match("no(.+)") == "pet" and "critter" or "mount"] = nil |
end |
return |
elseif (not item:match("%[(.+)%]") and not fromDrag) then |
elseif (not item:match("|h%[(.+)%]|h") and not fromDrag) then |
print(L.LIVESTOCK_INTERFACE_USEITEMLINKPARTY) |
return |
end |
if not fromDrag then |
item = item:match("%[(.+)%]") |
item = item:match("|h%[(.+)%]|h") |
end |
if not (LivestockSettings.Critters[item] or LivestockSettings.Mounts[item]) then |
print(format(L.LIVESTOCK_INTERFACE_HAVENOTLEARNED, item)) |
Version 3.2.8 |
- Fixed item link parsing for zone/subzone/party commands. |
Version 3.2.7 |
- Initial dragonriding support. |