Click here to buy some Tibia gold in our shop

Results 1 to 1 of 1

Thread: how to do simple math with the cavebot?

  1. #1
    Join Date
    Jul 2011
    Posts
    130

    Default how to do simple math with the cavebot?

    EDIT: nevermind, figured it out,
    Code:
    fastExiva _loop=$numericalexp:{$_loop$}+1$

    -original message:
    eg i want to loop a particular part of the code 20 times, i want do to something like


    Code:
    fastExiva _loopCounter=0
    fastExiva _loopCounter=0
    :startLoop
    sayMessage $_loopCounter$
    fastExiva _loopCounter=$_loopCounter$+1
    IfTrue ($_loopCounter$#number<=#3) Goto $nlineoflabel:startLoop$
    :endLoop
    i'm not sure how to do the "fastExiva _loopCounter=$loopCounter$+1"-part
    Last edited by Hans Henrik; 03-07-2019 at 22:38.
    to get my attention, send me a PM/mail.

Posting Permissions

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