Author |
Message |
Dvondrake Guest
Offline
|
Posted: Sat Jul 02, 2005 10:22 pm Post subject: Give multi to ship 5 |
 |
|
|
|
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: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Sun Jul 03, 2005 10:45 am Post subject: |
 |
|
|
|
Learn to do it yourself. |
|
Back to top |
|
 |
Assassin2684 Server Help Squatter

Age:34 Gender: Joined: Jul 27 2004 Posts: 990 Location: Florida Offline
|
Posted: Sun Jul 03, 2005 11:51 am Post subject: |
 |
|
|
|
Lol solo  |
|
Back to top |
|
 |
Dvondrake Guest
Offline
|
Posted: Sun Jul 03, 2005 1:53 pm Post subject: |
 |
|
|
|
Meany :'( |
|
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: Sun Jul 03, 2005 6:53 pm Post subject: |
 |
|
|
|
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 |
|
 |
Muslum Guest
Offline
|
Posted: Sun Jul 03, 2005 8:53 pm Post subject: |
 |
|
|
|
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: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Sun Jul 03, 2005 10:19 pm Post subject: |
 |
|
|
|
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 |
|
 |
Dvondrake Guest
Offline
|
Posted: Sun Jul 03, 2005 10:50 pm Post subject: |
 |
|
|
|
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
|
Posted: Sun Jul 03, 2005 11:06 pm Post subject: |
 |
|
|
|
You ain't seen nothing yet. |
|
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
|
|
Back to top |
|
 |
Muslum Guest
Offline
|
Posted: Mon Jul 04, 2005 11:12 am Post subject: |
 |
|
|
|
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: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Mon Jul 04, 2005 12:28 pm Post subject: |
 |
|
|
|
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 |
|
 |
Dvondrake Guest
Offline
|
Posted: Mon Jul 04, 2005 2:38 pm Post subject: |
 |
|
|
|
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
|
Posted: Mon Jul 04, 2005 2:41 pm Post subject: |
 |
|
|
|
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
|
Posted: Mon Jul 04, 2005 3:00 pm Post subject: |
 |
|
|
|
SHIP_Terrier works... |
|
Back to top |
|
 |
Underlord Novice
Gender: Joined: Feb 17 2004 Posts: 55 Offline
|
|
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: Mon Jul 04, 2005 6:13 pm Post subject: |
 |
|
|
|
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 |
|
 |
Dvondrake Guest
Offline
|
Posted: Mon Jul 04, 2005 8:35 pm Post subject: |
 |
|
|
|
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: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Mon Jul 04, 2005 8:41 pm Post subject: |
 |
|
|
|
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 |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Tue Jul 05, 2005 4:35 pm Post subject: |
 |
|
|
|
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 |
|
 |
liito-orava Novice

Gender: Joined: Sep 24 2003 Posts: 41 Offline
|
Posted: Wed Jul 06, 2005 11:36 am Post subject: |
 |
|
|
|
Dvondrake wrote: | Ship_terrier doesnt work for me, so hah. |
Neither does it work here. Anyhow SHIP_Terrier does work, so hah.  _________________ "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 |
|
 |
Ken the Great Novice

Age:34 Gender: Joined: Apr 14 2005 Posts: 89 Location: Finland Offline
|
Posted: Wed Jul 06, 2005 12:01 pm Post subject: |
 |
|
|
|
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 |
|
 |
|