funtime:warcraft:macros

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
funtime:warcraft:macros [2021/06/14 14:59]
Chugreev Eugene created
funtime:warcraft:macros [2023/02/26 14:36] (current)
Chugreev Eugene [Друид]
Line 4: Line 4:
 <code> <code>
 /run local c,i,n,v=0;for b=0,4 do for s=1,GetContainerNumSlots(b)do i={GetContainerItemInfo(b,s)}n=i[7]if n and string.find(n,"9d9d9d")then v={GetItemInfo(n)}q=i[2]c=c+v[11]*q;UseContainerItem(b,s)print(n,q)end;end;end;print(GetCoinText(c)) /run local c,i,n,v=0;for b=0,4 do for s=1,GetContainerNumSlots(b)do i={GetContainerItemInfo(b,s)}n=i[7]if n and string.find(n,"9d9d9d")then v={GetItemInfo(n)}q=i[2]c=c+v[11]*q;UseContainerItem(b,s)print(n,q)end;end;end;print(GetCoinText(c))
 +</code>
 +
 +Обменять **Эмблема триумфа** на **Эмблема героизма**
 +<code>
 +#showtooltip Эмблема героизма
 +/run local buy=function(n,q) for i=1,30 do if n == GetMerchantItemInfo(i) then BuyMerchantItem(i,q) end end end buy("Эмблема завоевания",1) buy("Эмблема доблести",1)  buy("Эмблема героизма",1)
 +</code>
 +
 +Макрос на отдаление камеры
 +<code>
 +/console SET cameraDistanceMaxFactor 3.4
 +</code>
 +
 +Позиция на карте
 +<code>
 +/script local px,py=GetPlayerMapPosition("player") print(format("%s [%.1fx%.1f]", GetZoneText(),px*100,py*100))
 +</code>
 +
 +===== Макросы для рейда =====
 +Проверить кто в бою
 +<code>
 +/run local s="" for i=1,GetNumRaidMembers() do if UnitAffectingCombat('raid'..i) or UnitAffectingCombat('raidpet'..i) then s=s .. UnitName('raid'..i) .. ', ';end;end;if #s>0 then SendChatMessage("В бою: "..s:gsub('%, ', ''),"RAID")else print("Чисто") end
 +</code>
 +
 +Распустить рейд
 +<code>
 +/run for i=1,GetNumRaidMembers() do if not UnitIsUnit("player","raid"..i) then UninviteUnit("raid"..i)end end
 </code> </code>
  
Line 14: Line 41:
 </code> </code>
  
 +===== Друид =====
 +Рес / Баттлрес
 +<code>
 +#showtooltip
 +/say Воскрешаю %t
 +/cast [combat] Возрождение; Оживление
 +</code>
  
 +Иннер себе или фокусу 
 +<code> 
 +#showtooltip Озарение 
 +/cast [button:1,@player] Озарение; [button:2,@focus,help] Озарение; [button:2,@target,help] Озарение 
 +</code>
funtime/warcraft/macros.1623682774.txt.gz · Last modified: 2021/06/14 14:59 by Chugreev Eugene