Results 1 to 5 of 5

Thread: Just a quick easy one [I think]

  1. #1
    Join Date
    Feb 2007
    Location
    SparklesProd.com
    Posts
    2,406
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default Just a quick easy one [I think]

    Theres a part of my script which contains:

    SCAR Code:
    ClickNpcChatText('Click here to continue');
      wait(2000);
     ClickNpcChatText('Sure,');

    The first time round the loop, it calls on the procedure and clicks the 'Sure, I'll give it a go.' Option, but the second time round, it just clicks the 'Click here to continue' and then just moves onto the next procedure.

    1stly, is there any way I can include the full 'Sure, I'll give it a go.' into my script (seeing as I'll involves a quotation mark and therefore this marks the end of the sentence).

    ie

    SCAR Code:
    ClickNpcChatText('Click here to continue');
      wait(2000);
     ClickNpcChatText('Sure, I'll give it a go.');

    How can you fix that? :P

    2ndly, anyone know why it just clicks the Sure option the 1st time round the loop and no other times?

    Thanks in advance

  2. #2
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    I don't know, but including the whole thing MIGHT make it mess up more. Try just making it look for 'it a go'. Oh, and for the Click to Continue thing, just use the ClickToContinue function.

  3. #3
    Join Date
    Feb 2007
    Location
    SparklesProd.com
    Posts
    2,406
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Tried 'it a go.' and it fucked up the 3rd time round

    Also, im using

    SCAR Code:
    procedure FindCompetitionJudge;
    var
      no: Integer;
    begin
    FindObject(x, y, 'Talk-to', 1143949, 10, True)
      begin
        Mouse(x, y, 1, 1, False);
        if (ChooseOption(x, y, 'Talk-to')) then
        begin
            Wait(100);

           no := no + 1
       end;
      end;
    end;

    To find the npc. Is there any finding npc function that checks the name of the npc aswell?

    Ty for your help bullz.

  4. #4
    Join Date
    Sep 2006
    Posts
    916
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    ClickNpcChatText('Sure, I''ll give it a go.');

    Just duplicate the apostrophe .

  5. #5
    Join Date
    Feb 2007
    Location
    SparklesProd.com
    Posts
    2,406
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    hmm, i tried that first but then thought to myself, surely that won't check for the presence of the ' inbetween the I and the ll.

    It will just check 2 seperate strings "Sure, I" and "ll give it a go."?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. quick easy help with an error please?
    By lemonfuzz in forum OSR Help
    Replies: 2
    Last Post: 02-27-2009, 03:54 AM
  2. Just a quick question? Did I say quick?
    By SeanJohn in forum OSR Help
    Replies: 3
    Last Post: 01-28-2009, 12:03 AM
  3. I need some easy help
    By yanix in forum C#/Visual Basic Help and Tutorials
    Replies: 2
    Last Post: 07-04-2008, 06:31 PM

Posting Permissions

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