Jump to content
UBot Underground

Keep Track Of Element Present?


Recommended Posts

Hello,

 

I'm trying to check and see if account are being upgraded or not, however I can't seem to figure out how to do this. I thought of adding a column to my table that's purpose was to look for a certain element that would determine if they were premium accounts or free ones. However I don't know of a way to add information like this to a list. I'm currently messing around and this is the best I could come up with, but it when it loops it doesn't add a new line, it just overwrites the current line.

set list position(%upgraded, 0)
loop(10) {
    if($exists(<title="Home">)) {
        then {
            add item to list(%upgraded, 1, "Delete", "Global")
            wait(1)
        }
        else {
            add item to list(%upgraded, 0, "Delete", "Global")
            wait(1)
        }
    }
    navigate("http://www.ubotstudio.com/resources", "Wait")
}

So basically I need it so if the element is present it'll add the item "1" for true and if it isn't present then it'll add the item "0" for false. The problem is it doesn't add a new line with the new variable in the list.

 

Even after 10 loops this is what the debugger looks like: http://puu.sh/fIE2H/c8d1755973.png

 

I need it to have 10 items after it's been run 10 times, how would I go about this?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...