mIRC Home    About    Download    Register    News    Help

Print Thread
#17802 02/04/03 01:59 AM
Joined: Mar 2003
Posts: 6
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Mar 2003
Posts: 6
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
Joined: Feb 2003
Posts: 83
L
Babel fish
Offline
Babel fish
L
Joined: Feb 2003
Posts: 83
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


any help would make me happy
#17804 03/04/03 03:04 AM
Joined: Mar 2003
Posts: 6
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Mar 2003
Posts: 6
this is what i get
/socklisten: invalid parameters (line 20, botscript.mrc)

#17805 03/04/03 09:33 AM
Joined: Feb 2003
Posts: 47
G
Ameglian cow
Offline
Ameglian cow
G
Joined: Feb 2003
Posts: 47
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: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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


-KingTomato
#17807 04/04/03 12:57 AM
Joined: Mar 2003
Posts: 6
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Mar 2003
Posts: 6
yes it is importnat i need to connect on port $4747

#17808 06/04/03 04:17 AM
Joined: Mar 2003
Posts: 6
M
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Mar 2003
Posts: 6
pls help it myst be port $4747

#17809 06/04/03 05:10 AM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
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


D3m0nnet.com

Link Copied to Clipboard