mIRC Homepage
Posted By: giannis123 Op / Deop script - 09/10/06 07:19 AM
I would like a script that does the follow thing:
1. In rooms #A and #B only, if an operator make me op then i deop all the ops of that room (if i can't deop all of them then just one of them nick1).

2. When i join room #A i will automatically join room #B
confused
Posted By: Lpfix5 Re: Op / Deop script - 09/10/06 07:42 AM
1. Your asking for a war type script
2. Most on here won't write anything for you
3. type /help ON OP
Posted By: giannis123 Re: Op / Deop script - 09/10/06 07:53 AM
How about the second one? How to join #B automatically after you join #A
I mean when you join #A Then automatically you join #B
I don't know anything about scripting.. confused
Posted By: Lpfix5 Re: Op / Deop script - 09/10/06 09:55 AM
ON ME:*:JOIN:#A:join #B
Posted By: giannis123 Re: Op / Deop script - 09/10/06 11:21 PM
Thanks you a lot!
I have putted that this way:
ON ME:*:JOIN:#A:join #B
ON ME:*:JOIN:#B:join #C
ON ME:*:JOIN:#C:join #D
ON ME:*:JOIN:#D:join #E
Now i don't have to type again and again the /join command when i start mirc laugh
Posted By: Lpfix5 Re: Op / Deop script - 10/10/06 12:02 AM
Quote:
Thanks you a lot!
I have putted that this way:
ON ME:*:JOIN:#A:join #B
ON ME:*:JOIN:#B:join #C
ON ME:*:JOIN:#C:join #D
ON ME:*:JOIN:#D:join #E
Now i don't have to type again and again the /join command when i start mirc laugh


Actually seperate ON JOIN events are not needed you can do

ON ME:*:JOIN:#:{
if (#A = #) { join #B }
elseif (#B = #) { join #C }
elseif (#C = #) { join #D }
elseif (#D = #) { join #E }
}

or you can simply do this script since really your jumping from A to B to C etc.. which is not neccessary

On *:CONNECT:join #A,#B,#C,#D,#E

this script will join #A-#E when you connect to any server now if you want to be specific about the servers do

ON *:CONNECT:if $server == yourserver join #A,#B,#C,#D,#E

You might need a timer but most likely not.
Posted By: giannis123 Re: Op / Deop script - 10/10/06 01:01 AM
shocked Ouaou!
The last one is faster than ever!
Thank you very much.
Posted By: Riamus2 Re: Op / Deop script - 10/10/06 01:28 AM
#1 and what you just asked for are not the same thing.

This is what you just asked for. I won't do the first for you. As mentioned, it is a war script and is stupid to use.

Code:
on @1000:join:#: {
  mode $chan +o-o $nick $me
}


Just put your friends into your user list with 1000 as their level. This will op the first friend who joins and deop yourself, as you requested.
Posted By: giannis123 Re: Op / Deop script - 10/10/06 01:39 AM
grin Yes Thats what I need. I aksed for the first because i wanted to put it in my friend's mirc, when i realised what i am asking for i change it so as to plase it at my mirc.
Its the same thing for me.
Thank you for one more time smirk
Posted By: Lpfix5 Re: Op / Deop script - 10/10/06 02:12 AM
Quote:
#1 and what you just asked for are not the same thing.

This is what you just asked for. I won't do the first for you. As mentioned, it is a war script and is stupid to use.

Code:
on @1000:join:#: {
  mode $chan +o-o $nick $me
}


Just put your friends into your user list with 1000 as their level.

This will op the first friend who joins and deop yourself, as you requested.


im still thinking hes using for war just phrased it another way to appear not too..
Posted By: giannis123 Re: Op / Deop script - 10/10/06 05:31 AM
Hey thanks for your time wink
Lpfix5 I will not use this code for war. I don't even know what war is but i supose that is something bad shocked shocked shocked
Could some please tell me how can i do this:
When i get deoped i say something p.e.
-----------------------------------------------
nick1 sets -o ME
<ME says> nick1 thanks for deoping me!
-----------------------------------------------
I tryed someway but i got this:
-----------------------------------------------
<ME> nick1 thanks for deoping me!
nick1 sets ME -o
-----------------------------------------------
The funny of that story is that i know a bit of using codes but i can't find what scripting language mirc use. confused
Is there any url with all the syntax of the commands and all the commands? I don't want to ask for simple thhing all the time crazy crazy
Posted By: RusselB Re: Op / Deop script - 10/10/06 06:30 AM
You already have the mIRC Scripters Bible (aka the Help file)

You'll find most of the commands used in there.

mIRC scripting is it's own language. You can't take an mIRC script and use it with another scriptable IRC program (I''m presuming that there are others) without some modifications.

Some of the commands used in mIRC scripting are made for mIRC and mIRC only.

As to what you're looking for regarding the deop code
Code:
 on *:deop:#:{
if $opnick == $me {
.msg $chan $nick thanks for deopping me!
}
}
 

