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
| -------- Macro 1 ------------ | |
| /run for b = 0,4 do for s = 1, GetContainerNumSlots(b) do local l = GetContainerItemLink(b, s) if not l then BuyMerchantItem(26) end end end | |
| -------- Macro 2 ------------ NOT TESTED YET ------- | |
| /run for b = 0,4 do for s = 1, GetContainerNumSlots(b) do local l = GetContainerItemLink(b, s) if not l then C_Timer.After(0.1, function() BuyMerchantItem(26)) end 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
| /run for b = 0,4 do for s = 1, GetContainerNumSlots(b) do local l = GetContainerItemLink(b, s) if l then local n = GetItemInfo(l) if n == "Bloody Gold Purse" then UseContainerItem(b, s) end end 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
| #!python3 | |
| import sys | |
| import random | |
| from PIL import ImageFont | |
| import itertools | |
| NONE = 0 | |
| NORM = 1 | |
| REV = 2 |
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
| import urllib2 | |
| import json | |
| import time | |
| import threading | |
| import socket | |
| import string | |
| import os | |
| import random | |
| import traceback | |
| import sys |
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
| from discord.ext import commands | |
| from os import listdir | |
| from os.path import isfile, join | |
| description = '''An example bot to showcase the discord.ext.commands extension | |
| module. | |
| There are a number of utility commands being showcased here.''' |
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
| import discord | |
| from discord.ext import commands | |
| import sys, traceback | |
| """This is a multi file example showcasing many features of the command extension and the use of cogs. | |
| These are examples only and are not intended to be used as a fully functioning bot. Rather they should give you a basic | |
| understanding and platform for creating your own bot. | |
| These examples make use of Python 3.6.2 and the rewrite version on the lib. |
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 dropData = {} | |
| local dropdown = CreateFrame("Button", "m4xArtifactDropDown") | |
| dropdown.displayMode = "MENU" | |
| dropdown.initialize = function(self, dropLevel) | |
| if not dropLevel then return end | |
| wipe(dropData) |
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 function FormatValue(arg) | |
| local formatedValue = "|cff00ff00%.2f|r|cffff7f00%s|r" | |
| if arg >= 1e9 then | |
| return string.format(formatedValue, arg / 1e9, "B") | |
| elseif arg >= 1e6 then | |
| return string.format(formatedValue, arg / 1e6, "M") | |
| elseif arg >= 1e3 then | |
| return string.format(formatedValue, arg / 1e3, "K") | |
| else | |
| return string.format(formatedValue, arg, "") |
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
| ----- Macro 1 ---- | |
| /run local v=0 for b=0,4 do for s=1,GetContainerNumSlots(b) do local _,c,_,_,_,_,l=GetContainerItemInfo(b,s) if c and c>0 then local p=TSMAPI:GetItemValue(l,"DBMarket") or 0 if p>0 then v=v+p*c end end end end print("Total Value: ",v/10000) | |
| ------------------ |
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
| -------------------------------------------- Starts on line 9919 of v7.3.31 ------------------------------------------------- | |
| if not LeaPlusLC.grid then | |
| LeaPlusLC.grid = CreateFrame('FRAME') | |
| LeaPlusLC.grid:Hide() | |
| LeaPlusLC.grid:SetAllPoints(UIParent) | |
| local w, h = GetScreenWidth() * UIParent:GetEffectiveScale(), GetScreenHeight() * UIParent:GetEffectiveScale() | |
| local ratio = w / h | |
| local sqsize = w / 30 | |
| local wline = floor(sqsize - (sqsize % 2)) | |
| local hline = floor(sqsize / ratio - ((sqsize / ratio) % 2)) |
NewerOlder