Foro de elhacker.net

Programación => Scripting => Mensaje iniciado por: BigBear en 23 Septiembre 2012, 19:05 pm



Título: [Perl] AOE2 Cheater 0.1
Publicado por: BigBear en 23 Septiembre 2012, 19:05 pm
Bueno , como se me falseo la tecla enter de tanto escribir los mismos trucos para los suministros del juego Age of Empires 2 decidi hacer este simple script para que los haga por mi , al terminar vamos a tener 30.000 de madera,alimentos,oro y piedra.

El codigo

Código
  1. #!usr/bin/perl
  2. #AOE2 Cheater 0.1
  3. #Coded By Doddy H
  4. #ppm install http://www.bribes.org/perl/ppm/Win32-GuiTest.ppd
  5.  
  6. use Win32::GuiTest qw(SendKeys);
  7.  
  8. head();
  9.  
  10. for my $se ( reverse 1 .. 10 ) {
  11.    sleep 1;
  12.    syswrite STDOUT, "[+] Wait $se seconds \r";
  13. }
  14.  
  15. print "\n\n[+] Cheating ...\n";
  16. cheatnow();
  17. print "[+] Finished";
  18.  
  19. copyright();
  20.  
  21. sub cheatnow {
  22.  
  23.    for ( 1 .. 30 ) {
  24.        SendKeys("{ENTER}lumberjack{ENTER}");
  25.        SendKeys("{ENTER}cheese steak jimmy's{ENTER}");
  26.        SendKeys("{ENTER}robin hood{ENTER}");
  27.        SendKeys("{ENTER}rock on{ENTER}");
  28.    }
  29.  
  30. }
  31.  
  32. sub head {
  33.    print "\n\n-- == AOE2 Cheater == --\n\n";
  34. }
  35.  
  36. sub copyright {
  37.    print "\n\n(C) Doddy Hackman 2012\n\n";
  38.    <stdin>;
  39.    exit(1);
  40. }
  41.  
  42. #The End ?
  43.