SRL Archive - OSR Help

looping??


rswiz

2011-12-19 06:50:17

How do i loop something in simba?? i have a script set out but i don't know how to loop/repeat it??? And also how do i get the script to type something in game??

Synikk

2011-12-19 07:26:05

to repeat something you use repeat until not sure about typing something in-game
eg. on my mining script
Repeat
Antiban;
Wait(100);
Until InvCount=PlusOne
If InvCount=PlusOne Then
Writeln('Successfully Mined')

Writeln (its a L) is used to output something into the debug box at the bottom of simba, not to write something in-game

RISK

2011-12-19 07:28:36

Types of loops:
repeat .. until
repeat
until();

for .. to .. do
for I := 0 to 1 do
begin
end;

while .. do
while () do
begin
end;

It just depends on what you're trying to do. :)

E:
To type something in-game:
TypeSend('');