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
Programmers

 
Post new topic   Reply to topic Printable version
 View previous topic  How would I do this?... Post :: Post Bots + Sysop Warnings  View next topic  
Author Message
toKed
Newbie


Age:39
Gender:Gender:Male
Joined: Dec 17 2003
Posts: 12
Offline

PostPosted: Tue Feb 01, 2005 9:52 pm    Post subject: Programmers Reply to topic Reply with quote

I will put this as simple and direct as possible

CypherJF is busy SSCC Omega Fire needs bots pm me in game if interested.......toKed
Back to top
View users profile Send private message Add User to Ignore List
SamHughes
Server Help Squatter


Joined: Jun 30 2004
Posts: 251
Location: Greenwich
Offline

PostPosted: Tue Feb 01, 2005 10:07 pm    Post subject: Reply to topic Reply with quote

(Comment removed.)
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Tue Feb 01, 2005 11:16 pm    Post subject: Reply to topic Reply with quote

Perhaps you could give a small description of what kind of a bot is needed.
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
toKed
Newbie


Age:39
Gender:Gender:Male
Joined: Dec 17 2003
Posts: 12
Offline

PostPosted: Tue Feb 01, 2005 11:51 pm    Post subject: Reply to topic Reply with quote

Okay this is basicaly riped off of twbot's "standard module" but needed in merv. Im not much of a programmer but i know tw is java and merv is C++ i duno how hard it is to make it work out. Besides that cypher is gunna edit the Elim source once i get my hands on it. If i knew howto make tw-core work i would just use that but im illiterate to anything outside html


--------setships-------
!setship #-sets the ship to # 1-8 of all players
!setfreqship # #-the first # is the freq the second # is the ship
--------warp---------
!warp -just prizes a warp to everyone
!warpfreq # x y-warps freq # to certain x y coords
!warpall x y-warps everyone to certain x y coord
--------spec----
!autospec-well we all know what it does but i would like it in this category
!specplayer name #-specs specific player at # of deaths
!specfreq # #-specds a frq # at a number of deaths
-----freq------
!random #-if set !random 1 it makes everyone solo !random 2 makes teams of 2 ect.. to make it have teams of 2 say there 30 ppl you !random 15
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Wed Feb 02, 2005 7:30 pm    Post subject: Reply to topic Reply with quote

Here's your completed bot with source, hope it works.



Omega Fire Bot

OmagaFireBot.zip - 35.21 KB
File downloaded or viewed 29 time(s)
Back to top
View users profile Send private message Add User to Ignore List AIM Address
toKed
Newbie


Age:39
Gender:Gender:Male
Joined: Dec 17 2003
Posts: 12
Offline

PostPosted: Wed Feb 02, 2005 9:42 pm    Post subject: Reply to topic Reply with quote

ty man if u ever need some help with other shit look me up in ssc
Back to top
View users profile Send private message Add User to Ignore List
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Wed Feb 02, 2005 10:52 pm    Post subject: Reply to topic Reply with quote

Just some programming tips (I had nothing better to do and I dont want to do calculus homwork):

1. Dont use the String class all over the place, especially in places where you are looping through every player, example from the above bot: sendPrivate(parse->item,"*setship " + (String)num);
For every player it will need to remake that string, you can do this with just a character array. Ex: char msg[]="*setship ";(2 spaces, the forum cut them out)
msg[7]=num | 0x30; //i think its 30 hex, im too lazy to look it up.
Of course you need to make sure the ship number is between 1 and 8, which you did. Overall I recommend sprintf over the string class.

2. No return; in the middle of functions, ever.

3. sendPublic("*prize #" + (String)PRIZE_Warp);//thats just plain lazy

Ive never been a fan of player_tags but whever works.
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Wed Feb 02, 2005 11:26 pm    Post subject: Reply to topic Reply with quote

http://botguide.blarglefish.com details how to set up a TWCore
_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Thu Feb 03, 2005 2:09 am    Post subject: Reply to topic Reply with quote

Is there a sprintnf function that takes a maximum buffer length in addition to a char* and format string?
Back to top
View users profile Send private message Add User to Ignore List AIM Address
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: Thu Feb 03, 2005 2:18 am    Post subject: Reply to topic Reply with quote

You mean snprintf?
Or for Windows, _snprintf?
Back to top
View users profile Send private message Add User to Ignore List
toKed
Newbie


Age:39
Gender:Gender:Male
Joined: Dec 17 2003
Posts: 12
Offline

PostPosted: Thu Feb 03, 2005 3:18 pm    Post subject: Reply to topic Reply with quote

lol that bot was so buggy
Back to top
View users profile Send private message Add User to Ignore List
toKed
Newbie


Age:39
Gender:Gender:Male
Joined: Dec 17 2003
Posts: 12
Offline

PostPosted: Thu Feb 03, 2005 3:19 pm    Post subject: Reply to topic Reply with quote

ew sry for the double post forgot to mention O'shovah fixed the bugs
Back to top
View users profile Send private message Add User to Ignore List
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Thu Feb 03, 2005 3:27 pm    Post subject: Reply to topic Reply with quote

Plugin.
_________________
Performance is often the art of cheating carefully. - James Gosling
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: Thu Feb 03, 2005 4:23 pm    Post subject: Reply to topic Reply with quote

50% wrote:
msg[7]=num | 0x30; //i think its 30 hex, im too lazy to look it up.

Just do "msg[7] = '0' + num;" or something.
_________________
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
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Thu Feb 03, 2005 4:44 pm    Post subject: Reply to topic Reply with quote

toKed wrote:
lol that bot was so buggy


what were the bugs?
Back to top
View users profile Send private message Add User to Ignore List AIM Address
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: 47 page(s) served in previous 5 minutes.

phpBB Created this page in 0.478336 seconds : 41 queries executed (92.6%): GZIP compression disabled