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.
Help for those learning Tcl or writing their own scripts.
Ace-T
Halfop
Posts: 82 Joined: Tue Aug 29, 2006 7:25 am
Post
by Ace-T » Fri May 04, 2007 8:19 am
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
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Fri May 04, 2007 11:23 am
This is related to the game script, so you'll have to show us the script.
Ace-T
Halfop
Posts: 82 Joined: Tue Aug 29, 2006 7:25 am
Post
by Ace-T » Fri May 04, 2007 4:19 pm
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
YooHoo
Owner
Posts: 939 Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast
Post
by YooHoo » Fri May 04, 2007 7:49 pm
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
rosc2112
Revered One
Posts: 1454 Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania
Post
by rosc2112 » Fri May 04, 2007 9:20 pm
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.