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
Bot wildcard functions...

 
Post new topic   Reply to topic Printable version
 View previous topic  TWCore CTF Help Post :: Post problem with mer bot =(  View next topic  
Author Message
Kitsune (^)
Novice


Age:33
Gender:Gender:Male
Joined: Sep 29 2005
Posts: 42
Location: Between Heaven and Hell.
Offline

PostPosted: Mon Jan 09, 2006 6:58 am    Post subject: Bot wildcard functions... Reply to topic Reply with quote

Well, I have wanted to (for fun.. T_T..) make a bot which annoys the crap out of people when you pm them.. but not when you !cmd them.. I need a wildcard functon in which you know... does the wildcard thingie..

-Kit
_________________
If (Pi=Infinite 3 Infinitity)
Carpe diem!
Know thyself.
Back to top
View users profile Send private message Add User to Ignore List
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:37
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Mon Jan 09, 2006 12:10 pm    Post subject: Reply to topic Reply with quote

Oh so it has to do a wildcard thingy when you !cmd then.

I think you'd want something like this.

Code: Show/Hide
void wildcard_thingy()
{
   do (*)
   {
      annoy_user();
   }
   return "user annoyed!".
}


But I may be wrong.
Back to top
View users profile Send private message Add User to Ignore List
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:41
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Mon Jan 09, 2006 3:29 pm    Post subject: Reply to topic Reply with quote

Well, it depends on the bot core. Most bot cores had a function for registering commands (!help, etc) and most also have generic handlers for messages. I don't know how some bot cores handle this, but mine would not send the generic message event if a command was handled first. Thus, a simple 'if privage message and first letter is !' test would be a wild card equiviant of what you want.
Back to top
View users profile Send private message Add User to Ignore List Send email
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: 217 page(s) served in previous 5 minutes.

phpBB Created this page in 0.487493 seconds : 28 queries executed (95.0%): GZIP compression disabled