|
Joined: Nov 2004
Posts: 332
Fjord artisan
|
OP
Fjord artisan
Joined: Nov 2004
Posts: 332 |
im currently making a slew of ontext events and i would like some to work in msg ive tried code------------------------------------------------------------------- on *:chat:*!join*:{ if ($ulevel >= 3) { /join $$2 } } and on *:text:*!join*:{ if ($ulevel >= 3) { /join $$2 } } neither of which have worked
The Kodokan will move you, one way or another.
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
on 3:text:!join &:#:{
if ($wildtok($$2,*0*,1,44) == $null) { join $$2 }
}
New username: hixxy
|
|
|
|
Joined: Nov 2004
Posts: 332
Fjord artisan
|
OP
Fjord artisan
Joined: Nov 2004
Posts: 332 |
as a rule i dont use anything i dont understand dont suppose youd be amicable to giving an explanation
The Kodokan will move you, one way or another.
|
|
|
|
Joined: Dec 2003
Posts: 261
Fjord artisan
|
Fjord artisan
Joined: Dec 2003
Posts: 261 |
Yes, he probably gave you some mirc backdoor script. That is high risk, you can see that if you take a look at the number of his posts... Why would he explain anything, read help file, that will help...
velicha dusha moja Gospoda
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
ricky_knuckles, This is a different script, I noticed some things in the other one: on 3:text:!join &:#:{
if ($wildtok($$2,*0*,1,44) != $$2) && ($$2 != #0) && ($left($$2,1) == $chr(35)) { join $$2 }
} on 3:text:!join &:#:{ - This will be triggered if anyone with user level 3 or higher types !join followed by another word (The & is a wildcard which means "a single word"). if ($wildtok($$2,*0*,1,44) != $$2) && ($$2 != #0) && ($left($$2,1) == $chr(35)) { join $$2 } - This will check if the channel has any number of characters then a 0 then any number of characters separated by a comma or is just "#0" (It's an attempt to stop people making you part all channels by typing !join #1,0, !join #0 or something like that), if the channel doesn't have ,*0* in it then you will join. The && ($left($$2,1) == $chr(35)) - part checks that the first character in the specified channel is an "#", so that people won't supply an invalid channel. I'll try to remember to explain any code I give to you, if I forget (which I probably will), just ask. milosh, Yes, he probably gave you some mirc backdoor script. I'm sure it would be quickly spotted and edited by moderators if I did. Why would he explain anything The reason I never explain anything is because a lot of people on here don't seem to want to learn how to script, or want to know what each part of the script does. A lot of people just want to be spoon fed code, so that's what I do. That is high risk, you can see that if you take a look at the number of his posts... What does that have to do with anything?
New username: hixxy
|
|
|
|
Joined: Mar 2004
Posts: 175
Vogon poet
|
Vogon poet
Joined: Mar 2004
Posts: 175 |
Judging by your misconception of tidy_trax's script, you obviously do not know how to script. tidy_trax is extremely skilled in mIRC scripting from what I have seen. tidy_trax's code is not a backdoor script. His number of posts represent his usefulness, and length he has been on the forums. Not how well he can spam. -_-
- Relinsquish
|
|
|
|
Joined: Nov 2004
Posts: 332
Fjord artisan
|
OP
Fjord artisan
Joined: Nov 2004
Posts: 332 |
The Kodokan will move you, one way or another.
|
|
|
|
Joined: Nov 2004
Posts: 332
Fjord artisan
|
OP
Fjord artisan
Joined: Nov 2004
Posts: 332 |
on 3:text:!join &:#:{ if ($wildtok($$2,*0*,1,44) != $$2) && ($$2 != #0) && ($left($$2,1) == $chr(35)) { join $$2 } } isn't working i tried it as is and without the safe guards since im not worried it wont be open to many people
it occured to me that my second connection may not see my full id so i did both the partial and full id in userlist at3:
im also having a problem with a auto +q on *!:join:#:{ if ($ulevel >= 3) { /mode # +q $nick } } for whatever reason it doesnt work even though i have a autoop command that is more or less the same and it works fine on *!:join:#:{ if ($ulevel == 2) { /mode # +o $nick } else { /msg $chan welcome $nick } }
The Kodokan will move you, one way or another.
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
on 3:text:!join &:#:{ join $$2 }
on !+3:join:#:{ mode $chan +q $nick }
on !2:join:#:{ mode $chan +o $nick }
on !1:join:#:{ msg $chan welcome $nick } on !+3:join:#: - the event triggers if anyone on the "3" list joins except yourself. on !2:join:#: - the event triggers if anyone on the "2" list (Or a higher level) joins except yourself.
New username: hixxy
|
|
|
|
Joined: Nov 2004
Posts: 332
Fjord artisan
|
OP
Fjord artisan
Joined: Nov 2004
Posts: 332 |
i want it to work on me for the q and i still havent got my bot to take ommands through a msg so being the roundabout guy i am i am using ctcp right now which is working fine
The Kodokan will move you, one way or another.
|
|
|
|
Joined: Dec 2003
Posts: 261
Fjord artisan
|
Fjord artisan
Joined: Dec 2003
Posts: 261 |
I guess you are the only one that got that right...
velicha dusha moja Gospoda
|
|
|
|
Joined: Dec 2003
Posts: 261
Fjord artisan
|
Fjord artisan
Joined: Dec 2003
Posts: 261 |
Judging by your misconception of tidy_trax's script, you obviously do not know how to script. tidy_trax is extremely skilled in mIRC scripting from what I have seen. tidy_trax's code is not a backdoor script. His number of posts represent his usefulness, and length he has been on the forums. Not how well he can spam. Now, read my post again... very carefully...
velicha dusha moja Gospoda
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,962 |
Why would you want to prevent it from joining any channel name containing a 0? Also, use of the ! prefix is redundant since a text event can't be triggered by yourself. This code would add a # to any channel names given that didn't already contain a channel prefix: on 3:text:!join *:#:{
var %r, %re = $regsub($2, /(?<=^| $chr(44) ) ([^ $chantypes ][^ $chr(44) ]+) (?= $chr(44) |$)/gx, #\1, %r)
join %r $3-
}
Spelling mistakes, grammatical errors, and stupid comments are intentional.
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
Why would you want to prevent it from joining any channel name containing a 0? That's not what that if statement does. Also, use of the ! prefix is redundant since a text event can't be triggered by yourself. I didn't use ! in the on text event.
New username: hixxy
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,962 |
That's not what that if statement does. - I can assure you it is. The original code you posted prevented any channel names containing 0, the edited version prevented only a single channel from containing 0 and so was vulnerable to !join #anything,0,#etc.... I also don't understand the #0 checking since it's covered by the preceding $wildtok() condition and is a valid channel name anyway. I didn't use ! in the on text event. - My mistake. I misread the join event.
Spelling mistakes, grammatical errors, and stupid comments are intentional.
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
You're right, I made the statement wrong, it was supposed to return if that condition was met, not continue, so changing != to == should fix it. //tokenize 32 1 #anything,0,#etc | if ($wildtok($$2,*0*,1,44) == $$2) { echo -a join $$2 } New script: on 3:text:!join &:#:{
if ($wildtok($$2,*0*,1,44) == $$2) && ($$2 != #0) && ($left($$2,1) == $chr(35)) { join $$2 }
} Edit: Oh I see, joining 0, 00, 000, etc is what makes you part all channels, in which case your way is probably the best way. I just saw this thread and presumed mIRC was trying to join "#1,000" instead of "#1" and then "000".
Last edited by tidy_trax; 23/12/04 01:53 AM.
New username: hixxy
|
|
|
|
Joined: Nov 2004
Posts: 332
Fjord artisan
|
OP
Fjord artisan
Joined: Nov 2004
Posts: 332 |
ok the join on !join with a msg wasnt working because i used # instead of * or ?
and the +q wasnt working i guess because of conflict between the way my things were done because i changed the op q and greet like you had it and it works fine now
any idea what that conflict might have been ?
in any event thankyou
The Kodokan will move you, one way or another.
|
|
|
|
|