SRL Archive - Help

How do you add into a script the ability to do your bank pin?


broski123

2012-03-24 12:53:17

How do you add into a script the ability to do your bank pin?

the flea

2012-03-24 13:01:51

in your banking procedure put something like:
    if PinScreen then
InPin(Players[CurrentPlayer].Pin);

and in your declare players make sure to have a field
    Pin := '';   

Abu

2012-03-24 13:25:56

Yeh in the Declare players procedure, just add in pin, like so:

  with Players[1] do
begin
Name := '';
Pass := '';
Nick := '';
Pin := '';
Active :;
end;

broski123

2012-03-24 15:08:43

From: abu_jwka
Yeh in the Declare players procedure, just add in pin, like so:

  with Players[1] do
begin
Name := '';
Pass := '';
Nick := '';
Pin := '';
Active :;
end;


That'll work?

NKN

2012-03-24 15:12:37

Not entirely.
Pin goes here, like this.
 Players[0].Name := ''; // Username
Players[0].Pass := ''; // Password
Players[0].Nick := ''; // 3-4 lowercase letters from username.
Players[0].Active := True;
Players[0].Pin := '';//Pin Number here
Then, in your bank procedure, add this
  if PinScreen then
InPin(Players[CurrentPlayer].Pin);

broski123

2012-03-24 15:14:51

Thanks Mate :P

NKN

2012-03-24 15:17:55

No problem. Glad to help.

JuKKa

2012-03-24 15:33:28

I think you only need to add the Pin in declareplayers. SRL's banking methods handles the pin automatically.

NKN

2012-03-24 15:40:23

Oh, so you don't need to add PinScreen?

JuKKa

2012-03-24 15:51:45

From: nkn
Oh, so you don't need to add PinScreen?

yeah, if ur using SRL to open the bank.
(OpenBankQuiet, OpenBankGlass, OpenBankFast, OpenBankNPC, OpenBankChestEdge, OpenBankChest and Openbank)