XenoBot Forums - Powered by vBulletin

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Add Self.xxxPercent() functions and more.

  1. #1
    Monthly Subscriber
    Join Date
    Jun 2012
    Posts
    185
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb Add Self.xxxPercent() functions and more.

    Would be nice if you can add those functions to XenoLuaLib:
    - Self.ManaPercent()
    - Self.HealthPercent()
    - Self.LevelPercent()
    - Self.ExperienceLeft()
    - Self.SKILLPercent() where SKILL is Sword, Axe, Club, Mlvl itp...

    And meaby Self.Vocation() - I know it's impossible to read them from client unless you "Look" on character ingame but it can be guessed by amount of health/mana at x level, also it's possible to track it by gear specified for each vocation like glaciar rod for ed, underworld robe for ms etc...

    + something that is currently impossible to do with xenobot - inviting players to party and accepting it. It's hard to make teamscripts without it.
    Last edited by eldera; 12-24-2015 at 12:39 AM.

  2. #2

    Join Date
    Jun 2014
    Posts
    51
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    u can easy make script for Self.Vocation() by analising your eq ( as you said) just script who look on your eq

    edit:

    Self.ManaPercent() is also easy to do just use this code
    Code:
    local ManaPercent = (Self.Mana() / Self.MaxMana() * 100)
    Last edited by Snurq; 12-25-2015 at 01:11 AM.

  3. #3
    Lifetime Subscriber
    Join Date
    Aug 2012
    Location
    Stockholm, Sweden
    Posts
    428
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Yup, I use
    lua code:

    Self.ManaPercent = function ()
    return math.abs(Self.Mana() / (Self.MaxMana() * 0.01))
    end
    Belden's Free Scripts
    Belden's Quest Scripts

    Bought Lifetime Subscription from Fractal
    Bought TeamSpeak 3 Service from Sikkness
    Bought Leveling Service from Y2Quakepc2

  4. #4

    Join Date
    Jun 2015
    Posts
    72
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I see no problem in doing the calculations manually.

  5. #5
    Queen Fatality Fatality's Avatar
    Join Date
    Mar 2014
    Location
    Canada
    Posts
    754
    Mentioned
    83 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by eldera View Post
    Would be nice if you can add those functions to XenoLuaLib:
    - Self.ManaPercent()
    - Self.HealthPercent()
    - Self.LevelPercent()
    - Self.ExperienceLeft()
    - Self.SKILLPercent() where SKILL is Sword, Axe, Club, Mlvl itp...

    And meaby Self.Vocation() - I know it's impossible to read them from client unless you "Look" on character ingame but it can be guessed by amount of health/mana at x level, also it's possible to track it by gear specified for each vocation like glaciar rod for ed, underworld robe for ms etc...

    + something that is currently impossible to do with xenobot - inviting players to party and accepting it. It's hard to make teamscripts without it.
    HealthPercent and ManaPercent are possible, so it's irrelevant. XenoBot currently does not look at Skills (Besides level) IIRC. But if that has changed you will have to ask @DarkstaR. The rest im too lazy to comment on.

  6. #6
    Monthly Subscriber
    Join Date
    Jun 2012
    Posts
    185
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    @Snurq, @krille09

    I know how to calculate mana/health % but I am pretty lazy and don't want to add it everytime I need to use it so thats why I wanted to it in XenoLuaLib.


    Quote Originally Posted by Fatality View Post
    HealthPercent and ManaPercent are possible, so it's irrelevant.
    It's not irrelevant. There is no point of adding Self.ManaPercent() manually every time I or anyone else want to use it in any script when it could be added to XenoLuaLib and be globally accessible from all scripts.

    Quote Originally Posted by Fatality View Post
    XenoBot currently does not look at Skills (Besides level) IIRC.
    Ummm? This is suggestion section?

  7. #7
    Queen Fatality Fatality's Avatar
    Join Date
    Mar 2014
    Location
    Canada
    Posts
    754
    Mentioned
    83 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by eldera View Post
    @Snurq, @krille09

    I know how to calculate mana/health % but I am pretty lazy and don't want to add it everytime I need to use it so thats why I wanted to it in XenoLuaLib.




    It's not irrelevant. There is no point of adding Self.ManaPercent() manually every time I or anyone else want to use it in any script when it could be added to XenoLuaLib and be globally accessible from all scripts.



    Ummm? This is suggestion section?
    Yeah, but Mana and Health... They're there.. NO point to make it native if you can do it, its like mapclick, you can do it, just people want it built in.

  8. #8
    Lifetime Subscriber
    Join Date
    Aug 2012
    Location
    Stockholm, Sweden
    Posts
    428
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    make your own lib then make dofile("your file.lua") something like this then...
    Belden's Free Scripts
    Belden's Quest Scripts

    Bought Lifetime Subscription from Fractal
    Bought TeamSpeak 3 Service from Sikkness
    Bought Leveling Service from Y2Quakepc2

  9. #9
    Monthly Subscriber
    Join Date
    Jun 2012
    Posts
    185
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Fatality View Post
    Yeah, but Mana and Health... They're there.. NO point to make it native if you can do it, its like mapclick, you can do it, just people want it built in.
    You are retarded.

    Quote Originally Posted by krille09 View Post
    make your own lib then make dofile("your file.lua") something like this then...
    Yeah, but when I send script to someone I have to send this shit also... And other than that dofile sucks dick and require '' doesn't work

  10. #10
    Lifetime Subscriber
    Join Date
    Aug 2012
    Location
    Stockholm, Sweden
    Posts
    428
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    it does work, your just not doing it right, just go support forum and tell whats wrong, it's hard to send ur lib to the person, or like i said earlier, just use it in ur original file
    Belden's Free Scripts
    Belden's Quest Scripts

    Bought Lifetime Subscription from Fractal
    Bought TeamSpeak 3 Service from Sikkness
    Bought Leveling Service from Y2Quakepc2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •