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
No flags in the safe zone please :P

 
Post new topic   Reply to topic Printable version
 View previous topic  timer starting Post :: Post Bot Programmer needs uh.. help..? tuto...  View next topic  
Author Message
Kliff
Novice


Age:41
Gender:Gender:Male
Joined: Mar 28 2003
Posts: 36
Location: United States
Offline

PostPosted: Fri May 23, 2003 5:16 pm    Post subject: No flags in the safe zone please :P Reply to topic Reply with quote

Are there any plugins that would spec a player or nuet flags of whoever brought flags in a safe zone? Anything like that?
Back to top
View users profile Send private message Add User to Ignore List
ExplodyThingy
Server Help Squatter


Age:38
Gender:Gender:Male
Joined: Dec 15 2002
Posts: 528
Location: Washington DC
Offline

PostPosted: Fri May 23, 2003 11:48 pm    Post subject: Reply to topic Reply with quote

if (p->flags > 0 && p->safty == true)
sendPrivate(p,"*setship");

i forget whether the p->safety is bool or int, but you can figure that out.
As for p->flags, if there isnt such a thing ( i wouldnt know, never needed to know) just tag them at the EVENT_FlagGrab

ScottMitch has a done all the work on that for a OF bot, kept very acurate count of flaggers, as the former flag data for the killed flagger is lost in EVENT_PlayerDeath.



But assuming your not a script whore like the rest of use, you want a quick and dirty? ill write as soon as you say yes. (i am that much of a loser)
_________________
There are no stupid question, but there are many inquisitive idiots.
Loot

Dr Brain> I hate clean air and clean water. I'm a member of Evil Conservitive Industries
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
k0zy
Server Help Squatter


Gender:Gender:Male
Joined: Jan 11 2003
Posts: 571
Location: Germany
Offline

PostPosted: Sat May 24, 2003 11:54 am    Post subject: Reply to topic Reply with quote

Code: Show/Hide
if (p->safety)

will do fine icon_smile.gif

Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole....
Back to top
View users profile Send private message Add User to Ignore List
Kliff
Novice


Age:41
Gender:Gender:Male
Joined: Mar 28 2003
Posts: 36
Location: United States
Offline

PostPosted: Sat May 24, 2003 4:49 pm    Post subject: Reply to topic Reply with quote

Yes very correct, i dunno what the hell that is just yet tongue.gif. I would much appreciate it biggrin.gif (Yes)
Back to top
View users profile Send private message Add User to Ignore List
ExplodyThingy
Server Help Squatter


Age:38
Gender:Gender:Male
Joined: Dec 15 2002
Posts: 528
Location: Washington DC
Offline

PostPosted: Sun May 25, 2003 8:58 pm    Post subject: Reply to topic Reply with quote

Kliff wrote:
Yes very correct, i dunno what the hell that is just yet tongue.gif. I would much appreciate it biggrin.gif (Yes)
Want the nerd explanation or the really gummed-down one?
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Kliff
Novice


Age:41
Gender:Gender:Male
Joined: Mar 28 2003
Posts: 36
Location: United States
Offline

PostPosted: Sun May 25, 2003 9:09 pm    Post subject: Reply to topic Reply with quote

How about both? I dunno really much of anything with programming just yet
Back to top
View users profile Send private message Add User to Ignore List
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Mon May 26, 2003 1:56 pm    Post subject: Reply to topic Reply with quote

Does this help?
if (p->safety)
is the same as
if (p->safety == true) //true is anything but 0 (usually 1)

Also
if (!p->safety)
is the same as
if (p->safety == false) //false is always 0
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Rubu
Newbie


Age:41
Gender:Gender:Male
Joined: May 24 2003
Posts: 3
Location: United States
Offline

PostPosted: Mon May 26, 2003 9:56 pm    Post subject: Reply to topic Reply with quote

I dont know any of that icon_rolleyes.gif
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Kliff
Novice


Age:41
Gender:Gender:Male
Joined: Mar 28 2003
Posts: 36
Location: United States
Offline

PostPosted: Tue May 27, 2003 5:20 pm    Post subject: Reply to topic Reply with quote

(Rubu) icon_rolleyes.gif
Back to top
View users profile Send private message Add User to Ignore List
Helicon
Server Help Squatter


Joined: Dec 03 2002
Posts: 771
Location: GNU Doldrums
Offline

PostPosted: Tue May 27, 2003 9:01 pm    Post subject: Reply to topic Reply with quote

do you know C++????
_________________
Signatures just seem so quaint.
Back to top
View users profile Send private message Add User to Ignore List
ExplodyThingy
Server Help Squatter


Age:38
Gender:Gender:Male
Joined: Dec 15 2002
Posts: 528
Location: Washington DC
Offline

PostPosted: Thu May 29, 2003 8:31 pm    Post subject: Reply to topic Reply with quote

Cripes. "p" is a pointer.
Its set up thusly "Player *p"
the safty "class?" (I forget what the hell the parts of classes are called) is boolen (true or flase) i believe. Either that or int (0 or non-0).
flags is an int that counts the number of flags on that player. if its 0, then the conditional will resolve false (ie: the if statement ill not be true), therfore making it not catch if p has no flags.

Go read a book.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
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: 49 page(s) served in previous 5 minutes.

phpBB Created this page in 0.503819 seconds : 35 queries executed (93.7%): GZIP compression disabled