Janilabo

Untitled

Sep 29th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 2.74 KB | None | 0 0
  1. {$I OSI\OSI.scar}
  2.      
  3. var
  4.   K,Drop,Item,Tinder,Tinder_Used,Magic: TSCARBitmap;
  5.  
  6.  
  7.   R: TSCARBitmap;
  8.   xs,ys,XE,YE,A,B,i : Integer;                
  9.   Box1: TBox;
  10.   Desktop: TSCARWindowClient;  
  11.     TPA:TPointArray;    
  12.     Width, Height: Integer;
  13.      
  14. begin
  15.    K := TSCARBitmap.create('');    
  16.    K.LoadFromPng(ScriptPath + '50k.png');    
  17.  
  18.    Item := TSCARBitmap.create('');    
  19.    Item.LoadFromPng(ScriptPath + 'item_casket.png');    
  20.    
  21.      Tinder := TSCARBitmap.create('');    
  22.    Tinder.LoadFromPng(ScriptPath + 'tinderbox.png');  
  23.    
  24.      Tinder_Used := TSCARBitmap.create('');    
  25.    Tinder_Used.LoadFromPng(ScriptPath + 'tinderbox_used.png');    
  26.      
  27.    Magic := TSCARBitmap.create('');    
  28.    Magic.LoadFromPng(ScriptPath + 'magic.png');  
  29.    
  30.     Drop := TSCARBitmap.create('');    
  31.    Drop.LoadFromPng(ScriptPath + 'drop.png');  
  32.  
  33.   R := TSCARBitmap.create('');
  34.   R.LoadFromPng(ScriptPath + 'rune.png');
  35. repeat    
  36.   if FindBitmapEx(TPA, R, 516,163,797,544) then
  37.   begin
  38.   TypeSend('rune');
  39.     sleep(500);
  40.   end;
  41.                              
  42.  
  43.    if FindBitmapEx(TPA,Item,516,163,797,544) then      
  44.    begin
  45.            XE := TPA[i].X + Item.width;
  46.            YE := TPA[i].Y + Item.height;  
  47.               Mouse(XE,YE,0,0,false);      
  48.      sleep(300);
  49.            
  50.    end;  
  51.      if FindBitmapEx(TPA,Drop,516,163,797,544) then      
  52.    begin
  53.            XE := TPA[i].X + Item.width;
  54.            YE := TPA[i].Y + Item.height;  
  55.               Mouse(XE,YE,0,0,true);      
  56.      sleep(300);
  57.            
  58.    end;    
  59.    
  60.   if FindBitmapEx(TPA, K,516,163,797,544) then
  61. begin
  62.  
  63.   XE := (TPA[0].X + Item.width);
  64.   YE := (TPA[0].Y + Item.height);
  65.   Mouse(XE, YE, 0, 0, False);
  66.   Sleep(500);
  67. end;
  68.    
  69.     if FindBitmapEx(TPA,Magic,516,163,797,544) then  
  70.   if not FindBitmapEx(TPA,Tinder_Used,516,163,797,544) then      
  71.       if FindBitmapEx(TPA,Tinder,516,163,797,544) then      
  72.    begin
  73.            XE := TPA[i].X + Item.width;
  74.            YE := TPA[i].Y + Item.height;  
  75.               Mouse(XE,YE,0,0,true);      
  76.      sleep(300);
  77.            
  78.    end;                      
  79.    
  80.      
  81.               if FindBitmapEx(TPA,Tinder_Used,516,163,797,544) then      
  82.       if FindBitmapEx(TPA,Magic,516,163,797,544) then      
  83.    begin
  84.            XE := TPA[i].X + Item.width;
  85.            YE := TPA[i].Y + Item.height;  
  86.               Mouse(XE,YE,0,0,true);      
  87.      sleep(300);
  88.            
  89.    end;        
  90.    
  91.          
  92.    
  93.      if not findcolor(A,B,7114400,516,163,797,544) then
  94.      if not findcolor(A,B,4881029,516,163,797,544) then
  95.      if findcolor(A,B,4155249,4,6,518,352) then
  96.      begin
  97.        Mouse(A,B,0,0,true);
  98.        sleep(500);
  99.      end;
  100.  
  101.      
  102. until(false);
  103. end.
Advertisement
Add Comment
Please, Sign In to add comment