Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

Ezreal


  • Please log in to reply
4 replies to this topic

#1
RedBekkem

RedBekkem

    Newbie

  • Members
  • 4 posts

Hello this is my first script by now you should know how to install scripts and this just a basic script which i didn't really test that much. If you find any bugs just report him in this thread.

 

Just hold spacebar it will use Q and W and Ult but when i tested ult it sometime bugged it will try to add better ult. But my coding experience is very limited and i'm still learning.

-- CONSTANTS
local RANGE_Q = 1150
local RANGE_W = 1000
local RANGE_R = 1500

local Ezreal = nil
local EzrealPos = nil

function AfterObjectLoopEvent(myHer0)
    Ezreal = myHer0
    EzrealPos = GetOrigin(Ezreal)
    local position = GetCurrentTarget()

    DrawText("Ezreal by RedBekkem is loaded, GL HF!",24,10,0,0xffff00ff);

    if KeyIsDown(0x20) then
           
		   
    if CanUseSpell(localHero, _Q) == READY then
      target = GetTarget(localHero, RANGE_Q)

      if target then
        local pI = GetPredictionForPlayer(p1, target, GetMoveSpeed(target), 1700, 250, RANGE_Q, 50, true, true)

        if pI and pI.HitChance == 1 then
          CastSkillShot(_Q, pI.PredPos.x, pI.PredPos.y, pI.PredPos.z)
        end
      end
    end
  end
	if CanUseSpell(localHero, _W) == READY then
      target = GetTarget(localHero, RANGE_W)

      if target then
        local pI = GetPredictionForPlayer(p1, target, GetMoveSpeed(target), 1700, 250, RANGE_W, 50, true, true)

        if pI and pI.HitChance == 1 then
          CastSkillShot(_W, pI.PredPos.x, pI.PredPos.y, pI.PredPos.z)
        end
      end
    end
  end
	if CanUseSpell(localHero, _R) == READY then
      target = GetTarget(localHero, RANGE_R)

      if target then
        local pI = GetPredictionForPlayer(p1, target, GetMoveSpeed(target), 1700, 250, RANGE_R, 50, true, true)

        if pI and pI.HitChance == 1 then
          CastSkillShot(_R, pI.PredPos.x, pI.PredPos.y, pI.PredPos.z)
        end
      end
    end
function ValidTarget(position, range)
    range = range or math.huge
    if GetOrigin(position) == nil or IsDead(position) or GetTeam(position) == GetTeam(Ezreal) or not IsDistance(position, range) then return false end
    return true
end


function IsDistance(p1,r)
    return GetDistance(GetOrigin(p1)) < r*r
end


function GetDistance(p1,p2)
    p2 = p2 or EzrealPos
    local dx = p1.x - p2.x
    local dz = (p1.z or p1.y) - (p2.z or p2.y)
    return dx*dx + dz*dz
end

  • 0

#2
s1d

s1d

    Member

  • Members
  • 22 posts

i get this 639067a38263f9eda122b5139c9947ed.png


  • 0

#3
RedBekkem

RedBekkem

    Newbie

  • Members
  • 4 posts

i get this 639067a38263f9eda122b5139c9947ed.png

Hopefully fixed had an end too much in code thx for feedback!


  • 0

#4
Mirabelle

Mirabelle

    I'm Back :D

  • Local Support
  • 1,031 posts
  • LocationSEA
Looks nice, will try :)
  • 0

#5
Akateshi

Akateshi

    Member

  • Members
  • 28 posts
  • LocationRomania

dont work :( 


  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users