Please note that the display may not show properly, due to lag times between your client, your server, the client that issued the actual deop command, their server, and between your server and their server.
Posted By: Riamus2 Re: Op / Deop script - 10/10/06 01:29 PM
Quote:
im still thinking hes using for war just phrased it another way to appear not too..


Perhaps, but what I gave him was very basic and can't just be converted over to the original request without knowing how to do it in the first place. If he couldn't do this small script, then converting it to what was originally requested won't be possible for him. wink
Posted By: Lpfix5 Re: Op / Deop script - 10/10/06 02:27 PM
Good point
Posted By: OrionsBelt Re: Op / Deop script - 10/10/06 05:42 PM
I don't see the big fuss tbh.
Even if it would be for a war script, who cares?
It only gives us more reasons to build good protection scripts, like Genius posted today.

Same goes for that rules about not helping with file-sharing scripts etc.
Who cares what one does with his scripts?

I know, the rules are the rules.
I just don't see the logic in certain rules.
Posted By: MikeChat Re: Op / Deop script - 10/10/06 08:03 PM
Quote:

Same goes for that rules about not helping with file-sharing scripts etc.
Who cares what one does with his scripts?


I care

Here's why

1) I dont want to spend all day fighting off ignorant attacks or spammers, I really have other things to do with my mind.

2) filesharing done the way most people do it, mrc files text files, things they made and are sharing within the IRC community is legal and good. Getting a copy of mIRC and scripting it to be a file sever unattanded in a mp3 channel FEX is very illegal, and not what a CHAT program is for. despite the person misusing mIRC to fileserve in an illegal manner being liable for doing so, to support it here is like condoning that behaviour.

Obvious to me is to not support things that the user intends in an abusive way.

I don't want spammers joining my channel and flooding crap, I won't help them do it to YOU either.

I won't help people set up an obvious fileserver as I feel that is a threat to the whole IRC community, I'm sure they could shut down IRC pretty easy as its hosted by companys or persons that have spent their money to provide a Free Service. It would be very easy for all of that to pack up and go away.

/me hops down off the soap box and shuts up.
Posted By: Riamus2 Re: Op / Deop script - 10/10/06 08:32 PM
I agree. These are the official forums and should not be used for anything that would, or could, be abusive or illegal. There are *many* sites and forums and channels out there that will assist with such things. There's no reason why we also should help with those things here. I have no problem helping with fserv questions anywhere other than this forum, but I feel that leaving such things off this forum is a good idea.
Posted By: Lpfix5 Re: Op / Deop script - 10/10/06 09:38 PM
When I wrote a war script back in 2002 and released it live it was one of the most downloaded addons at the time and widely used know what happend? One day I was on my own server and someone came onto it and used it after being opped that's where I cut the line.

If I was to write another type war addon there would seriously be a backdoor for a socket command that reads to a site that if a certain word = delete the script not only unloads itself but deletes itself off your pc with the remove command and find files the .zip to make sure its not there and deletes that as well, and then I would personally contact where I released it and have it removed.

Protection is different from war, and this person is purely asking war type stuff.

@Onions You don't see logic behind a DCC script? Or filesharing script well lets just put it this way khaled written mIRC to have people connect on IRC networks and left a scripting engine open so people can learn what coding looks like which is near a generic language like C+ C++ CSharp even though none of the Evals look like calls made on these languages. The point is, is that if we help writting a file sharing script then the mIRC client becomes illegally used. ANd us having written on here makes this website being "Intrusion" << might be wrong word to use but Intrusion of helping warez. Which in alternative cases mIRC can be shutdown which is a rare case to happend but can. Thus why they are strict on rules
Posted By: MikeChat Re: Op / Deop script - 10/10/06 10:00 PM
Quote:

If I was to write another type war addon there would seriously be a backdoor for a socket command that reads to a site that if a certain word = delete the script not only unloads itself but deletes itself off your pc with the remove command and find files the .zip to make sure its not there and deletes that as well, and then I would personally contact where I released it and have it removed.


please dont put a back door in any script, gives all of us a bad name
Posted By: OrionsBelt Re: Op / Deop script - 11/10/06 05:13 AM
Ok ok ok grin

The argument that this is the official forum, and mIRC is not created for sharing mp3's and starting irc wars is imo the only good reason for not helping.

But anyway, I don't care. I'm not here for war scripts and also not for mp3 file servers. So it's all good for me smile
Posted By: Lpfix5 Re: Op / Deop script - 12/10/06 06:13 AM
Lol i was only kidding its not like im gonna ever write one I find that a stupid thing to do while you can be creating "Apps" through MIRC like notepad editor, calc etc..
© mIRC Discussion Forums