However I am not familiar with the command unregkick, I suggest you change a few things:
menu nicklist {
.Unreg Kick ( $+ $iif(%unregkick == on,On,Off) $+ ): {
if (%unregkick == on) {
set %unregkick off | .timer[unregkick] off | .notice $chan Unreg Kicks will no longer be performed.
}
else {
set %unregkick on | .timer[unregkick] 0 300 .msg chanserv unregkick $chan | .notice $chan Activation of timed Unreg Kick Confirmed. This channel is now periodically eliminating unregistered nicks. Please refrain from using such.
}
}
}
This way it:
Will work at the first try!
Will work on the channel you are currently on!
Will silence the message to chanserv and the channel!
Overall, its a nice code, however you can do this with the level system inside chanserv too!
What if the chan has a key? So would it be #chan (key),#chan ? Like that?
EDIT: Also where nick/password go, can there be a spot for ircops to put there oper pass in?
Both option will be added in the next version, which will be released as soon as possible on Hawkee. Currently it's not possible to enter key protected channels with IRCManager.
EDIT: I also can't get it to let me delete a server.
If you want to delete a server, follow the following steps:
on *:load:{ $owner }
alias owner { set %owner.nick $$?="Please Set Bot Owner:" }
on *:connect: {
if (!%owner.address) {
if ($address(%owner.nick,1) != $null) {
set %owner.address $address(%owner.nick,1)
notice %owner.nick Hello! You are now recognized as my owner under the address: %owner.address
}
else {
echo -a No owner recognition!
set %owner.nick $$?="Please Set Bot Owner:"
}
}
}
What about this... Not sure if it works, but I think it's clear what I mean..
You have used 'set' twice..
set set %Nick $$?="Please enter the bots main nick."
Add a timer with an -u switch..
ban %channel $nick 300
Add a -k switch to perform a kickban..
.timer 1 4 ban %channel $nick
.timer 1 3 Kick %channel $nick
You want to reconnect the server after 60 seconds? Silence timer(s)...
on *:disconnect:%network:{
timer 1 60 server %network
}
How can I add more channels into channel box? I normally on over 10 channels but I can add only fews channel in the channel box on this script.
I updated the script, you can add now all the channels you want (notice: there is probably a max of channels you can join at the same time on your server). If you add or edit a server, you can enter the channels seperated by a ','!
#chan1,#chan2,#chan3
Uhh... Well, your script isn't useful! I wonder why you posted this...
This won't match the given words :S
Your solutions won't work either
on *:TEXT:*:*:{
if ($1- == fark || Wanker || Dickhead || Pussy || Asswipe || Prick || !@#$ || @#$ || !@#$ || black || black || Nigga || Barstard || stfu || F(_)CK || Homo || Gay || Lesbo){
.mode $chan +b $nick
.mode $chan +b $+ $address($$1,5)
.kick $chan $nick $Nick Saying That Word is prohibited
}
}
This won't work either, incorrect usage of regex...
on @*:TEXT:*:#:{ if ($regex($1-,/fark|Wanker|Dickhead|asswipe|prick|!@#$|@#$|!@#$|black|black|nigga|barstard|Stfu|F(_)ck|homo|gay|lesbo)/) { kick $chan $nick Don't Curse } }
Why are you just doing $1-...
Think about that!
And when you have an answer, think about the fact why people are posting scripts... Yours make no sense...!
Sorry if this is hard for you, but I hope you learn from the script(s) we (the others and I) are posting! Try to get the best from all of them. Not by copying, but by understanding line after line...
With the knowledge you get from it, you can make scripts like this, which are even better than the ones posted above. If you get at that level, you can post it at Hawkee! Surprise us, with new scripts, better scripts, working scripts! Good luck ;)
I am sure that if you understand the knowlegde of mIRC scripting better, you will be inspired with great ideas!
I really dont understand why you make the text boxes in the dialog table and then fill them with the text in dialog events instead of in the table.
If I see how I used the text boxes and how you are using them, I fully agree that you are using them much more efficient. I will certainly do something with this on the next update.
You should consider using $inputs for warnings such as the "Please select a server" warning that appears when they try and instead of reserving space in the dialog for an empty text box that isnt needed unless an error is made.
You remind me of something I didn't use for a very long time. At the moment I saw the word "$input", I thought: "God damn, that was what I was searching for..." :P
I also don't understand why you make those silly looking up and down buttons for your list instead of using the verticle scrollbar option in the list.
Those up and down buttons aren't for scrolling, but to re-order the servers. You will join the first server first, then the second, etc...
I noticed you have a timer unsetting that needs to be silenced. To silence it, put a . in front of the timer command, i.e. .timer 0 1 echo -a hi. Which will stop " 0 timer(s) matching ircm halted" from showing up in the status window.
Great!
I also noticed than you dont have an event on unload that unsets the left over variables so you may want to add that as well.
This will be available in, one of the, next updates. I already worked on something like an 'Uninstall' option!
Don't worry, I am not thinking that you are nailing me. I posted this script here, so that I can learn more. Like the '.' in front of the timer. I saw that box fields can be used on a much better way. I really appreciate your reply.
I will re-design the dialog, with the things that I learned from your reply. I am not going to copy yours, but you showed me a very very good example. Hopefully I can beat you in one of the next updates! Thanks Typo!
First of all thanks for your replies!
I have made some small changes: