Log in

View Full Version : Yet another problem with my script :(



stein3
03-31-2007, 03:11 PM
Help me. I want to make it so that it right clicks, then checks for an option. I'm guessing its easy but I can't do it :(.

Mouse(x,y,0,0,false)
if=====then

NOW IT MAKES RUNESCAPE FREEZE. it looks like a screenshot its so frozen :(
program BoneStuffer;
{.Include SRL/SRL.Scar}

var
xc,yc,x1,y2: Integer;

//Antirandoms
procedure DoAntiRandoms;
begin
FindTalk;
FindNormalRandoms;
if (FindFight = true) then
begin
RunAwayDirection('N');
Wait(10000 + random(2000));
RunBack;
end;
end;




//Picks Up Bones
Procedure PickBones;
begin
if not loggedin then exit;
repeat
if not loggedin then break;
if FindMSColor(x,y,13290192)then
begin
MMouse(x,y,5,5);
wait(100+random(50));
if (IsUpText('Take Bones')) then
begin
Mouse(x, y, 0, 0, False);
Chooseoption(x,y,'ake Bon');
Flag;
wait(2500+random(1500));
end;
end;
until(InvFull);
end;

begin
setupsrl;
DoAntiRandoms;
PickBones;
end.

It points to bones but never right-clicks. Just keeps jumping from one white object to another. Whats going wrong with this?

3Garrett3
03-31-2007, 03:29 PM
maybe it isnt finding the if (IsUpText('Take Bones')) then part? Because you have it to only click if it finds that text, and it isnt clicking, but it is moving the mouse to that color, which means its finding the color, so it has to be something in between there.. right?

stein3
03-31-2007, 03:32 PM
I figured that much out. I'm just a very novice programmer. I can do math though. Favorite subject.

Math=Good
PASCAL=confusoolding

Hey321
03-31-2007, 03:41 PM
if (IsUpText('ones')) then
begin
Mouse(x, y, 0, 0, False);
Chooseoption(x,y,'ake');
Flag;
wait(2500+random(1500));
end;


Try that ;).

stein3
03-31-2007, 03:55 PM
if (IsUpText('ones')) then
begin
Mouse(x, y, 0, 0, False);
Chooseoption(x,y,'ake');
Flag;
wait(2500+random(1500));
end;


Try that ;).

wont that 'take' anything thats in the same pile as the bones?

Rune Hacker
03-31-2007, 04:30 PM
My "Prayer Up Easy" script has a good bone picker procedure in the free scripts section under prayer scripts. I made a bitmap for the "take bones" option so it works perfectly every time. You can use it if you give credit to me or look through other scripts to see how they do it but i like mine lol.

stein3
03-31-2007, 08:28 PM
Lol. I'm trying to learn it. How do I use bitmaps? Is that how things find the compass direction and correct for it?

~alex~
03-31-2007, 10:36 PM
try using clickoption('ake',1) the '1' means main screen.

Hey321
03-31-2007, 11:25 PM
wont that 'take' anything thats in the same pile as the bones?

[bashes head against wall] Yea, it will, hold on. Change ChooseOption to this:

ChooseOption(x, y, 'ake Bon');

Rune Hacker
04-01-2007, 02:07 AM
Lol. I'm trying to learn it. How do I use bitmaps? Is that how things find the compass direction and correct for it?
A bitmap is a specific order of colored pixels so it will look for the specific pixels you chose which i made a bitmap for the words "take bone". I had this same problem with my script lol. If your using ChooseOption, then make it do "Bone", although there is a chance it will choose "examine bone" instead of "take bone" sometimes.