
يلا نبداء علي طول

في ال
npc
#region Teampk
case 8158:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Attention! The Team Pk Tournament will be held every Day at 20.00. The Top 8");
dialog.Text(" teams will be handsomely rewarded, and each player in the team can");
dialog.Text(" receive EXP and 1,000 Honor Points affter each match.");
dialog.Option("What about the rules? ", 1);
dialog.Option("Sign up!", 2);
dialog.Option("Claim prize", 3);
dialog.Option("Leave.", 255);
dialog.Send();
break;
}
case 3:
{
if (client.ClaimedTeampk == 1)
{
dialog.Text("You really get your prizes.");
dialog.Option("Oh Sorry.", 255);
dialog.Avatar(26);
dialog.Send();
break;
}
else
{
byte rank = 0;
byte elitestage = 0;
if (Game.Features.Tournaments.TeamElitePk.TeamTournament.GetReward(client, out rank, out elitestage))
{
uint cpsprice = 3000;
if (rank == 1)
cpsprice = 2000;
else if (rank == 2)
cpsprice = 1500;
else if (rank == 3)
cpsprice = 1500;
else cpsprice = 2000;
client.ClaimedTeampk = 1;
client.Player.ConquerPoints += 2000;
Kernel.SendWorldMessage(new Network.GamePackets.MsgTalk("" + client.Player.Name + " has receive " + cpsprice + " for rank " + rank + " in Team Pk Tournament", Color.Red, Network.GamePackets.MsgTalk.System).ToArray());
}
else
{
dialog.Text("Sorry, just the lider of 8 top teams will receive the reward!");
dialog.Option("Ok thx.", 255);
dialog.Send();
}
break;
}
}
case 1:
{
dialog.Text("The Team Pk Tournament start at 19:00 every Saturday, and teams will be divided");
dialog.Text(" into four grups: Level 1-99, Level 100-119, level 120-129 and level 130+ ");
dialog.Text(" Only teams can participate in this Tournament . You can either create a team");
dialog.Text(" befor signin up, or enter the waiting area and create you team. At the start of the");
dialog.Text(" Tournament, any player who`s not in team will be removed from the tournament map.");
dialog.Text(" Where the Tournament ends, only the team leaders of the winning teams can claim the reward.");
dialog.Option("Ok Thanks you!", 255);
dialog.Send();
break;
}
case 2:
{
if (Game.Features.Tournaments.TeamElitePk.TeamTournament.Opened)
{
if (client.Team != null)
{
if (client.Team.RightTeamElite())
{
if (!Game.Features.Tournaments.TeamElitePk.TeamTournament.Join(client, client.Team.GetEliteGroup(client.Player.Level)))
{
dialog.Text("Sorry, but your tournament on grup was staring..");
dialog.Option("Ok thx.", 255);
dialog.Send();
}
}
else
{
dialog.Text("I'm sorry, but your Team must have players with the same level and in the same internships.");
dialog.Text("Exemple: ( full 100-, or full 100-120, or full 120-130, or full 130+)");
dialog.Option("Ok thx.", 255);
dialog.Send();
}
}
else
{
dialog.Text("Please create team");
dialog.Option("Ok thx.", 255);
dialog.Send();
}
}
else
{
dialog.Text("Aha! Can`t wait right? The Team Pk Tournament has not started, yet. Come");
dialog.Text(" see me at 18:55, this Saturday. I can send you the field before the tournament starts at 19:00");
dialog.Option("Ok See, you then!.", 255);
dialog.Send();
}
break;
}
}
break;
}
#endregion
في ال
World
#region Team & SKill PK
if (Matrix_Times.Start.TeamPK && !Game.Features.Tournaments.TeamElitePk.TeamTournament.Opened)
{
Kernel.SendWorldMessage(new MsgTalk("The Team PK Tournament has start at 19:00. Prepare yourself and sign up for it as a team!", Color.White, MsgTalk.BroadcastMessage), Server.GamePool);
foreach (var client in Server.GamePool)
client.MessageBox("The Team PK Tournament began! Would you like to join Prize [100kk] First Rank?",
p => { p.Player.Teleport(1002, 440, 249); }, null, 60);
}
if (Matrix_Times.Start.SkillTeam && !Game.Features.Tournaments.TeamElitePk.SkillTeamTournament.Opened)
{
Kernel.SendWorldMessage(new MsgTalk("The Skill Team PK Tournament will start at 10:00. Prepare yourself and sign up for it as a team!", Color.White, MsgTalk.BroadcastMessage), Server.GamePool);
foreach (var client in Server.GamePool)
client.MessageBox("The Skill Team PK Tournament began! Would you like to join, Prize [100kk] First Rank?",
p => { p.Player.Teleport(1002, 445, 242); }, null, 60);
}
#endregion
في كلاس ال
GameState
public uint ClaimedTeampk
{
get { return this["ClaimedTeampk"]; }
set { this["ClaimedTeampk"] = value; }
}
في النفي كات

8158 [W]Team Pk 2 310 1002 303 141

![]()
