Results 1 to 6 of 6

Thread: Where do i put my useragent

  1. #1
    Join Date
    Dec 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Arrow Where do i put my useragent

    hello i'm having trouble starting a script.

    It tells me to copy my useragent and put it in the form:

    No UserAgent detected. Opening up webpage to get userAgent
    Copy your useragent text and paste it into the form

    i put my user agent in this part:

    smartUserAgent := playerForm.players[i].settings[5]; (********i put my useragent here********) //useragent

    and it says Error: Unknown declaration "Mozilla" at line 119
    Compiling failed.

    any help will be appreciated, script is ashmansherblore
    already pm'd him yesterday still waiting for a reply
    mod please move if it's in the wrong spot

  2. #2
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    In its current state, the script is pulling your useragent from the SRL Player Form. If you want to set it manually, you'll need to declare it as a string.

    For example, if I wanted to declare my useragent, I'd replace that line with:
    Simba Code:
    smartUserAgent := 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:37.0) Gecko/20100101 Firefox/37.0';

    Although you should just be able to paste your useragent string into the SRL Player Form itself, as the script instructs.
    Last edited by KeepBotting; 05-11-2015 at 08:50 PM.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  3. #3
    Join Date
    Dec 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    ah thank you and so I just put my useragent in how you did it the second time and it gave me this error:

    Error: Operator expected at line 121
    Compiling failed.

    print('slots: ' + toStr(slots));

  4. #4
    Join Date
    Dec 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    In its current state, the script is pulling your useragent from the SRL Player Form. If you want to set it manually, you'll need to declare it as a string.

    For example, if I wanted to declare my useragent, I'd replace that line with:
    Simba Code:
    smartUserAgent := 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:37.0) Gecko/20100101 Firefox/37.0';

    Although you should just be able to paste your useragent string into the SRL Player Form itself, as the script instructs.
    ahh!!! this worked for me now.
    thanks a lot really appreciate your time and help

    EDIT: actually it is saying the same thing as before

  5. #5
    Join Date
    Dec 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    How do i paste it into my srl player form (can't find it)

  6. #6
    Join Date
    Aug 2014
    Location
    Australia
    Posts
    932
    Mentioned
    53 Post(s)
    Quoted
    495 Post(s)

    Default

    Quote Originally Posted by 7 75 View Post
    How do i paste it into my srl player form (can't find it)
    Please don't multi-post, just edit your posts instead. Unless the script has been written incorrectly the SPF will load when you run the script.



    New to scripting? Procedures & Functions for Beginners
    Do you use your computer at night? Just get f.lux

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
  •