Results 1 to 4 of 4

Thread: Need help on java script

  1. #1
    Join Date
    Mar 2013
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default Need help on java script

    I need to figure out a way to make a

    if statement

    about the chatbox, I need to know when it says item out of stock

    so that i can create the if statement to end when item is out of stock help please?

  2. #2
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Erm can you explain in detail what you want?

  3. #3
    Join Date
    Mar 2013
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    So i have all the mouse movements for when the script is buying what i need is

    ex.
    1=Exists
    0=empty
    Stock =1

    Well= GetChatBoxText(i,clBlack);

    If Well has: this item is out of stock

    Stock =0
    else
    Stock = 1

    get it?

    and then if stock =1 it repeats

  4. #4
    Join Date
    Apr 2012
    Posts
    157
    Mentioned
    10 Post(s)
    Quoted
    57 Post(s)

    Default

    You could try something like if InChat(':') then, instead of using GetChatBoxText. Or you could do if FindChatBoxText(':', 0, clBlack) then, if you need to search a specific line.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •