Advertisement
Guest User

Untitled

a guest
May 26th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.14 KB | None | 0 0
  1. local inf = {}
  2.  
  3. inf.Ban = {"Crencoder", "Snatcher Aghanim Rosh"}
  4. inf.Enable = Menu.AddOption(inf.Ban, "Enable", "")
  5. inf.fontItem = Renderer.LoadFont("Arial", 18, Enum.FontWeight.EXTRABOLD)
  6.  
  7. function inf.OnUpdate()
  8.     if not Heroes.GetLocal() or not Engine.IsInGame() or not Menu.IsEnabled(inf.Enable) then
  9.         return
  10.     end
  11.     myHero = Heroes.GetLocal()
  12.     items = PhysicalItems.GetAll()
  13.     if items and #items > 0 then
  14.         for i=0, #items do
  15.             item = items[i]
  16.             if item then
  17.                 item2 = PhysicalItem.GetItem(item)
  18.                 if Ability.GetName(item2) == "item_ultimate_scepter_2" then
  19.                     myPos = Entity.GetAbsOrigin(myHero)
  20.                     pos1 = Vector(-2361.3220214844, 1868.6048583984, 159.998046875)
  21.                     if (myPos - pos1):Length2D() < 500 then
  22.                         Player.PrepareUnitOrders(Players.GetLocal(), Enum.UnitOrder.DOTA_UNIT_ORDER_PICKUP_ITEM, item, Vector(0, 0, 0), nil, Enum.PlayerOrderIssuer.DOTA_ORDER_ISSUER_PASSED_UNIT_ONLY, myHero)
  23.                     end
  24.                 end
  25.             end
  26.         end
  27.     end
  28. end
  29.  
  30. return inf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement