Author |
Message |
toKed Newbie

Age:39 Gender: Joined: Dec 17 2003 Posts: 12 Offline
|
Posted: Tue Feb 01, 2005 9:52 pm Post subject: Programmers |
 |
|
|
|
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 |
|
 |
SamHughes Server Help Squatter

Joined: Jun 30 2004 Posts: 251 Location: Greenwich Offline
|
Posted: Tue Feb 01, 2005 10:07 pm Post subject: |
 |
|
|
|
(Comment removed.)
|
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
|
Back to top |
|
 |
toKed Newbie

Age:39 Gender: Joined: Dec 17 2003 Posts: 12 Offline
|
Posted: Tue Feb 01, 2005 11:51 pm Post subject: |
 |
|
|
|
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 |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Wed Feb 02, 2005 7:30 pm Post subject: |
 |
|
|
|
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 |
|
 |
toKed Newbie

Age:39 Gender: Joined: Dec 17 2003 Posts: 12 Offline
|
Posted: Wed Feb 02, 2005 9:42 pm Post subject: |
 |
|
|
|
ty man if u ever need some help with other shit look me up in ssc
|
|
Back to top |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
Posted: Wed Feb 02, 2005 10:52 pm Post subject: |
 |
|
|
|
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 |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Thu Feb 03, 2005 2:09 am Post subject: |
 |
|
|
|
Is there a sprintnf function that takes a maximum buffer length in addition to a char* and format string?
|
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Thu Feb 03, 2005 2:18 am Post subject: |
 |
|
|
|
You mean snprintf?
Or for Windows, _snprintf?
|
|
Back to top |
|
 |
toKed Newbie

Age:39 Gender: Joined: Dec 17 2003 Posts: 12 Offline
|
Posted: Thu Feb 03, 2005 3:18 pm Post subject: |
 |
|
|
|
lol that bot was so buggy
|
|
Back to top |
|
 |
toKed Newbie

Age:39 Gender: Joined: Dec 17 2003 Posts: 12 Offline
|
Posted: Thu Feb 03, 2005 3:19 pm Post subject: |
 |
|
|
|
ew sry for the double post forgot to mention O'shovah fixed the bugs
|
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Thu Feb 03, 2005 3:27 pm Post subject: |
 |
|
|
|
Plugin. _________________ Performance is often the art of cheating carefully. - James Gosling
|
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Thu Feb 03, 2005 4:23 pm Post subject: |
 |
|
|
|
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 |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Thu Feb 03, 2005 4:44 pm Post subject: |
 |
|
|
|
toKed wrote: | lol that bot was so buggy |
what were the bugs?
|
|
Back to top |
|
 |
|