Jump to content
UBot Underground

Leaderboard

Popular Content

Showing content with the highest reputation on 06/02/10 in all areas

  1. After much time asking others here how to make more stable and trustworthy code, I've finally figured out the formula to make exactly that... And I'm no programmer, so I thought I'd put this chart together for other newbs/non-programmers here on exactly how to properly code parts of your bot so that every part of your bot fires off correctly and everything actually gets done. The secret is to split up every chunk of functionality into its' own sub first, and then code the following in each: If you don't use the optional node there, it will still keep looping until the job is done in the
    3 points
  2. If I were approaching this I'd write a sub that convert the numeric month to the full word and and another that returned the abbreviated month name. In your script you'd just have to scrape the attribute into a list and read the first one (January), then pop in if conditions based on if its January, if its Jan or else it must be numeric. In either of the two word cases call the appropriate sub to get the data to fill in into a variable and then fill the value with the contents of that variable. Andy
    2 points
  3. I believe this is the most correct approach at the moment.
    1 point
  4. Set #isfound=0 -Loop While #isfound=0 if searchpage "object you are looking for" then #isfound=1 any other code you might want. -(end of loop) You might want to cater for the possibility the object is never found (to prevent getting stuck in an endless loop), in which case... Set #isfound=0 Set #temp=0 -Loop While #isfound=0 if searchpage "object you are looking for" then #isfound=1 any other code you might want. inc #temp if #temp >1000 then #isfound=2 -(end of loop) if #isfound = 2 then code for object not being found at all. else... continue. Andy
    1 point
×
×
  • Create New...