egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

unreal ircd eggdrop bot script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Angel
Voice


Joined: 31 Jul 2010
Posts: 13

PostPosted: Sat Aug 21, 2010 8:52 am    Post subject: unreal ircd eggdrop bot script Reply with quote

requesting for a script that an eggdrop bot (has ircop preveledges) can change vhost of a certain user when a cmd is triggered..

like:

me:.vhost
bot:use the syntax /msg bot changevhost newv.v.host
me:/msg bot changevhost kickin.some.monsters.org


so in my whois will show my new vhost that the bot changed..
the bot will change the vhost whatever the user typed as vhost
Back to top
View user's profile Send private message
tomekk
Master


Joined: 28 Nov 2008
Posts: 255
Location: Oswiecim / Poland

PostPosted: Tue Aug 24, 2010 2:16 pm    Post subject: Reply with quote

but, what is the command which bot should send to the IRC server?
Back to top
View user's profile Send private message Visit poster's website
Angel
Voice


Joined: 31 Jul 2010
Posts: 13

PostPosted: Tue Aug 24, 2010 8:32 pm    Post subject: Reply with quote

if the bot has ircop previledges it will just use the cmd "/chghost <nick> <host>" to change the host of the user...

for unreal ircd
Back to top
View user's profile Send private message
tomekk
Master


Joined: 28 Nov 2008
Posts: 255
Location: Oswiecim / Poland

PostPosted: Wed Aug 25, 2010 4:27 am    Post subject: Reply with quote

oke, if i remember good i have script like this one on my PC @ home, i'll check it when i'll be back.
Back to top
View user's profile Send private message Visit poster's website
tomekk
Master


Joined: 28 Nov 2008
Posts: 255
Location: Oswiecim / Poland

PostPosted: Wed Aug 25, 2010 12:18 pm    Post subject: Reply with quote

hmm, i lost it somewhere,

try this one:
Code:
bind pub -|- .vhost info_proc
bind msgm -|- "*" prv_cmds

proc info_proc { nick uhost hand chan arg } {
        putquick "PRIVMSG $chan :$nick: use the syntax /msg bot changevhost newv.v.host"
}       

proc prv_cmds { nick uhost hand arg } {
        set input_args [split $arg]
        set cmd [lindex $input_args 0]
        set value [string trim [lindex $input_args 1]]

        if {$cmd == "changevhost"} {
                if {$value != ""} {
                        putserv "CHGHOST $nick $value"
                } {
                        putquick "PRIVMSG $nick :use the syntax /msg bot changevhost newv.v.host"
                }
        }
}

putlog "vhost-mgm.tcl loaded"


I didn't test it, just wrote it
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber