Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- v2.0
- if not Dmitryi_Shumihin then
- --local
- function buy(n,q)
- for i = 1, 100 do
- if n == GetMerchantItemInfo(i) then
- BuyMerchantItem(i, q)
- end
- end
- end
- Dmitryi_Shumihin = true end
- if not UnitExists("target") then
- TargetUnit("Лорелея Песнь Зимы")
- end;
- if UnitName("playertarget") == "Лорелея Песнь Зимы" then
- InteractUnit("target")
- end;
- if MerchantFrame:IsShown() then
- buy("Формула: рунический арканитовый жезл", 1)
- end
- print("Я работаю")
- ___________________________________________________
- if not Dmitryi_Shumihin then
- if not UnitExists("target") then
- -- TargetUnit("Лорелея Песнь Зимы")
- TargetUnit("Эдна Милби")
- end;
- if UnitName("playertarget") == "Эдна Милби" then
- -- if UnitName("playertarget") == "Лорелея Песнь Зимы" then
- InteractUnit("target")
- end;
- local function buy(n,q)
- for i = 1, 100 do
- if n == GetMerchantItemInfo(i) then
- BuyMerchantItem(i, q)
- end
- end
- end
- -- Формула: рунический арканитовый жезл
- -- ID: 16243
- local function onUpdate()
- --start
- if MerchantFrame:IsShown() then
- -- buy("Формула: рунический арканитовый жезл", 1)
- buy("Слабый плавень", 1)
- end
- --finish
- end
- local f = CreateFrame ("Frame")
- f:SetScript("OnUpdate", onUpdate)
- Dmitryi_Shumihin = true end
- -- /run print(UnitName("target"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement