

The following will send your current location into PARTY chat: /run local x,y=GetPlayerMapPosition("player") SendChatMessage("I'm at ".GetZoneText()." - ".GetMinimapZoneText()." - ".math.floor((x*100)+0,5)." ".math.floor((y*100)+0,5),"PARTY") If your current target is a player then send a chat whisper to him/her /run if UnitExists("target") then SendChatMessage("This is a test but insert whatever you are casting here","WHISPER",nil,UnitName("target")) end

Print a string of your current target to chat log /run DEFAULT_CHAT_FRAME:AddMessage("Hello world! my target name is ".GetUnitName("target")) Rejuvenation(Rank 10) /run s= if q=nil then q=0 end q=q+1 if q>getn(s)then q=1 end CastSpellByName(s) Chat/messages Keep that in mind! The following example will cast the following:ģ. It does not respect global cooldown so if you click it faster than 1,5 seconds you will skip a step. You can add more until you reach the 255 character limit. This will cast spells in the specified order separated by comma. run and /script are interchangeable so if you want more characters (max 255) use /run Vanilla Castsequence Here are some LUA programming examples and tips that are helpful when testing your macros or addons 🙂 Return to parent page for addons or more wow stuff Macros: Vanilla WoW LUA tips, chat & raid macros
