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 

Time help

 
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: Fri May 04, 2007 8:19 am    Post subject: Time help Reply with quote

i running a gaming chan and we record users stats and i have everything set up great but i wanted to add a new command to it but not sure how.


if a user is playing for longer than 60mins then it will say in the channel

Sorry <nick> : game name here : You failed

the u failed bit is only if its over 60 mins

and if they do it in under 60 mins it will say summet like

Congratz <nick > : gane name here : well done you completed the game in time


thx
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri May 04, 2007 11:23 am    Post subject: Reply with quote

This is related to the game script, so you'll have to show us the script.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Ace-T
Halfop


Joined: 29 Aug 2006
Posts: 82

PostPosted: Fri May 04, 2007 4:19 pm    Post subject: Reply with quote

i have the code working fine bu u need to do !stats so tht is only a matter of changing the bind pub, its just the time part im stuck on,

im sure its prolly fairly easy, even if u can just guide me in the right direction it would be a great help


it basically gathers the times from the mysql db
Back to top
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Fri May 04, 2007 7:49 pm    Post subject: Reply with quote

Sir_Fz wrote:
This is related to the game script, so you'll have to show us the script.
If you need help altering a procedure...any procedure... we need to see it Mr. Green
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
rosc2112
Revered One


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

PostPosted: Fri May 04, 2007 9:20 pm    Post subject: Reply with quote

If you just want general help, then basically when the player joins the game, you create a new timer with the [timer] command. If the player wins, you can have whatever proc you use to "win" destroy the timer with killtimer.
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