|
Atrinik Server 2.5
|
00001 /************************************************************************ 00002 * Atrinik, a Multiplayer Online Role Playing Game * 00003 * * 00004 * Copyright (C) 2009-2011 Alex Tokar and Atrinik Development Team * 00005 * * 00006 * Fork from Daimonin (Massive Multiplayer Online Role Playing Game) * 00007 * and Crossfire (Multiplayer game for X-windows). * 00008 * * 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; either version 2 of the License, or * 00012 * (at your option) any later version. * 00013 * * 00014 * This program is distributed in the hope that it will be useful, * 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00017 * GNU General Public License for more details. * 00018 * * 00019 * You should have received a copy of the GNU General Public License * 00020 * along with this program; if not, write to the Free Software * 00021 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 00022 * * 00023 * The author can be reached at admin@atrinik.org * 00024 ************************************************************************/ 00025 00030 #ifndef PARTY_H 00031 #define PARTY_H 00032 00040 #define PARTY_MESSAGE_STATUS 1 00041 00043 #define PARTY_MESSAGE_CHAT 2 00044 00049 enum 00050 { 00053 PARTY_LOOT_NORMAL, 00056 PARTY_LOOT_LEADER, 00060 PARTY_LOOT_RANDOM, 00063 PARTY_LOOT_MAX 00064 }; 00065 00068 typedef struct party_struct 00069 { 00072 shstr *leader; 00073 00076 shstr *name; 00077 00080 char passwd[9]; 00081 00084 uint8 loot; 00085 00088 objectlink *members; 00089 00092 struct party_struct *next; 00093 } party_struct; 00094 00101 #define CMD_PARTY_LIST 1 00102 00104 #define CMD_PARTY_WHO 2 00105 00107 #define CMD_PARTY_JOIN 3 00108 00110 #define CMD_PARTY_PASSWORD 4 00111 00113 #define CMD_PARTY_LEAVE 5 00114 00116 #define CMD_PARTY_UPDATE 6 00117 00119 #define CMD_PARTY_REMOVE_MEMBER 7 00120 00122 party_struct *first_party; 00123 const char *const party_loot_modes[PARTY_LOOT_MAX]; 00124 const char *const party_loot_modes_help[PARTY_LOOT_MAX]; 00125 00126 #endif
1.7.4