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.

make advetise wont work

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
Fire-Fox
Master
Posts: 299
Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null

make advetise wont work

Post by Fire-Fox »

I get this error

timer2249 (saveall) killed.
timer2254 (saveall) killed.

set screklametrigger "!reklame"
set scsletreklametrigger "!SletReklame"

bind pub - $screklametrigger pub_lavreklame
bind pub - $scsletreklametrigger pub_drabreklame

Code: Select all

proc pub_lavreklame {nick uhost hand chan arg} {
	global reklameid reklametid
	
	set reklame "$arg"
	set id [join [lrange [split $arg] 0 0]]
	
	set reklameid($reklame) [timer $reklametid "visreklame $chan $id $reklame"]
}

proc visreklame {chan id reklame} {
	global reklameid reklametid 
	
	set reklame "$reklame"

	putserv "privmsg $chan : $reklame"
	set reklameid($reklame) [timer $reklametid "visreklame $chan $id $reklame"]
}
proc pub_drabreklame {nick uhost hand chan arg} {
	global reklameid reklametid
	
	set arg [join [lrange [split $arg] 0 end]] 
	killtimer $reklameid($arg)
}

Last edited by Fire-Fox on Sat Oct 13, 2007 6:49 am, edited 1 time in total.
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

What's the error message (provide full errorInfo).

I should add that this script is unsecure and can be easily exploited. Read Script security.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

How is it an error?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

@Fire-Fox
timer2249 (saveall) killed.
timer2254 (saveall) killed.
These are not errors but unused timers the script is removing.

Read the code!

Code: Select all

killtimer $reklameid($arg)
PS: Take Sir_Fzs' advice re security.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
Fire-Fox
Master
Posts: 299
Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null

Post by Fire-Fox »

timer2249 (saveall) killed.
timer2254 (saveall) killed.
this is all there is in partyline...

it wont set the advertise with !xirg text sorry about the misinfo...
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

iNgADvert is a simple channel advertising script you may wish to test. Functions in one channel only!

It works also. :D
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
Fire-Fox
Master
Posts: 299
Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null

Post by Fire-Fox »

Alchera wrote:iNgADvert is a simple channel advertising script you may wish to test. Functions in one channel only!

It works also. :D
thanks man !!

but this don't have the funktion so the dj's can set there advetise self :)

like !setreklame text

and maybe start it with !reklame on

that is an idea :)
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Post Reply