mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2004
Posts: 33
W
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Dec 2004
Posts: 33
ok this is simple
/bw /msg #Judges4You Copy/Paste this: //var %i $script(0) $chr(124) var %code $rand(A,z) $+ $rand(10000,99999),m) $chr(124) var %ct $asctime(hh:nn:ss) $chr(124) .say RKey: %code Time: %ct $chr(124) while (%i) { .say Script $ifmatch has: $read($script(%i), nw, *%b*) $chr(124) dec %i 1 } $chr(124) .say Checksum: $crc(%code $encode($me,m) %ct,0)

is in ailises
when i type /bw though this is what appears:

<WildCard> Copy/Paste this: //var -8948 5 | var h80273 | var 02:43:34 | .say RKey: Time: | while (%i) .say Script has: | dec -8948 1

all i want it to do is properly display the text in a channel. how do i fix it?

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
bw { msg #Judges4You Copy/Paste this: //var % $+ i = $!script(0) $chr(124) var % $+ code = $!rand(A,z) $+ $!rand(10000,99999) $chr(124) var % $+ ct = $!asctime(hh:nn:ss) $chr(124) .say RKey: % $+ code Time: % $+ ct $chr(124) while (% $+ i > $!script(0)) { .say Script $!ifmatch has: $!read($!script(%i), nw, *% $+ b*) $chr(124) dec % $+ i } $chr(124) .say Checksum: $!crc(% $+ code $!encode($!me,m) % $+ ct,0) }


New username: hixxy
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
I missed something and the edit time has expired.

Code:
bw { msg #Judges4You Copy/Paste this: //var % $+ i = $!script(0) $chr(124) var % $+ code = $!rand(A,z) $+ $!rand(10000,99999) $chr(124) var % $+ ct = $!asctime(hh:nn:ss) $chr(124) .say RKey: % $+ code Time: % $+ ct $chr(124) while (% $+ i &gt; $!script(0)) { .say Script $!ifmatch has: $!read($!script(% [color:Red]$+[/color] i), nw, *% $+ b*) $chr(124) dec % $+ i } $chr(124) .say Checksum: $!crc(% $+ code $!encode($!me,m) % $+ ct,0) } 


New username: hixxy
Joined: Dec 2004
Posts: 33
W
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Dec 2004
Posts: 33
.. another one.. now how would i add an if statement to that if XXX nickcname or hostmark was in the channel? cause now several people have i and i hae it on something where somoen goes !bw and it runs that.. how would i add an if statement (or 2 or 3) so that only one of us does it? right now ts just 2 people and i want his to be off when im ther. f a third person has it i want his off and someone elses off unless we are both not in the channel ect...

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
bw { [color:red]if (nick1 !ison #Judges4You) &amp;&amp; (nick2 !ison #Judges4You) {[/color] msg #Judges4You Copy/Paste this: //var % $+ i = $!script(0) $chr(124) var % $+ code = $!rand(A,z) $+ $!rand(10000,99999) $chr(124) var % $+ ct = $!asctime(hh:nn:ss) $chr(124) .say RKey: % $+ code Time: % $+ ct $chr(124) while (% $+ i &gt; $!script(0)) { .say Script $!ifmatch has: $!read($!script(% $+ i), nw, *% $+ b*) $chr(124) dec % $+ i } $chr(124) .say Checksum: $!crc(% $+ code $!encode($!me,m) % $+ ct,0) [color:red]}[/color] }


New username: hixxy
Joined: Dec 2004
Posts: 33
W
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Dec 2004
Posts: 33
thankyou for your help. i use to program in basic on a cmmodore 128, there was a bok that came with it and it was easy to learn. whats a good way to learn programming here? i dont like the help guide. all id do is go to search and read the cmmands from fist to last and that doesnt help much. any suggestions?

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Well I consider the help file the best resource to learn how to script, but since you don't like it you could try looking in the "tutorials" sections of the following websites:

mirc.net
mircscripts.org
hawkee.com


New username: hixxy

Link Copied to Clipboard