Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
ArenaTeamHandler.cpp
Go to the documentation of this file.
1
/*
2
* This file is part of Project SkyFire https://www.projectskyfire.org.
3
* See LICENSE.md file for Copyright information
4
*/
5
6
/*
7
#include "Player.h"
8
#include "World.h"
9
#include "WorldPacket.h"
10
#include "WorldSession.h"
11
#include "DatabaseEnv.h"
12
13
#include "ArenaTeam.h"
14
#include "Log.h"
15
#include "ObjectMgr.h"
16
#include "SocialMgr.h"
17
#include "ArenaTeamMgr.h"
18
#include "Opcodes.h"
19
20
void WorldSession::SendNotInArenaTeamPacket(uint8 type)
21
{
22
WorldPacket data(SMSG_ARENA_ERROR, 4+1);
23
uint32 error = 0;
24
data << uint32(error); // 0 = ERR_ARENA_NO_TEAM_II, 1 = ERR_ARENA_EXPIRED_CAIS, 2 = ERR_LFG_CANT_USE_BATTLEGROUND
25
if (!error)
26
data << uint8(type); // team type (2=2v2, 3=3v3, 5=5v5), can be used for custom types...
27
SendPacket(&data);
28
}
29
*/
30
/*
31
+ERR_ARENA_NO_TEAM_II "You are not in a %dv%d arena team"
32
33
+ERR_ARENA_TEAM_CREATE_S "%s created. To disband, use /teamdisband [2v2, 3v3, 5v5]."
34
+ERR_ARENA_TEAM_INVITE_SS "You have invited %s to join %s"
35
+ERR_ARENA_TEAM_QUIT_S "You are no longer a member of %s"
36
ERR_ARENA_TEAM_FOUNDER_S "Congratulations, you are a founding member of %s! To leave, use /teamquit [2v2, 3v3, 5v5]."
37
38
+ERR_ARENA_TEAM_INTERNAL "Internal arena team error"
39
+ERR_ALREADY_IN_ARENA_TEAM "You are already in an arena team of that size"
40
+ERR_ALREADY_IN_ARENA_TEAM_S "%s is already in an arena team of that size"
41
+ERR_INVITED_TO_ARENA_TEAM "You have already been invited into an arena team"
42
+ERR_ALREADY_INVITED_TO_ARENA_TEAM_S "%s has already been invited to an arena team"
43
+ERR_ARENA_TEAM_NAME_INVALID "That name contains invalid characters, please enter a new name"
44
+ERR_ARENA_TEAM_NAME_EXISTS_S "There is already an arena team named \"%s\""
45
+ERR_ARENA_TEAM_LEADER_LEAVE_S "You must promote a new team captain using /teamcaptain before leaving the team"
46
+ERR_ARENA_TEAM_PERMISSIONS "You don't have permission to do that"
47
+ERR_ARENA_TEAM_PLAYER_NOT_IN_TEAM "You are not in an arena team of that size"
48
+ERR_ARENA_TEAM_PLAYER_NOT_IN_TEAM_SS "%s is not in %s"
49
+ERR_ARENA_TEAM_PLAYER_NOT_FOUND_S "\"%s\" not found"
50
+ERR_ARENA_TEAM_NOT_ALLIED "You cannot invite players from the opposing alliance"
51
52
+ERR_ARENA_TEAM_JOIN_SS "%s has joined %s"
53
+ERR_ARENA_TEAM_YOU_JOIN_S "You have joined %s. To leave, use /teamquit [2v2, 3v3, 5v5]."
54
55
+ERR_ARENA_TEAM_LEAVE_SS "%s has left %s"
56
57
+ERR_ARENA_TEAM_LEADER_IS_SS "%s is the captain of %s"
58
+ERR_ARENA_TEAM_LEADER_CHANGED_SSS "%s has made %s the new captain of %s"
59
60
+ERR_ARENA_TEAM_REMOVE_SSS "%s has been kicked out of %s by %s"
61
62
+ERR_ARENA_TEAM_DISBANDED_S "%s has disbanded %s"
63
64
ERR_ARENA_TEAM_TARGET_TOO_LOW_S "%s is not high enough level to join your team"
65
66
ERR_ARENA_TEAM_TOO_MANY_MEMBERS_S "%s is full"
67
68
ERR_ARENA_TEAM_LEVEL_TOO_LOW_I "You must be level %d to form an arena team"
69
*/
src
server
game
Handlers
ArenaTeamHandler.cpp
Generated on
for Project SkyFire Core by
1.17.0