Results 1 to 15 of 15

Thread: ChatBox Question

  1. #1
    Join Date
    Nov 2006
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default ChatBox Question

    I am making an Ultimate Fletcher and I need some help on it. When you click the knife and then click the logs, 3 pictures come up with words under them like this:



    There are only 4 pictures because these are regular logs that I am using for an example. Anything over regular logs has only 3 pictures. Anyways, I want it to find the Long Bow image or words and put the mouse over it until the UpText is "Make 1" and then right click it and selece the "Fletch X" option. I have this as of right now, but I don't think that it will work.

    SCAR Code:
    Procedure FletchBows;
    Begin
      if (BowType = 'Normal') and (BowSize = 'Long') then
        Begin
          OpenInventory;
          UseItem(1);
          Wait(100+random(200));
          MouseItem(2,True);
          Wait(1000+random(1000));
          if (InChat('Long Bow')) then        <---------- Right Here
            Begin
              MMouse(x,y,2,2);
              if (IsUpText('ake 1')) then
                Begin
                  Mouse(x,y,2,2,False);
                  Wait(200+random(100));
                  ClickOption('X',3);
                  Wait(1000+random(500));
                  SendText('30'+chr(13));
                  Repeat
                    FindRandoms;
                    QuickRandoms;
                    RCExamine;
                    AutoTalker;
                    NoBannage;
                    Until (InChat('You have run out of logs.'));
                End;
            End;
        End;
    End;

    I don't think that the InChat procedure will support words as shown in the picture. Any suggestions?

    Thanks!

    - Da Der Der
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig

  2. #2
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    if (InChat('Long Bow')) then

    That is to check the screen in the picture you posted is present right? Well another way to check is
    MMouse(x,y,2,2);
    if (IsUpText('ake 1')) then
    which you already have.

    If you really want to search for the words you will have to treat them as dtms (maybe bitmaps but they are 0 ).

    Until they add something like crossbows again, the coords won't change, so you can just use mousebox or something.

  3. #3
    Join Date
    Nov 2006
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    How would MMouse(x,y,2,2) find the pic or the words? Would it just move around the whole screen until it found the UpText?
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig

  4. #4
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    No you set x,y to the coords of the bow. The coords won't change (unless update like cbows), theres no need for finding the picture.

  5. #5
    Join Date
    Nov 2006
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes, but wouldn't coords be a little bit detectable?
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig

  6. #6
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Not with randomness. Check out mousebox in mouseflag.scar

  7. #7
    Join Date
    Nov 2006
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Alright, thanks for all your help. Now one more question.. XS and YS are the upper left corner of the box and XE and YE are the lower right corner of the box, am I right?
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig

  8. #8
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    yes (s=start=smaller and e=end=bigger)

  9. #9
    Join Date
    Nov 2006
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ya that's what I thought. Thanks again.
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig

  10. #10
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Np. Just remember that coords are only bad if its the same spot everytime. Bitmaps/colors/dtms can also be bad if they is no randomness. For example finddtm(x,y,dtm) mouse(x,y,0,0,true) will always click the parent dot of the dtm exactly.

  11. #11
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i think you can use FindNpcChatText('LongBow')

  12. #12
    Join Date
    Nov 2006
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Alright, thanks Infintry, I'll look into it.
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig

  13. #13
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Yes you can. It will set x,y to the top left of the first letter, so you will need randomness.

  14. #14
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    I would use I guess FindNPCChatText in combination with the Globals: MCX1, MCY1, MCX2, MCY2 (define the edgepoints of the ChatWindow), or you could use BitmapMasks...
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  15. #15
    Join Date
    Nov 2006
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Alright WT-Fakawi, thank you for your suggestion.
    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Chatbox finding...
    By faster789 in forum OSR Help
    Replies: 2
    Last Post: 04-19-2008, 06:25 AM
  2. cords for chatbox
    By RudeBoiAlex in forum OSR Help
    Replies: 6
    Last Post: 09-29-2007, 11:09 PM
  3. My Chatbox Responder (Updated, Faster, Works better)
    By Pentti in forum RS3 Outdated / Broken Scripts
    Replies: 20
    Last Post: 08-24-2007, 09:40 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
  •