mIRC Home    About    Download    Register    News    Help

Print Thread
#13619 01/03/03 12:07 AM
Joined: Dec 2002
Posts: 111
E
Vogon poet
OP Offline
Vogon poet
E
Joined: Dec 2002
Posts: 111
Is it possible to have mIRC accept telnet connections, and if so how? I've seen an mirc bot with that before and i was wondering how exactly that would work.

#13620 01/03/03 01:46 AM
Joined: Dec 2002
Posts: 208
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 208
sockets sockets sockets .. to much to explain realy .. without knowing where your current level of knowledge is

basicly to be a server for anything, be it telnet, or anything .. u use on socklisten ..

Cobra^

#13621 01/03/03 01:51 AM
Joined: Dec 2002
Posts: 111
E
Vogon poet
OP Offline
Vogon poet
E
Joined: Dec 2002
Posts: 111
alright kewl thanx


i know a little about sockets, not much, but i will attempt to learn them better thanks smile

#13622 01/03/03 02:06 AM
Joined: Dec 2002
Posts: 111
E
Vogon poet
OP Offline
Vogon poet
E
Joined: Dec 2002
Posts: 111
aight im startin to get the hang of it, i atleast understand the sockaccept, socklisten and all that good stuff


one thing:

Code:
on *:load: {
  socklisten telnet 4445
}
on *:socklisten:telnet: {
  sockaccept telnet
  echo TELNET SESSION INITIATED
  sockwrite -t telnet 300 &testing this connection
}


i get this whenever i try to connect via telnet:

* /sockaccept: 'telnet' socket in use (line 5, telnet.mrc)


and telnet sits there saying its connecting



#13623 01/03/03 02:10 AM
Joined: Dec 2002
Posts: 111
E
Vogon poet
OP Offline
Vogon poet
E
Joined: Dec 2002
Posts: 111
hah nevermind i got it working, i had to change the name for it to accept wink

#13624 01/03/03 02:27 AM
Joined: Dec 2002
Posts: 111
E
Vogon poet
OP Offline
Vogon poet
E
Joined: Dec 2002
Posts: 111
ok ive run into my first problem:

Code:
 
on *:load: {
  socklisten telnet 4445
}
on *:socklisten:telnet: {
  sockaccept telnetopen
  echo attempting to open connection
  echo TELNET SESSION INITIATED
  set %userlogin 0
  sockwrite -tn telnetopen MessageBot Telnet Console version 1.0
  sockwrite -tn telnetopen =====================================
  sockwrite -tn telnetopen Username:
  set %userlogin 1
  echo userlogin set to 1
}

on *:sockclose:telnetopen: {
  echo Telnet Connection Closed
  sockclose telnetopen
  socklisten telnet 4445
}

on *:sockread:telnet: {
  echo sockread initiated
  sockread -f %username
  echo %username
}



ok i am tryin to recieve the information that the user types in and put it to %username

heh it aint doing anything
it accepts the connection, then sits there and doesnt recieve anything i type in. whats goin on?


#13625 01/03/03 02:28 AM
Joined: Dec 2002
Posts: 111
E
Vogon poet
OP Offline
Vogon poet
E
Joined: Dec 2002
Posts: 111
lmao nevermind fixed that problem too lol

#13626 01/03/03 04:13 AM
Joined: Mar 2003
Posts: 1
N
Mostly harmless
Offline
Mostly harmless
N
Joined: Mar 2003
Posts: 1
ES mate, its called /help laugh


How can i soar like an eagle, When im surrounded by turkeys?

Link Copied to Clipboard