Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Wanted

OSI 2 Login done

Recommended Posts

https://github.com/OfficialSCARInclude/OSI2/commit/fd7a359d64e584842093beb701e1552c4b6b89d0

 

Login.scar done

TPAExtractPoints now in SCAR

OSI now requires SCAR 3.38.01

Removed Tab10-Log-Out.scar no need

Re added World-Switcher.scar much needed and login is already too huge

 

[sCAR]{=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Official SCAR Include

Runescape 07

Login Routines

--------------------------------------------------------------------------------

* function WelcomeScreen: Boolean;

By: Wanted

* function LoginScreen: Boolean;

By: Wanted

* function HowToPlayScreen: Boolean;

By: Wanted

* function MessageScreen: Boolean;

By: Wanted

* function LoggedIn: Boolean;

By: Wanted

* function RSReady: Boolean;

By: Wanted

* function LoginSoundDisabled: Boolean;

By: Wanted

* function ToggleLoginMusic(Enable: Boolean): Boolean;

By: Wanted

* function PressNewUser(CheckWS: Boolean): Boolean;

By: Wanted

* function PressCancelHowToPlay(CheckHTPS: Boolean): Boolean;

By: Wanted

* function PressExistingUser(CheckWS: Boolean): Boolean;

By: Wanted

* function PressLogin(CheckLS: Boolean): Boolean;

By: Wanted

* function PressCancelLogin(CheckLS: Boolean): Boolean;

By: Wanted

* function TypeInUsername(Username: string; CheckLS: Boolean): Boolean;

By: Wanted

* function TypeInPassword(Password: string; HitEnter, CheckLS: Boolean): Boolean;

By: Wanted

* function FindLoginMessageTextEx(Text: string; TPA: TPointArray): Boolean;

By: Wanted

* function FindLoginMessageText(Text: string): Boolean;

By: Wanted

* function ClickToPlay(CheckMS: Boolean): Boolean;

By: Wanted

* function ActivePlayers: Integer;

By: Wanted

* function AllPlayersInActive: Boolean;

By: Wanted

* function NextPlayerIndex: Integer;

By: Wanted

* function NextActivePlayerIndex: Integer;

By: Wanted

* function Login: Boolean;

By: Wanted

* function LogOut: Boolean;

By: Wanted

* function SwitchToPlayer(Player: Integer; Active: Boolean): Boolean;

By: Wanted

* function NextPlayer(Active: Boolean): Boolean;

By: Wanted

* function RandomNextPlayer(Active: Boolean): Boolean;

By: Wanted

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=}[/sCAR]

 

[sCAR]{$DEFINE RS07}

{$DEFINE OSI_RS07_Color_Anti_Randoms}

 

{$I OSI\OSI.scar}

 

procedure ScriptTerminate;

begin

FreeOSI;

end;

 

begin

SetUpOSI;

Players[0].Name := 'Zezima';

Players[0].Pass := 'isanoob';

Players[0].Active := True;

WriteLn(BoolToStr(Login));

end.[/sCAR]

 

[sCAR]begin // Response Wait Trys Action [CurrentPlayer].Loc Modified By Build # Status

Inc(Attempts);

if (Attempts < 2) then

begin

SetLength(Actions, 9);

Actions[0] := ['Your account is already logged in.', 15000, 10, 'PlayerTrue', 'Already logged in']; // March 11, 2013 Wanted ??? Unconfirmed

Actions[1] := ['Error connecting to server.', 20000, 10, 'Exit', 'Error Connecting']; // March 11, 2013 Wanted ??? Unconfirmed

Actions[2] := ['Invalid username/email or password.', 0, 2, 'PlayerFalse', 'Wrong User/Pass']; // March 11, 2013 Wanted ??? Confirmed

Actions[3] := ['Your account has been disabled.', 0, 1, 'PlayerFalse', 'Acc Disabled']; // March 11, 2013 Wanted ??? Unconfirmed

Actions[4] := ['You need to vote to play!', 0, 1, 'PlayerFalse', 'Needs to vote before play']; // March 11, 2013 Wanted ??? Unconfirmed

Actions[5] := ['Too many incorrect logins from your address.', 5 * 60500, 2, 'PlayerFalse', 'Too many incorrect logins']; // March 11, 2013 Wanted ??? Confirmed

Actions[6] := ['The server is being updated.', 0, 1, 'Exit', 'Server updated']; // March 11, 2013 Wanted ??? Unconfirmed

Actions[7] := ['RuneScape has been updated!', 0, 1, 'Exit', 'RS updated']; // March 11, 2013 Wanted ??? Unconfirmed

Actions[8] := ['This world is full.', 5000, 20, 'PlayerTrue', 'Desired world full']; // March 11, 2013 Wanted ??? Unconfirmed

H := High(Actions);

end;[/sCAR]

 

[sCAR]begin

WriteLn('Unknown login error!');

Players[CurrentPlayer].Loc := 'Unknown login error';

SaveScreenShot(OSI_Path + 'RS07\Core\Database\Login\' + TheDate(1) + TheTime);

NextPlayer(False);

Exit;

end;[/sCAR]

 

[sCAR]type

TRS07Player = record

Name: string; // In-game handle

Login: string; // Login handle

Pass: string; // Login password

Pin: string; // Bank Pin

Loc: string; // Player location

Status: string; // Player status

LampSkill: string; // Skill for lamp/exp randoms

Rand: string; // Current Random

Worked: Integer; // Time player has worked

Banked: Integer; // Number of times player banked

Trips: Integer; // Number of trips player has made

World: Integer; // Preferred world

Level: array[0..Skill_Count] of Integer; // Levels of all skills

Active: Boolean; // Player active

Booleans: array of Boolean; // Boolean records

Integers: array of Integer; // Integer records

Strings: array of string; // String records

Extendeds: array of Extended; // Extended records

Arrays: array of TVariantArray; // Custom records

TIA: T2DIntArray; // TIA records

end;[/sCAR]

 

Also fixed some center points for MC, MB, MD.

TPAExtractPoints is gone out of TPA.scar and now in SCAR

 

More good stuff on the way soon

 

Bank, the rest of Map, Chat, Anti-randoms, Worldswitcher.

 

I decide to add back WorldSwitcher because it's more complicated than I anticipated (not as bad as RS2 though) and Login.scar is already pretty big

 

Cheers

 

-Wanted

Edited by Wanted
  • Like 1

Share this post


Link to post
Share on other sites

FYI: When you get around to the ClickContinue (or whatever it's named) function the text can be either NPCChars or OptionChars. For example: the "You can't light a fire here." message uses OptionChars.

 

Perhaps if a message isn't related to a specific Npc it uses option chars instead?

Share this post


Link to post
Share on other sites
FYI: When you get around to the ClickContinue (or whatever it's named) function the text can be either NPCChars or OptionChars. For example: the "You can't light a fire here." message uses OptionChars.

 

Perhaps if a message isn't related to a specific Npc it uses option chars instead?

 

Or just detect the words 'Click to Continue' ?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...