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 

help with adding time to command

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


Joined: 10 Nov 2006
Posts: 9

PostPosted: Thu Mar 29, 2007 5:42 pm    Post subject: help with adding time to command Reply with quote

Code:
proc pub_.request {nick uhost hand channel rest} {
proc proctimer {minute hour day month year} { .. } ;
proc addtolist {nick userhost} {global yourlist; lappend yourlist $nick!$userhost}
proc checkthelist {nick userhost} {global yourlist; if {[lsearch -glob $yourlist [stringtopattern $nick]!*]!=-1 ||

[lsearch -glob $yourlist *![stringtopattern $userhost]]!=-1} {return 1} {return 0}}
global botnick
putmsg $channel ".give $nick 200"
putmsg $nick "$nick you can request another 200 words tomorrow from 00:00am GMT"
}
bind time - "" proctimer ;
bind pub - .request "pub_.request"


what i need help with is inserting a timer that will only reset at 00:00am GTM per person so that every one can request $200 to play on the cassino bot per day
Back to top
View user's profile Send private message
rosc2112
Revered One


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

PostPosted: Sat Apr 07, 2007 7:09 pm    Post subject: Reply with quote

Assuming you have all the players names in a list or some var, you can do something like:

foreach name $whatever {
# reset $name stuff
}

and then bind that into a seperate proc with the bind time command..
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