"Jumping" Bank PIN Labels
I just coded Bank pins... So I guess I could at least give you the send frames :D
EDIT:
Stage is the variable for the current PIN digit entry.
It means the bank pin letters jump around.
And the array list: pinPosition holds the button's numbers.
Button 1 holds pinPosition.get(0);
Code:
private ArrayList<Integer> pinPosition = new ArrayList<Integer>();
private void pinStart()
{
sendFrame126("@[email protected] of a poor black man", 14923);
if(Integer.parseInt(playerPin) != 0)
sendFrame126("@[email protected] enter your PIN using the buttons below.", 14920);
else
sendFrame126("@[email protected] set a Bank PIN.", 14920);
switch(stage)
{
case 1:
sendFrame126("@[email protected] click the FIRST digit", 15313);
break;
case 2:
sendFrame126("@[email protected] click the SECOND digit", 15313);
break;
case 3:
sendFrame126("@[email protected] that click the THIRD digit", 15313);
break;
case 4:
sendFrame126("@[email protected] click the FOURTH digit", 15313);
break;
}
ArrayList<Integer> pinDigits = new ArrayList<Integer>();
for(int i = 0; i < 10; i++)
{
pinDigits.add(i);
if(pinPosition.size() > 0)
pinPosition.remove(9 - i);
}
int sent = 0;
Random r = new Random();
showInterface(7424);
String[] argz = {" ", " "};
for(int i = 0; i < 10; i++)
{
int junk = r.nextInt(pinDigits.size());
sendFrame126(argz[r.nextInt(argz.length)] + "" + pinDigits.get(junk), 14883 + i);
pinPosition.add(pinDigits.get(junk));
pinDigits.remove(junk);
}
}
:P, enjoy it...