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

Broken buff.stacks (?)


Best Answer RMAN , 26 June 2017 - 06:17

Noddy told me to use .count instead and its working, please close/delete topic

Go to the full post »


  • Please log in to reply
8 replies to this topic

#1
RMAN

RMAN

    Advanced Member

  • Contributor
  • 523 posts
I'm trying to find how many E/R stacks Kassadin has using: 
 
for i = 0, unit.buffCount do
    local buff = unit:GetBuff(i)


    if buff.name == "forcepulsecounter" then
     self.passiveTracker = buff.stacks
     PrintChat(buff.stacks)
    end

    if buff.name == "RiftWalk" then
      self.stacks = buff.stacks
      PrintChat(buff.stacks)
    end     
 end

but, well, passiveTracker and stacks var are always 0.

 

Could be something really dumb on my side but I cant find the answer :/

 

Any ideas on alternative ways to do it if its broken?

 


  • 0

#2
RMAN

RMAN

    Advanced Member

  • Contributor
  • 523 posts

Also, Game.CanUseSpell(_E) always returns True. Even if you dont have stacks to cast E..


  • 0

#3
RMAN

RMAN

    Advanced Member

  • Contributor
  • 523 posts
✓  Best Answer

Noddy told me to use .count instead and its working, please close/delete topic


  • 0

#4
Toshibiotro

Toshibiotro

    Lord and Saviour of GoS

  • Banned
  • PipPipPip
  • 957 posts
  • LocationThe Moon

Also, Game.CanUseSpell(_E) always returns True. Even if you dont have stacks to cast E..

Game.CanUseSpell returns an integer :huh:


  • 0

#5
Deftsu

Deftsu

    donthackourgames

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

Game.CanUseSpell returns an integer :huh:

 

i wonder when it will get called GetSpellState :^)


  • 0

#6
USDcammer

USDcammer

    Advanced Member

  • Banned
  • PipPipPip
  • 588 posts
  • LocationINTO THE VOID

if still needed or just to see

local function Stacks()
        for i = 1, 38767 do
        local Buff = myHero:GetBuff(i)
            if Buff.name:lower() == "passivename" and Game.Timer() < Buff.expireTime then
                return Buff.count
            end
        end
        return 0
end

  • 0

#7
Deftsu

Deftsu

    donthackourgames

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

if still needed or just to see

local function Stacks()
        for i = 1, 38767 do
        local Buff = myHero:GetBuff(i)
            if Buff.name:lower() == "passivename" and Game.Timer() < Buff.expireTime then
                return Buff.count
            end
        end
        return 0
end

38767???
  • 0

#8
Cloud

Cloud

    KAPPA

  • Ex-Staff
  • PipPipPip
  • 1,498 posts

38767???

I looked at that and said wtf myself. Some of these devs have no brain :kek:


  • 0

#9
USDcammer

USDcammer

    Advanced Member

  • Banned
  • PipPipPip
  • 588 posts
  • LocationINTO THE VOID

38767???


A random value for eg, if he will use it, its not my concern anymore Kappa
  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users