This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Channel invite script by perplex has me baffled

Old posts that have not been replied to for several years.
Locked
D
Dogar
Voice
Posts: 7
Joined: Fri Oct 29, 2004 6:58 am

Channel invite script by perplex has me baffled

Post by Dogar »

Hi , ima noob to these forums and hello to u all!
getting to my problem , i have a channel invite script 1.1 by perplex and it has be baffled me .The problem is i dont know how to set it so i can add people to the tcl script. Tried asking in the perplex channel and i couldnt get any help from there.the following is the script.Thanks in advance! one more thing i have seen channels where you invite ./msg xxx !invite user pass and in the channel its says [INVITE] dogar logged in as robert , Now is possible to do this with the script or would that be something else?
Thanks again.

# CHAN INVITE V1.1 BY DREAMTEAM/PERPLEX
#
# this is maybe one of the best invite scripts ever.
# tell me which other invite script supports blowcrypt WITHOUT
# another script? this one also supports warnmsg/kick/kickban
# if a user invites himself more than one time.
# fully configurable, total secure.
#
# commands:
#
# msg:
# !invite <userpass>
#

# config:

# set this to your invite chan
set ICHAN "#***"

# which flag is needed to get invited
set IFLAG "X"

# set your group name here
set invgroup "Idler"

# set to 1 for blowcrypt, 0 for plain
set invblow 0

# enter your blowcrypt key below
set invblowkey($ICHAN) "Nutte"

# nick tracking
# 0 = disabled
# 1 = warn msgs only
# 2 = 1 + kicking
# 3 = 2 + ban
set invnt 1

# what reason should the ban have
set invcom "PERPLEX.CHAN.iNViTE"
###########################################################################
set invver "V1.1"

bind msg - !invite msg:inv
bind pub - +OK invencryptedincominghandler

proc msg:inv {nick uhost hand arg} {
global ICHAN IFLAG invblow invgroup invnt invkb invcom botnick
set passw [lindex $arg end]
# Starting
if {$arg == ""} {return 0}
# Check for valid user
if { [validuser $hand] == 0 } {
if {$invblow == 0} {
putserv "PRIVMSG $ICHAN :Not Inviting \002$nick!$uhost\002 (He is not a $invgroup Member.)."
putserv "NOTICE $nick :You are not authorized to use this command."
} else {
invputblow "PRIVMSG $ICHAN :Not Inviting \002$nick!$uhost\002 (He is not a $invgroup Member.)."
putserv "NOTICE $nick :You are not authorized to use this command."
}
return 0
# Check for valid password
} elseif { [passwdok $hand $passw] == 0 } {
if {$invblow == 0} {
putserv "PRIVMSG $ICHAN : Not Inviting \002$hand\002 ($nick!$uhost) cause of wrong password."
putserv "NOTICE $nick :This password is wrong."
} else {
invputblow "PRIVMSG $ICHAN : Not Inviting \002$hand\002 ($nick!$uhost) cause of wrong password."
putserv "NOTICE $nick :This password is wrong."
}
return 0
# Check for valid hostmask
} elseif { [finduser $uhost] eq "$hand" } {
if {$invblow == 0} {
putserv "PRIVMSG $ICHAN : Not Inviting \002$hand\002 ($nick!$uhost) cause of wrong hostmask."
putserv "NOTICE $nick :Your current hostmask is not added. Contact an @."
} else {
invputblow "PRIVMSG $ICHAN : Not Inviting \002$hand\002 ($nick!$uhost) cause of wrong hostmask."
putserv "NOTICE $nick :Your current hostmask is not added. Contact an @."
}
return 0
# Check for valid flag
} elseif { [matchattr $hand $IFLAG] == 0 } {
if {$invblow == 0} {
putserv "PRIVMSG $ICHAN : Not Inviting \002$hand\002 ($nick!$uhost) cause of missing flag."
putserv "NOTICE $nick :You have not the right Flag. Contact an @."
} else {
invputblow "PRIVMSG $ICHAN : Not Inviting \002$hand\002 ($nick!$uhost) cause of missing flag."
putserv "NOTICE $nick :You have not the right Flag. Contact an @."
}
return 0
# Check if the user isn't already there
} elseif { [handonchan $hand $ICHAN] == 1} {
if {$invnt != 0} {
set onick [hand2nick $hand $ICHAN]
if {$invnt == 2} {
putquick "KICK $ICHAN $onick"
}
if {$invnt == 3} {
set host "*![getchanhost $onick $ICHAN]"
chattr $hand -X
newchanban $ICHAN $host $botnick $invcom
putquick "KICK $ICHAN $onick"
}
}
if {$invblow == 0} {
putserv "PRIVMSG $ICHAN : Not Inviting \002$hand\002 ($nick!$uhost) cause he is already here."
putserv "NOTICE $nick :You already are on the chan."
} else {
invputblow "PRIVMSG $ICHAN : Not Inviting \002$hand\002 ($nick!$uhost) cause he is already here."
putserv "NOTICE $nick :You already are on the chan."
}
return 0
# Invite user if all OK
} else {
if {$invblow == 0} {
putserv "PRIVMSG $ICHAN : Inviting \002$hand\002 ($nick!$uhost)."
putserv "INVITE $nick $ICHAN"
} else {
invputblow "PRIVMSG $ICHAN : Inviting \002$hand\002 ($nick!$uhost)."
putserv "INVITE $nick $ICHAN"
} } }

