Advertisement
alexdubovyck

Неудачно сходил в ОП

Aug 16th, 2017
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.98 KB | None | 0 0
  1. -- ---------------------------------------------
  2. -- TEXT вверху экрана 3 координаты
  3. -- ---------------------------------------------
  4. f = CreateFrame("Frame", nil, UIParent)
  5. f:SetSize(UIParent:GetWidth(), 30)
  6. f:SetPoint("TOP", 0, -40)
  7. local text = f:CreateFontString("x_coord", "OVERLAY", "MovieSubtitleFont")
  8. text:SetPoint("CENTER", 0, 0)
  9. text:SetText("любой текст")
  10.  
  11. f = CreateFrame("Frame", nil, UIParent)
  12. f:SetSize(UIParent:GetWidth(), 30)
  13. f:SetPoint("TOP", 0, -80)
  14. local text = f:CreateFontString("y_coord", "OVERLAY", "MovieSubtitleFont")
  15. text:SetPoint("CENTER", 0, 0)
  16. text:SetText("любой текст")
  17.  
  18. f = CreateFrame("Frame", nil, UIParent)
  19. f:SetSize(UIParent:GetWidth(), 30)
  20. f:SetPoint("TOP", 0, -120)
  21. local text = f:CreateFontString("z_coord", "OVERLAY", "MovieSubtitleFont")
  22. text:SetPoint("CENTER", 0, 0)
  23. text:SetText("любой текст")
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. -- дк анхоли это ОП бот
  36. local function onUpdatee()
  37.  
  38. -- ObjectInteract("Corpse") --???????????? ==false как включить
  39. -- /run print(ObjectInteract("Corpse"))
  40.  
  41. -- /run print(abc())
  42.  
  43. -- /run print(ObjectPosition('Player'))
  44. -- /run print(ObjectPosition("Player"))
  45.  
  46. -- /run print(select(1, ObjectPosition("Player")))
  47.  
  48. local a = select(1, ObjectPosition("Player"))
  49. local b = select(2, ObjectPosition("Player"))
  50. local c = select(3, ObjectPosition("Player"))
  51. -- print(a)
  52. -- print(b)
  53. -- print(c)
  54. -- print("---")
  55.  
  56. c1 = floor(a); --x 1
  57. c2 = floor(b); --y 2
  58. c3 = floor(c); --z 3
  59.  
  60. x_coord:SetText(c1)
  61. y_coord:SetText(c2)
  62. z_coord:SetText(c3)
  63.  
  64. --хотел добавить проверку на слоты в сумках. если не успеюю продать
  65. local freeSlots4, bagType = GetContainerNumFreeSlots(4) -- 16 слотов 1-я
  66. local freeSlots3, bagType = GetContainerNumFreeSlots(3) -- 16 слотов 1-я
  67. local freeSlots2, bagType = GetContainerNumFreeSlots(2) -- 16 слотов 1-я
  68. local freeSlots1, bagType = GetContainerNumFreeSlots(1) -- 16 слотов 1-я
  69. local freeSlots0, bagType = GetContainerNumFreeSlots(0) -- 16 слотов 1-я
  70. local totalbag = (freeSlots0+freeSlots1+freeSlots2+freeSlots3+freeSlots4)
  71. -- print(totalbag)
  72.  
  73.  
  74.  
  75. --ток ток зашел в инст. стою
  76. -- .go -552, 320, 115
  77. if c1 == -552
  78. and c2 == 320
  79. and c3 == 115
  80. then
  81. MoveTo(-532, 329, 115, 1) --иду всё продавать к вендору
  82. end
  83.  
  84. --дошел до вендора. интеракт чтоб всё продать
  85. if c1 == -533
  86. and c2 == 328
  87. and c3 == 115
  88. then
  89.  
  90. -- RunMacroText("/target Наресир Штормовая Ярость")
  91. TargetUnit("Наресир Штормовая Ярость")
  92. InteractUnit("target")
  93. --продажа происходит в (автопочинка у вендора и продажа.lua)
  94.  
  95. MoveTo(-433, 272, 77, 1) --идти к 1-му мобу
  96. end
  97.  
  98. --стою у 1-го моба. наверно убил.
  99. if totalbag > 120 then
  100. if c1 == -433 or c1 == -434
  101. and c2 == 272
  102. and c3 == 77 --баг баг!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  103.  
  104. then
  105. MoveTo(-329, 132, 44, 1) --идти к собакам
  106. end
  107. end
  108.  
  109. -- DEAD DOGS
  110. if c1 == -329 or c1 == -330
  111. and c2 == 132
  112. and c3 == 44
  113. then
  114. MoveTo(-417, 0, 46, 1) --идти к скорбионам
  115. end
  116.  
  117. --убил скорпионов
  118. -- идти домой
  119. if c1 == -417
  120. and c2 == 0
  121. and c3 == 46 or c3 == 45
  122. then
  123. MoveTo(-379, 143, 49, 1) --идти домой точка 1.около 1 моба
  124. end
  125.  
  126.  
  127. -- добрался !идти на колено.чтоб выйти из инста
  128. -- колено2
  129. if c1 == -380
  130. and c2 == 142
  131. and c3 == 49
  132. then
  133. MoveTo(-406, 236, 59, 1)
  134. end
  135.  
  136.  
  137. --тут рядом точка старта)) поэтому
  138. if c1 == -406
  139. and c2 == 236 or c2 == 235
  140. and c3 == 59 or c3 == 58
  141. then
  142. MoveTo(-430, 283, 78, 1)
  143. end
  144.  
  145. --ВЫХОДИ ИЗ ИНСТА
  146. if c1 == -430
  147. and c2 == 282 --??
  148. and c3 == 78
  149. then
  150. MoveTo(-562, 315, 115, 1)
  151. end
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163. if rm == 1 then
  164. --Я вне инста
  165. -- стою в 3987.919922 -2945.830078 1002.547913
  166. if TomTomBlock.Text:GetText() == "47.50, 77.98"
  167. or TomTomBlock.Text:GetText() == "47.50, 78.00"
  168. then
  169. ChatFrame3:AddMessage("Я вышел из инста")
  170.  
  171. --обновить сложность
  172. PlayerFrame:Click("RightButton", down)
  173. DropDownList1Button11ExpandArrow:Click("LeftButton", down)
  174. DropDownList2Button6:Click("LeftButton", down) --10 Сложность
  175. DropDownList2Button7:Click("LeftButton", down) --25 Сложность
  176.  
  177. MoveTo(3579.238525, 5951.546875, 261.530212, 1)
  178. end
  179.  
  180.  
  181.  
  182.  
  183. -- if GetZoneText() == "Гора Хиджал"
  184. -- and GetSubZoneText() == "Шпиль Сульфурона"
  185. -- then
  186. -- JumpOrAscendStart();
  187. -- MoveTo(3980.459473, -2925.410645, 1002.546875, 1)
  188. -- end
  189. if IsMoving() == false then
  190. Cast(49184, "target", 49020)
  191. Cast(196770, "target", 49020)
  192. Cast(49184, "target", 49020)
  193. end
  194.  
  195.  
  196.  
  197. end -- rm1
  198. end; --end эндовый
  199. local f = CreateFrame("Frame")
  200. f:SetScript("OnUpdate", onUpdatee)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement