SRL Archive - Help

help with ini file.


cynicz

2012-11-26 10:37:20

How can i input a list of words, and everytime simba performs the main loops it types the next word?

footballjds

2012-11-26 10:50:31

From: cynicz
How can i input a list of words, and everytime simba performs the main loops it types the next word?


how long is the list of words? It may be simplest to create an array of strings and just loop through the array. If the list is MASSIVE then reading from a txt file would make more sense. What are you trying to do? Some sort of spam bot?

cynicz

2012-11-26 10:52:50

actually its 345 lines of words.
its for a pserver, to login, wait XX time, then logout and goto next acc. i planned on using a tx file just dont know how

footballjds

2012-11-26 10:55:06

okay, do you have a script skeleton yet? I'd just like to see the process. I'll look at the include that you can use and get back to you at some point. I'm at work so it might not be super fast

xtrapsp

2012-11-26 10:59:47

this should help

 procedure DeclarePlayers;
begin
HowManyPlayers := 1; // Number of Players to use
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0; // Player to start with, first one is 0
Players[0].Name := PlayerNames[PlayerID];
Writeln(Players[0].Name);
Players[0].Pass := 'password123'; // Password
Players[0].Active := True; // True if you are using this player
Players[0].Pin := ''; // Bank Pin. Leave it if you don't have one.
end;

begin
SetupSRL;
PlayerNames := ['email@email.co.uk,email1@email.co.uk'];
for i := 0 to High(PlayerNames) do
begin
//mainloop
inc(i);
end;

end.

Le Jingle

2012-11-26 11:00:48

footballjds gave some nice hints where to look, I suppose I could help by saying that I made a semi-not-really-elaborate post/banter for working with INI files.

cynicz

2012-11-26 11:01:57

well I havent made the process yet, but i know itll be easy as hell basically heres the procedure i want to follow
login account 1,
drop item in first invo spot If successfull then goto logout, else wait 10seconds and repeat.

then under logout press backspace 13 times then goto account or line 2 in the text and click login,

then ill add a little writeln after each loop so it says account1 is done, account2 is done etc
i can do everything myself except for the text file haha

thanks for the 2 responses i didnt reply too,
@xstrap this isnt for real runescape but a private server so idk if that will work, will it?
@jingle i will check that out and try to teach myself EDIT: says i cant access file or page

i appreciate everyones help so far :D

Le Jingle

2012-11-26 11:10:40

Ah, I see; here's the image I posted, should help complicate things;

cynicz

2012-11-26 11:12:47

will that work on a private server though

seems as if the declare players function is runescape only correct? i need this for a pserv

footballjds

2012-11-26 11:49:03

cynicz, please edit rather then double+ posting, thanks :)

Le Jingle, isnt it possible to just read the next line?

cynicz, take a look at the handbook:
http://docs.villavu.com/simba/scriptref/files.html

cynicz

2012-11-26 11:54:40

From: footballjds
cynicz, please edit rather then double+ posting, thanks :)

Le Jingle, isnt it possible to just read the next line?

cynicz, take a look at the handbook:
http://docs.villavu.com/simba/scriptref/files.html


sorry was on mobile, on computer now, but i read through that and cant figure out how to read 1 whole line, then add a say +1 to count and read the whole next line and typesend it

footballjds

2012-11-26 12:03:41

From: cynicz
sorry was on mobile, on computer now, but i read through that and cant figure out how to read 1 whole line, then add a say +1 to count and read the whole next line and typesend it


try readINI:
http://villavu.com/forum/showthread.php?t=44955

edit: or read this:
http://villavu.com/forum/showthread.php?t=59654

cynicz

2012-11-26 12:20:40

another quick question is there a program that will like allow you to input a base such as "acc " then it adds a number to the end in a 3 digit format?
such ass
inputting smoke
and it returns a list
smoke 001
smoke 002
smoke 003

because all my accounts are the same base and i have 750 accounts, and thats alot to type by hand lol

footballjds

2012-11-26 12:23:49

you can toString an int and amend it to a string in a loop. I'll write up an example and edit quick.

EDIT:
Run this and tell me if I answered your question:
program new;
var
i: integer;
begin
for i := 1 to 750 do
begin
if i < 10 then Writeln('smoke 00' + IntToStr(i)) else
if i <100 then Writeln('smoke 0' + IntToStr(i)) else
if i < 1000 then Writeln('smoke ' + IntToStr(i));
end;
end.

cynicz

2012-11-26 12:30:03

god you are epic.

footballjds

2012-11-26 12:36:54

From: cynicz
god you are epic.


aha, thanks :spot:

xtrapsp

2012-11-26 13:25:22

my method worked too -.- no recognition for me lol

footballjds

2012-11-26 13:41:19

From: xtrapsp
my method worked too -.- no recognition for me lol


bah humbug… :P

btw this is resolved. I assisted cynicz and created/modified the script for him.

he was generous enough to make a substantial donation too!