/script ClearCursor()local g,i,j,s,a,b=gsub;for i=0,4 do for j=1,GetContainerNumSlots(i)do s=GetContainerItemLink(i,j)if(s)then a,b,s=GetItemInfo(g(g(s,".*\124H",""),"\124h.*",""))if(s==0)then PickupContainerItem(i,j)DeleteCursorItem()end;end;end;end <br />
Удаление определен вещи
/run for b=0,4 do for s=1,32 do n=GetContainerItemLink(b,s);if n and string.find(n,"Обгоревший ларец") then PickupContainerItem(b,s);DeleteCursorItem();end;end;end;
/cast [nomod]Большой як для путешествий /cast [mod:shift]Тундровый мамонт путешественника
Считает кол-во целей (хреново считает)
Код
/run local count = 0 for i = 0, 10000, 1 do if _G["NamePlate"..i] ~= nil and _G["NamePlate"..i]:IsVisible() then count = count + 1 end end print(count)
1.Нельзя летать - пеший маунт 2. Можно летать, не в воде - летающий 3. В воде - водный
Код
/run mt=mt or CreateFrame("Frame")function m(t)SendChatMessage(t,"SAY")end t=4 c=0 u="OnUpdate"m("Атака через 5 сек!")mt:SetScript(u,function(self,e)c=c+e if c>=1 then if t==0 then m("Атака!")mt:SetScript(u,nil)else m(t)end c=0 t=t-1 end end)
Макрос!!! на отсчет времени 5сек.
Сообщение отредактировал shkolota - Четверг, 01.06.2017, 17:43