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

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 »


  • This topic is locked This topic is locked
283 replies to this topic

#101
Einzbern

Einzbern

    Ex-Support

  • Donator
  • 182 posts

Have this error too now.. lol

 

Did you update v21?


  • 0

#102
Maxxxel

Maxxxel

    The One

  • Scripts Developer
  • 1,196 posts
  • LocationGuess the right City to win 10$
the scripts you use miss a nil check before GetDistance, not this lib fault
  • 0

#103
lightingz

lightingz

    Advanced Member

  • Members
  • 63 posts

causes massive FPS drops


  • 0

#104
NitroxMT

NitroxMT

    Advanced Member

  • Members
  • 35 posts
  • LocationBrazil

Too much FPS drops in TF ;////:grumpycat:with the IAC did not happen, any way good job 


  • 0

#105
Outbreak

Outbreak

    Advanced Member

  • Members
  • 48 posts

Yeh... it's not working on bordeless mode.. it only works on full screen at least here. in v19 it was working in borderless, no idea what happened.


  • 0

#106
iglor713

iglor713

    Advanced Member

  • Members
  • 92 posts

and wtf is this:

function goslib:GetDistance(p1,p2)
  p1 = GetOrigin(p1) or p1
  p2 = GetOrigin(p2) or p2 or self:myHeroPos()
  return math.sqrt(self:GetDistanceSqr(p1,p2))
end

function goslib:GetDistanceSqr(p1,p2)
    p2 = p2 or self:myHeroPos()
    local dx = p1.x - p2.x
    local dz = (p1.z or p1.y) - (p2.z or p2.y)
    return dx*dx + dz*dz
end

Why: math.sqrt((p1.x - p2.x)^2+((p1.z or p1.y) - (p2.z or p2.y))^2)

now i know why sometimes use spell when out of range...

 

and not: math.sqrt((p1.x - p2.x)^2+(p1.y - p2.y)^2+(p1.z - p2.z)^2)

    local myHero = GetMyHero()
    local h = GetOrigin(myHero)
    local myTarget = GetCurrentTarget()
    if myTarget ~= nil then
        local t = GetOrigin(myTarget)
        local d = math.sqrt((h.x-t.x)^2+(h.y-t.y)^2+(h.z-t.z)^2) end

3b23b7b1a515c7a4dab72b1206c283cb.png  140acb4e68a1d26e1a4b89c7d183245f.png

9249539c5f1a2e0e7d3c58d4b6d66cb3.png

 

so bad...


  • 0

#107
Inspired

Inspired

    Took the red pill.

  • Ex-Core Dev
  • PipPipPip
  • 723 posts
  • LocationWonderland

and wtf is this:

function goslib:GetDistance(p1,p2)  p1 = GetOrigin(p1) or p1  p2 = GetOrigin(p2) or p2 or self:myHeroPos()  return math.sqrt(self:GetDistanceSqr(p1,p2))endfunction goslib:GetDistanceSqr(p1,p2)    p2 = p2 or self:myHeroPos()    local dx = p1.x - p2.x    local dz = (p1.z or p1.y) - (p2.z or p2.y)    return dx*dx + dz*dzend
Why: math.sqrt((p1.x - p2.x)^2+((p1.z or p1.y) - (p2.z or p2.y))^2)
now i know why sometimes use spell when out of range...

and not: math.sqrt((p1.x - p2.x)^2+(p1.y - p2.y)^2+(p1.z - p2.z)^2)
local h = GetOrigin(myHero)    local t = GetOrigin(...)    local d = 0    if t ~= nil then      d = math.sqrt((h.x-t.x)^2+(h.y-t.y)^2+(h.z-t.z)^2) end
3b23b7b1a515c7a4dab72b1206c283cb.png140acb4e68a1d26e1a4b89c7d183245f.png
9249539c5f1a2e0e7d3c58d4b6d66cb3.png

so bad...
Wtf? It's a 2D game.
Use GetYDistance if it makes you happy
  • 0

#108
Rakli

Rakli

    Advanced Member

  • Members
  • 213 posts

Any idea why i get an error while i click on C, V or SPACE keys? (something GoSBase line 123 a nil value) also when i run a script i have 2 menus of the same script


  • 0

#109
iglor713

iglor713

    Advanced Member

  • Members
  • 92 posts

Wtf? It's a 2D game.
Use GetYDistance if it makes you happy

maybe you have right...

 

I do not use Inspired.lua. 13 lanes and validtarget, distance check included, no errors.

izi to add not complicated: spells on best target... -> Inspired GetTarget() function

[All patterns are on the internet]

