View Full Version : Quick question.
footballjds
12-20-2007, 06:36 AM
ok don't scream at me im new to scar...
im using a script and it is very good except... it has a few clicks on exact coords every time!! ahhhhhhhhhhh! ok so how could i fix this? for example.
when it clicks on the spec attack it does "Mouse(638, 424, 0, 0, True);"
every time it does spec it is exact, how could i 'easily' change this?:confused:
Narcle
12-20-2007, 06:48 AM
Mouse(638, 424, 0, 0, True);
Change this to
Mouse(638, 424, 5, 5, True);
The 5, 5 is a random click variable of x of 5 and y of 5. Just increase this to be more random etc...
I take it this is what you want to do; to make it more random correct?
footballjds
12-20-2007, 07:03 AM
yes that is exactly what i wanted! and 5 x, y shouldn't change much what it clicks right?
footballjds
12-20-2007, 07:05 AM
so if it was 5 than realy the cpu decides whether it is 0-5?
Psychor
12-20-2007, 07:14 AM
if you can get the coords then you can also replace it with
MouseBox(x1, y1, x2, y2, True);
x1, y1 being the top left corner of the box, in your case the top left corner of the spec att button
x2, y2 being the bottom right corner of the spec att button
Now it will left click at a random spot anywhere on the spec att button and if it needs to be a right click then change the True to False
Narcle
12-20-2007, 07:15 AM
Yep.
It adds a +random(5) to X or Y cord.
footballjds
12-20-2007, 04:36 PM
so all i need to do for the mouse box is find out the x,y of the uper left corner of spec and the lower right coner x, y? than just plug it in respectively?
footballjds
12-20-2007, 05:22 PM
so all i need to do for the mouse box is find out the x,y of the uper left corner of spec and the lower right coner x, y? than just plug it in respectively?
nvm i figured it out, thanks so much for helping me!
but 1 more question. is there any way to edit the scar core file to change the speed of the mouse? or would that be a no no?
n3ss3s
12-20-2007, 05:31 PM
:)
Nope, you edit the mouse speed by doing
"MouseSpeed := 13;" 13 is average fast, then 15 and so are faster and faster, 25 moves it there about instantly. use 13 :rolleyes:
Yea change
Mouse(638, 424, 0, 0, True);
to something like
Mouse(638, 424, 10, 10, True);
Is this Hy's cave fighter?
footballjds
12-20-2007, 05:36 PM
no its rick's pc'er
footballjds
12-20-2007, 05:38 PM
but i don't want just mousespeed of 13.... i want it to change... cause if it is always 13 thats very un-human.... it should change between like 12-15 or somthing? any way of doing this? like 13+random(2);?
bullzeye95
12-20-2007, 06:13 PM
If you did MouseSpeed:= 12 + Random(4);, the mousespeed would be from 12 to 15.
n3ss3s
12-20-2007, 06:48 PM
djs, the mouse speeds up when starting to move and slows down when reaching the destination.
People aren't like "z0mg I drank 1337 cans of battery now I move faster than mousespeed 50" :p
Look at WindMouse's source code, and mmouse's. It has a bit random speed.
footballjds
12-21-2007, 12:48 AM
thanks
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.