root/src/char_sql/int_party.h @ 25

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
21struct party;
22
23int inter_party_parse_frommap(int fd);
24int inter_party_sql_init(void);
25void inter_party_sql_final(void);
26int inter_party_leave(int party_id,int account_id, int char_id);
27int inter_party_CharOnline(int char_id, int party_id);
28int inter_party_CharOffline(int char_id, int party_id);
29//Required for the TXT->SQL converter
30int inter_party_tosql(struct party *p, int flag, int index);
31
32#endif /* _INT_PARTY_SQL_H_ */
Note: See TracBrowser for help on using the browser.