Signup Now
Results 1 to 3 of 3

Thread: $cap return

  1. #1
    Free User
    Join Date
    Mar 2015
    Posts
    36
    Reputation
    10
    Rep Power
    0

    $cap return

    I'm playing a T server that has an ANTI -BOT system that does ask about what your CAP , what is your skill etc.
    I managed to develop a system to answer such anti bot but I'm problems with the variable that returns my cap .
    She is returning my CAP but wrong .


    he should return 9168

    But is returning for example : 9167.25


    ___

    auto(800, 1000)

    local x = $cap
    say("my cap is "..x)

  2. #2
    Free User Borges's Avatar
    Join Date
    Feb 2014
    Location
    Brazil
    Posts
    1,469
    Reputation
    205
    Rep Power
    25
    Quote Originally Posted by Scott digo View Post
    I'm playing a T server that has an ANTI -BOT system that does ask about what your CAP , what is your skill etc.
    I managed to develop a system to answer such anti bot but I'm problems with the variable that returns my cap .
    She is returning my CAP but wrong .


    he should return 9168

    But is returning for example : 9167.25


    ___

    auto(800, 1000)

    local x = $cap
    say("my cap is "..x)
    Isn't wrong, tibia don't appers the cap after comma, and some items have cap less than 1, 0.01, 0.02 ...

    Try this:
    local cap = math.ceil($cap)
    local msg = 'Whats your cap?'
    local sender = 'GM Borges'
    auto(2000)
    if $lastmsg.content == msg and $lastmsg.sender == sender then
    say('my cap is '..cap)
    end


    MATH LIBRARY TUTORIAL
    Last edited by Borges; 07-31-2015 at 12:18 PM.
    Helped you? REP+

  3. #3
    Free User
    Join Date
    Mar 2015
    Posts
    36
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by borges View Post
    isn't wrong, tibia don't appers the cap after comma, and some items have cap less than 1, 0.01, 0.02 ...

    Try this:
    local cap = math.ceil($cap)
    local msg = 'whats your cap?'
    local sender = 'gm borges'
    auto(2000)
    if $lastmsg.content == msg and $lastmsg.sender == sender then
    say('my cap is '..cap)
    end


    math library tutorial
    thaaaaaaaaaaaanks <3

 

 

Posting Permissions

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