Sythe.Org Forums     Register     FAQ     Members List     Calendar     Mark Forums Read    
 
Sythe.Org Forums  
   Runescape Gold

Sythe.org — A Virtual Goods Trading Hub

Make real cash! buying and selling in-game items.

We have a no-scam policy.

You can make thousands playing your favourite games here at Sythe.org.

Just sign up an account and follow the rules!


Take me to

Runescape Markets

Other Game Markets

Support Center

Register an Account

Close
if 556, 51 = a certain colour
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 06-07-2009, 04:20 PM
Newcomer
 
Join Date: Jun 2009
Posts: 4
Default if 556, 51 = a certain colour

hey guys, im new to scripting scar, so need a little help with this, its not for runescape though, basicly i want it to press the spacebar and release it if a certain colour is at the given posistion.. the code i have so far, which doesn't work is below

Code:
program New;
const
PerfColor= 8449704;
begin
If (Getcolor(556, 51)) = (PerfColor) then
begin
Writeln('Woo')
end else
Writeln('Boo')
end.
thanks for any help
Reply With Quote
  #2  
Old 06-07-2009, 08:13 PM
Newcomer
 
Join Date: Jan 2006
Posts: 22
Default Re: if 556, 51 = a certain colour

you ment like it presses space if it finds the color? or press space and release it if color found?
this script presses the spacebar if the color is in the given coords
Code:
const
color = 7890190;//the color you want to look for

procedure Findcolor;
begin
if(GetColor(407,256)=color)then//coords here
KeyDown(32);
wait(1000)//time to hold spacebar down
KeyUp(32);
end;

begin
repeat
Findcolor;
if(IsFunctionKeyDown(1))then   //stops the script if funcionkey 1 down = left ctrl
begin
exit;
end;
until(false)
end.

Last edited by lordy noob : 06-07-2009 at 08:19 PM.
Reply With Quote
  #3  
Old 06-07-2009, 08:30 PM
Newcomer
 
Join Date: Jan 2006
Posts: 22
Default Re: if 556, 51 = a certain colour

this one releases spacebar if color found
Code:
const
color = 7890190;//the color you want to look for

procedure Findcolor;
begin
     if(GetColor(407,256)=color)then // coords here
                                    begin
                                         KeyUp(32);
                                         end else
                                    begin
                                         Keydown(32);
                                         end;
end;

begin
repeat
Findcolor;
if(IsFunctionKeyDown(1))then   //stops the script if funcionkey 1 down = left ctrl
begin
exit;
end;
until(false)
end.
Reply With Quote
Reply



Cheap RS Gold Store  Runescape Gold

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT +1. The time now is 12:20 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.1