Post by Darth Maul on Jun 8, 2018 17:23:10 GMT
elfbotscripts.freeforums.net/post/472/thread
As I said earlier, elfbot can't handle decimal values easily.
It's good to see you've done some research and managed to get a semi-functioning script, nice work.
You might be able to do something like this to work around the limitations of elfbot, you'll need to place it inside a cavebot script:
(Incase you don't know how to test the script out, go to the Cavebot panel, then click the Edit button on the top-right of the Cavebot page. After that a new tab will open, enter the entire script, hit save on that tab then close it. You'll be brought back to the Cavebot tab, when you want to run the script just tick Follow Waypoints, in the center of the tab. Say 'add', in any channel, for the script to activate. Any time you say 'add' it'll send you a message with the new total.)
If you don't quite understand what's going on, and you want me to explain it, just ask.
Would you mind telling me which server this is for? I'd like to see the system you're trying to by-pass within a server.
Hello again Kozaczkowaty,
As I said earlier, elfbot can't handle decimal values easily.
It's good to see you've done some research and managed to get a semi-functioning script, nice work.
You might be able to do something like this to work around the limitations of elfbot, you'll need to place it inside a cavebot script:
(Incase you don't know how to test the script out, go to the Cavebot panel, then click the Edit button on the top-right of the Cavebot page. After that a new tab will open, enter the entire script, hit save on that tab then close it. You'll be brought back to the Cavebot tab, when you want to run the script just tick Follow Waypoints, in the center of the tab. Say 'add', in any channel, for the script to activate. Any time you say 'add' it'll send you a message with the new total.)
set $msgcount 0
set $wholenum 0
set $total 0
auto 1 | listas 'msg counter' | foreach 'newmessages' $c if [$c.content ? 'add'] {set $msgcount '[$msgcount + 1]' | if [$msgcount >= 20] {set $wholenum '[$wholenum + 1]' | set $msgcount '[$msgcount - 20]'} | if [$msgcount > 1 and $msgcount < 20] {set $total '[$wholenum].[$msgcount*5]'} | if [$msgcount <= 1] {set $total '[$wholenum].0[$msgcount*5]'}
auto 1 | dontlist | foreach 'newmessages' $c if [$c.content ? 'add'] {pm '$self.name' 'msgcount: $msgcount -- whole numbers: $wholenum -- total: $total' | wait 1000}
If you don't quite understand what's going on, and you want me to explain it, just ask.
Would you mind telling me which server this is for? I'd like to see the system you're trying to by-pass within a server.