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.

ppt timer

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
P
Pizza_Guy
Voice
Posts: 12
Joined: Sun Jun 08, 2008 1:52 am

ppt timer

Post by Pizza_Guy »

In a game that i play we have a protection period of 2880 mins. Its also a war game. I am trying to make a PPT system so that we can set it so that we can mark people as being under protection or even our selfs.
I started the following script just not sure how to get it to do the following:

1. set a timer and mark it with the ID of the person we set it with
ex: !ppt 123456
2. sends back timer set, i got this part :D
3. sends a message to the channel when the timer is down to say 5 mins

What I have so far

Code: Select all

bind pub - !PPT ppt.proc

proc ppt.proc {nick uhost handle chan text} {
 set timerid [timer 2880 [args args args args args]]
 putserv "PRIVMSG $chan :Timer $timerid started"
}
i know the 5 args won't work but i not sure what goes in there.

Thanks for the help and advice
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

What message do you want to send after 5 minutes?
P
Pizza_Guy
Voice
Posts: 12
Joined: Sun Jun 08, 2008 1:52 am

Post by Pizza_Guy »

someone helped me with this

Code: Select all

bind pub - !ppt 2870mins

#sets timer for 2875 mins
proc 2870mins { nick host hand chan text } {
	putquick "PRIVMSG $chan :PPT timer for $text is set."
	timer 600 "last10 $chan $text"
	putlog "2870mins for $text."
}

#sets timer for 10 mins
proc last10 { chan text } {
	putquick "PRIVMSG $chan :$text has 10 minutes left on PPT."
	timer 1 "pptover $chan $text"
	putlog "last10 mins for $text."
}

#tells when total time is over
proc pptover { chan text } {
	putquick "PRIVMSG $chan :$text is coming off PPT soon!!"
	putlog "pptover for $text!"
}
i am sure that it could be made better. Also is there a way to keep the timers a bit more accurate. The first one is really off some times either fast or slow. The 2nd one is dead on no problems. I am also looking for a way to check the timer in teh channel

the way i am having the people do the timers is

!ppt <account name-ingame ID number>

i was thinking if i could do !check <account name-ingame ID number>
it could give me the time check, is that possable?
Post Reply