Posted 11 years ago
·
Author
Since I've started playing WoW again and I love anything that helps me automate tasks or make things easier or less time consuming, I have started getting into scripts/Macros (and addons but those aren't for this topic). As far as I know, all scripts are written in LUA.
Here are some good resources for learning to write scripts/Macros:
http://www.wowwiki.com/User_defined_functions
http://www.wowwiki.com/World_of_Warcraft_API
http://www.wowwiki.com/Lua_functions
http://www.wowwiki.com/Making_a_macro
http://www.wowwiki.com/UI_Beginners_Guide#Macros
http://macro-wow.com/guide/how-to-make- ... ua-script/
I haven't written any scripts yet as I do not understand the language yet but I do have some scripts that I've used that I will share.
This script will sell all of the junk in your inventory to a vendor. It only works on Items that are gray. To use it, open the macros menu from the options dialog and create a new macro, then select your icon and name and paste this into the code box. Then just drag that new macro you made to any free spot in your bars. From there, just go to any vendor and click the icon you made to run the script. I'd like to modify this script to also sell white items but as of yet, I do not know how, yet and i no longer need it since I have an addon for it now.
This next macro allows you to whisper the person you have targeted. This is useful for repeating the same message without having to type it over and over. I use this when I fly around Elwyn Forest giving away free items to low levels. I like to ask before trading them and lots don't answer, say no or are afk so I have to ask around a bit. To use this macro, do the same thing as the first one but before finishing it, replace "MESSAGE" with what you want to say.
Here are some places that have complete macros for you to use:
http://worldofmacros.com/
http://macro-wow.com/
http://wowlazymacros.com/
http://www.wowmacros.info/
http://elitewowmacros.com/
http://www.nextlevelpvp.com/world-of-wa ... s-for-pvp/
http://wowprogramming.com/docs/scripts
Here are some good resources for learning to write scripts/Macros:
http://www.wowwiki.com/User_defined_functions
http://www.wowwiki.com/World_of_Warcraft_API
http://www.wowwiki.com/Lua_functions
http://www.wowwiki.com/Making_a_macro
http://www.wowwiki.com/UI_Beginners_Guide#Macros
http://macro-wow.com/guide/how-to-make- ... ua-script/
I haven't written any scripts yet as I do not understand the language yet but I do have some scripts that I've used that I will share.
This script will sell all of the junk in your inventory to a vendor. It only works on Items that are gray. To use it, open the macros menu from the options dialog and create a new macro, then select your icon and name and paste this into the code box. Then just drag that new macro you made to any free spot in your bars. From there, just go to any vendor and click the icon you made to run the script. I'd like to modify this script to also sell white items but as of yet, I do not know how, yet and i no longer need it since I have an addon for it now.
/script for bag = 0,4,1 do for slot = 1, GetContainerNumSlots(bag), 1 do local name = GetContainerItemLink(bag,slot); if name and string.find(name,"ff9d9d9d") then DEFAULT_CHAT_FRAME:AddMessage("Selling "..name); UseContainerItem(bag,slot) end; end; end
This next macro allows you to whisper the person you have targeted. This is useful for repeating the same message without having to type it over and over. I use this when I fly around Elwyn Forest giving away free items to low levels. I like to ask before trading them and lots don't answer, say no or are afk so I have to ask around a bit. To use this macro, do the same thing as the first one but before finishing it, replace "MESSAGE" with what you want to say.
Here are some places that have complete macros for you to use:
http://worldofmacros.com/
http://macro-wow.com/
http://wowlazymacros.com/
http://www.wowmacros.info/
http://elitewowmacros.com/
http://www.nextlevelpvp.com/world-of-wa ... s-for-pvp/
http://wowprogramming.com/docs/scripts