UBot Help, Unable to Get Random Value from List.

spyece

Newbie
Joined
Jun 28, 2010
Messages
38
Reaction score
11
Hello,

I Just watched a tut on youtube and tried to extract a random item from list. But its not working and i am unable to figure out why :( if anyone can please take a look at the ubot file below and tell me where i am going wrong. It would be really helpful to me. :)

It Always Shows me the Second Value from the list, instead of random value.

- I Tried Adding Tons of Proxies in List and its still the same. I only keep getting the second value.

Screenshot
Code:
hxxp://i.imgur.com/UrzujiB.png

Ubot File *Hotfile Hotlink
Code:
hxxp://hotfile.com/dl/251970219/03999de/Random_List_Item.ubot.html

Thanks in Advance.
 
Hey Spy,

I see the problem, you should report the bug.

Here is a workaround...alert($list item(%ProxyListx, $rand(0, $subtract($list total(%ProxyListx), 1))))

I know you can't put the code back into your bot, but you get the idea.

Use the $list item, from $Proxylistx and then pick a random number between 0 and the list total minus 1, since the array starts at "0" not "1". Same as the Random Item, but this works. :)

You probably knew this method, but just wanted to get you working ASAP.

Happy Botting!
 
linc0lnave
- Thanks, ill give it a try
 
Maybe you should posted this in the ubot forum instead?
Ubot 5 is SO buggy as of now.
Better stick with version 4.

P.S. I have standard version too.
 
Back
Top