|
|
case 2702:
{
if (client.Entity.MyJiang != null)
{
if (String.IsNullOrEmpty(client.Entity.MyJiang.CustomizedName) || String.IsNullOrEmpty(client.Entity.MyJiang.CustomizedName))
{
client.Entity.MyJiang = null;
using (var cmd = new Database.MySqlCommand(Database.MySqlCommandType.DELETE))
cmd.Delete("jiang", "UID", client.Entity.UID).Execute();
Console.WriteLine("caspr jiang idea " + client.Entity.Name);
if (Game.JiangHu.JiangHuClients.ContainsKey(client.Entity.UID))
Game.JiangHu.JiangHuClients.Remove(client.Entity.UID);
client.Disconnect();
return;
}
}
byte Mode = packet[9];
switch (Mode)
{
case 0:
{
byte Star = packet[10];
byte Stage = packet[11];
if (Star > 9 || Stage > 9)
break;
if (client.Entity.MyJiang != null)
{
if (client.Entity.SubClasses.StudyPoints >= 20 && client.Entity.MyJiang.Talent >= 1 && client.Entity.MyJiang.FreeCourse >= 125)
{
client.Entity.MyJiang.Level = client.Entity.Level;
client.Entity.MyJiang.OnJiangMode = true;
client.Entity.MyJiang.RemoveJiangMod = DateTime.Now;
client.Entity.MyJiang.SendStatusMode(client);
/* client.ChampionPoints += 50;
if (client.TodayChampionPoints > 650)
{
client.TodayChampionPoints = 650;
client.ChampionPoints = 650;
Kernel.SendWorldMessage(new Message("You Already Have The Max ChampionPoints You Can't Get Any More!", Color.Red, Message.Center));
}
Database.ChampionPointTable.UpdatePoints(client);
client.Send(client.CP);*/
client.Entity.MyJiang.Talent -= 1;
client.Entity.MyJiang.FreeCourse -= 10;
client.Entity.SubClasses.StudyPoints -= 20;
client.Entity.MyJiang.CreateRollValue(client, Star, Stage);
client.Entity.MyJiang.SendInfo(client, GamePackets.JiangHu.UpdateTime, client.Entity.MyJiang.FreeCourse.ToString(), client.Entity.MyJiang.Time.ToString());
client.Entity.MyJiang.SendInfo(client, GamePackets.JiangHu.UpdateStar, Stage.ToString(), Star.ToString());
client.Entity.MyJiang.SendInfo(client, GamePackets.JiangHu.UpdateTalent, client.Entity.UID.ToString(), client.Entity.MyJiang.Talent.ToString());
Database.JiangHu.SaveJiangHu();
}
}
break;
}
case 1:
{
if (client.Trade.InTrade) return;
if (client.Entity.MyJiang == null) break;
byte Star = packet[10];
byte Stage = packet[11];
byte Higher = packet[8];
if (Star > 9 || Stage > 9)
break;
if (Time32.Now >= client.Entity.JiangtrainStamp.AddMilliseconds(800))
{
ushort GetCpsStage = (ushort)(50 + (50 * Higher));//(ushort)((client.Player.MyJiang.RoundBuyPoints * 10) + 10);
if (client.Entity.ConquerPoints >= 50)
{
client.Entity.ConquerPoints -= 50;
client.Entity.MyJiang.RoundBuyPoints = (byte)Math.Min(49, client.Entity.MyJiang.RoundBuyPoints + 1);
client.Entity.MyJiang.OnJiangMode = true;
client.Entity.MyJiang.RemoveJiangMod = DateTime.Now;
client.Entity.MyJiang.SendStatusMode(client);
client.Entity.MyJiang.FreeCourse += 50;
client.Entity.SubClasses.StudyPoints += 20;
client.Entity.MyJiang.Talent = (byte)Math.Min(5, client.Entity.MyJiang.Talent + 1);
client.Entity.MyJiang.CreateRollValue(client, Star, Stage, false, Higher);
client.Entity.MyJiang.SendInfo(client, GamePackets.JiangHu.UpdateTime, client.Entity.MyJiang.FreeCourse.ToString(), client.Entity.MyJiang.Time.ToString());
client.Entity.MyJiang.SendInfo(client, GamePackets.JiangHu.UpdateStar, Stage.ToString(), Star.ToString());
client.Entity.MyJiang.SendInfo(client, GamePackets.JiangHu.UpdateTalent, client.Entity.UID.ToString(), client.Entity.MyJiang.Talent.ToString());
client.Entity.MyJiang.UpdateStundyPoints(client, 20);
Database.JiangHu.SaveJiangHu();
client.Entity.JiangtrainStamp = Time32.Now;
}
else
client.Entity.SendSysMesage("sorry, but you need " + GetCpsStage + "");
break;
}
else
client.Entity.SendSysMesage("sorry, You have to wait "+client.Entity.JiangtrainStamp+"Mili Seconds");
break;
}
}
client.Entity.MyJiang.SendInfo(client, GamePackets.JiangHu.UpdateTime, client.Entity.MyJiang.FreeCourse.ToString(), client.Entity.MyJiang.Time.ToString());
client.Entity.MyJiang.SendInfo(client, GamePackets.JiangHu.UpdateTalent, client.Entity.UID.ToString(), client.Entity.MyJiang.Talent.ToString());
Database.JiangHu.SaveJiangHu();
new TitleStorage().CheckTitles(client);
break;
}
|
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
أدوات الموضوع | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
طلب اخير يجماعة من فضلكو | osama | مشكلات السيرفيرات كونكر الشخصيه | 7 | 2020-03-17 01:53 PM |
تظبيط الجانج مود في المدن | محمد ياسر | تطوير سيرفرات كونكر | 1 | 2019-08-28 07:11 AM |
طلب صغير يجماعة | osama | مشكلات السيرفيرات كونكر الشخصيه | 8 | 2019-07-28 05:07 AM |
مشكلة بخصوص الجانج | osama | مشكلات السيرفيرات كونكر الشخصيه | 11 | 2019-07-13 11:00 AM |
طلبين يجماعة ومحتجهم ضرورى | osama | مشكلات السيرفيرات كونكر الشخصيه | 15 | 2019-07-12 02:54 AM |