Entering an Open Guild Castle Macro
Quoted
Step 1) Change # to the pet slot of the pet you want to feed.
![]()
Source code
1 /script for i = 1, 99, 1 do FeedPet(#) end
Step 2) Open the Pet Menu and Click on the Feed Button.
Step 3) Select the Food you want to eat.
Step 4) Click on the Macro and watch your pet gobble an entire stack within 1 second.
Greatly speeds up the process of feeding your pet especially when you want to level it up in a slightly cheaper fashion.
Getting the ID of a Title
Quoted
Step 1) Change XXX to the guild of the castle you would like to join.
![]()
Source code
1/script GuildHouses_VisitHouseRequest("XXX")
Step 2) Make sure you go to the Guild Manager and select the "Look Up Guild Information" button.
Step 3) Click the macro and you will join the Guild Castle.
Saves you from searching through the list of 5billion guilds to join the Guild Castle.
Swap Title Macro
Quoted
Step 1) Select the title you would like to get the ID of.
![]()
Source code
1 /run ChatFrame1:AddMessage(GetCurrentTitle())
Step 2) Click on the macro and it will display it's ID number in chat.
Simple Swap Equipment & Return Pet Macro
Quoted
Step 1) Use the above macro to get the ID # of the Titles.
![]()
Source code
1 2/run mytitles = {###, ###} /run mytitleindex = mytitleindex or 0 mytitleindex = (mytitleindex + 1) SetTitleRequest(mytitles[mytitleindex % #mytitles + 1])
Step 2) Replace ### with the titles you would like to swap between.
Step 3) You can add more titles to swap between by adding a "," after each title and adding it's ID number.
Step 4) Click on the macro and it will swap between the titles.
3 Title Swap Example:
Macro will swap between the "What are you looking at?" & "Vanguard Field Marshal" & "Storytelling Troupe Helper" titles.
![]()
Source code
1 2/run mytitles = {530467, 530510, 530724} /run mytitleindex = mytitleindex or 0 mytitleindex = (mytitleindex + 1) SetTitleRequest(mytitles[mytitleindex % #mytitles + 1])
Buying Items Macro
Quoted
Step 1) Change the # in ReturnPet() to the slot number of the summoned pet you use.
![]()
Source code
1 2 /run SwapEquipmentItem() /run ReturnPet(#)
Step 2) Click on the macro and you will swap your equipment & return your pet.
Swapping & Using Item Set Skills Macro (not my macro.)
Quoted
Step 1) Change X to the slot number of the item within the merchant you would like to buy.
![]()
Source code
1 /run StoreBuyItem(X, Y)
Step 2) Change Y to the amount of the item you would like to buy (1 -> 99).
Step 3) Open the Merchant Windows.
Step 4) Click on the macro and it will purchase the item in Slot X with a stack of the amount of Y.
Miller Cakes Example:
You will buy Miller Cakes with 99 pieces inside the stack.
![]()
Source code
1 /run StoreBuyItem(1, 99)
This macro can be improved to be included inside a loop to buy multiple stacks at once (or multiple items). This is also an effective macro for buying belts from the vendor. (Look at the Pet Feeding Macro if you don't understand a loop means.)
Debuff ID Macro
Quoted
Step 1) Set X to the class category you want (first one in the Item-Set Skill list is Warrior, Second is Scout and last is Common Skills).
![]()
Source code
1 2 3 4 5 /script JOBINDEX=X SKILLINDEX=Y SkillSuitFrame_GetSkill_OnClick(); /wait 1 /cast XXX /wait 1 /script JOBINDEX=X SKILLINDEX=Y SkillSuitFrame_GetSkill_OnClick()
Step 2) Set Y to the skill's position within X's category.
Step 3) Set XXX to the name of the spell you would like to cast as it swaps.
Step 4) Click on the macro, it will swap the set-skill and cast it.
Example:
What this macro does is that it replaces Escape with Yawaka's Blessing, casts it and puts Escape back. Very useful for Rogues who would like to ensure they can use more set-skills.
![]()
Source code
1 2 3 4 5 /script JOBINDEX=3 SKILLINDEX=4 SkillSuitFrame_GetSkill_OnClick(); /wait 1 /cast Yawaka's Blessing /wait 1 /script JOBINDEX=3 SKILLINDEX=1 SkillSuitFrame_GetSkill_OnClick();
This can help other classes who rely on more then three set-skills.
This macro can also be used to cast Tendrils & Equip them for Scouts.
Targetting Macro (posted by Peryl)
Quoted
Step 1) Select target.
![]()
Source code
1/run for i=1,100 do local n,_,_,id=UnitDebuff("target",i) if n then DEFAULT_CHAT_FRAME:AddMessage(n.." = "..id) else break end end
Step 2) Click on macro.
Once you click on the macro, you will see a list of debuffs the person you are targetting has.
(This macro is used for DIYCE to find the ID of buffs for example, Bleed or Grevious Wound etc.)
More information if you would like the buff ID's:
Quoted from "Peryl"
To get the buffs instead, change UnitDebuff to UnitBuff. To get yourself instead of your target, change the "target" in that function to "player" (can also be changed to other unit types like "party1", "raid1", "focus1" etc)
Quoted from "Peryl;456883"
A Targeting macro. This was asked a couple of times (as DIYCE code, and then recently as a macro), here's a couple of variations on the macros.
If the shift key is held down, the macro will target the previous mob/player instead of the next one (similar to how the tab key works). Put the macro on an unused action bar slot and set key bindings to it for both a normal key and a Shift+key version and you can then use it just like Tab.
Target non pets
Target only players
![]()
Source code
1 2/run for i=1,10 do TargetNearestEnemy(IsShiftKeyDown()) if not UnitMaster("target") then break end end /run if UnitMaster("target") then TargetUnit("") end
![]()
Source code
1 2/run for i=1,10 do TargetNearestEnemy(IsShiftKeyDown()) if UnitIsPlayer("target") then break end end /run if not UnitIsPlayer("target") then TargetUnit("") end
Quoted
![]()
Source code
1 2/run swapequip = {0, 1, 2} /run swapequipindex = swapequipindex or 0 swapequipindex = (swapequipindex + 1) SwapEquipmentItem(swapequip[swapequipindex % #swapequip + 1])
|
|
Source code |
1 2 3 4 5 6 7 |
/run SetTitleRequest(530460)
/wait .4
/run UseAction(34)
/wait .4
/run SetTitleRequest(530427)
/wait .4
/script UseItemByName("Spellweaver Potion")
|
|
|
Source code |
1 2 |
/run SetBindingKey("TARGETNEARESTENEMY", "TAB");
/run SaveBindingKey()
|
|
|
Source code |
1 2 |
/run SetBindingKey("ACTIONBAR2BUTTON20", "TAB");
/run SaveBindingKey()
|
|
|
Source code |
1 2 |
/setskill 1 Archer's Glory /setskill 2 Energy Restore |
|
|
Source code |
1 2 3 4 5 6 |
/s Paznub in GROUP 2...cleanse me you morans!!! /kneel /s Paznub in GROUP 2...cleanse me you morans!!! /kneel /s Paznub in GROUP 2...cleanse me you morans!!! /kneel |
|
|
Source code |
1 2 3 |
/run UseAction(67) --or whatever slot you drag setskill to /wait .7 --adjust depending on your latency /run UseExtraAction(1) |
Quoted from "mrmisterwaa;482806"
Buying Items Macro
Quoted from "mrmisterwaa;482806"
Pet Feeding Macro (Can be used for anything that is edible by your pet but best used with Miller Cakes)
Quoted
I was happily using this macro since you posted it but it dangerously fails now for me. It eats all the cakes but IT DOESN'T level xp at all! It may be related to the new GCD or simply a new bug in the last patch.
I wasted 3 stacks of cakes before i noticed, lol.
-Sicalis
|
|
Source code |
1 |
/script for i = 1, 99, 1 do FeedPet(#) end |
|
|
Source code |
1 |
/script for i = 1, 99, 1 do FeedPet(2) end |
|
|
Source code |
1 |
/run gbs("Guild Name to Search for")
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
function gbs(GuildName)
local FoundGuild = 0
i = 0
while (FoundGuild == 0) do
local guildID , name = GuildBoard_GetNextGuildIDName( i );
if string.lower(name) == string.lower(GuildName) then
FoundGuild = guildID
Msg("Guild Search: ( " ..guildID .. " ) " .. name)
end
i = i + 1
end
GuildBoard_RequestGuildInfo( FoundGuild );
return
end
|
Quoted from "1Rausch1;497120"
Think you missed the change # to number of pet. Ill test again at noon but pretty sure this still works
![]()
Source code
1 /script for i = 1, 99, 1 do FeedPet(#) end
to feed pet 2 you would have a macro like this
![]()
Source code
1 /script for i = 1, 99, 1 do FeedPet(2) end
!
Quoted from "qlinuxxq;504842"
Quick note, the swap title + cast macro's arent functioning, im using
/run SetTitleRequest(530460)
/wait .4
/run UseAction(34)
/wait .4
/run SetTitleRequest(530427)
/wait .4
/script UseItemByName("Spellweaver Potion")
as a test dummy, but how do I get the cast to function?
also can someone link me a functioning swap title + cast macro from storytelling troupe hero too fire training (+ casting of FT) then swap back?
just recently comletely redid my UI...looks like god had made it himself *proud face*
|
|
Source code |
1 2 3 4 |
/unequipslot mainhand /unequipslot offhand /equipslot mainhand Item Name /equipslot offhand Item Name |
|
|
Source code |
1 2 3 4 5 6 |
## ## Name: CustomCommands ## CustomCommands.lua |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
--[[
CustomCommands
Definitions for custom slash commands.
]]--
--[[ Local variables for commands ]]--
-- Inventory slot numbers and names for slash command.
-- (includes alternate names)
local InvSlotNames = {
['head'] = 1,
['hands'] = 2,
['feet'] = 3,
['chest'] = 4,
['body'] = 4,
['upperbody'] = 4,
['legs'] = 5,
['lower'] = 5,
['lowerbody'] = 5,
['cape'] = 6,
['back'] = 6,
['belt'] = 7,
['shoulders'] = 8,
['necklace'] = 9,
['neck'] = 9,
['ammo'] = 10,
['ranged'] = 11,
['rangedweapon'] = 11,
['ring1'] = 12,
['leftring'] = 12,
['ring2'] = 13,
['rightring'] = 13,
['ear1'] = 14,
['earring1'] = 14,
['leftearring'] = 14,
['ear2'] = 15,
['earring2'] = 15,
['rightearring'] = 15,
['mainhand'] = 16,
['main'] = 16,
['offhand'] = 17,
['off'] = 17,
['tool'] = 18,
['utensil'] = 18,
['talisman1'] = 19,
['talisman2'] = 20,
['talisman3'] = 21,
['wings'] = 22,
['adornment'] = 22,
}
--[[ Custom commands ]]--
-- Slash command for equiping an item to a given inventory slot
SLASH_EquipToSlot1 = "/equipslot"
SlashCmdList['EquipToSlot'] = function (ebox, msg)
msg = msg:lower()
local _, _, slot, itemname = msg:find("^([^%s])%s*(.+)$")
if not slot then
DEFAULT_CHAT_FRAME:AddMessage("Usage: /equipslot <slot> <item name>")
return
end
if InvSlotNames[slot] and itemname then
local bagIndexToUse
local _, _, totalSlots = GetBagCount()
for i = 1, totalSlots do
local bagIndex, _, bagItemName = GetBagItemInfo(i)
if bagItemName == itemname then
bagIndexToUse = bagIndex
end
end
if bagIndexToUse then
EquipItem(InvSlotNames[slot], bagIndexToUse)
end
elseif not itemname then
DEFAULT_CHAT_FRAME:AddMessage("You must provide an item name to equip.", 1, 0.3, 0.3)
end
end
-- Slash command to unequip an item from an inventory slot
SLASH_UnequipSlot1 = "/unequipslot"
SlashCmdList['UnequipSlot'] = function (ebox, msg)
msg = msg:lower()
local _, availableslots, _ = GetBagCount()
if msg == "" then
DEFAULT_CHAT_FRAME:AddMessage("Usage: /unequipslot <slot>")
return
end
if availableslots > 0 then
if InvSlotNames[msg] then
EquipItem(InvSlotNames[msg])
end
else
DEFAULT_CHAT_FRAME:AddMessage("You must have at least one free inventory slot to unequip an item.", 1, 0.3, 0.3)
end
end
|
Quoted from "qlinuxxq;504842"
Quick note, the swap title + cast macro's arent functioning, im using
/run SetTitleRequest(530460)
/wait .4
/run UseAction(34)
/wait .4
/run SetTitleRequest(530427)
/wait .4
/script UseItemByName("Spellweaver Potion")
as a test dummy, but how do I get the cast to function?
also can someone link me a functioning swap title + cast macro from storytelling troupe hero too fire training (+ casting of FT) then swap back?
just recently comletely redid my UI...looks like god had made it himself *proud face*
|
|
Source code |
1 2 3 4 5 6 7 8 9 |
/run SetTitleRequest(530449)
/wait .5
/run CastSpellByName("Mad Rush")
/wait .5
/run SetTitleRequest(530510)
/wait .5
/script UseItemByName("Spellweaver Potion")
/wait 1
/script UseItemByName("Potion: Godspeed")
|
Quoted from "camagic;504871"
/run a=GetCurrentTitle()
/run SetTitleRequest(530467)
/wait .5
/cast Fire Training
/run SetTitleRequest(a)
works for me. Of course there is still a 4 min cd on FT. FT also shares a cd with the skills from other guild titles, ie mad rush, but is the cd of whatever skill was used, ie 60 sec for the mad rush instead of 4 min for normal FT.
|
|
Source code |
1 2 3 4 5 |
/run SetTitleRequest(530467)
/wait .5
/run CastSpellByName("Fire Training")
/wait .5
/run SetTitleRequest(530510)
|
|
|
Source code |
1 2 3 4 5 |
/use Aoth Valiance Cape /wait 1 /run UseEquipmentItem(5) /wait 1 /use Callous Crush Cape |
Quoted from "CharlieBananas;482845"
If you don't want to make a macro for each item, this addon comes in handy.
http://www.curse.com/addons/rom/buy-stack
A warning here:
People using the Buy stack and sell from BP have lost some valuable items and cannot get them back. Please, keep in mind that any add-on is not supported by Frogster/RoM. So you are taking a chance using them.
Quoted from "BadHaircut;529939"
K sorry for such a newb question but in regards to the targeting macro on the first page, what is the difference between targeting on players and targeting non pets? Wouldnt they both do the same thing which is target only players? Am i not seeing the difference?
)