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.

Help chan

Old posts that have not been replied to for several years.
Locked
L
LiquidIce
Halfop
Posts: 48
Joined: Fri Jan 09, 2004 7:22 pm
Location: USA

Help chan

Post by LiquidIce »

I know there was a topic with a script written for this but i couldnt find it.
Bot will be in 2 rooms people will request !help in one room and other room it would say to the chan person needs help in channel ops would type !online or !offline Bot would reply to them online message or offline
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Bot will be in 2 rooms people will request !help in one room and other room it would say to the chan person needs help in channel ops would type !online or !offline Bot would reply to them online message or offline.
You mean to say, one one channel a user say will request !help, then on the other room it will say publicly which user requested help on that channel?

Then the ops of that channel will type !offline or !online, and bot will reply back to that user? But what will it reply back? What is said after the trigger !online, !offline?

Do you mean something like a relay script, except it only triggers on specific triggers, such as !help, !online, !offline?
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
L
LiquidIce
Halfop
Posts: 48
Joined: Fri Jan 09, 2004 7:22 pm
Location: USA

Post by LiquidIce »

Room 1 Trigger !help in. After person request help it post in channel 2 person needs help #room1, then in room 2 it ops would say !online or !offline when ops reply back messages would say:
online - wait patient ops will be with you
offline - try back later there no ops to asist you

Script like a relay to one chan to another
User avatar
[R]
Halfop
Posts: 98
Joined: Fri Apr 30, 2004 12:05 pm

Post by [R] »

you should write your script yourself...
I have never seen a script like this... :oops:
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Okay this is very basic, but it should do the job.

Code: Select all

set room1 "#channel1"
set room2 "#channel2"

bind pub - !help help:proc
bind pub - !offline offline:proc
bind pub - !online online:proc

proc help:proc {nick uhost hand chan text} {
 global room1 room2 nick_to_help
  if {[string equal -nocase $chan $room1] && ![info exists $nick_to_help]} {
   putserv "PRIVMSG $room2 :\002NOTE\002: \002$nick\002 need's help in \002$room1\002. (Message: \002[lrange $text 0 end]\002)"
   set nick_to_help $nick
   }
}

proc online:proc {nick uhost hand chan text} {
 global room1 room2 nick_to_help
  if {[string equal -nocase $chan $room2] && [isop $nick $room2] && [info exists $nick_to_help]} {
   putserv "PRIVMSG $room1 :\002$nick_to_help\002, please be *patient*. An \002op\002 will be with you in just a \002minute\002."
   unset nick_to_help $nick
   }
}

proc offline:proc {nick uhost hand chan text} {
 global room1 room2 nick_to_help
  if {[string equal -nocase $chan $room2] && [isop $nick $room2] && [info exists $nick_to_help]} {
   putserv "PRIVMSG $room1 :\002$nick_to_help\002, please try back again *later*. There are \002no ops\002 currently to assist you at the \002moment\002."
   unset nick_to_help $nick
   }
}
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

[R] wrote:you should write your script yourself...
I have never seen a script like this... :oops:
an elaborate concealing of who's a helper ;)
L
LiquidIce
Halfop
Posts: 48
Joined: Fri Jan 09, 2004 7:22 pm
Location: USA

Post by LiquidIce »

Thankx ­awyeah
L
LiquidIce
Halfop
Posts: 48
Joined: Fri Jan 09, 2004 7:22 pm
Location: USA

Post by LiquidIce »

script didnt work? error was this
Tcl error [help:proc]: can't read "nick_to_help": no such variable
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

LiquidIce wrote:can't read "nick_to_help": no such variable
remove the "$" in "[info exists $nick_to_help]", remove "$nick" from the "unset nick_to_help" lines and replace "[lrange $text 0 end]" with just $text
Have you ever read "The Manual"?
L
LiquidIce
Halfop
Posts: 48
Joined: Fri Jan 09, 2004 7:22 pm
Location: USA

Post by LiquidIce »

Tcl error [help:proc]: invalid command name ""
didnt work
Locked