daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Mar 19th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local slark = {}
  2.  
  3.  
  4. slark.Enable = Menu.AddOptionBool({ "Hero Specific", "Slark" }, "Включить", false)
  5. slark.Ult = Menu.AddOptionBool({ "Hero Specific", "Slark" }, "Использовать Shadow Dance в комбо", false)
  6. Menu.AddOptionIcon(slark.Ult, "panorama/images/spellicons/slark_shadow_dance_png.vtex_c")
  7. slark.Pounce = Menu.AddOptionBool({ "Hero Specific", "Slark" }, "Использовать Pounce в комбо", false)
  8. Menu.AddOptionIcon(slark.Pounce, "panorama/images/spellicons/slark_pounce_png.vtex_c")
  9. slark.Dark = Menu.AddOptionBool({ "Hero Specific", "Slark" }, "Использовать Dark Pact в комбо", false)
  10. Menu.AddOptionIcon(slark.Dark, "panorama/images/spellicons/slark_dark_pact_png.vtex_c")
  11. slark.Rem = Menu.AddOptionBool({ "Hero Specific", "Slark", "Dark Pact" }, "Использовать для снятия эффектов", false)
  12. slark.Battle_hunger = Menu.AddOptionBool({ "Hero Specific", "Slark", "Способности которые будут сниматься" }, "Battle Hunger", false)
  13. Menu.AddOptionIcon(slark.Battle_hunger, "panorama/images/spellicons/axe_battle_hunger_png.vtex_c")
  14. slark.Enfeeble = Menu.AddOptionBool({ "Hero Specific", "Slark", "Способности которые будут сниматься" }, "Enfeeble", false)
  15. Menu.AddOptionIcon(slark.Enfeeble, "panorama/images/spellicons/bane_enfeeble_png.vtex_c")
  16. slark.Poison_touch = Menu.AddOptionBool({ "Hero Specific", "Slark", "Способности которые будут сниматься" }, "Poison Touch", false)
  17. Menu.AddOptionIcon(slark.Poison_touch, "panorama/images/spellicons/dazzle_poison_touch_png.vtex_c")
  18. slark.Call_down_slow = Menu.AddOptionBool({ "Hero Specific", "Slark", "Способности которые будут сниматься" }, "Call Down Slow", false)
  19. Menu.AddOptionIcon(slark.Call_down_slow, "panorama/images/spellicons/gyrocopter_call_down_png.vtex_c")
  20. slark.Cold_feet = Menu.AddOptionBool({ "Hero Specific", "Slark", "Способности которые будут сниматься"  }, "Cold Feet", false)
  21. Menu.AddOptionIcon(slark.Cold_feet, "panorama/images/spellicons/ancient_apparition_cold_feet_png.vtex_c")
  22. slark.Coldfeet_freeze = Menu.AddOptionBool({ "Hero Specific", "Slark", "Способности которые будут сниматься" }, "Cold Feet Freeze", false)
  23. Menu.AddOptionIcon(slark.Coldfeet_freeze, "panorama/images/spellicons/ancient_apparition_cold_feet_png.vtex_c")
  24. slark.Flux = Menu.AddOptionBool({ "Hero Specific", "Slark", "Способности которые будут сниматься" }, "Flux", false)
  25. Menu.AddOptionIcon(slark.Flux, "panorama/images/spellicons/arc_warden_flux_png.vtex_c")
  26. slark.Void = Menu.AddOptionBool({ "Hero Specific", "Slark", "Способности которые будут сниматься" }, "Void", false)
  27. Menu.AddOptionIcon(slark.Void, "panorama/images/spellicons/night_stalker_void_png.vtex_c")
  28. slark.Gale = Menu.AddOptionBool({ "Hero Specific", "Slark", "Способности которые будут сниматься" }, "Venomous Gale", false)
  29. Menu.AddOptionIcon(slark.Gale, "panorama/images/spellicons/venomancer_venomous_gale_png.vtex_c")
  30. slark.Track = Menu.AddOptionBool({ "Hero Specific", "Slark", "Способности которые будут сниматься" }, "Track", false)
  31. Menu.AddOptionIcon(slark.Track, "panorama/images/spellicons/bounty_hunter_track_png.vtex_c")
  32. slark.Glimpse = Menu.AddOptionBool({ "Hero Specific", "Slark", "Способности которые будут сниматься" }, "Glimpse", false)
  33. Menu.AddOptionIcon(slark.Glimpse, "panorama/images/spellicons/disruptor_glimpse_png.vtex_c")
  34. slark.Key = Menu.AddKeyOption({ "Hero Specific", "Slark" }, "Кнопка для комбо", Enum.ButtonCode.KEY_1)
  35. slark.Percent = Menu.AddOptionSlider({ "Hero Specific", "Slark" }, "Хп для авто. использования Shadow Dance", 1, 100, 20)
  36. Menu.AddOptionIcon(slark.Percent, "panorama/images/spellicons/slark_shadow_dance_png.vtex_c")
  37. slark.Abyssal = Menu.AddOptionBool({ "Hero Specific", "Slark" }, "Использовать Abyssal Blade в комбо", false)
  38. Menu.AddOptionIcon(slark.Abyssal, "panorama/images/items/abyssal_blade_png.vtex_c")
  39.  
  40. slark.Invis = Menu.AddOptionBool({ "Hero Specific", "Slark" }, "Использовать sb в комбо", false)
  41. Menu.AddOptionIcon(slark.Invis, "panorama/images/items/invis_sword_png.vtex_c")
  42.  
  43. slark.Orchid = Menu.AddOptionBool({ "Hero Specific", "Slark" }, "Использовать Orchid в комбо", false)
  44. Menu.AddOptionIcon(slark.Orchid, "panorama/images/items/orchid_png.vtex_c")
  45. slark.Bloothorn = Menu.AddOptionBool({ "Hero Specific", "Slark" }, "Использовать Bloodthorn в комбо", false)
  46. Menu.AddOptionIcon(slark.Bloothorn, "panorama/images/items/bloodthorn_png.vtex_c")
  47. slark.Bkb = Menu.AddOptionBool({ "Hero Specific", "Slark" }, "Использовать Black King Bar в комбо", false)
  48. Menu.AddOptionIcon(slark.Bkb, "panorama/images/items/black_king_bar_png.vtex_c")
  49. slark.Nullifier = Menu.AddOptionBool({ "Hero Specific", "Slark" }, "Использовать Nullifier в комбо", false)
  50. Menu.AddOptionIcon(slark.Nullifier, "panorama/images/items/nullifier_png.vtex_c")
  51. slark.NearestTarget = Menu.AddOptionSlider({"Hero Specific", "Slark"}, "Радиус поиска цели около курсора", 200, 800, 100)
  52. slark.optionIcon = Menu.AddOptionIcon({ "Hero Specific","Slark"}, "panorama/images/heroes/icons/npc_dota_hero_slark_png.vtex_c")
  53.  
  54. slark.lastTick = 0
  55.  
  56. function slark.OnUpdate()
  57.     me = Heroes.GetLocal()
  58.     if not Menu.IsEnabled(slark.Enable) or not Engine.IsInGame() or not Heroes.GetLocal() then return end
  59.  
  60.     if NPC.GetUnitName(me) ~= "npc_dota_hero_slark" then return end
  61.     if not Entity.IsAlive(me) or NPC.IsStunned(me) or NPC.IsSilenced(me) then return end
  62.     if Menu.IsEnabled(slark.Enable) then
  63.     enemy = Input.GetNearestHeroToCursor(Entity.GetTeamNum(me), Enum.TeamType.TEAM_ENEMY)
  64.         if enemy and enemy ~= 0 then
  65.         --Log.Write(NPC.GetUnitName(enemy))
  66.             slark.Combo(me, enemy)
  67.             return end
  68.     end
  69. end
  70.  
  71. function slark.Combo()
  72.     target = nil
  73.     myTeam = Entity.GetTeamNum(me)
  74.     enemy = Input.GetNearestHeroToCursor(myTeam, Enum.TeamType.TEAM_ENEMY)
  75.     player =  Players.GetLocal()
  76.     mana = NPC.GetMana(me)
  77.     health = Entity.GetHealth(me)
  78.     max_hp = Entity.GetMaxHealth(me)
  79.     ult = NPC.GetAbility(me, "slark_shadow_dance")
  80.     abyssal = NPC.GetItem(me, "item_abyssal_blade", true)
  81.     bkb = NPC.GetItem(me, "item_black_king_bar")
  82.     orchid = NPC.GetItem(me, "item_orchid")
  83.     bloodthorn = NPC.GetItem(me, "item_bloodthorn", true)
  84.     nullifier = NPC.GetItem(me, "item_nullifier")
  85.     pounce = NPC.GetAbility(me, "slark_pounce")
  86.     dark = NPC.GetAbility(me, "slark_dark_pact")
  87.     dark_range = 700
  88.     cursor_pos = Input.GetWorldCursorPos()
  89.     mypos = Entity.GetAbsOrigin(me)
  90.     enemy_origin = Entity.GetAbsOrigin(enemy)
  91.     aim = (mypos - enemy_origin):Length2D()
  92.  
  93.     if ult and (max_hp*(Menu.GetValue(slark.Percent))/100 > health) and Ability.IsReady(ult) and Ability.IsCastable(ult, mana) then
  94.         Ability.CastNoTarget(ult) end
  95.     if Menu.IsEnabled(slark.Rem) and Menu.IsEnabled(slark.Battle_hunger) and dark and Ability.IsReady(dark) and Ability.IsCastable(dark, mana) and NPC.HasModifier(me, "modifier_axe_battle_hunger") then
  96.         Ability.CastNoTarget(dark) end
  97.     if Menu.IsEnabled(slark.Rem) and Menu.IsEnabled(slark.Enfeeble) and dark and Ability.IsReady(dark) and Ability.IsCastable(dark, mana) and NPC.HasModifier(me, "modifier_bane_enfeeble") then
  98.         Ability.CastNoTarget(dark) end
  99.     if Menu.IsEnabled(slark.Rem) and Menu.IsEnabled(slark.Poison_touch) and dark and Ability.IsReady(dark) and Ability.IsCastable(dark, mana) and NPC.HasModifier(me, "modifier_dazzle_poison_touch") then
  100.         Ability.CastNoTarget(dark) end
  101.     if Menu.IsEnabled(slark.Rem) and Menu.IsEnabled(slark.Call_down_slow) and dark and Ability.IsReady(dark) and Ability.IsCastable(dark, mana) and NPC.HasModifier(me, "modifier_gyrocopter_call_down_slow") then
  102.         Ability.CastNoTarget(dark) end
  103.     if Menu.IsEnabled(slark.Rem) and Menu.IsEnabled(slark.Cold_feet) and dark and Ability.IsReady(dark) and Ability.IsCastable(dark, mana) and NPC.HasModifier(me, "modifier_cold_feet") then
  104.         Ability.CastNoTarget(dark) end
  105.     if Menu.IsEnabled(slark.Rem) and Menu.IsEnabled(slark.Coldfeet_freeze) and dark and Ability.IsReady(dark) and Ability.IsCastable(dark, mana) and NPC.HasModifier(me, "modifier_ancientapparition_coldfeet_freeze") then
  106.         Ability.CastNoTarget(dark) end
  107.     if Menu.IsEnabled(slark.Rem) and Menu.IsEnabled(slark.Flux) and dark and Ability.IsReady(dark) and Ability.IsCastable(dark, mana) and NPC.HasModifier(me, "modifier_arc_warden_flux") then
  108.         Ability.CastNoTarget(dark) end
  109.     if Menu.IsEnabled(slark.Rem) and Menu.IsEnabled(slark.Void) and dark and Ability.IsReady(dark) and Ability.IsCastable(dark, mana) and NPC.HasModifier(me, "modifier_night_stalker_void") then
  110.         Ability.CastNoTarget(dark) end
  111.     if Menu.IsEnabled(slark.Rem) and Menu.IsEnabled(slark.Gale) and dark and Ability.IsReady(dark) and Ability.IsCastable(dark, mana) and NPC.HasModifier(me, "modifier_venomancer_venomous_gale") then
  112.         Ability.CastNoTarget(dark) end
  113.     if Menu.IsEnabled(slark.Rem) and Menu.IsEnabled(slark.Track) and dark and Ability.IsReady(dark) and Ability.IsCastable(dark, mana) and NPC.HasModifier(me, "modifier_bounty_hunter_track") then
  114.         Ability.CastNoTarget(dark) end
  115.     if Menu.IsEnabled(slark.Rem) and Menu.IsEnabled(slark.Glimpse) and dark and Ability.IsReady(dark) and Ability.IsCastable(dark, mana) and NPC.HasModifier(me, "modifier_disruptor_glimpse") then
  116.         Ability.CastNoTarget(dark) end
  117.     if Menu.IsKeyDown(slark.Key) then
  118.         if Menu.IsEnabled(slark.Invis) then
  119.             if NPC.HasModifier(me, "modifier_item_silver_edge_windwalk") or NPC.HasModifier(me, "modifier_item_invisibility_edge_windwalk") then
  120.                 Player.AttackTarget(player, me, enemy) return end
  121.         end
  122.         --NPC.MoveTo(me, enemy_origin, true)
  123.        --
  124.          Player.AttackTarget(Players.GetLocal(), me, enemy, true)
  125.         if Menu.IsEnabled(slark.Abyssal) and abyssal and Ability.IsCastable(abyssal, mana) and Ability.IsReady(abyssal) then Ability.CastTarget(abyssal, enemy) end
  126.         if Menu.IsEnabled(slark.Ult) and ult and Ability.IsCastable(ult, mana) and Ability.IsReady(ult) then Ability.CastNoTarget(ult) end
  127.         if Menu.IsEnabled(slark.Bkb) and bkb and Ability.IsCastable(bkb, mana) and Ability.IsReady(bkb) then Ability.CastNoTarget(bkb) end
  128.         if Menu.IsEnabled(slark.Orchid) and orchid and Ability.IsCastable(orchid, mana) and Ability.IsReady(orchid) then Ability.CastTarget(orchid, enemy) end
  129.         if Menu.IsEnabled(slark.Nullifier) and nullifier and Ability.IsCastable(nullifier, mana) and Ability.IsReady(nullifier) then Ability.CastTarget(nullifier, enemy) end
  130.         if Menu.IsEnabled(slark.Bloothorn) and bloodthorn and Ability.IsCastable(bloodthorn, mana) and Ability.IsReady(bloodthorn) then Ability.CastTarget(bloodthorn, enemy, true) end
  131.         Player.AttackTarget(Players.GetLocal(), me, enemy, true)  
  132.         if aim > 600 then
  133.             Player.PrepareUnitOrders(Players.GetLocal(), Enum.UnitOrder.DOTA_UNIT_ORDER_MOVE_TO_POSITION, enemy, Input.GetWorldCursorPos(), nil, Enum.PlayerOrderIssuer.DOTA_ORDER_ISSUER_HERO_ONLY, me)
  134.             return end
  135.         if aim <= 600 then
  136.             Player.PrepareUnitOrders(Players.GetLocal(), Enum.UnitOrder.DOTA_UNIT_ORDER_MOVE_TO_POSITION, enemy, Input.GetWorldCursorPos(), nil, Enum.PlayerOrderIssuer.DOTA_ORDER_ISSUER_HERO_ONLY, me)
  137.             if Menu.IsEnabled(slark.Pounce) and pounce and Ability.IsCastable(pounce, mana) then
  138.                 Player.AttackTarget(Players.GetLocal(), me, enemy, true)    
  139.                 Ability.CastNoTarget(pounce) return
  140.                 end
  141.             end
  142.             else if not slark.SleepReady(0.6) then
  143.                 return end
  144.         end
  145.         if Menu.IsEnabled(slark.Dark) and dark and Ability.IsCastable(dark, mana) and Ability.IsReady(dark) then
  146.             slark.CastNoTarget(dark) end
  147.  
  148.     end
  149.  
  150.    
  151.  
  152. end
  153.  
  154.  
  155. return slark
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top