http://prntscr.com/86ip78 got that pressing v with morgana
Login to Account Create an Account
Inspired.lua - Library for Scripters
Best Answer SxcS , 30 July 2016 - 06:15
Is the download link broken, I only see a blank page? Am i doing something wrong?
its inbuilt in gos, no need to download
Go to the full post »
#41
Posted 19 August 2015 - 05:54
#42
Posted 19 August 2015 - 07:54
http://prntscr.com/86ip78 got that pressing v with morgana
me 2, just redownload it and everything will be K
#43
Posted 21 August 2015 - 04:59
please update your script to add item name titanic Hydra ID item is 3748 in line of #366
#44
Posted 23 August 2015 - 03:14
It seems that you replaced content of wrong topic and now we're out of your library documentation
#45
Posted 23 August 2015 - 03:41
Updated.
pls add this to validtarget function - latest API change (check Vladimir W, Kog Maw Passive, etc. ):
function ValidTarget(unit, range)
range = range or 25000
if unit == nil or GetOrigin(unit) == nil or IsImmune(unit,GetMyHero()) or IsDead(unit) or not IsTargetable(unit) or not IsVisible(unit) or GetTeam(unit) == GetTeam(GetMyHero()) or not IsInDistance(unit, range) then return false end
return true
end
#46
Posted 23 August 2015 - 05:02
I get an error when i press f6 x2, when i press shift i get the menu but it only says config menu. help me please!
#47
Posted 24 August 2015 - 01:07
Well.. ****.It seems that you replaced content of wrong topic and now we're out of your library documentation
Added..pls add this to validtarget function - latest API change (check Vladimir W, Kog Maw Passive, etc. ):
function ValidTarget(unit, range)
range = range or 25000
if unit == nil or GetOrigin(unit) == nil or IsImmune(unit,GetMyHero()) or IsDead(unit) or not IsTargetable(unit) or not IsVisible(unit) or GetTeam(unit) == GetTeam(GetMyHero()) or not IsInDistance(unit, range) then return false end
return true
end
#48
Posted 24 August 2015 - 01:11
any idea about circle?
because dlib has circle too....
#49
Posted 24 August 2015 - 04:56
error all champs
edit: working inspired
#50
Posted 24 August 2015 - 09:30
#51
Posted 25 August 2015 - 03:28
Can u add a validtarget check to your GetDistance function. Whenever i uselocal target= GetCurrentTarget()If target~=nil and GetDistance(target)<range then ... endI get error p1 is a nil value at inspired:303 when i do ValidTarget check before GetDistance it is working but sometimes i forgot it so to be on safe side add it pls.
it's not good idea, sometimes we don't need that validTarget...I mean it check too much thing
#52
Posted 25 August 2015 - 03:40
Can u add a validtarget check to your GetDistance function. Whenever i uselocal target= GetCurrentTarget()If target~=nil and GetDistance(target)<range then ... endI get error p1 is a nil value at inspired:303 when i do ValidTarget check before GetDistance it is working but sometimes i forgot it so to be on safe side add it pls.
Big nope. GetDistance() is used not only to measure the distance between units but also between blank spots on the map so ValidTarget() would just break those measurements since there's no target. If you're using this kind of "if statement" often in your code then just consider creating function.
function IsTargetInRange(unit) -- Check if >unit< value is given if unit == nil then local target = GetCurrentTarget() else local target = unit; end; -- Check if target exists if target == nil then return false; end; -- Check if enemy is in hero range target = GetOrigin(target); local hero = GetOrigin(myHero); if GetDistance(target,hero) < range then return true; end; -- If function wasn't successful at this point, it'll never be so return false. return false; end;
Then just use the following syntax:
if IsTargetInRange() then process(); end; -- With GetCurrentTarget(). if IsTargetInRange(GetCurrentTarget()) then process(); end; -- Same as above. if IsTargetInRange(enemy) then process(); end; -- This time using specific enemy unit.
#53
Posted 25 August 2015 - 03:55
Big nope. GetDistance() is used not only to measure the distance between units but also between blank spots on the map so ValidTarget() would just break those measurements since there's no target. If you're using this kind of "if statement" often in your code then just consider creating function.
function IsTargetInRange(unit) -- Check if >unit< value is given if unit == nil then local target = GetCurrentTarget() else local target = unit; end; -- Check if target exists if target == nil then return false; end; -- Check if enemy is in hero range target = GetOrigin(target); local hero = GetOrigin(myHero); if GetDistance(target,hero) < range then return true; end; -- If function wasn't successful at this point, it'll never be so return false. return false; end;Then just use the following syntax:
if IsTargetInRange() then process(); end; -- With GetCurrentTarget(). if IsTargetInRange(GetCurrentTarget()) then process(); end; -- Same as above. if IsTargetInRange(enemy) then process(); end; -- This time using specific enemy unit.
it doesn't work...you still not check target, target~=nil is not enough
#54
Posted 25 August 2015 - 08:44
Well he could also add a check in GetDistanceSqr where the error appears for a nil easily then cuz the error only appears with 303: p1.x is a nil value
function GetDistanceSqr(p1,p2) p2 = p2 or GetMyHeroPos() p1= p1 or nil If (p1 and p2)~=nil then local dx = p1.x - p2.x local dz = (p1.z or p1.y) - (p2.z or p2.y) return dx*dx + dz*dz end edd
#55
Posted 25 August 2015 - 08:47
Well he could also add a check in GetDistance for a nil easily then..
function GetDistance(p1,p2) If (p1 and p2)~=nil then p1 = GetOrigin(p1) or p1 p2 = GetOrigin(p2) or p2 return math.sqrt(GetDistanceSqr(p1,p2)) end end
ya, and the error will show it happen in your script instead inspired one, seems legit
#56
Posted 25 August 2015 - 04:17
it error every champion , I don't know why cause it work normally until 2 hr. ago
#57
Posted 25 August 2015 - 04:18
error all champs
edit: working inspired
Can you tell me how to solve problem ?
Thank you
#58
Posted 26 August 2015 - 01:57
Sorry, but too much minion missing
#59
Posted 26 August 2015 - 08:16
Can you tell me how to solve problem ?
Thank you
same problem here for the IAC
#60
Posted 27 August 2015 - 05:30
Can you tell me how to solve problem ?
Thank you
I delete deftsu scripts, and updated the inspired and IAC , I am using only the scripts zyppy
deftsu scripts gave errors in my gos , I do not know to use them
3 user(s) are reading this topic
0 members, 3 guests, 0 anonymous users