# blowfish part beginning
proc invputblow {text {option ""}} {
global invblowkey
if {$option==""} {
if {[lindex $text 0]=="PRIVMSG" && [info exists invblowkey([string tolower [lindex $text 1]])]} {
putserv "PRIVMSG [lindex $text 1] :+OK [encrypt $invblowkey([string tolower [lindex $text 1]]) [string trimleft [join [lrange $text 2 end]] :]]"
} else {
putserv $text
}
} else {
if {[lindex $text 0]=="PRIVMSG" && [info exists invblowkey([string tolower [lindex $text 1]])]} {
putserv "PRIVMSG [lindex $text 1] :+OK [encrypt $invblowkey([string tolower [lindex $text 1]]) [string trimleft [join [lrange $text 2 end]] :]]" $option
} else {
putserv $text $option
}
}
}

proc invencryptedincominghandler {nick host hand chan arg} {
global invblowkey
if {![info exists invblowkey([string tolower $chan])]} {return}
set tmp [decrypt $invblowkey([string tolower $chan]) $arg]
foreach item [binds pub] {
if {[lindex $item 2]=="+OK"} {continue}
if {[lindex $item 1]!="-|-"} {
if {![matchattr $hand [lindex $item 1] $chan]} {continue}
}
if {[lindex $item 2]==[lindex $tmp 0]} {[lindex $item 4] $nick $host $hand $chan [lrange $tmp 1 end]}
}
}

putlog "CHAN INVITE $invver BY THE TEAM-PERPLEX DREAMTEAM LOADED
[/quote]
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

delete it.

Post by user »

It is littered with errors and stupidity all over and it doesn't do what you want even if you manage to fix it.
("adding people to the script" would be done by adding them to your userlist and giving them the right flag btw)
Have you ever read "The Manual"?
D
Dogar
Voice
Posts: 7
Joined: Fri Oct 29, 2004 6:58 am

hi

Post by Dogar »

user, first of all many many thanks for responding.man im so happy you told me that the scripts sucks! you have saved me alot of time and hassle.Big THANKS! i will give this script a miss.

Can you or anyone else recommend a better channel invite script i know theres a few in the archives but if anyone can give an opionion this will be greatly apprecaited.Thanks again.:)
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

whats wrong with the default invite command ?
D
Dogar
Voice
Posts: 7
Joined: Fri Oct 29, 2004 6:58 am

hi

Post by Dogar »

hmm hi ,to be honest i havent tried the default , one is it any good? i guess the ony way to is give it a try..thanks for responding.:)
Locked