mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2004
Posts: 85
G
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
can anyone help me with a bot that does the following:

when someone type -count <ip> <count>, and says something like -count 48 2014, it will write IP: (gonna use this as an example) 207.150.173.48 is currently at 2014 (current count) last walk: 87(example). Last walk was ____(date), ____(count), and basically, -count <ip> <count> fills in the ip number, and the current count, -walk will set the Last walk was ____, @ ____ sojs to match what the user inputs


let me try clearing it up, -count 48 2541, writes the following to a file: 207.150.173.48 is currently at 2541 sojs.

then if someone does -walk 48 2541, it writes the following line, added to the previous line, Last walk was ____(date they used the command), at 2541.

THEN it subtracts the last walk from the current count to get the last walk: line

and finally, if someone types -event 48,(basically read whats in the file it wrote to) it will PM them with this message:

207.150.173.48 is currently at 2014 (current count)
Last walk: 87(example)
Last walk was ____(date), ____(count)

not sure if this makes sense to anyone, but any help would be great

Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
I have no idea what exactly you are doing. Is it some kind of script to track users in your channel? Either way it looks like you're storing a lot of data and might need to access it a lot: start with learning a bit about hash tables.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
Well, that was a brainstorm, sortta got the jist of it, however..

-count [color:red]48 2014[/color], how is it suppose to know the rest of the IP is, 207.150.173.48, or is it looking for an IP in the channel that ends with 48, or is it a default start, explain a little more smile

Eamonn.

Joined: Sep 2004
Posts: 85
G
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
well, i play diablo 2, on the uswest realm, and i need it to keep track of sojs that sell, and make it so people can check the ip, and on each realm, they have a set ip(except for the last digit), and the last digit is ip's 17-190(not all but most), i'll look into hash tables and see what i can find.


Link Copied to Clipboard