WoWInterface SVN MountRandomMount

Compare Revisions

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

Rev 27 → Rev 28

trunk/Libs/AceAddon-3.0/AceAddon-3.0.lua
28,9 → 28,9
-- end
-- @class file
-- @name AceAddon-3.0.lua
-- @release $Id: AceAddon-3.0.lua 1036 2011-08-16 22:45:05Z nevcairiel $
-- @release $Id: AceAddon-3.0.lua 1084 2013-04-27 20:14:11Z nevcairiel $
 
local MAJOR, MINOR = "AceAddon-3.0", 11
local MAJOR, MINOR = "AceAddon-3.0", 12
local AceAddon, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
 
if not AceAddon then return end -- No Upgrade needed.
108,6 → 108,16
-- used in the addon metatable
local function addontostring( self ) return self.name end
 
-- Check if the addon is queued for initialization
local function queuedForInitialization(addon)
for i = 1, #AceAddon.initializequeue do
if AceAddon.initializequeue[i] == addon then
return true
end
end
return false
end
 
--- Create a new AceAddon-3.0 addon.
-- Any libraries you specified will be embeded, and the addon will be scheduled for
-- its OnInitialize and OnEnable callbacks.
314,7 → 324,12
-- MyModule:Enable()
function Enable(self)
self:SetEnabledState(true)
return AceAddon:EnableAddon(self)
 
-- nevcairiel 2013-04-27: don't enable an addon/module if its queued for init still
-- it'll be enabled after the init process
if not queuedForInitialization(self) then
return AceAddon:EnableAddon(self)
end
end
 
