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

#1
Inspired

Inspired

    Took the red pill.

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

Download: Inspired.lua
API is hosted >here<
This thread is alone for feedback and suggestions.

 

 

Extract this to %appdata%\GamingOnSteroids\LOL\Sprites\ 

  • 28

#2
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

dat GetDistance.....

 

You just told me these code is not effectively Keppo

 

something like local is faster than global?


  • 1

#3
Inspired

Inspired

    Took the red pill.

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

dat GetDistance.....
 
You just told me these code is not effectively Keppo
 
something like local is faster than global?

less table accesses, this one is the fast one lol
  • 1

#4
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

less table accesses, this one is the fast one lol


function GetDistance(p1, p2)
        p2 = p2 or myHero
        p1 = GetOrigin(p1)
        p2 = GetOrigin(p2)
        if p1 and p2 then
        return math.sqrt((p1.x - p2.x) ^ 2 + ((p1.z or p1.y) - (p2.z or p2.y)) ^ 2)
    else
        return nil
    end
end

Where is the key point? I still don't get it.

 

I thought is GetOrigin yesterday....

 


  • 0

#5
Ultron

Ultron

    Advanced Member

  • Members
  • 61 posts
  • LocationRomania!

 

function GetDistance(p1, p2)
        p2 = p2 or myHero
        p1 = GetOrigin(p1)
        p2 = GetOrigin(p2)
        if p1 and p2 then
        return math.sqrt((p1.x - p2.x) ^ 2 + ((p1.z or p1.y) - (p2.z or p2.y)) ^ 2)
    else
        return nil
    end
end

Where is the key point? I still don't get it.

 

I thought is GetOrigin yesterday....

 

 

GetOrigin gets the location of an Object, not the distance to it.


  • 0

#6
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

GetOrigin gets the location of an Object, not the distance to it.

it's not the question I 'm asking.

 

These code work well, but not effectively.

 

I don't know why, it look almost same :s:


  • 0

#7
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts

Thanks  :wub:


  • 0

#8
Inspired

Inspired

    Took the red pill.

  • Ex-Core Dev
  • PipPipPip
  • 723 posts
  • LocationWonderland
Removed minion funcs because fps
  • 0

#9
Monkey

Monkey

    Member

  • Members
  • 23 posts

Removed minion funcs because fps

gj KappaHD


  • 0

#10
Inspired

Inspired

    Took the red pill.

  • Ex-Core Dev
  • PipPipPip
  • 723 posts
  • LocationWonderland
Minion funcs are back, but complicated to use and might lagg you. Have fun. Kappa
  • 0

#11
Monkey

Monkey

    Member

  • Members
  • 23 posts

Minion funcs are back, but complicated to use and might lagg you. Have fun. Kappa

 

Doge

 


  • 0

#12
Inspired

Inspired

    Took the red pill.

  • Ex-Core Dev
  • PipPipPip
  • 723 posts
  • LocationWonderland
Updated. Please tell everyone to rewrite their scripts to fit the new api.
  • 1

#13
TheWelder

TheWelder

    Advanced Member

  • Members
  • 195 posts
  • LocationPortugal

WP Inspired! 


  • 0

#14
Feretorix

Feretorix

    Administrator

  • Administrators
  • 3,141 posts
As we spoke in Skype i will be embedding those new "AddXXX" functions into GoS itself as a temp solution.
  • 2

#15
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

As we spoke in Skype i will be embedding those new "AddXXX" functions into GoS itself as a temp solution.

Why not just add these lib as new api?


  • 0

#16
Radi

Radi

    Newbie

  • Members
  • 8 posts

very useful library, but CountMinions() ? XD


  • 0

#17
Inspired

Inspired

    Took the red pill.

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

very useful library, but CountMinions() ? XD

It was from testing and I left it in. :P
  • 0

#18
LAsDePique

LAsDePique

    Advanced Member

  • Members
  • 103 posts
  • LocationFrance

Hello, 

Just a little question, the scripts you post how can i use it ? 

I need to replace in the file : 

1437755177-api.jpg

 

it's supposed to look like this after ?

 

1437755352-api2.jpg


  • 0

#19
HandsomeTalos

HandsomeTalos

    Advanced Member

  • Members
  • 34 posts

Hello, 

Just a little question, the scripts you post how can i use it ? 

I need to replace in the file : 

1437755177-api.jpg

 

it's supposed to look like this after ?

 

1437755352-api2.jpg

ye i have the same question


  • 0

#20
Inspired

Inspired

    Took the red pill.

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

Hello, 
Just a little question, the scripts you post how can i use it ? 
I need to replace in the file : 

Spoiler

 
it's supposed to look like this after ?
 
Spoiler

 

ye i have the same question


It's supposed to look like this:
1437755177-api.jpg
  • 0




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users