PDA

View Full Version : Part of my first script[Problem]



Dude
08-10-2007, 09:43 PM
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
08-10-2007, 10:08 PM
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
08-10-2007, 10:13 PM
Now using mouse and took out some extra lines of code fixed the problem.

Bobarkinator
08-14-2007, 02:45 PM
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.

NOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOB

You, Dude (http://noobpoints.tehintar.net/noobadmin.php?noob_name=Dude), have been reported for being a NOOB.
Your Current violations include Double Posting for http://www.greg.impwiki.org/noobpoints/noobpoints.png (http://www.villavu.com/forum/showthread.php?t=5265) http://www.greg.impwiki.org/noobpoints/noobpoints.png (http://www.villavu.com/forum/showthread.php?t=5265)
This brings you to a new total of http://www.greg.impwiki.org/noobpoints/noobpoints.png (http://www.villavu.com/forum/showthread.php?t=5265)http://www.greg.impwiki.org/noobpoints/noobpoints.png (http://www.villavu.com/forum/showthread.php?t=5265) (2) Noob Points!

For more information on Dude (http://noobpoints.tehintar.net/noobadmin.php?noob_name=Dude) please go Here. (http://noobpoints.tehintar.net/noobadmin.php?noob_name=Dude)

For more information from This database (http://noobpoints.tehintar.net/noobadmin.php) please go Here. (http://noobpoints.tehintar.net/noobadmin.php?)

For more information on The Noob Points System (http://noobpoints.tehintar.net/) please go Here. (http://noobpoints.tehintar.net/)

For more information on Noobs (http://www.villavu.com/forum/showthread.php?t=5265) please go Here. (http://www.villavu.com/forum/showthread.php?t=5265)

NOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOB

Dude
08-14-2007, 08:00 PM
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
08-14-2007, 09:13 PM
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
08-20-2007, 12:09 PM
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
08-20-2007, 05:42 PM
yeah cheers pyro did the above a few days after posting and sorted the problem out.