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

[9.6] bugs


Best Answer Feretorix , 23 March 2019 - 04:21

Fixed

Go to the full post »


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

#1
gamsteron

gamsteron

    Advanced Member

  • Scripts Developer
  • 931 posts

problem with buff.count, buff.stacks, ???
 

        local s = ""
        for i = 0, _G.myHero.buffCount do
            local buff = _G.myHero:GetBuff(i)
            if buff and buff.count > 0 then
                for key, value in pairs(buff) do
                    s = s .. key .. ": " .. value .. "\n"
                end
                s = s .. "\n"
            end
        end
        Draw.Text(s, 150, 150)

nHdwzPn.jpg


  • 4

#2
pussykate

pussykate

    Advanced Member

  • Banned
  • PipPipPip
  • 1,477 posts
  • LocationGermany
  1. function GetBuffData(unit, buffname)
  2. for i = 0, unit.buffCount do
  3. local buff = unit:GetBuff(i)
  4. if buff.name == buffname and buff.count > 0 then
  5. return buff
  6. end
  7. end
  8. return {type = 0, name = "", startTime = 0, expireTime = 0, duration = 0, stacks = 0, count = 0}
  9. end

same with buff


  • 1

#3
Deftsu

Deftsu

    donthackourgames

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

reported to fere, will be fixed soon


  • 1

#4
Feretorix

Feretorix

    Administrator

  • Administrators
  • 3,179 posts
✓  Best Answer

Fixed


  • 4




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users