rotflmfwao
07-16-2007, 03:21 AM
A result for FindFight, it just runs away in the specified direction and runs back. You could use it as an antiban if you put RandomDir in the direction slot. (RandomDir is a func I put in another one of my Snippet threads.)
Here is RunAway:
Procedure RunAway(Dir);//Lowercase or upper, doesn't matter
Begin
Case Dir of
'n':Begin
RunTo('n',False);
Wait(1000+Random(1500));
RunTo('s',False);
End;
's':Begin
RunTo('s',False);
Wait(1000+Random(1500));
RunTo('n',False);
End;
'e':Begin
RunTo('e',False);
Wait(1000+Random(1500));
RunTo('w',False);
End;
'w':Begin
RunTo('w',False);
Wait(1000+Random(1500));
RunTo('e',False);
End;
'N':Begin
RunTo('n',False);
Wait(1000+Random(1500));
RunTo('s',False);
End;
'S':Begin
RunTo('s',False);
Wait(1000+Random(1500));
RunTo('n',False);
End;
'E':Begin
RunTo('e',False);
Wait(1000+Random(1500));
RunTo('w',False);
End;
'W':Begin
RunTo('w',False);
Wait(1000+Random(1500));
RunTo('e',False);
End;
End;
End;
I know its kinda useless, but I like it as an antifight measure XD
Here is RunAway:
Procedure RunAway(Dir);//Lowercase or upper, doesn't matter
Begin
Case Dir of
'n':Begin
RunTo('n',False);
Wait(1000+Random(1500));
RunTo('s',False);
End;
's':Begin
RunTo('s',False);
Wait(1000+Random(1500));
RunTo('n',False);
End;
'e':Begin
RunTo('e',False);
Wait(1000+Random(1500));
RunTo('w',False);
End;
'w':Begin
RunTo('w',False);
Wait(1000+Random(1500));
RunTo('e',False);
End;
'N':Begin
RunTo('n',False);
Wait(1000+Random(1500));
RunTo('s',False);
End;
'S':Begin
RunTo('s',False);
Wait(1000+Random(1500));
RunTo('n',False);
End;
'E':Begin
RunTo('e',False);
Wait(1000+Random(1500));
RunTo('w',False);
End;
'W':Begin
RunTo('w',False);
Wait(1000+Random(1500));
RunTo('e',False);
End;
End;
End;
I know its kinda useless, but I like it as an antifight measure XD