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

[Library] deLibrary <- All-in-One Universal Scripter Library


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

#41
Inferno

Inferno

    Advanced Member

  • Contributor
  • 217 posts

can you give me show sample code?
 
here is smth I already tried
http://gamingonstero...asttargetspell/

Yes. This is result:
AvvW4wM.jpg
Used code:
require 'deLibrary'

DBG = attachDebugger(10,500,Colors.White,14)

function doOnLoop()
    DBG.Reset()
    
    -- Searching for objects
    local ObjList = ObjectManager.GetObjectList(nil, function(a) return GetObjectBaseName(a):lower() == "sightward" end)
    -- Writing everything we found..
    if ObjList == nil then
        DBG.Write("No wards found in objectmanager.")
    else
        DBG.Write("Next wards found in objectmanager:")
        for i=1, #ObjList do
            local origin = GetOrigin(ObjList[i])
            DBG.Write(i .. ") "..origin.x.." "..origin.y.." "..origin.z)
        end
    end
end

OnLoop(function(a) doOnLoop() end)
Will add deObjector in a moment.
  • 0

#42
Inferno

Inferno

    Advanced Member

  • Contributor
  • 217 posts
Added: deObjector addon! All documentation, as always, can be found in deLibrary.lua
  • 0

#43
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

Yes. This is result:AvvW4wM.jpgUsed code:

require 'deLibrary'

DBG = attachDebugger(10,500,Colors.White,14)

function doOnLoop()
    DBG.Reset()
    
    -- Searching for objects
    local ObjList = ObjectManager.GetObjectList(nil, function(a) return GetObjectBaseName(a):lower() == "sightward" end)
    -- Writing everything we found..
    if ObjList == nil then
        DBG.Write("No wards found in objectmanager.")
    else
        DBG.Write("Next wards found in objectmanager:")
        for i=1, #ObjList do
            local origin = GetOrigin(ObjList[i])
            DBG.Write(i .. ") "..origin.x.." "..origin.y.." "..origin.z)
        end
    end
end

OnLoop(function(a) doOnLoop() end)
Will add deObjector in a moment.
Hmm....we have it's pos even in OnCreateOBJ
  • 0

#44
Inferno

Inferno

    Advanced Member

  • Contributor
  • 217 posts

Hmm....we have it's pos even in OnCreateOBJ

But everything in ObjectManager have it's own NetworkID. It is not zero in objectmanager. So maybe this is a reason?
  • 0

#45
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

But everything in ObjectManager have it's own NetworkID. It is not zero in objectmanager. So maybe this is a reason?


Yes, one of them,I want all key points about the object
  • 0

#46
Inferno

Inferno

    Advanced Member

  • Contributor
  • 217 posts
Added new event: OnMaterializeObj(function(object) ... <your code there> ... end)
It is same as OnCreateObj event, but every object from OnMaterializeObj is targettable, and have everything you need.


Yes, one of them,I want all key points about the object

Did it special for you ;]
  • 1

#47
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

Added new event: OnMaterializeObj(function(object) ... <your code there> ... end)
It is same as OnCreateObj event, but every object from OnMaterializeObj is targettable, and have everything you need.


Did it special for you ;]

so what's the key point?

 

I see you only check the networkID?


  • 0

#48
Inferno

Inferno

    Advanced Member

  • Contributor
  • 217 posts

so what's the key point?
 
I see you only check the networkID?

Yes. Surprisingly, it is enough. And then I firing all events users created.
  • 0

#49
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

Yes. Surprisingly, it is enough. And then I firing all events users created.

ok, I'll test it.

 

 

thx for help

 

yOAg93p.png


  • 0

#50
stephenjason89

stephenjason89

    Advanced Member

  • Members
  • 41 posts

TS_FUNCTIONARRAY.KDA = function(obj1, obj2, high) if (high) then return GetCurrentHP(obj1) > GetCurrentHP(obj2)
else return GetCurrentHP(obj1) < GetCurrentHP(obj2)

 

 

BUG on your code.

 

KDA formula you used is based on GetCurrentHP?


  • 0

#51
Inferno

Inferno

    Advanced Member

  • Contributor
  • 217 posts

TS_FUNCTIONARRAY.KDA = function(obj1, obj2, high) if (high) then return GetCurrentHP(obj1) > GetCurrentHP(obj2)
else return GetCurrentHP(obj1) < GetCurrentHP(obj2)
 
 
BUG on your code.
 
KDA formula you used is based on GetCurrentHP?

If you look closer to deLibrary documentation, you will see that this feature NOT YET IMPLEMENTED. (Just because Feretorix didn't yet implemented GetKillsCount,GetDeathCount and so on)
This string is just a placeholder for actual function, it will be added as soon as Feretorix will release everything needed to implement it.

1vQhbVS.png
WIP means "Work In Progress", so it will not work at all, and this strings is placed there to show that in future there will be new awesome mode.
  • 0

#52
Inferno

Inferno

    Advanced Member

  • Contributor
  • 217 posts
Update. Bug fixes. DelayManager. Other nice things. All 4 u.
  • 0

#53
Inferno

Inferno

    Advanced Member

  • Contributor
  • 217 posts
Update! Now 90% less glitches! Enjoy!
  • 0

#54
Meown

Meown

    Advanced Member

  • Members
  • 115 posts

Update! Now 90% less glitches! Enjoy!

how this works?


  • 0

#55
Meown

Meown

    Advanced Member

  • Members
  • 115 posts

http://postimg.org/image/r4uiqogin/ help please error loading module 'deLibrary' thx if you help me.


  • 0

#56
Meown

Meown

    Advanced Member

  • Members
  • 115 posts

http://postimg.org/image/xy2lh1805/ i need help to fix this thanks.


  • 0

#57
Inferno

Inferno

    Advanced Member

  • Contributor
  • 217 posts

http://postimg.org/image/xy2lh1805/ i need help to fix this thanks.

You saved the file with wrong charmap. Ensure, please, that you saved it as UTF-8 (without BOM) or ANSI.
  • 0

#58
Meown

Meown

    Advanced Member

  • Members
  • 115 posts

http://postimg.org/image/4r9ls4xeb/ this is my new problem.


  • 0

#59
Inferno

Inferno

    Advanced Member

  • Contributor
  • 217 posts

http://postimg.org/image/4r9ls4xeb/ this is my new problem.

Oh. I am very sorry for that.
It is fixed. Re-download, please.
  • 0

#60
Meown

Meown

    Advanced Member

  • Members
  • 115 posts

can you help me via teamview?


  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users