Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function on_update()
- if in_game() and is_key_pressed(0x2E) then
- local local_hero = get_local_hero()
- if local_hero:GetEntityName() == "npc_dota_hero_skywrath_mage" then
- for k, entity in pairs(get_entity_list()) do
- if entity:IsHero() and not entity:IsAlly() then
- execute_order( -- silence
- local_hero,
- DotaUnitOrder.CAST_TARGET,
- PlayerOrderIssuer.HERO_ONLY,
- Vector3D(0, 0, 0),
- entity:GetIndex(),
- local_hero:GetAbility(2):Get(),
- false,
- true
- )
- local it = entity:FindItemByName("item_sheepstick") --hex
- if it then
- execute_order(
- local_hero,
- DotaUnitOrder.CAST_TARGET,
- PlayerOrderIssuer.HERO_ONLY,
- Vector3D(0, 0, 0),
- entity:GetIndex(),
- it,
- false,
- true
- )
- end
- local it1 = entity:FindItemByName("item_rod_of_atos") --atos
- if it1 then
- execute_order(
- local_hero,
- DotaUnitOrder.CAST_TARGET,
- PlayerOrderIssuer.HERO_ONLY,
- Vector3D(0, 0, 0),
- entity:GetIndex(),
- it1,
- false,
- true
- )
- end
- execute_order( -- ult
- local_hero,
- DotaUnitOrder.CAST_TARGET,
- PlayerOrderIssuer.HERO_ONLY,
- Vector3D(0, 0, 0),
- entity:GetIndex(),
- local_hero:GetAbility(3):Get(),
- false,
- true
- )
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement