Results 1 to 10 of 10

Thread: finding names

  1. #1
    Join Date
    Apr 2007
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default finding names

    i want a script to get the name of a player, how can i do this.

    im really not sure sort of new to scar, and very new to Srl.

    basically i want the script to set a users name to a variable after you click duel, its for an auto dueler im thinking of making.

    any help would be awesome.

    i was reading about GetTextAtEx but i cant figure out how to make it get the characters name when i click on duel.

    P.s also this is not runescape related but how can you highlight a line of text with scar?

  2. #2
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    to highlight use holdmouse and release mouse

    for example
    SCAR Code:
    begin
    clickmouse(x,y,true);
    wait(50);
    Holdmouse(x,y,true);
    wait(50);
    Movemouse(x,y);
    wait(50);
    Releasemouse(x,y,true);
    end;

  3. #3
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    [scar ][/scar]
    procedure this;
    Ummm do
    SCAR Code:
    if(inchat('dcvavadvadfvaaa'))then
    Mouse(x,y,2,2,true);
    repeat
    This;
    until FindDTM(of the x at the right top of dueling thing
    begin
    //rest of script
    end;
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  4. #4
    Join Date
    Apr 2007
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    could someone explain

    if(inchat('dcvavadvadfvaaa'))then
    Mouse(x,y,2,2,true);
    repeat
    This;
    until FindDTM(of the x at the right top of dueling thing
    begin
    //rest of script
    end;

    this to me im not sure what its doing so its hard to use it

  5. #5
    Join Date
    Apr 2007
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    bump

  6. #6
    Join Date
    Jun 2006
    Location
    New Zealand
    Posts
    285
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If it finds the text "dcvavadvadfvaaa" then it would click there and do This; until it finds the dueling screen? Use Masks, there is a tutorial somewhere or look inside SRL to find out how they did it.
    Huehuehuehuehue

  7. #7
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    i think he wants the script to find the player name though not a specific one\

    uhhhhhh mayb make the script right click then use gettextatex

  8. #8
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    do
    SCAR Code:
    if(Inchat('has chalenged you do a duel');
    then wouldnt u be able to just click?
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  9. #9
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    SCAR Code:
    Function GetDuelName(var Chatter) : Boolean;
    var
      Line : String;
    begin
      if(InChat('lenged yo'))then
      begin
        Line := GetNewChatMessage;
        Line := 'x' + Line;
        Chatter := Between('x', ' has ch', Line);
        result := true;
      end else
      begin
        result := false;
        Chatter := '';
      end;
    end;

    I think that will work (pretty sure there's a better way, though)
    Interested in C# and Electrical Engineering? This might interest you.

  10. #10
    Join Date
    Apr 2007
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    what i really want it to do is when you click on the player and see trade/duel/follow/ect and then you click F2 it graps their name and stores it]

    i got an idea for this after using botcatcher. i looked at his code and couldn't figure it out


    PS

    i dont understand this i have this code and still the script ends. how can 2 possibly ever = 1000!

    Repeat
    FINDNAME;
    Wait(3000+random(50))
    until(2 = 1000)
    end.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 09-23-2008, 03:37 AM
  2. new str pure names?
    By RudeBoiAlex in forum RuneScape News and General
    Replies: 9
    Last Post: 08-26-2007, 09:04 PM
  3. Army Names?
    By Harry in forum News and General
    Replies: 19
    Last Post: 04-15-2007, 11:25 AM
  4. hi names john =p
    By ownage4j00 in forum Who Are You ? Who ? Who ?
    Replies: 9
    Last Post: 02-27-2007, 04:20 AM

Posting Permissions

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