WoWInterface SVN MountRandomMount

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 28 to Rev 29
    Reverse comparison

Rev 28 → Rev 29

script-import.php
62,6 → 62,7
$landFlyingMount[130092]=3;//Red Flying Cloud
$landFlyingMount[121838]=3;//Ruby Panther
$landFlyingMount[121836]=3;//Sapphire Panther
$landFlyingMount[134359]=3;//Sky Golem
 
foreach($URLs as $URL => $type){
$page = file_get_contents($URL);
MountRandomMount.lua
106,6 → 106,12
end
 
function MountRandomMount:Flying(druid)
--get breath status
local timer, initial, maxvalue, scale = GetMirrorTimerInfo(2)
if timer == "BREATH" and scale == -1 then
return false
end
 
if druid then
if GetShapeshiftFormID() == 27 then
return true
MountRandomMount.toc
2,7 → 2,7
## Title: MountRandomMount
## Notes: Random mount addon.
## Author: Dardack, Tomate
## Version: 5.4
## Version: 5.4b
## SavedVariables: MountRandomMount_MountDataList, MountRandomMount_MountDataListVersion
## SavedVariablesPerCharacter: MountRandomMount_SavedTable
## X-Embeds: Ace3
MountRandomMount_GUI.lua
21,10 → 21,9
local optionTable = {}
local allmounts = {}
local allMountsOrder = {}
local mountcount = GetNumCompanions("MOUNT")
local EnableMounts = {}
local sources, mounts, k, v, j
 
j = 1
for sources, mounts in pairs(MountRandomMount_MountDataList["ground"]) do
local optionTableMount = {}
table.foreach(mounts, function(k,v)
67,6 → 66,12
}
table.insert(allMountsOrder, spellName..v)
allmounts[spellName..v] = optionTableMount[spellName..v]
 
for iSaved, vSaved in pairs(_G['MountRandomMount_SavedTable']['ground']) do
if vSaved == v then
EnableMounts[spellName..v] = optionTableMount[spellName..v]
end
end
else
--print('The mount '..v..' does not exist')
end
74,7 → 79,7
if i ~= 0 then
optionTable[sources] = {
name = L[sources],
order = j,
order = 2,
type = "group",
handler = MountRandomMount,
childGroups = "tab",
92,13 → 97,23
 
optionTable['All'] = {
name = L['All'],
order = 0,
order = 1,
type = "group",
handler = MountRandomMount,
childGroups = "tab",
args = allmounts
}
 
optionTable['Enabled'] = {
name = L['Enabled'],
desc = L['This panel is only updated when you reload the UI or at loggin.'],
order = 0,
type = "group",
handler = _G['MountRandomMount'],
childGroups = "tab",
args = EnableMounts
}
 
return {
name = L["Ground Mount"],
handler = MountRandomMount,
112,8 → 127,9
local optionTable = {}
local allmounts = {}
local allMountsOrder = {}
local sources, mounts, k, v, j
j = 1
local EnableMounts = {}
local sources, mounts, k, v, j, i
 
for sources, mounts in pairs(MountRandomMount_MountDataList["flying"]) do
local optionTableMount = {}
table.foreach(mounts, function(k,v)
124,7 → 140,7
name = spellName,
type = "toggle",
hidden = function()
if playerMountArray[v] == nil then
if _G['playerMountArray'][v] == nil then
return true
else
return false
132,21 → 148,21
end,
set = function(info,val)
local insert = true
for iSaved, vSaved in pairs(MountRandomMount_SavedTable['flying']) do
for iSaved, vSaved in pairs(_G['MountRandomMount_SavedTable']['flying']) do
if vSaved == v then
print(spellName.." "..L['MRMFlyingRemoved'])
table.remove(MountRandomMount_SavedTable['flying'], iSaved)
table.remove(_G['MountRandomMount_SavedTable']['flying'], iSaved)
insert = false
break
end
end
if insert then
print(spellName.." "..L['MRMFlyingAdded'])
table.insert(MountRandomMount_SavedTable['flying'], v)
table.insert(_G['MountRandomMount_SavedTable']['flying'], v)
end
end,
get = function(info)
for iSaved, vSaved in pairs(MountRandomMount_SavedTable['flying']) do
for iSaved, vSaved in pairs(_G['MountRandomMount_SavedTable']['flying']) do
if vSaved == v then
return true
end
156,6 → 172,11
}
table.insert(allMountsOrder, spellName..v)
allmounts[spellName..v] = optionTableMount[spellName..v]
for iSaved, vSaved in pairs(_G['MountRandomMount_SavedTable']['flying']) do
if vSaved == v then
EnableMounts[spellName..v] = optionTableMount[spellName..v]
end
end
else
--print('The mount '..v..' does not exist')
end
163,9 → 184,9
if i ~= 0 then
optionTable[sources] = {
name = L[sources],
order = j,
order = 2,
type = "group",
handler = MountRandomMount,
handler = _G['MountRandomMount'],
childGroups = "tab",
args = optionTableMount
}
181,16 → 202,26
 
optionTable['All'] = {
name = L['All'],
order = 0,
order = 1,
type = "group",
handler = MountRandomMount,
handler = _G['MountRandomMount'],
childGroups = "tab",
args = allmounts
}
 
optionTable['Enabled'] = {
name = L['Enabled'],
desc = L['This panel is only updated when you reload the UI or at loggin.'],
order = 0,
type = "group",
handler = _G['MountRandomMount'],
childGroups = "tab",
args = EnableMounts
}
 
return {
name = L["Flying Mount"],
handler = MountRandomMount,
handler = _G['MountRandomMount'],
type = "group",
args = optionTable
}
210,23 → 241,18
playerMountArray[creatureSpellID] = creatureName
end
 
 
_G['MountRandomMount_SeaTurtleHave'] = true
if playerMountArray[98718] ~= nil then
_G['MountRandomMount_SeaTurtleID'] = 98718
_G['MountRandomMount_SeaTurtleHave'] = true
elseif playerMountArray[75207] ~= nil then
_G['MountRandomMount_SeaTurtleID'] = 75207
_G['MountRandomMount_SeaTurtleHave'] = true
elseif playerMountArray[64731] ~= nil then
_G['MountRandomMount_SeaTurtleID'] = 64731
else
_G['MountRandomMount_SeaTurtleHave'] = false
end
 
if playerMountArray[98718] ~= nil then
if playerMountArray[75207] ~= nil then
_G['MountRandomMount_SeaHorseID'] = 98718
_G['MountRandomMount_SeaHorseHave'] = true
elseif MountRandomMount_SeaTurtleHave then
_G['MountRandomMount_SeaHorseID'] = MountRandomMount_SeaTurtleID
_G['MountRandomMount_SeaHorseHave'] = true
else
_G['MountRandomMount_SeaHorseHave'] = false
end
MountRandomMount_MountListData.lua
1,6 → 1,6
function MountRandomMount:MountDataListFill()
if ((MountRandomMount_MountDataList == nil) or (MountRandomMount_MountDataListVersion ~= "5.4.0")) then
MountRandomMount_MountDataListVersion = "5.4.0";
if ((MountRandomMount_MountDataList == nil) or (MountRandomMount_MountDataListVersion ~= "5.4.1")) then
MountRandomMount_MountDataListVersion = "5.4.1";
MountRandomMount_MountDataList= {
["flying"] = {
["source-achv"] = {
466,6 → 466,7
75596, --Frosty Flying Carpet
120043, --Jeweled Onyx Panther
61309, --Magnificent Flying Carpet
134359, --Sky Golem
60424, --Mekgineer's Chopper
44151, --Turbo-Charged Flying Machine
92155, --Ultramarine Qiraji Battle Tank
Locale/enUS.lua
77,4 → 77,6
L['source-tcg'] = "Trading-Card-Game"
L['source-vendor'] = "Venders"
L["Flying Mount"] = "Flying Mount"
L["Ground Mount"] = "Ground Mount"
\ No newline at end of file +L["Ground Mount"] = "Ground Mount" +L["Enabled"] = "> Enabled <" +L['This panel is only updated when you reload the UI or at loggin.'] = "This panel is only updated when you reload the UI or at loggin." \ No newline at end of file
Locale/zhTW.lua
79,4 → 79,6
L['source-tcg'] = "Trading-Card-Game"
L['source-vendor'] = "Venders"
L["Flying Mount"] = "Flying Mount"
L["Ground Mount"] = "Ground Mount"
\ No newline at end of file +L["Ground Mount"] = "Ground Mount" +L["Enabled"] = "> Enabled <" +L['This panel is only updated when you reload the UI or at loggin.'] = "This panel is only updated when you reload the UI or at loggin." \ No newline at end of file
Locale/ruRU.lua
77,4 → 77,6
L['source-tcg'] = "Trading-Card-Game"
L['source-vendor'] = "Venders"
L["Flying Mount"] = "Flying Mount"
L["Ground Mount"] = "Ground Mount"
\ No newline at end of file +L["Ground Mount"] = "Ground Mount" +L["Enabled"] = "> Enabled <" +L['This panel is only updated when you reload the UI or at loggin.'] = "This panel is only updated when you reload the UI or at loggin." \ No newline at end of file
Locale/frFR.lua
69,7 → 69,7
L['source-event'] = "Ev\195\169nement"
L['source-faction'] = "Faction"
L['source-none'] = "Inobtenable"
L['source-other'] = "Ature"
L['source-other'] = "Autre"
L['source-prof'] = "Profession"
L['source-promo'] = "Promotionel"
L['source-quest'] = "Qu\195\170tes"
77,4 → 77,6
L['source-tcg'] = "Trading-Card-Game"
L['source-vendor'] = "Vendeur"
L["Flying Mount"] = "Monture volante"
L["Ground Mount"] = "Monture terrestre"
\ No newline at end of file +L["Ground Mount"] = "Monture terrestre" +L["Enabled"] = "> Utilis\195\169 <" +L['This panel is only updated when you reload the UI or at loggin.'] = "Ce panneau n'est mis \195\160 jour qu'au rechargement de l'interface ou \195\160 la connection." \ No newline at end of file
Locale/deDE.lua
77,4 → 77,6
L['source-tcg'] = "Trading-Card-Game"
L['source-vendor'] = "Venders"
L["Flying Mount"] = "Flying Mount"
L["Ground Mount"] = "Ground Mount"
\ No newline at end of file +L["Ground Mount"] = "Ground Mount" +L["Enabled"] = "> Enabled <" +L['This panel is only updated when you reload the UI or at loggin.'] = "This panel is only updated when you reload the UI or at loggin." \ No newline at end of file