Is there to make a procedure run on the side of things constantly?
Is there to make a procedure run on the side of things constantly?
Read Coh3n's beginner tutorial guide: check the loop section.
Creds to DannyRS for this wonderful sig!
Simba Code:while IsChopping; do
Antiban;
Something like this?
EDIT: if u explain what it needs to do, I'm sure someone here on this forum knows the answer.
Creds to DannyRS for this wonderful sig!
Well I mean something like this:
program Example;
procedure update;
begin;
writeln('See what I'm doing here?');
end;
procedure otherThing;
begin
//do stuff
end;
procedure otherThing2;
begin
//do stuff
end;
begin
do
update;
while
doThings;
doThings2;
end.
If you understand that.
Like have the Update method constantly running, while the other things can loop through like normal.
Creds to DannyRS for this wonderful sig!
Search for multithreading on the forums, there are quite a few topics on this.
http://villavu.com/forum/showthread....ghlight=thread
In most cases it is not required to deploy multithreading for RS scripts since you can just check several conditions linearly (procedural).
Last edited by riwu; 03-09-2013 at 11:40 AM.
i dont know if this will help but in my fletcher i have aloop that constantly checks for level up and if the bot is in the area it is done like this
Simba Code:repeat
wait(100)
checkuplevel;
if containslevel then
begin
mainloop;
exit;
end;
Miner & Urn Crafter & 07 Chicken Killer
SPS BlindWalk Tutorial
Working on: Nothing
teacher in every art, brought the fire that hath proved to mortals a means to mighty ends
There are currently 1 users browsing this thread. (0 members and 1 guests)