Pol  Revision:cb584c9
party_cfg.h
Go to the documentation of this file.
1 
7 #ifndef PARTY_CFG_H
8 #define PARTY_CFG_H
9 
10 #include "pktdef.h"
11 
12 namespace Pol
13 {
14 namespace Core
15 {
16 class ExportedFunction;
17 
18 struct Party_Cfg
19 {
20  struct
21  {
22  unsigned short MaxPartyMembers;
24  unsigned short DeclineTimeout;
26  unsigned char PrivateMsgPrefixLen;
29  } General;
30 
31  struct
32  {
33  ExportedFunction* CanAddToParty; // (leader,member)
35  ExportedFunction* CanRemoveMember; // (leader,member)
36  ExportedFunction* ChangePrivateChat; // (member,tomember,uctext)
37  ExportedFunction* ChangePublicChat; // (member,uctext)
40  ExportedFunction* OnDisband; // (partyref)
41  ExportedFunction* OnLeaveParty; // (who,fromwho)
44  ExportedFunction* OnPrivateChat; // (member,tomember,uctext)
45  ExportedFunction* OnPublicChat; // (member,uctext)
46  } Hooks;
47 };
48 
49 const int CLP_Rejoined = 1005437; // You have rejoined the party.
50 const int CLP_Add_Yourself = 1005439; // You cannot add yourself to a party.
51 const int CLP_Already_Your_Party = 1005440; // This person is already in your party!
52 const int CLP_Already_in_a_Party = 1005441; // This person is already in a party!
53 const int CLP_Add_Living = 1005442; // You may only add living things to your party!
54 const int CLP_Ignore_Offer = 1005444; // The creature ignores your offer.
55 const int CLP_Added = 1005445; // You have been added to the party.
57  1005446; // You may only remove yourself from a party if you are not the leader.
58 const int CLP_Allow_Loot = 1005447; // You have chosen to allow your party to loot your corpse.
59 const int CLP_Prevent_Loot =
60  1005448; // You have chosen to prevent your party from looting your corpse.
61 const int CLP_Disbanded = 1005449; // Your party has disbanded.
62 const int CLP_Last_Person = 1005450; // The last person has left the party...
63 const int CLP_Removed = 1005451; // You have been removed from the party.
64 const int CLP_Player_Removed = 1005452; // A player has been removed from your party.
65 const int CLP_Add_No_Leader =
66  1005453; // You may only add members to the party if you are the leader.
67 const int CLP_Who_To_Add = 1005454; // Who would you like to add to your party?
68 const int CLP_Who_to_Remove = 1005455; // Who would you like to remove from your party?
69 const int CLP_Player_Rejoined = 1008087; // : rejoined the party.
70 const int CLP_Invite = 1008089; // : You are invited to join the party. Type /accept to join or
71  // /decline to decline the offer.
72 const int CLP_Invited = 1008090; // You have invited them to join the party.
73 const int CLP_Notify_Decline = 1008091; // : Does not wish to join the party.
74 const int CLP_Decline = 1008092; // You notify them that you do not wish to join the party.
75 const int CLP_Joined = 1008094; // : joined the party.
76 const int CLP_Max_Size = 1008095; // You may only have 10 in your party (this includes candidates).
77 const int CLP_No_Party = 3000211; // You are not in a party.
78 const int CLP_No_Invite = 3000222; // No one has invited you to be in a party.
80  3000223; // Too late to decline, you are already in the party. Try /quit.
81 }
82 }
83 #endif
const int CLP_Already_in_a_Party
Definition: party_cfg.h:52
const int CLP_Who_To_Add
Definition: party_cfg.h:67
struct Pol::Core::Party_Cfg::@14 Hooks
const int CLP_Last_Person
Definition: party_cfg.h:62
ExportedFunction * OnPartyCreate
Definition: party_cfg.h:43
ExportedFunction * ChangePublicChat
Definition: party_cfg.h:37
const int CLP_Rejoined
Definition: party_cfg.h:49
ExportedFunction * OnDecline
Definition: party_cfg.h:39
const int CLP_No_Invite
Definition: party_cfg.h:78
const int CLP_Added
Definition: party_cfg.h:55
ExportedFunction * OnLootPermChange
Definition: party_cfg.h:42
const int CLP_Invite
Definition: party_cfg.h:70
struct Pol::Core::Party_Cfg::@13 General
#define SPEECH_MAX_LEN
Definition: pktdef.h:27
ExportedFunction * CanRemoveMember
Definition: party_cfg.h:35
ExportedFunction * OnAddToParty
Definition: party_cfg.h:38
const int CLP_No_Party
Definition: party_cfg.h:77
const int CLP_Notify_Decline
Definition: party_cfg.h:73
ExportedFunction * CanLeaveParty
Definition: party_cfg.h:34
const int CLP_Cannot_Remove_Self
Definition: party_cfg.h:56
const int CLP_Too_Late_Decline
Definition: party_cfg.h:79
unsigned short u16
Definition: rawtypes.h:26
const int CLP_Ignore_Offer
Definition: party_cfg.h:54
const int CLP_Max_Size
Definition: party_cfg.h:76
const int CLP_Prevent_Loot
Definition: party_cfg.h:59
const int CLP_Allow_Loot
Definition: party_cfg.h:58
const int CLP_Removed
Definition: party_cfg.h:63
ExportedFunction * OnDisband
Definition: party_cfg.h:40
const int CLP_Player_Rejoined
Definition: party_cfg.h:69
ExportedFunction * OnPublicChat
Definition: party_cfg.h:45
const int CLP_Add_Yourself
Definition: party_cfg.h:50
ExportedFunction * OnLeaveParty
Definition: party_cfg.h:41
const int CLP_Decline
Definition: party_cfg.h:74
const int CLP_Already_Your_Party
Definition: party_cfg.h:51
const int CLP_Player_Removed
Definition: party_cfg.h:64
const int CLP_Add_No_Leader
Definition: party_cfg.h:65
const int CLP_Add_Living
Definition: party_cfg.h:53
const int CLP_Who_to_Remove
Definition: party_cfg.h:68
u16 PrivateMsgPrefix[SPEECH_MAX_LEN+1]
Definition: party_cfg.h:25
unsigned char PrivateMsgPrefixLen
Definition: party_cfg.h:26
const int CLP_Joined
Definition: party_cfg.h:75
ExportedFunction * CanAddToParty
Definition: party_cfg.h:33
ExportedFunction * OnPrivateChat
Definition: party_cfg.h:44
const int CLP_Disbanded
Definition: party_cfg.h:61
unsigned short DeclineTimeout
Definition: party_cfg.h:24
ExportedFunction * ChangePrivateChat
Definition: party_cfg.h:36
const int CLP_Invited
Definition: party_cfg.h:72
Definition: berror.cpp:12
unsigned short MaxPartyMembers
Definition: party_cfg.h:22