mIRC Home    About    Download    Register    News    Help

Print Thread
#40660 09/08/03 01:05 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
$port give you the port you using.. and it also suply the port for the server in serverlist that are marked as the one you want to connect to.. "if not connected", but mirc also have a option for "default port" if you dont suply a port when you type /server server.address .. how can i see what default port that is? $? , i dont even know if it is a option for this, but mirc can suply the most other info like that.. so i would be supriced if it dont work on $dport or somthing smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
I think you can $readini it from mirc.ini


Code:
//if ( khaled isgod ) echo yes | else echo no
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
//echo -ta $readini mirc.ini mirc host

Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Isn't that syntax for $readini sorta obsolete?

Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
$gettok($readini mirc.ini mirc host,3,58)

Dunno but it works.

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
I think he means the default port setting in mIRC Options -> Connect -> Options.

Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
That is in mirc.ini options n5

n5=1,1,1,1,1,1,1,1,1,1,6667,0,1,0,0,1,1,1,300,30,10,10,1,24,0,1,1,8192,1,0,0,82,0

Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Watchdog was right.. and i made a script that filter out the server port from:

n5=1,1,1,1,1,1,1,1,1,1,6668,0,0,1,1,0,1,1,300,30,10,60,1,26,0,0,1,8192,1,0,0,82,0

but much code for a simple event that only needed to be: //echo $dport or somthing :tongue:


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
It would be good, but you could use

$gettok($readini mirc.ini options n5,11,44)

Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
a bit simpler code then mine yes grin


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard