Ghoast 0 Posted April 25, 2012 Report Share Posted April 25, 2012 Okay, SO issue is this: Bot signs up to a site and then has to choose a 'blog' template out of about 15 options. I want it to choose a different one everytime.. I've tried spinning the parameter so that it changes everytime but it says: invalid parameter.. Here's what I've got so far: Click Spin {<src="http://assets.bravenet.com/common/images/journal/themes/theme37.png">|<src="http://assets.bravenet.com/common/images/journal/themes/theme40.png">|<src="http://assets.bravenet.com/common/images/journal/themes/theme39.png">|<src="http://assets.bravenet.com/common/images/journal/themes/theme2.png">|<src="http://assets.bravenet.com/common/images/journal/themes/theme1.png">} Doesn't work at the moment - any ideas on randomizing what ubot clicks on..? Quote Link to post Share on other sites
Legend 181 Posted April 25, 2012 Report Share Posted April 25, 2012 Personally, I wouldn't use the spin function for this, I would have the bot pick a random number between 1 and 15 (each corresponding to one of your options) and then using a series of "if... then statements" I would have it select that random option... there are probably other ways to achieve this as well... http://ubotstudio.com/forum/public/style_emoticons/default/rolleyes.gif Quote Link to post Share on other sites
magoo 31 Posted April 25, 2012 Report Share Posted April 25, 2012 You could just add the options to a list and select random list item. Quote Link to post Share on other sites
Ghoast 0 Posted April 25, 2012 Author Report Share Posted April 25, 2012 SOLVED: The correct way to do this is put the spin option within the parameter: click(<src="http://assets.bravenet.com/common/images/journal/themes/theme{$spin("\{37|40|39|2|1\}")}.png">, "Left Click", "No") Quote Link to post Share on other sites
Legend 181 Posted April 25, 2012 Report Share Posted April 25, 2012 cool... http://ubotstudio.com/forum/public/style_emoticons/default/rolleyes.gif Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.