mIRC Home    About    Download    Register    News    Help

Print Thread
havent found anyone to help yet #105890 21/12/04 10:44 PM
Joined: Dec 2004
Posts: 33
W
WildCard Offline OP
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?

Re: havent found anyone to help yet #105891 21/12/04 10:55 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
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
Re: havent found anyone to help yet #105892 22/12/04 01:17 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
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
Re: havent found anyone to help yet #105893 24/12/04 09:20 PM
Joined: Dec 2004
Posts: 33
W
WildCard Offline OP
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...

Re: havent found anyone to help yet #105894 24/12/04 09:26 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
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
Re: havent found anyone to help yet #105895 24/12/04 11:04 PM
Joined: Dec 2004
Posts: 33
W
WildCard Offline OP
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?

Re: havent found anyone to help yet #105896 24/12/04 11:08 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
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