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 

Timer

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Ace-T
Halfop


Joined: 29 Aug 2006
Posts: 82

PostPosted: Wed Jul 11, 2007 9:17 am    Post subject: Timer Reply with quote

i am using LoReZ ShoutCast Script v2.1, and timer doesnt work

if {$sc::sets(adv) == 1} {
timer $sc::sets(advtime) "sc::post privmsg none all {$sc::texts(adv)}"
}

and

# Advertise every X Minutes
set sc::sets(advtime) 15


but it will announce onces then it wont announce no more.. :s

any ideas y?
Back to top
View user's profile Send private message
Ace-T
Halfop


Joined: 29 Aug 2006
Posts: 82

PostPosted: Wed Jul 11, 2007 7:48 pm    Post subject: Reply with quote

even if i do summet easy as

set delay 1
timer delay "sc::post privmsg none all {$sc::texts(adv)}"

it works once then nothing..

is there a comand for party line to see what timers are running??
Back to top
View user's profile Send private message
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Wed Jul 11, 2007 8:39 pm    Post subject: Reply with quote

IMHO you should try to contact the author at first.
_________________
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Ace-T
Halfop


Joined: 29 Aug 2006
Posts: 82

PostPosted: Thu Jul 12, 2007 9:08 am    Post subject: Reply with quote

cant seem to find him hehe

is there a way to get a list of active timers in partyline??
Back to top
View user's profile Send private message
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Thu Jul 12, 2007 11:03 am    Post subject: Reply with quote

I think this will do the job in the partyline :
Quote:
.tcl timers
Back to top
View user's profile Send private message
Ace-T
Halfop


Joined: 29 Aug 2006
Posts: 82

PostPosted: Thu Jul 12, 2007 6:23 pm    Post subject: Reply with quote

nah dont work Sad


just need to know why this timer aint reapting rly, timers in tcl are hard Sad
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Thu Jul 12, 2007 7:04 pm    Post subject: Reply with quote

There's a little script called timer1.0 in the tcl archive, that will allow you to look at the timers and set/kill new ones as needed.. You can debug your timer procs with putcmdlog strings, to see if the vars are being reset and the proc is being executed and such.

The var the proc is testing is not being set properly (f {$sc::sets(adv) == 1})

Where does the var $sc::sets(adv) get set? If it's a config option, it needs to be set to 1.. If it's set somewhere else in some proc, you need to follow the chain of logic to figure out why it's not being set to 1.

As far as making timers repeat, it's not that hard. There's plenty of example scripts in the archive and the forums, for example any of the advertising scripts that repeat every few minutes.
Back to top
View user's profile Send private message
Ace-T
Halfop


Joined: 29 Aug 2006
Posts: 82

PostPosted: Thu Jul 12, 2007 8:44 pm    Post subject: Reply with quote

thx for ur reply, i have tried the script and it seems the timer is dying after the first announce, and i have it set to == 1 in the script so i know its not tht Smile

just gotta find why its dying at the first announce rly Smile
Back to top
View user's profile Send private message
Zircon
Op


Joined: 21 Aug 2006
Posts: 191
Location: Montreal

PostPosted: Thu Jul 12, 2007 9:15 pm    Post subject: Reply with quote

Zircon wrote:
I think this will do the job in the partyline :
Quote:
.tcl timers

U have to enable the .tcl commad in your conf file so it can work
Quote:
# Comment these two lines if you wish to enable the .tcl and .set commands.
# If you select your owners wisely, you should be okay enabling these.
unbind dcc n tcl *dcc:tcl
unbind dcc n set *dcc:set
Back to top
View user's profile Send private message
Ace-T
Halfop


Joined: 29 Aug 2006
Posts: 82

PostPosted: Thu Jul 12, 2007 9:22 pm    Post subject: Reply with quote

the timer1.0 scripted worked fine Smile


i new the timer was setting anyway, cause if i set it to announce every 2 mins, it announced after the first 2 mins then died
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help 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