Advertisement
alexdubovyck

Формула жезл

Nov 23rd, 2017
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. v2.0
  2. if not Dmitryi_Shumihin then
  3.  
  4. --local
  5. function buy(n,q)
  6. for i = 1, 100 do
  7. if n == GetMerchantItemInfo(i) then
  8. BuyMerchantItem(i, q)
  9. end
  10. end
  11. end
  12.  
  13. Dmitryi_Shumihin = true end
  14.  
  15. if not UnitExists("target") then
  16. TargetUnit("Лорелея Песнь Зимы")
  17. end;
  18.  
  19. if UnitName("playertarget") == "Лорелея Песнь Зимы" then
  20. InteractUnit("target")
  21. end;
  22.  
  23. if MerchantFrame:IsShown() then
  24. buy("Формула: рунический арканитовый жезл", 1)
  25. end
  26.  
  27. print("Я работаю")
  28.  
  29.  
  30.  
  31. ___________________________________________________
  32. if not Dmitryi_Shumihin then
  33.  
  34. if not UnitExists("target") then
  35. -- TargetUnit("Лорелея Песнь Зимы")
  36. TargetUnit("Эдна Милби")
  37. end;
  38.  
  39. if UnitName("playertarget") == "Эдна Милби" then
  40. -- if UnitName("playertarget") == "Лорелея Песнь Зимы" then
  41. InteractUnit("target")
  42. end;
  43.  
  44. local function buy(n,q)
  45. for i = 1, 100 do
  46. if n == GetMerchantItemInfo(i) then
  47. BuyMerchantItem(i, q)
  48. end
  49. end
  50. end
  51.  
  52. -- Формула: рунический арканитовый жезл
  53. -- ID: 16243
  54.  
  55. local function onUpdate()
  56. --start
  57. if MerchantFrame:IsShown() then
  58. -- buy("Формула: рунический арканитовый жезл", 1)
  59. buy("Слабый плавень", 1)
  60. end
  61. --finish
  62. end
  63. local f = CreateFrame ("Frame")
  64. f:SetScript("OnUpdate", onUpdate)
  65.  
  66. Dmitryi_Shumihin = true end
  67.  
  68.  
  69.  
  70. -- /run print(UnitName("target"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement