Revision 1, 1.1 kB
(checked in by jinshiro, 17 years ago)
|
|
Line | |
---|
1 | // Copyright (c) Athena Dev Teams - Licensed under GNU GPL |
---|
2 | // For more information, see LICENCE in the main folder |
---|
3 | |
---|
4 | #ifndef _INT_PARTY_SQL_H_ |
---|
5 | #define _INT_PARTY_SQL_H_ |
---|
6 | |
---|
7 | //Party Flags on what to save/delete. |
---|
8 | //Create a new party entry (index holds leader's info) |
---|
9 | #define PS_CREATE 0x01 |
---|
10 | //Update basic party info. |
---|
11 | #define PS_BASIC 0x02 |
---|
12 | //Update party's leader |
---|
13 | #define PS_LEADER 0x04 |
---|
14 | //Specify new party member (index specifies which party member) |
---|
15 | #define PS_ADDMEMBER 0x08 |
---|
16 | //Specify member that left (index specifies which party member) |
---|
17 | #define PS_DELMEMBER 0x10 |
---|
18 | //Specify that this party must be deleted. |
---|
19 | #define PS_BREAK 0x20 |
---|
20 | |
---|
21 | struct party; |
---|
22 | |
---|
23 | int inter_party_parse_frommap(int fd); |
---|
24 | int inter_party_sql_init(void); |
---|
25 | void inter_party_sql_final(void); |
---|
26 | int inter_party_leave(int party_id,int account_id, int char_id); |
---|
27 | int inter_party_CharOnline(int char_id, int party_id); |
---|
28 | int inter_party_CharOffline(int char_id, int party_id); |
---|
29 | //Required for the TXT->SQL converter |
---|
30 | int inter_party_tosql(struct party *p, int flag, int index); |
---|
31 | |
---|
32 | #endif /* _INT_PARTY_SQL_H_ */ |
---|