SRL Archive - First Scripts

Part of my first script[Problem]


Dude

2007-08-10 17:43:27

i have a procedure in my program

procedure BuryBones;
begin

while(FindDTM(Bone, x, y,560, 210, 725, 450 ))Do
begin
// MoveMouseSmooth(x,y);
Wait(1000+random(500));
mmouse(x,y,3,3);
//Wait(100+random(500));
Mouse(x,y,3,3,True);
Buried:=Buried + 1;
xp:=xp + 4.5;
end;
writeln('no bones found');
end;
The problem only occours now and again, when a bone is found in the inventory and its is clicked the mouse moves ever so slightly after the bone has been buried <<thats the problem<<. This doesnt happen after every bone, because due to the timer the mouse moves before the mouse flicker can happen. Is this normal?? I tried removing the random parameters from the mouse functions but the problem still occured.

This would possibly look suspicious to people monitering so i'd like to get rid of the movement even though it is only a small movement…

Any input greatly accepted!

GoF

2007-08-10 18:08:29

Most likely has something to do with the game update.. You'll have to wait until SRL is updated.

EDIT: Also, to click the mouse you don't need MMouse first, as Mouse moves the mouse and clicks.

Dude

2007-08-10 18:13:22

Now using mouse and took out some extra lines of code fixed the problem.

Bobarkinator

2007-08-14 10:45:46

I'm sorry dude but you have triple posted. That is against forum rules and I will have to give you noob points. I will urge you to refrain from double posting in the future to not get more noob points. Remember that their is an edit button so that you can edit your posts. It is a very useful tool. Also their is a free script section that has many good scripts that you can use.

[BANANA]NOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOB
[LEFT]You, Dude, have been reported for being a NOOB.
Your
Current violations include
  1. Double Posting for
This brings you to a new total of (2) Noob Points!

For more information on Dude please go Here.

For more information from This database please go Here.

For more information on The Noob Points System please go Here.

For more information on Noobs please go Here.

[/LEFT]
NOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOB[/BANANA]

Dude

2007-08-14 16:00:30

Fair enough, posts deleted….sorry about that

edit: BTW the links in you post allow people to delete their own 'Noob Points', might want to change that.

Regards

HyperSecret

2007-08-14 17:13:28

mmouse(x,y,3,3);
//Wait(100+random(500));
Mouse(x,y,3,3,True);

id believe its b/c of the 3's it gives the option to move a random of 3 pixels from that location, change the 3's to 0s and it should fix the problem i believe

Pyro

2007-08-20 08:09:58

Dont you hate it when nobody wants to help you :p. I reccomend looking through srl and looking at the inv dtm functions or bitmap functions. Basically the problem is the waits. But we dont want to wait to long or to little. So basically what you do is just go along the inv slots searching for the dtm.
This may not make sence. But look in srl. Then have a look at the inv procedures.

Dude

2007-08-20 13:42:33

yeah cheers pyro did the above a few days after posting and sorted the problem out.