Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
One thing Im confused about...

 
Post new topic   Reply to topic Printable version
 View previous topic  Mervbot Post :: Post Where can I get mervbot?  View next topic  
Author Message
GBob
Guest


Offline

PostPosted: Fri Oct 03, 2003 10:19 pm    Post subject: One thing Im confused about... Reply to topic Reply with quote

In mervbot:
I dont understand how time things, I mean, for example:

How do I do something every X seconds?
How do I do something X seconds after command !Y?

Some more I forgot, but any help would be great...[/list]
Back to top
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Fri Oct 03, 2003 11:13 pm    Post subject: Reply to topic Reply with quote

Writing a dll?

In spawn.cpp look for EVENT_Tick, it triggers every second. There's also countdown[n], which decreases every second, so that's how you do #2.

Yay, I love it when the bot has built in features like this! icon_razz.gif
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
GBob
Guest


Offline

PostPosted: Fri Oct 03, 2003 11:24 pm    Post subject: Reply to topic Reply with quote

Okay, I got that part. Now, for the second: I was thinking I could set a timer to X seconds on !Y, but that would reset the timer each time someone did !Y, I need it for each person who does it....
Back to top
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Sat Oct 04, 2003 10:37 pm    Post subject: Reply to topic Reply with quote

Set up a big countdown array? :-/
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
k0zy
Server Help Squatter


Gender:Gender:Male
Joined: Jan 11 2003
Posts: 571
Location: Germany
Offline

PostPosted: Sun Oct 05, 2003 3:49 am    Post subject: Reply to topic Reply with quote

or "tag" the player using set_tag and get_tag
Back to top
View users profile Send private message Add User to Ignore List
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Sun Oct 05, 2003 12:23 pm    Post subject: Reply to topic Reply with quote

And do a get_tag for every player in EVENT_Tick? I think that might be even more ineffecient.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
k0zy
Server Help Squatter


Gender:Gender:Male
Joined: Jan 11 2003
Posts: 571
Location: Germany
Offline

PostPosted: Sun Oct 05, 2003 1:39 pm    Post subject: Reply to topic Reply with quote

I didn't say it's more efficent... Maybe it is, maybe not.
But i consider tagging as more secure and clean.

Because, when u define a huge countdown array...
Let's say countdown[50], what if there are suddenly more then 50 ppl in one arena? And if there are only 20, not even half of the array is used.

Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole....
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can 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
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 225 page(s) served in previous 5 minutes.

phpBB Created this page in 0.467764 seconds : 31 queries executed (94.7%): GZIP compression disabled