PDA

View Full Version : Need help on randoms.



wesku
10-23-2006, 04:48 AM
Hello everyone.
Could someone post here how I could do these :
FindNormalRandoms <- Checks that once in 3 mins
FindFight <- Runs to North and then back.


Thanks :)

I Pick Axes
10-23-2006, 08:37 PM
First of all, you want to call it a lot more often than that. You'll be caught by a random pretty easily calling it once every three minutes. Usually, instead, you call it whenever your character is just sitting there not needing mouse motions. For example, while you mine, you could click a rock, check for randoms, and then wait for the rock to be mined.

Literally, checking every three minutes means that somewhere you put this where it gets run often.

At the beginning put

MarkTime(MyRandomsTimer);

Then later as a check that happens often

if (TimeFromMark(MyRandomsTimer) > (3*60*1000)) then
begin FindNormalRandoms; end;

But that's not a good idea.

Instead, put FindNormalRandoms as often as you can without compromising script performance.

Findfight is usually done like this, since it reutuns a boolean.

if (FindFight) then
begin
SetRun(True);
RunWhere('North',True);
Wait(10000+random(1000));
RunWhere('South',True);
end;

Basically, it says, if we find we're in a fight (or some guy standing on top of us), then run north, wait 10 seconds, and run back.

wesku
10-24-2006, 08:44 PM
Ok , tyvm :)