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
how do i ?

 
Post new topic   Reply to topic Printable version
 View previous topic  Is it possible for MERV to... Post :: Post League Bot  View next topic  
Author Message
mrmanners
Guest


Offline

PostPosted: Sat Feb 15, 2003 8:43 am    Post subject: how do i ? Reply to topic Reply with quote

what files do i need to edit to add fxns to bot?
.h and .cpp, just name them.
Back to top
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:40
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3614
Location: Las Vegas
Offline

PostPosted: Sat Feb 15, 2003 2:01 pm    Post subject: Reply to topic Reply with quote

Fxns = functions? You don't actually need to create new files to add functions to the bot, you can just edit other files and add to it. If you need to know more about it, jb_google.gif for some help sites.
Back to top
View users profile Send private message Add User to Ignore List Send email
ExplodyThingy
Server Help Squatter


Age:37
Gender:Gender:Male
Joined: Dec 15 2002
Posts: 528
Location: Washington DC
Offline

PostPosted: Sat Feb 15, 2003 3:23 pm    Post subject: Reply to topic Reply with quote

assuming you mean the source for merv, look in commands.cpp. its essentially a gigantic version of commands.cpp that exists in the empty plugin source. thatll let you add some !commands to yer bot directly.
_________________
There are no stupid question, but there are many inquisitive idiots.
Loot

Dr Brain> I hate clean air and clean water. I'm a member of Evil Conservitive Industries
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
mister_manners
Newbie


Gender:Gender:Male
Joined: Feb 16 2003
Posts: 15
Offline

PostPosted: Sun Feb 16, 2003 6:26 pm    Post subject: Reply to topic Reply with quote

Code: Show/Hide

case OP_Player:
      {   // Player-level commands
         if (c->check("about"))
         {
            sendPrivate(p, "I am a plain vanilla flavored bot.  Yup, just as plain and useless as can be.");
         }
                        if (c->check("killme"))
                        {       
                                sendPrivate(p, *shipreset);

                        }
      }
   }
}

what would this do?
Back to top
View users profile Send private message Add User to Ignore List
k0zy@school
Guest


Offline

PostPosted: Mon Feb 17, 2003 4:14 am    Post subject: Reply to topic Reply with quote

This would give an error =P

Code: Show/Hide
sendPrivate(p, "*shipreset");


u have to put the text to send in ""...

and it would reset the ship to inital bounty when player sends "!killme"
Back to top
mister_manners
Newbie


Gender:Gender:Male
Joined: Feb 16 2003
Posts: 15
Offline

PostPosted: Mon Feb 17, 2003 1:04 pm    Post subject: Reply to topic Reply with quote

so thats all to add a fxn (function)?
Back to top
View users profile Send private message Add User to Ignore List
mister_manners
Newbie


Gender:Gender:Male
Joined: Feb 16 2003
Posts: 15
Offline

PostPosted: Mon Feb 17, 2003 1:05 pm    Post subject: Reply to topic Reply with quote

so fukin eZ, i m a 13 yearold! : )
Back to top
View users profile Send private message Add User to Ignore List
ExplodyThingy
Server Help Squatter


Age:37
Gender:Gender:Male
Joined: Dec 15 2002
Posts: 528
Location: Washington DC
Offline

PostPosted: Mon Feb 17, 2003 5:22 pm    Post subject: Reply to topic Reply with quote

Good for you.
It really is quite simple. Generally the reason for a lack of coders is because many people are instantly overwhelmed. Had more people just sat down to look a little harder, they woudl see that its nat as hard as youd think.

And just for future reference, get in the habbit of doing "else if" after your first "if"
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
mister_manners
Newbie


Gender:Gender:Male
Joined: Feb 16 2003
Posts: 15
Offline

PostPosted: Wed Feb 19, 2003 1:00 pm    Post subject: Reply to topic Reply with quote

Code: Show/Hide

case OP_Player:
      {   // Player-level commands
         if (c->check("about"))
         {
            sendPrivate(p, "I am a plain vanilla flavored bot.  Yup, just as plain and useless as can be.");
         }
/*************else if **********/(c->check("killme"))
                        {       
                                sendPrivate(p, *shipreset);

                        }
      }
   }
}

like that without comment? new_let_it_all_out.gif
Back to top
View users profile Send private message Add User to Ignore List
SOS
Server Help Squatter


Joined: Dec 02 2002
Posts: 329
Offline

PostPosted: Wed Feb 19, 2003 2:44 pm    Post subject: Reply to topic Reply with quote

yup
_________________
3y3 4m l33t h4x0r
j0! 3y3 4m t4lking to j00!
fux0red 5cr1pt k1dd13.
-"l33t h41ku"
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: 599 page(s) served in previous 5 minutes.

phpBB Created this page in 0.517498 seconds : 35 queries executed (94.4%): GZIP compression disabled