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
Give multi to ship 5

 
Post new topic   Reply to topic Printable version
 View previous topic  Codes Post :: Post :D I got an idea!  View next topic  
Author Message
Dvondrake
Guest


Offline

PostPosted: Sat Jul 02, 2005 10:22 pm    Post subject: Give multi to ship 5 Reply to topic Reply with quote

Hi,

Since I'm a newb to bot programming (And not that much to C++), can someone help/make me a simple bot plugin (and source) that automaticly gives ship 5 multifire every time they die with ship 5/change ship to 5.

Thanks,
Doug
Back to top
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: Sun Jul 03, 2005 10:45 am    Post subject: Reply to topic Reply with quote

Learn to do it yourself.
Back to top
View users profile Send private message Add User to Ignore List
Assassin2684
Server Help Squatter


Age:34
Gender:Not sure
Joined: Jul 27 2004
Posts: 990
Location: Florida
Offline

PostPosted: Sun Jul 03, 2005 11:51 am    Post subject: Reply to topic Reply with quote

Lol solo sa_tongue.gif
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Dvondrake
Guest


Offline

PostPosted: Sun Jul 03, 2005 1:53 pm    Post subject: Reply to topic Reply with quote

Meany :'(
Back to top
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: Sun Jul 03, 2005 6:53 pm    Post subject: Reply to topic Reply with quote

How's that mean?

In poor countries the rich countries don't give the poor people food, they give them the right materials to have a farm and produce their own food.

A long-term solution is always better, how does suggesting one make me mean?
Back to top
View users profile Send private message Add User to Ignore List
Muslum
Guest


Offline

PostPosted: Sun Jul 03, 2005 8:53 pm    Post subject: Reply to topic Reply with quote

Yes, but you didn't help him at all. You didn't provide any resources or information that could help him make plugins, or even learn how. You could of taught him how to do what he was asking in even less words/characters than you used in your second post.
Back to top
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: Sun Jul 03, 2005 10:19 pm    Post subject: Reply to topic Reply with quote

Now let's look at this again, who actually helped him more in this thread, you or me?

If he's a little experienced with C++, as he says, he can figure it out.

Also, he obviously didn't even really try, so I'd rather tell him to do so, and eventually provide real help if he gets stuck at making his own plugins.

