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
Final question.

 
Post new topic   Reply to topic Printable version
 View previous topic  Custom datafile. Calling back data and... Post :: Post creating event ref group  View next topic  
Author Message
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Sun Jul 16, 2006 12:20 pm    Post subject: Final question. Reply to topic Reply with quote

Here is my final question. How can I find out if anyone won the flag game in python. I tried doing a CB for flags and it didnt work. What I'm doing is giving players money once they win the flag game. Everything is setup but I don't know how to make it check if anyone won.

Plx help, thx.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Sun Jul 16, 2006 12:42 pm    Post subject: Reply to topic Reply with quote

You could use CB_FLAGRESET (flagcore.h), but CB_WARZONEWIN (fg_wz.h) is meant for calculating the points, so maybe do it in that one instead.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Sun Jul 16, 2006 6:39 pm    Post subject: Reply to topic Reply with quote

Neither one of those seem to work. fg_wz is loaded.
Can you show a bit of code.

what I have:
Code: Show/Hide

def flags(freq, points):
    .....
cb4 = reg_callback(CB_WARZONEWIN, flags)
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Sun Jul 16, 2006 8:30 pm    Post subject: Reply to topic Reply with quote

I am pretty sure there is supposed to be an arena parameter. Next time read the .h files more carefully.
Quote:
#define CB_FLAGRESET "flagreset"
typedef void (*FlagResetFunc)(Arena *a, int freq, int points);
/* pycb: arena, int, int */
/* run when the flag game is reset (either a win or a forced reset) */

Code: Show/Hide

def flagreset(arena, freq, points):
    ...

cb1 = reg_callback(CB_WARZONEWIN, flagreset)
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Sun Jul 16, 2006 8:40 pm    Post subject: Reply to topic Reply with quote

Ty Ty
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS 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: 23 page(s) served in previous 5 minutes.

phpBB Created this page in 0.479180 seconds : 30 queries executed (94.8%): GZIP compression disabled