mIRC Home    About    Download    Register    News    Help

Print Thread
#17802 02/04/03 01:59 AM
M
masetrshade
masetrshade
M
here is my script

alias miniscript2 {
sockclose bw.*
unset %bw.*
%bw.grayedout = 1
%bw.linecount = 1
%bw.opid = 1
%bw.ppid = 2
%bw.transmit = ON
%bw.outgoing = $1
if ($1 == $null) { %bw.outgoing = $rand(8000,65535) }
%bw.targetport = $2
if ($2 == $null) { %bw.targetport = 4747 }
if (%bw.outgoing > 65535) { %bw.outgoing = 65535 }
if (%bw.outgoing < 1) { %bw.outgoing = 1 }
dialog -md backwash backwash backwash.ico
socklisten bw.incoming %bw.targetport
}

i would like to change it so it always runs on port $4747 with the $
hopw can i do this

#17803 02/04/03 05:01 AM
L
LO_KEY
LO_KEY
L
If im reading it right...
take these two lines out

%bw.targetport = $2
if ($2 == $null) { %bw.targetport = 4747 }

and put this in where they were....

%bw.targetport = $chr(36) $+ 4747

yes - no ? grin

#17804 03/04/03 03:04 AM
M
masetrshade
masetrshade
M
this is what i get
/socklisten: invalid parameters (line 20, botscript.mrc)

#17805 03/04/03 09:33 AM
G
guesseyder
guesseyder
G
Why do you want to user port $4747 (does the dollarsign has a special meaning?). I think mirc is now trying to use $4747 as the 4747 parameter passed to alias miniscript2 {}. Does $<portnumber> mean anything special in another (script)language which might be your motivation for using that in here? Even with the syntax $chr(36) $+ 4747 i still think it's using it as a parameter. If mirc even supports portnumbers to be used in combination with a dollarsign then u might try this: $eval($4747, 0) . Don't think it will make any difference though.

#17806 03/04/03 12:38 PM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
Even if it meant something in another language, if it means nothing to mirc its surly not to work...Atleast that would be my guess

#17807 04/04/03 12:57 AM
M
masetrshade
masetrshade
M
yes it is importnat i need to connect on port $4747

#17808 06/04/03 04:17 AM
M
masetrshade
masetrshade
M
pls help it myst be port $4747

#17809 06/04/03 05:10 AM
Joined: Dec 2002
Posts: 1,518
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,518
i cant understand where this port number ur trying to use comes from ..... i dont even think a pc has a port defined with a $ prefixing it ....... infact in a router u cant even forward anything for a port with a $ infront of it ...... so what ur tryin to do is just nonsensical to me and im sure many others ..... basically ur trying to force somethign to work on a port that as far as i know doesnt exist or will never exist ..... but if im wrong id really like an explanation as to where ur getting this port information from


Link Copied to Clipboard