Ranger135xp
2007-01-01 20:36:38
well, I like these 2 procedures and they work VERY nicely for me and my scripts.
I think they should be included, but that's just my opinion (lol).
If you use them correctly, they oughta work rele nicely for ya
Here they are:
Srl is needed for these to function.
Use RangerFlag; for "action" clicks(mining, woodcutting, etc.)
Use RangerFFlag; for walking. (since the flag doesn't normally hang when walking)
I think they should be included, but that's just my opinion (lol).
If you use them correctly, they oughta work rele nicely for ya
Here they are:
{*******************************************************************************
procedure RangerFlag:boolean;
by: Ranger135xp
Description: Waits while the flag exists. Great for actions where the flag
can hang on the screen, like mining or woodcutting.
*******************************************************************************}
Procedure RangerFlag;
Var WaitInt:Integer;
Begin
Repeat
If(FlagPresent) then
begin
Wait(1000+Random(500));
WaitInt:=WaitInt+1;
end;
Until(not(FlagPresent) or (WaitInt = 3))
end;
{*******************************************************************************
procedure RangerFFlag:boolean;
by: Ranger135xp
Description: Waits while the flag exists. Great for Walking.
Even waits half a second after flag goes away because char is still in transit.
*******************************************************************************}
Procedure RangerFFlag;
Begin
Wait(3000+Random(500)); //Waits because the flag may be hidden in the northern areas of the minimap
Repeat
If(FlagPresent) then
begin
Wait(500+Random(500));
end;
Until(not(FlagPresent))
Wait(500);
end;Srl is needed for these to function.
Use RangerFlag; for "action" clicks(mining, woodcutting, etc.)
Use RangerFFlag; for walking. (since the flag doesn't normally hang when walking)