XenoBot Forums - Powered by vBulletin

User Tag List

Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

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

  1. #11
    Monthly Subscriber
    Join Date
    Jun 2012
    Posts
    185
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    Of course it works but it just sucks dick. For example if you "dofile" lua files that "dofiles" other lua files they can overwrite and fuck everything up. Thats why "require" was created but unfortunately doesn't work :|

  2. #12
    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
    You are retarded.



    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
    How am i retarded?
    Attached Images Attached Images

  3. #13

    Join Date
    May 2015
    Posts
    156
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by eldera View Post
    Of course it works but it just sucks dick. For example if you "dofile" lua files that "dofiles" other lua files they can overwrite and fuck everything up. Thats why "require" was created but unfortunately doesn't work :|
    allmywats.jpg

  4. #14
    Moderator shadowart's Avatar
    Join Date
    Dec 2014
    Location
    Sweden
    Posts
    1,985
    Mentioned
    225 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by eldera View Post
    Of course it works but it just sucks dick. For example if you "dofile" lua files that "dofiles" other lua files they can overwrite and fuck everything up. Thats why "require" was created but unfortunately doesn't work :|
    In what way does require not work for you? I had to fight it a little to get package.path to accept a relative path but now it seems to be working.

  5. #15
    Senior Member
    Join Date
    Jul 2014
    Posts
    788
    Mentioned
    62 Post(s)
    Tagged
    0 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.
    lua code:

    function getExperienceForLevel(level)
    local level = level or Self.Level()
    return ((50.0 / 3.0) * math.pow(level, 3)) - (100.0 * math.pow(level, 2)) + ((850.0 / 3.0) * level) - 200
    end

    function getExperienceLeft(level)
    local level = level or Self.Level() + 1
    return getExperienceForLevel(level) - Self.Experience()
    end

  6. #16
    Monthly Subscriber
    Join Date
    Jun 2012
    Posts
    185
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by shadowart View Post
    In what way does require not work for you? I had to fight it a little to get package.path to accept a relative path but now it seems to be working.
    It just didn't work for specified name of files but unfortunately I don't remember them anymore. I can try to replicate that "bug" though.


    Quote Originally Posted by HjugO View Post
    lua code:

    function getExperienceForLevel(level)
    local level = level or Self.Level()
    return ((50.0 / 3.0) * math.pow(level, 3)) - (100.0 * math.pow(level, 2)) + ((850.0 / 3.0) * level) - 200
    end

    function getExperienceLeft(level)
    local level = level or Self.Level() + 1
    return getExperienceForLevel(level) - Self.Experience()
    end
    Can you even read? Would be nice if you can add those functions to XenoLuaLib - suggestion was to add those functions to XenoLuaLib (so you actually don't have to write/paste your own in every script that gonna use them), not to write them for me.

  7. #17
    Senior Member
    Join Date
    Jul 2014
    Posts
    788
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by eldera View Post
    It just didn't work for specified name of files but unfortunately I don't remember them anymore. I can try to replicate that "bug" though.


    Can you even read? Would be nice if you can add those functions to XenoLuaLib - suggestion was to add those functions to XenoLuaLib (so you actually don't have to write/paste your own in every script that gonna use them), not to write them for me.
    Fuck you PXForum kiddo, go there to your pedo-friends - ohhh wait I forgot . You are not a hub of Universe. If you don't wanna paste every time to your script then paste those functions to actually XB Library. Fuck you and have a nice day.

  8. #18
    Monthly Subscriber
    Join Date
    Jun 2012
    Posts
    185
    Mentioned
    22 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by HjugO View Post
    Fuck you PXForum kiddo, go there to your pedo-friends - ohhh wait I forgot . You are not a hub of Universe. If you don't wanna paste every time to your script then paste those functions to actually XB Library. Fuck you and have a nice day.
    Why you so mad bro? Take a chiill pill or something lol. If I paste those functions manually into XB lib people with my scripts would've to do exactly the same thing by themselfs, also after update of lib we would've to do it again.

Posting Permissions

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