OnLoop(function(myHero)
    local myTarget = GetCurrentTarget()
    local myHero = GetMyHero()
    local h = GetOrigin(myHero)
    if myTarget ~= nil and IsVisible(myTarget) and not IsDead(myTarget) and not IsImmune(myTarget,myHero) and IsTargetable(myTarget) then
        local t = GetOrigin(myTarget)
        local d = math.sqrt((h.x-t.x)^2+(h.y-t.y)^2+(h.z-t.z)^2)
        if d<675 and CanUseSpell(myHero,_Q)==READY then
            CastTargetSpell(myTarget,_Q) end
        if d<1000 and CanUseSpell(myHero,_W)==READY then
            local wp=GetPredictionForPlayer(GetOrigin(myHero),myTarget,GetMoveSpeed(myTarget),1700,250,1000,50,true,true)
            if wp.HitChance==1 then
                CastSkillShot(_W,wp.PredPos.x,wp.PredPos.y,wp.PredPos.z) end end end end)

  • 0

#110
x4x0r1337

x4x0r1337

    Advanced Member

  • Members
  • 44 posts

This update of v21 is fail for me , cuz every 5-10 minutes in game LoL going crashes.. Any fix ??


  • 0

#111
Rakli

Rakli

    Advanced Member

  • Members
  • 213 posts

Old menu will be perfect if possible


  • 0

#112
cheepa39

cheepa39

    Newbie

  • Members
  • 2 posts

20 Fps =\


  • 0

#113
Daavi003

Daavi003

    Member

  • Members
  • 24 posts
  • LocationBrazil x.x

15 FPS Kappa


  • 0

#114
TaydeR

TaydeR

    Advanced Member

  • Donator
  • 241 posts

15 FPS Kappa

Do you need to repeat the same thing everybody already says ?

20 Fps =\

Same for you, buy some patience mate. 
 

This update of v21 is fail for me , cuz every 5-10 minutes in game LoL going crashes.. Any fix ??

It might be a "fail" in your opinion but it is a real improvement for all the rest of us.
Before complaining about Inspired.lua did you check your graphic cards' drivers ?
Did you check the potential background running programs ?
Did you follow the different topics about that kind of issue ?

I don't think so.

Please all be patient or if you aren't, go buy some.
If you want improvement you'll have to wait.
You have an issue ? Then properly report it.
"Why Vayne no injecting ?" "Inspired v21 is sh*t" "I want IAC back" "1 FPS in TFs" we've read all that 1936 times already !


TaydeR
  • 0

#115
arsoitee

arsoitee

    Member

  • Members
  • 20 posts

How to draw circle at minion (not use GoS mark minion lasthit)

Because I tweak some self.Config.h.LastHit:Value()  but I can't draw circle

I try DrawCircle(minion.x,minion.y,minion.z,..........) but can't 

I try to print  minion for see data it say "USERDATA: HEXValue"

 

 

Thank you 


  • 0

#116
Cloud

Cloud

    KAPPA

  • Ex-Staff
  • PipPipPip
  • 1,498 posts

How to draw circle at minion (not use GoS mark minion lasthit)

Because I tweak some self.Config.h.LastHit:Value()  but I can't draw circle

I try DrawCircle(minion.x,minion.y,minion.z,..........) but can't 

I try to print  minion for see data it say "USERDATA: HEXValue"

 

 

Thank you 

How exactly are you checking if there is a minion around? Code?


  • 0

#117
Maxxxel

Maxxxel

    The One

  • Scripts Developer
  • 1,196 posts
  • LocationGuess the right City to win 10$

How to draw circle at minion (not use GoS mark minion lasthit)
Because I tweak some self.Config.h.LastHit:Value() but I can't draw circle
I try DrawCircle(minion.x,minion.y,minion.z,..........) but can't
I try to print minion for see data it say "USERDATA: HEXValue"


Thank you


ever tried origin?.....
  • 1

#118
Tiritto

Tiritto

    Script Developer

  • Members
  • 377 posts
  • LocationPoland

Are you going to list all Inspired.lua features in your 1st post just like you did few releases ago?

I think it would greatly help our new scripters. Using a documentation is far easier than looking at the library source code.


  • 0

#119
AhriForever

AhriForever

    Advanced Member

  • Members
  • 97 posts
  • LocationViệt Nam

FPS down in 5 minute, drop in combat... i think bcs my computer...3184328279_313133589_574_574.jpg


  • 0

#120
Bang

Bang

    Member

  • Members
  • 18 posts

Very nice, thank you.

 

But I got error massage gos/lol/scripts/common/inspired.lua:60 : attempt to index filed 'keyswitch' (a nil value).

 

How can I fix this problem? 


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users