--- Disables the Addon, if possible, return true or false depending on success.
trunk/MountRandomMount.toc
1,8 → 1,8
## Interface: 50300
## Interface: 50400
## Title: MountRandomMount
## Notes: Random mount addon.
## Author: Dardack, Tomate
## Version: 5.3
## Version: 5.4
## SavedVariables: MountRandomMount_MountDataList, MountRandomMount_MountDataListVersion
## SavedVariablesPerCharacter: MountRandomMount_SavedTable
## X-Embeds: Ace3
trunk/MountRandomMount_MountListData.lua
1,6 → 1,6
function MountRandomMount:MountDataListFill()
if ((MountRandomMount_MountDataList == nil) or (MountRandomMount_MountDataListVersion ~= "5.3.0")) then
MountRandomMount_MountDataListVersion = "5.3.0";
if ((MountRandomMount_MountDataList == nil) or (MountRandomMount_MountDataListVersion ~= "5.4.0")) then
MountRandomMount_MountDataListVersion = "5.4.0";
MountRandomMount_MountDataList= {
["flying"] = {
["source-achv"] = {
21,6 → 21,7
130985, --Pandaren Kite
59961, --Red Proto-Drake
63963, --Rusted Proto-Drake
148392, --Spawn of Galakras
124408, --Thundering Jade Cloud Serpent
107844, --Twilight Harbinger
60024, --Violet Proto-Drake
69,24 → 70,23
["source-other"] = {
139595, --Armored Bloodwing
127170, --Astral Cloud Serpent
124550, --Cataclysmic Gladiator's Twilight Drake
102514, --Corrupted Hippogryph
142878, --Enchanted Fey Dragon
113120, --Feldrake
136505, --Ghastly Charger
61294, --Green Proto-Drake
148619, --Grievous Gladiator's Cloud Serpent
142073, --Hearthsteed
127169, --Heavenly Azure Cloud Serpent
127164, --Heavenly Golden Cloud Serpent
127165, --Heavenly Jade Cloud Serpent
127158, --Heavenly Onyx Cloud Serpent
124659, --Imperial Quilen
139407, --Malevolent Gladiator's Cloud Serpent
101821, --Ruthless Gladiator's Twilight Drake
148620, --Prideful Gladiator's Cloud Serpent
107516, --Spectral Gryphon
147595, --Stormcrow
134573, --Swift Windsteed
139442, --Thundering Cobalt Cloud Serpent
148476, --Thundering Onyx Cloud Serpent
107203, --Tyrael's Charger
148618, --Tyrannical Gladiator's Cloud Serpent
75973, --X-53 Touring Rocket
107517, --Spectral Wind Rider
},
141,15 → 141,12
110051, --Heart of the Aspects
98727, --Winged Guardian
},
["source-quest"] = {
136163, --Grand Gryphon
127154, --Onyx Cloud Serpent
136164, --Grand Wyvern
},
["source-prof"] = {
75596, --Frosty Flying Carpet
120043, --Jeweled Onyx Panther
61309, --Magnificent Flying Carpet
93326, --Sandstone Drake
134359, --Sky Claw
134359, --Sky Golem
44151, --Turbo-Charged Flying Machine
126507, --Depleted-Kyparium Rocket
61451, --Flying Carpet
160,12 → 157,15
121836, --Sapphire Panther
121839, --Sunstone Panther
},
["source-quest"] = {
136163, --Grand Gryphon
127154, --Onyx Cloud Serpent
136164, --Grand Wyvern
},
["source-promo"] = {
121820, --Obsidian Nightwing
},
["source-none"] = {
61309, --Magnificent Flying Carpet
75596, --Frosty Flying Carpet
32345, --Peep the Phoenix Mount
37015, --Swift Nether Drake
44744, --Merciless Nether Drake
179,44 → 179,15
71810, --Wrathful Gladiator's Frost Wyrm
97501, --Green Fire Hawk
101282, --Vicious Gladiator's Twilight Drake
101821, --Ruthless Gladiator's Twilight Drake
124550, --Cataclysmic Gladiator's Twilight Drake
127164, --Heavenly Golden Cloud Serpent
127165, --Heavenly Jade Cloud Serpent
127169, --Heavenly Azure Cloud Serpent
139407, --Malevolent Gladiator's Cloud Serpent
},
},
["ground"] = {
["source-other"] = {
127180, --Albino Riding Crane
138642, --Black Primal Raptor
127209, --Black Riding Yak
127213, --Brown Riding Yak
138423, --Cobalt Primordial Direhorn
102514, --Corrupted Hippogryph
123160, --Crimson Riding Crane
127271, --Crimson Water Strider
127278, --Golden Water Strider
138643, --Green Primal Raptor
124659, --Imperial Quilen
127274, --Jade Water Strider
127178, --Jungle Riding Crane
127272, --Orange Water Strider
138641, --Red Primal Raptor
130965, --Son of Galleon
101573, --Swift Shorestrider
134573, --Swift Windsteed
107203, --Tyrael's Charger
54753, --White Polar Bear
102488, --White Riding Camel
123182, --White Riding Yak
75973, --X-53 Touring Rocket
23214, --Charger
23161, --Dreadsteed
73629, --Exarch's Elekk
5784, --Felsteed
73630, --Great Exarch's Elekk
69826, --Great Sunwalker Kodo
69820, --Sunwalker Kodo
34767, --Thalassian Charger
34769, --Thalassian Warhorse
13819, --Warhorse
},
["source-drop"] = {
98204, --Amani Battle Bear
138424, --Amber Primordial Direhorn
430,6 → 401,28
10799, --Violet Raptor
64657, --White Kodo
},
["source-other"] = {
148428, --Ashhide Mushan Beast
138642, --Black Primal Raptor
138423, --Cobalt Primordial Direhorn
102514, --Corrupted Hippogryph
138643, --Green Primal Raptor
124659, --Imperial Quilen
148417, --Kor'kron Juggernaut
138641, --Red Primal Raptor
130965, --Son of Galleon
68057, --Swift Alliance Steed
24242, --Swift Razzashi Raptor
101573, --Swift Shorestrider
134573, --Swift Windsteed
107203, --Tyrael's Charger
146615, --Vicious Warsaber
54753, --White Polar Bear
102488, --White Riding Camel
75973, --X-53 Touring Rocket
68056, --Swift Horde Wolf
146622, --Vicious Skeletal Warhorse
},
["source-tcg"] = {
51412, --Big Battle Bear
74856, --Blazing Hippogryph
450,6 → 443,7
60118, --Black War Bear
97359, --Flameward Hippogryph
90621, --Golden King
148396, --Kor'kron War Wolf
100332, --Vicious War Steed
60119, --Black War Bear
93644, --Kor'kron Annihilator
469,7 → 463,9
},
["source-prof"] = {
84751, --Fossilized Raptor
75596, --Frosty Flying Carpet
120043, --Jeweled Onyx Panther
61309, --Magnificent Flying Carpet
60424, --Mekgineer's Chopper
44151, --Turbo-Charged Flying Machine
92155, --Ultramarine Qiraji Battle Tank
485,6 → 481,8
121820, --Obsidian Nightwing
},
["source-none"] = {
5784, --Felsteed
13819, --Summon Warhorse
15779, --White Mechanostrider Mod B
16055, --Black Nightsaber
16056, --Ancient Frostsaber
499,9 → 497,12
17461, --Black Ram
18991, --Green Kodo
18992, --Teal Kodo
24242, --Swift Razzashi Raptor
23161, --Dreadsteed
23214, --Summon Charger
24252, --Swift Zulian Tiger
26656, --Black Qiraji Battle Tank
34767, --Summon Thalassian Charger
34769, --Summon Thalassian Warhorse
43688, --Amani War Bear
43899, --Brewfest Ram
48778, --Acherus Deathcharger
511,11 → 512,23
64656, --Blue Skeletal Warhorse
66906, --Argent Charger
66907, --Argent Warhorse
68056, --Swift Horde Wolf
68057, --Swift Alliance Steed
68187, --Crusader's White Warhorse
68188, --Crusader's Black Warhorse
69820, --Summon Sunwalker Kodo
69826, --Summon Great Sunwalker Kodo
73629, --Summon Exarch's Elekk
73630, --Summon Great Exarch's Elekk
89520, --Goblin Mini Hotrod
123160, --Crimson Riding Crane
123182, --White Riding Yak
127178, --Jungle Riding Crane
127180, --Albino Riding Crane
127209, --Black Riding Yak
127213, --Brown Riding Yak
127271, --Crimson Water Strider
127272, --Orange Water Strider
127274, --Jade Water Strider
127278, --Golden Water Strider
},
},
["aquatic"] = {
trunk/script-import.php
69,9 → 69,11
$page = str_replace(array("\r\n", "\n", "\r"), '', $page);
 
 
$pos = strpos($page, '<div id="lv-spells" class="listview">');
$pos = strpos($page, '" class="listview">');
$wokingstring = substr($page, $pos);
$wokingstring = str_replace('<div id="lv-spells" class="listview"></div><script type="text/javascript">//<![CDATA[var _ = {};$.extend(true, g_items, _);_ = g_items;var _ = {};', '', $wokingstring);
$pos = strpos($page, '_ = g_items;var _ = {};');
$wokingstring = substr($page, $pos);
$wokingstring = str_replace('_ = g_items;var _ = {};', '', $wokingstring);
 
$pos = strpos($wokingstring, '_ = g_spells;');
$wokingstring = substr($wokingstring, 0, $pos);
93,6 → 95,7
if($mount[0] == 30174){//Riding Turtle wirdly taged as flying one
$currentType = 1;
}
 
$completearray[$currentType][$mount[0]] = str_replace('\\','',$mount[1]);
}