This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- EXAMPLE 1 | |
| local a = 123 | |
| local b = 456 | |
| local c = 789 | |
| local d = c and a or 'missing' | |
| print(d) | |
| -- OUTPUT: 123 | |
| --------------- | |
| -- EXAMPLE 2 | |
| local a = 123 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if not unit then | |
| unit = 'player' | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local UnitIsCasting = function(spell, unit) | |
| unit = unit or 'player' | |
| if not UnitExists(unit) then return end | |
| local spellName, _, _, _, spellStart, spellEnd, _, spellId = UnitCastingInfo(unit) | |
| if not spellName then return end | |
| if spell then | |
| if type(spell) == 'string' then | |
| if spellName == spell then return spellName, spellStart, spellEnd end | |
| elseif type(tonumber(spell)) == 'number' then | |
| if tonumber(spell) == spellId then return spellName, spellStart, spellEnd end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WeakAurasSaved = { | |
| ["displays"] = { | |
| ["existing-display1"] = { | |
| -- sub-table stuff | |
| }, | |
| ["existing-display2"] = { | |
| -- sub-table stuff | |
| }, | |
| ["existing-display3"] = { | |
| -- sub-table stuff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WeakAurasSaved = { | |
| ["displays"] = { | |
| ["B5 BR6"] = { | |
| ["parent"] = "Red rune border", | |
| ["mirror"] = false, | |
| ["untrigger"] = { | |
| ["form"] = 1, | |
| }, | |
| ["regionType"] = "texture", | |
| ["blendMode"] = "BLEND", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function() -- Trigger | |
| return not HasPetSpells() | |
| end | |
| function() -- Untrigger | |
| return HasPetSpells() | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /run StaticPopupDialogs['CONFIRM_PURCHASE_TOKEN_ITEM'].OnShow = function() _,_,_,_,_,d=strsplit('-',UnitGUID('target')or'')if tContains({86777,87200,86779,87201,86778,86776,86683,87203,87202},tonumber(d)) then StaticPopup1Button1:Click() end end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| duLJ4bGiuc9iucWLiuiFIKAuivofIQvbuukVcOOKzHsDluI2ff5xaffggjYXOs1Yak8mcLmnefUgjOTrOIVrrjJdrrohIswhjknpGIICpKY(qjqhebTqcf8qGster0fPOuBKqL(iIsnsus6KKqwjfMjII6MeQANic)eOidLqPokqrrTucf9uiAQurxLIQTIsQVsLYybkQCwGIQElcmxsu0DbQ2lb)LevdwDyqlMe4XqyYO4YqTze6ZivnAQWPj1QbkkvVgrA2i52KKDt0VH0WbYXjuOwoLEoGPJQRtvBNk57Oe04rjX5jK1tIcVNII5JsaDFsO2VSG7cofqcfCkWfqciGemmPKjYYKzXs3fhwsVcrGGmbgyXsaPkbKmcizeCkGKvatejcG5cIllvOzzwIfzImehYImadfsMuYSelXrGiljdYqaPiWerIayUajadYqjtIdzsSuizjwMLcfqIzfqqjdMrqmiGeatruSr1sUasXayYPtWK4jZMT46uaPMrajRQP3HkONQzzRivGWwih12IhAvtpkPnlBXdTK2OeBW6aIc0KTf1dsajKHrZ1OsiLY5wn90JTacof4ciLEvoTA6PhBbeiH7ciPqHmcofq6bWkhbfeaqqbciTqeybNciv5P4AbNcCbUasoKcl5cofqQYtX1cof4cCbKwukSGtbKQ8uCTGtbUaxGlG0IPxJkDkcewaj9wupibUasecofiH7cofqIWdWrv5eZkCZbXa5ybKEqmqowajebxJkbeCkGeGdTCbNcizqvocpahvLGceqIWdWrvjGKLSSbtKOrYQGj3YGcfbKQ1mnTwnRQP3HkONs8ql9OKsOfbuIDZc5ouNbfkcivd9wiqtRntgD3Tz0mnT2DfkoGbyOq2TeQc30AwumyHsgmdlYUvaeaRCgOki94MwBwkujLuIDZavbPhRCTeHfdbWnTwjtGHcz3mAaouIaRClMXJGRrLnTwjtkuXSZO7UnJMPP1UloKHskrgSBjufUP1SOyWcLmygLTjPgaefe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dy1GlcGiQQ0JOiHUeru6tOsgfbCkuPwfru8keIywev3IGSlsv)cPkfddbDmIsldPQEgbvnnQQ4Aiu2gcOVrrW4OiPZHqvRJiQMhcrQ6EOQ2hsvQgifjOoivPfsQOhsKyIiKUisvSrKk1hjOYiPi1jjISsjAMue6Mia7Ki8tKkzOiu5OiePYsri8uszQuuxLQQ2kbLVIanwKQu6SuKaVLi1CriQ7suSxH(lPsdgoSOfJuXJPWKr0LLAZiLplbJwcDAkTAksqEnbA2e62OIDtYVrYWrvoocrklNkpxsthLRly7ufFNIenEIKopvL1JuL8EkIMpcrY9jvy)QJYgnh1YO5ilQvJA0xpH6jE9MGqYsGcvGyggMk9BHpQXjQrg1iJMJAsLUOrR2SiDleXiEcKafEcjEtG4jMPsFHNaPpHrAc5h)e1APYlvKnzuNrTAlsJ4OSkwutN0LzZ0fbyI0dDBoQLKKwMLsLI6YC2cfAxnAoYIAUUGLsz2hVoQvWrf4f18rx0OvBwKUfIajKq)yQesGeibkRFeEI3pep9J0eYpeyutf4y2zluOD1OeYg1ePsYO5OwO26AiM1AKornxA0rZrnobrMnAoYISOglfBflAoQXjiYSrZrwKf1CuID0CuJtqKzJMJSilYIAwYOMPTfkYjdIdHgsIdV2Lmk3GashxfOeCi0WRZiv9GGUKvCiCoQaVilQzenhLq2O5OgPTYtm9zULklQjf)jcIGEKWCuZAqPI6mQrJsXOBXSqnQrx(B2eLKe0tuJ5Sfk0UO5OwLLgcQRvrJkQvzPHGrnvYP11QOrf14jM(AxnQfuwwuRGJkWlQr20jqJMzF86OMP9seeaD7Vjg1ujNUgnhLq2OMoDPISjJsq)OMoDPISjL8brTvEIPrZPvSOecFutNUur2Ks(GUPCmlnRrYSuQOe(jQPtxQiBsjFqenprRrYSuQOeelQjSwrXzOXtmRfJSOwbhvGNUgubfJU41UKr5IA07rTcoQapDnOckwuJWOMrOYO4OBrlz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function() | |
| PetBattleFrame.BottomFrame.SwitchPetButton:SetScale(2,2) | |
| return false | |
| end |