P1nky
2008-09-04 23:07:12
hey Dudes/Chicks
here some funcs/procs i usaully use for my scripts, made by me, as some people have problems of making anti-ban procs, so here it is it be great if added to srl.
since antiban.scar isnt really lively with procs/funcs
and some other extra stuff which is usefull.
Check it oUt(simple but usefull):
thats all for now, going to see if i can edit/make new functions
btw creds to method to help me a bit , to clarify some stuff for me
thanks!
here some funcs/procs i usaully use for my scripts, made by me, as some people have problems of making anti-ban procs, so here it is it be great if added to srl.
since antiban.scar isnt really lively with procs/funcs
and some other extra stuff which is usefull.
Check it oUt(simple but usefull):
thanks turbo.
{*******************************************************************************
procedure RandomCompass;
By: P1nky (really common used)
Description: Will move the compass in any random direction.
*******************************************************************************}
Procedure RandomCompass; //common 1 should be added to srl.
Begin
If (Not(LoggedIn)) Or (Not(Players[CurrentPlayer].Active)) Then
NextPlayer(False);
Case Random(10) Of
0: MakeCompass('N');
1: MakeCompass(IntToStr(Random(360)));
2: MakeCompass('S');
3: MakeCompass(IntToStr(Random(180)));
4: MakeCompass('E');
5: MakeCompass(IntToStr(Random(360)));
6: MakeCompass('W');
7: SetAngle(True);
End;
End;
{*******************************************************************************
procedure RandomArrows;
By: P1nky
Description: it will move the screen N/W/E/S randomnly with using the Arrows *up/right/left arrow on keyboard.*
*******************************************************************************}
Procedure RandomButton;
Begin
If Not (LoggedIn) Or Not (Players[CurrentPlayer].Active) Then
NextPlayer(false);
Case Random(3) Of
0:
Begin
KeyDown(VK_Left);
wait(Random(600) + 500);
KeyUp(VK_Left);
End;
1:
Begin
KeyDown(VK_Right);
wait(Random(600) + 500);
KeyUp(VK_Right);
End;
2:
Begin
KeyDown(VK_Up);
wait(Random(600) + 500);
KeyUp(VK_Up);
End;
End;
End;
{*******************************************************************************
procedure Congrats;
By: P1nky
Description: Detects if you have grew a level , in any skill.
*******************************************************************************}
Procedure Grats;
Begin
If Not (LoggedIn) Or Not (Players[CurrentPlayer].Active) Then
NextPlayer(false);
If (FindBlackChatMessage('Congratulations')) Or
(FindBlackChatMessage('you just advance')) Or
InChat('Congratulations') Or InChat('just advance') Or InChat('congratulations,') Then
Begin
Writeln('Gained a levled!!!');
Begin
Case Random(18) Of
0: TypeSend('woot finnally LEVELED!!');
1: TypeSend('muwahah lvled');
2: TypeSend('leveled yay me!');
3: TypeSend('woot i lvled :)');
4: TypeSend('omg.. i didnt even know i just leveld');
5: TypeSend('yay me');
6: TypeSend('w00t grats');
7: TypeSend('Dang!');
8: TypeSend('fireworks@!');
9: TypeSend('yay leveld!');
10: TypeSend('woot didnt notice since lagged lol');
11: Typesend('good i just leveld wc');
12: TypeSend('yay!');
13: TypeSend('Hleveled');
14: TypeSend('.lvld just now guys grats me jk');
15: TypeSend('lol');
16: TypeSend('lol...');
17: TypeSend('fireworkz');
End;
End;
writeln('You Have Just Gained A Leveled CONGRATz~!');
End;
End;
{*******************************************************************************
procedure CheckLastSlot;
By: BH (i think) but edited by P1nky
Description: will check the last slot of invo to see if the item still exists
invfull , sometimes failed for me so i used this worked fine.
*******************************************************************************}
Function CheckInv(ItemColor:integer): boolean;
Begin
If Not (LoggedIn) Or Not (Players[CurrentPlayer].Active) Then
NextPlayer(false);
Begin
gametab(4);
If Not FindColor(x, y, ItemColor, 700, 441, 702, 443) Then
Begin
Result := true;
End Else
Result := false;
End;
End;thats all for now, going to see if i can edit/make new functions
btw creds to method to help me a bit , to clarify some stuff for me
thanks!