View Full Version : Can you help with procedures?
fabis94
04-22-2007, 10:58 AM
Well ill post antiban procedure:
procedure antban;
begin
SendKeys('This is boring'+chr(13));
Wait(1000+random(100));
fight;
SendKeys('Ehh...'+chr(13));
Wait(1000+random(100));
fight2;
SendKeys('Leave me alone!'+chr(13));
fight3;
Wait(1000+random(2000));
Fight;
fight2;
fight3;
Wait(1000+random(2000));
SendKeys('I have put you all in my ignore list! hahahahaha'+chr(13));
end;
The error is about fight,fight2,fight3 procedure!
I wanted to put procedures in that procedure!
Error says: Line 82: [Error] (17743:1): Unknown identifier 'fight2' in script C:\Documents and Settings\Fun with U\My Documents\SCAR\My scripts\FabisAutoFighter_v1.0.scar
What i need to fix that antiban procedure will say something,wait, then do other procedure and then says something again...
me_ntal
04-22-2007, 11:30 AM
are fight below it or above it? Thats not a very good antiban you need to use a case statement similar to. it picks a random number between 0 -20 and then peforms the related technique if it picks one without anything to perform it doesnt do anything adding more to the randomness of the script.
Procedure WereHuman;
Begin
If not(LoggedIn) then Exit;
Begin
Case Random(20) of
0: HoverSkill('random', false);
1: RandomRClickEvery(2 + Random(8));
2: RotateEvery(20 + Random(10));
3: LeaveScreenEvery(5 + Random(5));
4: HoverSkill('Woodcutting', false);
5: BoredEvery(9 + Random(24));
6: Begin
GameTab(1 + Random(12));
Wait(1500 + Random(500));
GameTab(4);
end;
7: SleepAndMoveMouse(1000 + Random(1000));
8: MMouse(Random(MIX2), Random(MIY2), 0, 0);
9: HoverSkill('Firemaking', false);
end;
end
end;
fabis94
04-22-2007, 11:34 AM
fight is below it!
and if my antiban isnt good maybe you can make me an antiban procedure with the same text (lol)!
me_ntal
04-22-2007, 11:39 AM
Just modify mine to make it whatever you want. Change the woodcutting to a different skill related to your script and what not.
fabis94
04-22-2007, 11:46 AM
aah...ty
i now know whats wrong with my script...
fixed now:http://www.villavu.com/forum/showthread.php?t=8954?p=97451
one more question!
i couldnt figure out when user dies how script goes back to goblin house again!
me_ntal
04-22-2007, 12:00 PM
This requires looping, its done by using the
repeat
Begin
procedure1
end;
until WeAreDead
fabis94
04-22-2007, 12:10 PM
???
dont get it...
maybe some example?
inSane
04-22-2007, 12:49 PM
You need to make a procedure that walks to Goblin House from lumby castle, id recommend using RRW (Radial Road Walk) and make function that checks if at lumbridge, and if it results true then it does the walking procedure ;) or more simply make it make
if(AtLumby)then
Begin
NextPlayer(False); //makes currentplayer false and logs in to next player
end;
fabis94
04-22-2007, 12:53 PM
yeah but what procedure i need to write to check if player is in lumby?
well...can you please just giv me tutorials you used to be as smart as now?
there are many but i want to know what i need lol
omgh4x0rz
04-22-2007, 02:40 PM
There is no actual function to check if youre at lumby. You would need to steal one from someone else or write your own that looks for certain symbols or colors unique to lumbridge. Or you can just write a function that looks in the chat-box to see if you are dead, and then you know you're in lumby.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.