Author |
Message |
xsp0rtsfanx Seasoned Helper

Age:36 Gender: Joined: Dec 27 2004 Posts: 168 Location: California Offline
|
Posted: Sun Sep 11, 2005 10:28 pm Post subject: Bounty Command |
 |
|
|
|
Is there a command or a way to make a bot or something prize you when you have a certain amount of bounty? I'm trying to make a mini plugin and I could figure out the code if I knew if there was a command to check for bounty through the bot. |
|
Back to top |
|
 |
Purge Episode I > Eposide III Jar-Jar is kool

Age:35 Gender: Joined: Sep 08 2004 Posts: 2019 Offline
|
|
Back to top |
|
 |
xsp0rtsfanx Seasoned Helper

Age:36 Gender: Joined: Dec 27 2004 Posts: 168 Location: California Offline
|
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Mon Sep 12, 2005 1:04 am Post subject: |
 |
|
|
|
it's just like it's said, greater than or equal to (>=). Nonetheless you could have tested this out instead of asking, as only one of them will compile |
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Mon Sep 12, 2005 6:28 am Post subject: |
 |
|
|
|
If you want to have it detect bounty reliable, set 'NoisySpectator' to 1 in mervbot.ini. (And then you can detect the bounty in the EVENT_PlayerMove Event)
However, beware of the warnings given by 50% Packetloss about NoisySpectator in this topic.
Can a mod please move this topic to Bot Questions forum  _________________
|
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Mon Sep 12, 2005 8:33 pm Post subject: |
 |
|
|
|
NoisySpectator is almost always a bad idea. However, bounty only goes up during kills and prizes (right?) so all you have to do is check on EVENT_PlayerDeath and EVENT_PlayerPrize. Come on, Mav, use your brain.
The one possible circumstance in which this might not work is the smod command *prize, I'm not sure whether that sends a player prize packet. Of course, you could always check on EVENT_PlayerPosition without NoisySpectator if you want. _________________ 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 |
|
 |
Quan Chi2 Member of "Sexy Teenagers that Code" Group

Age:34 Gender: Joined: Mar 25 2005 Posts: 860 Location: NYC Offline
|
Posted: Mon Sep 12, 2005 8:33 pm Post subject: |
 |
|
|
|
:/ |
|
Back to top |
|
 |
xsp0rtsfanx Seasoned Helper

Age:36 Gender: Joined: Dec 27 2004 Posts: 168 Location: California Offline
|
|
Back to top |
|
 |
Muskrat Server Help Squatter

Age:38 Joined: Aug 24 2004 Posts: 829 Location: Swamp Offline
|
Posted: Mon Sep 12, 2005 9:46 pm Post subject: |
 |
|
|
|
That would be WAY wrong. First you have braces, { and } where there should be parentheses, ( and ). Also, dont capitalize keywords (if not If). You need a player argument first, then a string in the sendPrivate function. Also, get the capitalizing on EVENT_PlayerDeath right. And in your first conditional p isnt going to compare with any integer x, so I'd suggest p->bounty, that looks liek what you are going for.
jesus... lol I don't even think thats everything. |
|
Back to top |
|
 |
Quan Chi2 Member of "Sexy Teenagers that Code" Group

Age:34 Gender: Joined: Mar 25 2005 Posts: 860 Location: NYC Offline
|
Posted: Mon Sep 12, 2005 10:04 pm Post subject: |
 |
|
|
|
I would use something like..
String s;
s += "arena ";
blah blah blah |
|
Back to top |
|
 |
xsp0rtsfanx Seasoned Helper

Age:36 Gender: Joined: Dec 27 2004 Posts: 168 Location: California Offline
|
Posted: Mon Sep 12, 2005 10:18 pm Post subject: |
 |
|
|
|
alright thanks for the help thus far.. i'm still trying to learn c++ so i'm getting there gradually  |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Mon Sep 12, 2005 11:05 pm Post subject: |
 |
|
|
|
Learn C++ before you make a bot plugin. Look at some other plugins or read stuff on http://www.cplusplus.com/doc/. |
|
Back to top |
|
 |
Muskrat Server Help Squatter

Age:38 Joined: Aug 24 2004 Posts: 829 Location: Swamp Offline
|
Posted: Mon Sep 12, 2005 11:50 pm Post subject: |
 |
|
|
|
Or better yet, take an Intro to C class at your school or nearby university. |
|
Back to top |
|
 |
xsp0rtsfanx Seasoned Helper

Age:36 Gender: Joined: Dec 27 2004 Posts: 168 Location: California Offline
|
Posted: Mon Sep 12, 2005 11:56 pm Post subject: |
 |
|
|
|
my school: highschool that has a java course they wouldnt let me in
nearby university/community college: no class i dont believe...
i'd have to search to find a class.. i have books so i'm gradually learning.. |
|
Back to top |
|
 |
Purge Episode I > Eposide III Jar-Jar is kool

Age:35 Gender: Joined: Sep 08 2004 Posts: 2019 Offline
|
Posted: Tue Sep 13, 2005 3:21 pm Post subject: |
 |
|
|
|
Yeah, C++ for Dummies is helping me much. |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
|
Back to top |
|
 |
|