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?![]()
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.
Don't think that's possible currently. And AFAIK only benland has the source for smart.
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.
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
would do the trick!SCAR Code:SmartSetup('http://'+prefix+'.runescape.com/',
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.
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
thanks ;D that's helpful. ill try it and hopefully it will work.
Lance. Da. Pants.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)