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.

Smile responding

Old posts that have not been replied to for several years.
Locked
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Smile responding

Post by ]Kami[ »

Andbody know what could be wrong here, this script make responde on smiles

Code: Select all

set ransmile {
  ":-)"
  ":-))"
  ":-D"
  "&:-)"
  ":-p"
  ";-)"
  ";-))"
  ":-O"
  ":-1"
}
bind pub - {:-)} pub_smiling
bind pub - {:)} pub_smiling
bind pub -|- {smile} pub_smiling


# random smile proc
proc pub_smiling {nick uhost hand chan $ran:-)} {
  global ransmile
  if [rand 2] {
    putchan $chan "[lindex $ransmile [rand [llength $ransmile]]]"
    }
    return 1
}

putlog "Smiling TCL script by Laurababe loaded."
bot say

Code: Select all

[12:11:38] <King_Kai> [12:11] Tcl error in script for 'timer8':
[12:11:38] <King_Kai> [12:11] can't read "hand": no such variable
[12:11:39] <King_Kai> [12:11] Tcl error [pub_smiling]: invalid command name "putchan"
Greetings ....
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

well, the error-msgs says it all really.
The timer-error is not from that proc.
The putchan command is one beeing provided with the alltools.tcl script which usually comes with eggdrop. Make sure it is loaded
Elen sila lúmenn' omentielvo
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

TNX i looked alltools.tcl and i found one mistake in it :wink:
Locked