Results 1 to 8 of 8

Thread: Help: Loading Non-English Servers In SMART

  1. #1
    Join Date
    Dec 2006
    Location
    Canada, BC
    Posts
    728
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help: Loading Non-English Servers In SMART

    I want to run bots on the non english servers, but i dont understand how smart loads the client. Could someone pretty please show me how?
    Lance. Da. Pants.

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Don't think that's possible currently. And AFAIK only benland has the source for smart.

  3. #3
    Join Date
    Dec 2009
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Benland decided to close source SMART, so that would not be possible that way, but it think there was something (loadsmartext or something) where you can do it.
    I remember trying it on a army, and i got it to work in a german server, but it was kinda a pain.

  4. #4
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    There's two commented out, and one uncommented Procedures in SMART.scar that may be able to help you out.

    SCAR Code:
    {procedure SmartSaveSettings(v: TVariantArray);
    var
      i: Integer;
      ts: TStringArray;
    begin
      ts := ['server', 'members', 'signed', 'sd', 'DC', AppPath + '\Includes\SRL\SRL\Misc\SmartINI.INI'];
      for i := 0 to 4 do
        WriteINI('SMART', ts[i], v[i], ts[5]);
    end;   }


    procedure SmartSetupEx(Server: integer; members, signed, superdetail: boolean);
    var
      prefix: string;
    begin
      prefix := ReadINI('World' + IntToStr(Server), 'Prefix', AppPath + 'includes\SRL\SRL\misc\worlds.ini');
      if(prefix = '')then
      begin
        writeln('Invalid world number or corrupted world list. Please review your settings');
        TerminateScript;
      end;
      SmartSetup('http://'+prefix+'.runescape.com/', 'plugin.js?param=o0,a' + IntToStr((Integer(not(Signed)) + 1) * Integer(not((SuperDetail and Signed)))) + ',m' + IntToStr(Integer(Members)), 765, 503);
      //SmartSaveSettings([Server, Members, Signed, SuperDetail, SmartGetDC]);
    end;

    {function SmartLastSettings: TStringArray;
    var
      i: Integer;
      ts: TStringArray;
    begin
      ts := ['server', 'members', 'signed', 'sd', 'DC', AppPath + '\Includes\SRL\SRL\Misc\SmartINI.INI'];
      SetLength(Result, 5);
      for i := 0 to 4 do
        Result[i] := ReadINI('SMART', ts[i], ts[5]);
    end; }

    I think putting the correct URL into
    SCAR Code:
    SmartSetup('http://'+prefix+'.runescape.com/',
    would do the trick!

  5. #5
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    you got:

    http://www.runescape.com/l=0/game.ws?j=1
    http://www.runescape.com/l=1/game.ws?j=1
    http://www.runescape.com/l=2/game.ws?j=1
    http://www.runescape.com/l=3/game.ws?j=1

    l=0 is english, I believe 1 is dutch, 2 french, 3 brazilian (some dialect of spanish)

    so what I would do to attempt loading smart in a different language is:

    SCAR Code:
    procedure SmartSetupExx(Language, Server: integer; members, signed, superdetail: boolean);
    var
      prefix: string;
    begin
      prefix := ReadINI('World' + IntToStr(Server), 'Prefix', AppPath + 'includes\SRL\SRL\misc\worlds.ini');
      if(prefix = '')then
      begin
        writeln('Invalid world number or corrupted world list. Please review your settings');
        TerminateScript;
      end;
      SmartSetup('http://www.runescape.com/l=' + IntToStr(Language) + '/game.ws?j=1', 'plugin.js?param=o0,a' + IntToStr((Integer(not(Signed)) + 1) * Integer(not((SuperDetail and Signed)))) + ',m' + IntToStr(Integer(Members)), 765, 503);
      //SmartSaveSettings([Server, Members, Signed, SuperDetail, SmartGetDC]);
    end;

    then you would just put in 0-3 for which language. So it'd be SmartSetupExx(0, 35, False, True, False); Just an extra parameter for the language, try that, if it doesn't work then I'm not sure what would. Sorry I didn't test it, I just edited the procedure YoHoJo posted within this post.

  6. #6
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I don't know how, but it is possible. For a while, my smart kept loading into what seemed to be a Portuguese server :/
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

  7. #7
    Join Date
    Dec 2006
    Location
    Canada, BC
    Posts
    728
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks ;D that's helpful. ill try it and hopefully it will work.
    Lance. Da. Pants.

  8. #8
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    If memory serves well, you could rename your worlds.ini file then modify the world list downloader (core/worldswitcher.scar) to check for a specific languages servers only, which will mean it will always download those ones, ie find http://runescape.com/slu.ws and change to http://runescape.com/l=1/slu.ws (which would get the German servers).

    I believe it should work - it looks like the pages are identically formatted, just different language. I don't believe it will be able to tell whether or not it's members, so you will probably want to alter the one line from "Members := Between('>', '<', tsb[8]) = 'Members';" to change 'Members' to what it is in the language you're getting.

    I'll work on updating it over the next few days as it seems the page has been updated, meaning it may actually be pretty fail at the moment due to updates to the page.
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

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
  •