Harry
2011-03-01 01:48:37
1) "Not logged out from last session" does not work ( http://i.imgur.com/Y3SAm.png ). Running CountColor(LOGIN_TEXTCOLOUR, 260, 140, 510, 400) on that screen -> "951" (you'd just need to plug that into the case statement; I am sure you know what to plug in @ line 671).
2) PVP worlds do not exist anymore and are now know as "high risk wilderness" worlds. Won't detect if the error/warning message for them pops up, and won't hit back. Mousebox is also incorrect.
Fixed both: it's now "82" instances of color instead of the former "210". Mousebox is fixed as well (GO LOGIN = 391, 361, 498, 383) (GO BACK = 263, 362, 372, 383, 1).
3) Worldswitcher line 362 - Bounty and PVP in the Pos should both be removed and replaced with 'ilderne' (wilderness).
I think those are the only needed fixes. It should work fine now. Try it out.
Edit: for #2, when it clicks "back", SRL thinks you finished logging in. Don't have time to mess with it right now, but most scripts should handle it properly – at least it doesn't infinite loop now :) It was pre-existing like that, I didn't change anything other than updating the box coords and colorcount.
2) PVP worlds do not exist anymore and are now know as "high risk wilderness" worlds. Won't detect if the error/warning message for them pops up, and won't hit back. Mousebox is also incorrect.
Fixed both: it's now "82" instances of color instead of the former "210". Mousebox is fixed as well (GO LOGIN = 391, 361, 498, 383) (GO BACK = 263, 362, 372, 383, 1).
if (CountColor(clWhite, 415, 336, 476, 356) = 82) then //PVP login button white colour points
begin
if (Length(Players[CurrentPlayer].WorldInfo) > 2) then
begin
if (Players[CurrentPlayer].WorldInfo[2]) then
MouseBox(391, 361, 498, 383, 1) //HRW go login fixed
else
MouseBox(263, 362, 372, 383, 1); //Go back fixed
end
else
if (AllowPVP) then
MouseBox(391, 361, 498, 383, 1)
else
MouseBox(263, 362, 372, 383, 1);
Wait(3000 + Random(2000));
end;3) Worldswitcher line 362 - Bounty and PVP in the Pos should both be removed and replaced with 'ilderne' (wilderness).
WorldRec.PVP := (Pos('ildern', WorldRec.Activity) > 0);I think those are the only needed fixes. It should work fine now. Try it out.
Edit: for #2, when it clicks "back", SRL thinks you finished logging in. Don't have time to mess with it right now, but most scripts should handle it properly – at least it doesn't infinite loop now :) It was pre-existing like that, I didn't change anything other than updating the box coords and colorcount.