I won't assume he's retarded, why should I provide resources (which would just be quoting MGB's rules post at the top of this forum)? He's at a resource already, searching the forums is what he should've done before actually posting.
Back to top
View users profile Send private message Add User to Ignore List
Dvondrake
Guest


Offline

PostPosted: Sun Jul 03, 2005 10:50 pm    Post subject: Reply to topic Reply with quote

He's helping me way more than you are... On aim.

Can someone close this post? It's getting too retarded.
Back to top
SamHughes
Server Help Squatter


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

PostPosted: Sun Jul 03, 2005 11:06 pm    Post subject: Reply to topic Reply with quote

You ain't seen nothing yet.
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 Jul 04, 2005 2:16 am    Post subject: Reply to topic Reply with quote

Hey, guess what, in spawn.cpp:
Code: Show/Hide
case EVENT_PlayerShip:
         {
            Player *p = (Player*)event.p[0];
            Uint16 oldship = (Uint16)event.p[1];
            Uint16 oldteam = (Uint16)event.p[2];
            
            // If player is in a Terrier (ship 5), prize MultiFire to player.
            if (p->ship == SHIP_Terrier)
               sendPrivate(p,"*prize #15");
         }
         break;

But I'm too retarded, don't take my advice.

If you really need help for this, I'd suggest you think about who actually is retarded, instead of calling the thread like that.
Back to top
View users profile Send private message Add User to Ignore List
Muslum
Guest


Offline

PostPosted: Mon Jul 04, 2005 11:12 am    Post subject: Reply to topic Reply with quote

Good job.

Solo Ace wrote:
Learn to do it yourself.


Solo Ace wrote:
Hey, guess what, in spawn.cpp:
Code:
case EVENT_PlayerShip:
{
Player *p = (Player*)event.p[0];
Uint16 oldship = (Uint16)event.p[1];
Uint16 oldteam = (Uint16)event.p[2];

// If player is in a Terrier (ship 5), prize MultiFire to player.
if (p->ship == SHIP_Terrier)
sendPrivate(p,"*prize #15");
}
break;


you can't tell me your first post was more helpful.
Back to top
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 Jul 04, 2005 12:28 pm    Post subject: Reply to topic Reply with quote

I'm sure he didn't learn anything from my last post either.

He needs to play with the code, read other plugins their code and try to understand what it's doing, otherwise it's all useless.

Stop whining about what's more helpful. There are enough people around here who "create" bots without actually knowing what they're doing.
Only giving them code won't teach them anything and will only make it worse.
As said earlier on these forums: "There are enough scriptkiddies".
Back to top
View users profile Send private message Add User to Ignore List
Dvondrake
Guest


Offline

PostPosted: Mon Jul 04, 2005 2:38 pm    Post subject: Reply to topic Reply with quote

Excuse me, but I take that as an extream offense.

I KNOW VB, PHP, Perl, MySQL, and out of all of them, I'm just learning C++. My knowledge outweighs my knowledge in learning.

Plus, if you havent noticed from when you learned any programming languages, (IF you have learnt any, which i highly doubt), you need to experiment with one small, simple peice of code, and then you can expand your knowledge from there.

No, none of your posts helped. At all. By the time you posted your 'helpful' post, Muslum already helped me with this, helped debug my errors, AND gave another solution to it, since mine wouldnt work. (In which, YOURS WILL NOT WORK EITHER.)

So please do not call someone a script kiddie when they are superior at scripting towards you, in this case, maybe not exactly in C++, but in everything else, exactly.

Now, can someone finally close this retarded topic?
Back to top
Dvondrake
Guest


Offline

PostPosted: Mon Jul 04, 2005 2:41 pm    Post subject: Reply to topic Reply with quote

I forgot to say why your code would not work. Please excuse me if double posting is frowned upon on this forum.

Anyways, SHIP_Terrier WILL NOT work. it has to be 4. No, not SHIP_5, just 4. "Four? LOL", you say? 0 is warbird, not 1.
Back to top
Muskrat
Server Help Squatter


Age:38
Joined: Aug 24 2004
Posts: 829
Location: Swamp
Offline

PostPosted: Mon Jul 04, 2005 3:00 pm    Post subject: Reply to topic Reply with quote

SHIP_Terrier works...
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Underlord
Novice


Gender:Gender:Male
Joined: Feb 17 2004
Posts: 55
Offline

PostPosted: Mon Jul 04, 2005 5:31 pm    Post subject: Reply to topic Reply with quote

from spawn.h

Code: Show/Hide
enum Ship_Types
{
   SHIP_Warbird,      // 0
   SHIP_Javelin,
   SHIP_Spider,
   SHIP_Leviathan,
   SHIP_Terrier,
   SHIP_Weasel,
   SHIP_Lancaster,
   SHIP_Shark,
   SHIP_Spectator      // 8
};


yes SHIP_Terrier works
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
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 Jul 04, 2005 6:13 pm    Post subject: Reply to topic Reply with quote

I didn't call anyone a scriptkiddie, yet, fool.

I'm pretty sure my coding expierence goes a little further than yours, seeing you have no idea what you're talking about.
Haha look at yourself talking: "do not call someone a script kiddie when they are superior at scripting towards you".
If you are superior to me, why did you even bother asking instead of figuring out?

Also, why are you telling me wrong about this? You have no idea what you're doing.
My comment "(ship 5)" doesn't represent the number of the object in the enum, it does represent the number used as ship in Continuum, which I assumed to be the 5 you meant.

You are pathetic, Dvondrake.
Back to top
View users profile Send private message Add User to Ignore List
Dvondrake
Guest


Offline

PostPosted: Mon Jul 04, 2005 8:35 pm    Post subject: Reply to topic Reply with quote

Ship_terrier doesnt work for me, so hah.

And I am not pathetic. As I said, my knowledge in C++ is being developed, therefor I still have my rights to ask questions.

I will not reply to this any more. You're a pain and you can't deny that; I don't care. I'm ignoring this thread now...
Back to top
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 Jul 04, 2005 8:41 pm    Post subject: Reply to topic Reply with quote

Haha, why does it work for all others then? It just means you are doing something wrong, so there's no "hah" for you.
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 Jul 05, 2005 4:35 pm    Post subject: Reply to topic Reply with quote

it doesn't work because you're putting it in the wrong event

and dvondrake if (p->ship == SHIP_Terrier) is correct

wait till a player issues a playerDeath event, record the name, then during the next playerMove event check the ship and issue them multifire.

You also have to take into account players leaving before you could give them multifire so don't keep them on the list forever. Also changing ship, which is why you check the ship. Also make sure multifire is in the prizeweights or else continuum will issue a security violation.
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
liito-orava
Novice


Gender:Gender:Male
Joined: Sep 24 2003
Posts: 41
Offline

PostPosted: Wed Jul 06, 2005 11:36 am    Post subject: Reply to topic Reply with quote

Dvondrake wrote:
Ship_terrier doesnt work for me, so hah.

Neither does it work here. Anyhow SHIP_Terrier does work, so hah. icon_smile.gif
_________________
"Do you hear that? That is the sound of nobody giving a fuck!"
Wolfix> Lesbian transvestites trapped in man's bodies spanking their monkeys to freq 395
Back to top
View users profile Send private message Add User to Ignore List
Ken the Great
Novice


Age:34
Gender:Gender:Male
Joined: Apr 14 2005
Posts: 89
Location: Finland
Offline

PostPosted: Wed Jul 06, 2005 12:01 pm    Post subject: Reply to topic Reply with quote

also, he's ignoring his own thread?
tss...
_________________

this is me. I'm Ken the Great. I just stole ur cookies.
Most people believe in a god. But God believes in Ken.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website Yahoo Messenger MSN Messenger
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: 174 page(s) served in previous 5 minutes.

phpBB Created this page in 0.499893 seconds : 46 queries executed (93.1%): GZIP compression disabled