EnergyMech

Forum | Features | Download | Addons | Help | #emech | Links | About | Contact

Versions | News Archive | Installing | Linking | Configuration | Commands | FAQ


The time is now Monday, November 20th, 2017, 3:32pm

Create account ]   User/Pass   


Forum Index :: Generic Discussion :: well, need some help with 3.0.2 to make them work :) :: Reply to this topic

Author
 
damn
Posted :: 1:22pm, Sun, Jul 6, 2008     Subject :: well, need some help with 3.0.2 to make them work :)


Posts: 4
 
    i've make my .conf look like this.
----------------------------------------------
################### BOT 1 ####################

nick 1 damn
set altnick |damn |damned |god |zmeu |d4mn
set userfile 1.us
set ident robot
set ircname EnergyMech 3: The Next Generation
set umodes +wx
set cmdchar .
set modes 6
set cc 1
set virtual NOSET
join #NOSET
set pub 1
set aop 1
set avoice 1
set prot 4

tclscript does-not-exist.tcl

################ END OF BOT 1 #################
-----------------------------------------------
#################### BOT 2 ####################

nick 2 damn
set altnick |damn |damned |god |zmeu |d4mn
set userfile 2.us
set ident robot2
set ircname EnergyMech 3: The Next Generation
set umodes +wx
set cmdchar .
set modes 6
set cc 1
set virtual NOSET
join #NOSET
set pub 1
set aop 1
set avoice 1
set prot 4

tclscript does-not-exist.tcl

################ END OF BOT 2 #################
-----------------------------------------------
#################### BOT 3 ####################

nick 3 damn
set altnick |damn |damned |god |zmeu |d4mn
set userfile 3.us
set ident robot3
set ircname EnergyMech 3: The Next Generation
set umodes +wx
set cmdchar .
set modes 6
set cc 1
set virtual NOSET
join #NOSET
set pub 1
set aop 1
set avoice 1
set prot 4

tclscript does-not-exist.tcl

################ END OF BOT 3 #################
-----------------------------------------------

- and now is my first problem.

[15:51] <@damn-> |damn nextserver
[15:51] -|damn- Switching servers...
[15:51] * |damn (~robot2@x.x.x.x) Quit (Quit: Switching servers...)
[15:52] * |damned is now known as |damn

why |damned is taken nick |damn ? and why not stay with nick |damned, and wating to take nick damn.

- now the second problem.

[16:12] * damn- sets mode: -oo |damned |god
[16:13] <@damn-> |damn should op |damned and |god becouse they are on the same server/ip

- and the last problem.

HOW CAN I MAKE THEM TO AUTOLOGIN TO THE X ? :)

if this TCL script is working i need to know where i need to save the TCL

- STARTS -

#
# Support for Undernet's CService
# Script for EnergyMech 3
#
# Written by [charly] <charly@deutschland.schmidham.net>
#

variable logged_in 0

# change USERNAME and PASSWORD to that one of your bot-account
# then remove the # on the line
proc xlogin {} {
global botnick
to_server "MODE $botnick +x\n" 0
to_server "PRIVMSG X@channels.undernet.org :login tha 4UgZ6xJv\n" 0
}

proc grab_001 {from rest} {
set logged_in 0
xlogin
}

proc grab_notice {from rest} {
global logged_in
if { $from == "X!cservice@undernet.org" } {
if { [string match -nocase "*successful*" $rest] } {
set logged_in 1
} elseif { [string match -nocase "*already authenticated*" $rest] } {
set logged_in 1
}
}
}

proc grab_privmsg {from rest} {
global logged_in botnick currentnick
if { [string match -nocase "$botnick :xlogin" $rest] } {
if { ! $logged_in } {
xlogin
to_server "PRIVMSG $currentnick :Thanks for help :)\n" 50
} else {
if { [string match -nocase "$botnick :xlogin force" $rest] } {
xlogin
to_server "PRIVMSG $currentnick :I should already be authenticated to X, thanks for help anyway :)\n" 50
} else {
to_server "PRIVMSG $currentnick :Sorry, I should already be authenticated to X.\n" 50
}
}
}
}

proc grab_join {from rest} {
global logged_in
if { ! $logged_in } {
if { $from == "X!cservice@undernet.org" } {
xlogin
}
}
}

hook parse 001 grab_001
hook parse NOTICE grab_notice
hook parse PRIVMSG grab_privmsg
hook parse JOIN grab_join

- EOF -
my english sucks, i hope you understand my language :)

THANKS.

- THIS IS THE END - FOR REAL :)

 

Copyright © 2000-2005 Proton,  All rights reserved. Last edited August 16th, 2005.
HTML 4.01 CSS