Results 1 to 8 of 8

Thread: help with findplayername

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

    Default help with findplayername

    how does they botfinder/reporter script get the usernames from the game?

    i want to use this idea in a script idea of mine but i need to understand how it works because im trying to bring the same idea over to Visual basic and use it for something else

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

    Default

    i tried doing that too...and it didnt work...but if u find out tell me
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


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

    Default

    could someone please help..

    i put this line in

    ass := GetTextAtEx(x , y , 130, upchars, True, True, 0, 0, -1, 50,
    False, tr_Normalchars);

    and tr_normalchars gives me a mismatch error

    [Error] (11:23): Type mismatch in script C:\Documents and Settings

  4. #4
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You are using it correctly. Check to make sure you have defined UpChars as an Integer and not a string.

    Check to make sure 'ass' is a string as well.

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

    Default

    i can get it to work but im still unsure HOW it works, what i really want is it to get the username when you hit F2 key, i dont know have to set that up really

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

    Default

    bumpsz

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

    Default

    once u get the find their names part just use the keys to make it do that once u press f 12..
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  8. #8
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It just checks to see if the text you specify is at the coordinates x, y. Most of the parameters are pretty self-explanatory, and if you look at the description in the guide you should figure out what they do. If you have specific questions, just ask.

    In order to use the F2 you would use the funtion "IsFKeyDown(num:byte)", which returns a boolean depending on whether the key you specify is down at the time. The 'num' argument cooresponds to the number of the F key, so F2 would be 2.

    In order to have scar do something if the key is down, you just throw it in a conditional.

    SCAR Code:
    if (IsFKeyDown(2)) then
      //whatever you want it to do
    This will only check once if the key is down however, so you need to put it in a loop

    SCAR Code:
    repeat
      if (IsFKeyDown(2)) then
        GetTexAtEx(.....);
    until (false)






    P.S: Bumping is unnecessary on this forum, so don't do it.

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
  •