Advertisement
Guest User

Scar

a guest
May 14th, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.98 KB | None | 0 0
  1. program Skeleton;
  2. /////////////////////////////////////////////////////////////////////
  3. /////////////////////////////////////////////////////////////////////
  4. /////////////////////////////////////////////////////////////////////
  5. /////////////////////////////////////////////////////////////////////
  6. /////////////////////////////////////////////////////////////////////
  7. /////////////////////////////////////////////////////////////////////
  8. /////////////////////////////////////////////////////////////////////
  9. function Loc:integer;
  10. var
  11. locationx,locationy:integer;
  12. huntx,hunty:integer;
  13. battlex,battley:integer;
  14. battlexx,battleyy:integer;
  15.  
  16. begin
  17. if findcolor(locationx,locationy,12230849,1026, 184,1026, 184) then
  18. begin
  19.   result := 1;
  20. end else
  21. if findcolor(huntx,hunty,0,972, 230,972, 230) then
  22. begin
  23.   result := 2;
  24. end else
  25.  if findcolor(battlex,battley,136791,473, 198,473, 198) then
  26.  begin
  27.   result := 3;
  28. end else
  29.  if findcolor(battlexx,battleyy,4873384,970, 679,970, 679) then
  30.  begin
  31.   result := 4;
  32. end;
  33.  
  34.  
  35.  
  36. end;
  37. /////////////////////////////////////////////////////////////////////
  38. /////////////////////////////////////////////////////////////////////
  39. /////////////////////////////////////////////////////////////////////
  40. /////////////////////////////////////////////////////////////////////
  41. /////////////////////////////////////////////////////////////////////
  42. /////////////////////////////////////////////////////////////////////
  43. function hunting:integer;
  44. var
  45. huntx,hunty:integer;
  46.  
  47. begin
  48. if findcolor(huntx,hunty,12968173,581, 249,1307, 965) then
  49. begin
  50.   result :=1;
  51. end else
  52.   result :=2;
  53.  
  54. end;
  55.  
  56. procedure monster;
  57. var
  58. huntx,hunty:integer;
  59.  
  60. begin
  61. if findcolor(huntx,hunty,12968173,581, 249,1307, 965) then
  62. begin
  63. clickmouse(huntx,hunty,true);
  64. clickmouse(huntx,hunty,true);
  65. clickmouse(huntx,hunty,true);
  66. wait(5000);
  67. end;
  68. end;
  69. /////////////////////////////////////////////////////////////////////
  70. /////////////////////////////////////////////////////////////////////
  71. /////////////////////////////////////////////////////////////////////
  72. /////////////////////////////////////////////////////////////////////
  73. /////////////////////////////////////////////////////////////////////
  74. /////////////////////////////////////////////////////////////////////
  75. /////////////////////////////////////////////////////////////////////
  76. /////////////////////////////////////////////////////////////////////
  77. /////////////////////////////////////////////////////////////////////
  78. /////////////////////////////////////////////////////////////////////
  79. /////////////////////////////////////////////////////////////////////
  80. /////////////////////////////////////////////////////////////////////
  81. function turn:integer;
  82. var
  83. turnx,turny:integer;
  84. victoryx,victoryy:integer;
  85. errorx,errory:integer;  
  86. victoryxX,victoryyY:integer;
  87. errorxx,erroryy:integer;
  88. errorxxx,erroryyy:integer;
  89.  
  90.  
  91. begin
  92.  if findcolor(turnx,turny,16053492,460,390,485,415) then
  93.  begin
  94.    result :=1;
  95.  end else
  96.  if findcolor(victoryx,victoryy,49279,507,365,507,365) then
  97.  begin
  98.    result :=2;
  99.  end else
  100.   if findcolor(errorx,errory,6894524,525,307,527,309) then
  101.  begin
  102.    result :=3
  103. end else
  104.   if findcolor(victoryxX,victoryyY,47482,549, 469,549, 469) then
  105.  begin
  106.    result :=4;
  107.  end else
  108.  if findcolor(errorxx,erroryy,12379646,645, 503,645, 503) then
  109.  begin
  110.    result :=5
  111.  end else
  112.   if findcolor(errorxxx,erroryyy,2752702,578, 412,578, 412) then
  113.  begin
  114.    result :=6
  115.  end;
  116.  
  117. end;
  118.  
  119. /////////////////////////////////////////////////////////////////////
  120. /////////////////////////////////////////////////////////////////////
  121. /////////////////////////////////////////////////////////////////////
  122. /////////////////////////////////////////////////////////////////////
  123. /////////////////////////////////////////////////////////////////////
  124. ///////////////////////////////////////////////////////////
  125. /////////////////////////////////////////////////////////////////////
  126. /////////////////////////////////////////////////////////////////////
  127. /////////////////////////////////////////////////////////////////////
  128. /////////////////////////////////////////////////////////////////////
  129. /////////////////////////////////////////////////////////////////////
  130. ///////////////////////////////////////////////////////////
  131. var
  132. combo1x,combo1y,combo2x,combo2y,combo3x,combo3y,combo4x,combo4y:integer;
  133.  
  134. begin
  135.  
  136.  
  137. while 0 = 0 do
  138. begin
  139. while loc = 1 do
  140. begin
  141. wait(100);
  142. clickmouse(832, 130,true);   // clicked hunting
  143. wait(5000);  
  144. end;
  145.  
  146. while loc = 2 do
  147. begin
  148.  if hunting = 2 then
  149.  begin
  150.   wait(100);
  151. clickmouse(832, 130,true);   // clicked hunting
  152. wait(5000);
  153.  end;
  154.  if hunting = 1 then
  155.  begin
  156.  monster;
  157.  wait(5000);
  158.  end;
  159.  end;
  160.  wait (1000);
  161. if loc = 3 then
  162. begin
  163. while loc = 3 do
  164. begin
  165.  
  166. while turn = 1 do
  167.   begin  
  168.     if findcolor(combo1x,combo1y,1474380,441,488,441,488) then
  169.     begin
  170.     clickmouse(496, 353,true);
  171.     end
  172.     else
  173.     if findcolor(combo2x,combo2y,2001744,461,486,461,486) then
  174.     begin
  175.     clickmouse(500, 455,true);    
  176.     end
  177.     else    
  178.     if findcolor(combo3x,combo3y,1474380,483,490,483,490) then
  179.     begin
  180.     clickmouse(526, 402,true);    
  181.     end
  182.       else
  183.     if findcolor(combo4x,combo4y,2001744,505,484,505,484) then
  184.     begin
  185.     clickmouse(496, 353,true);    
  186.     end;
  187.   end;
  188.  
  189.   if turn = 2 then
  190.   begin        
  191.       clickmouse(840, 139,true);
  192.       wait(2000);  
  193.   end;
  194.   if turn = 3 then
  195.   begin            
  196.       clickmouse(840, 139,true);
  197.       wait(2000);  
  198.   end;
  199.     if turn = 4 then
  200.   begin            
  201.       clickmouse(840, 139,true);
  202.       wait(2000);  
  203.   end;
  204.       if turn = 5 then
  205.   begin            
  206.       clickmouse(840, 139,true);
  207.       wait(2000);  
  208.   end;
  209.         if turn = 6 then
  210.   begin            
  211.       clickmouse(840, 139,true);
  212.       wait(2000);  
  213.   end;  
  214.  
  215.  
  216.   end;
  217.  writeln('yay');
  218.   wait (30000);  
  219.   end;
  220.  
  221.  while loc = 4 do
  222. begin
  223.   clickmouse(960, 678,true);
  224.   wait(500);
  225. end;
  226.  
  227.  end;
  228. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement