.png)
السلام عليكمـ
فكرة الان بى سى عبارة عن اتاحة بعض الخصائص الاضافية لكل حساب فى اللعبة ممكن يحددها و يغيرها بمزاجة ..
و هى عبارة عن 4 حجات الى الان ..
1- Dialog Langage بتاع ماتركس " ملحوظة مش السيستم ولا ان بى سى خاص بعرضة فقط هو ضمن اختيارات الان بى سى " ..
2- Weather type
3- ScreenColor
4- Drop Message
كل لاعب هيقدر يحدد لون الشاشة بتاعت و اللغة و الطقس لية فقط و بالتسيف ..
ندخل ف الاضافات ..
اول حاجة هتفتح الـ Entity.cs
ابحث عن
فوقها ضيف
بعد كدة ابحث عن
ضيف فى نفس ال line بعد ,
و ضيف دة تحتيها
و بعد كدة افتح
Entity table
و ابحث عن
تحتها ضيف
و ابحث عن
و تحتها ضيف
بعد كدة لو سورس اسلام هتدخل ع thread غير كدة هتفتح ال world و تبحث عن
CommandsAI("@restart");
أو اى اوتو انفيت عامة ..
و ارزع دول
ملحوظة ..
اولا هيجيب معاك ايرور فى QuestMaps
دية انا عاملها علشان لو فية مابات معينة مش عايز التغيرات تأثر فيها احطهم فيها لو عايز تعملها ضيف دة
لو مش عايز امسح
و اخر } من تحت 
لو هتضفها افتح Constants و ضيف
بعد كدة افتح monster table
و دور ع رسالة الدروب بتاعتك
لنفرض انها
هتخليها
اخيرا هتفتح ال npc و ضيف دة
لو مش منزل موضوع تغير اللغة هيجيلك 2 ايرور فى
ف هتلغى case 1 + 2 + 3
و هتبدل
بدة
القاعدة هتدخل ع entities ::
برجاء عدم التقيم 
سلامو عليكوا
فكرة الان بى سى عبارة عن اتاحة بعض الخصائص الاضافية لكل حساب فى اللعبة ممكن يحددها و يغيرها بمزاجة ..
و هى عبارة عن 4 حجات الى الان ..
1- Dialog Langage بتاع ماتركس " ملحوظة مش السيستم ولا ان بى سى خاص بعرضة فقط هو ضمن اختيارات الان بى سى " ..
2- Weather type
3- ScreenColor
4- Drop Message
كل لاعب هيقدر يحدد لون الشاشة بتاعت و اللغة و الطقس لية فقط و بالتسيف ..
ندخل ف الاضافات ..
اول حاجة هتفتح الـ Entity.cs
ابحث عن
public uint Lukypionts public uint ScreenColor
{
get { return _ScreenColor; }
set
{
_ScreenColor = value;
if (FullyLoaded)
UpdateDatabase("ScreenColor", value);
}
}
public uint Weather
{
get { return _Weather; }
set
{
_Weather = value;
if (FullyLoaded)
UpdateDatabase("Weather", value);
}
} بعد كدة ابحث عن
private uint _GuildSharedBp, _ScreenColor, _Weather, public bool MosnterPlayerInfo = true; Entity table
و ابحث عن
.Set("LotteryEntries", c.LotteryEntries) .Set("Weather", c.Entity.Weather)
.Set("ScreenColor", c.Entity.ScreenColor) client.Entity.HairStyle = reader.ReadUInt16("HairStyle");
client.Entity.Weather = (uint)reader.ReadInt32("Weather");
client.Entity.ScreenColor = (uint)reader.ReadInt32("ScreenColor");
بعد كدة لو سورس اسلام هتدخل ع thread غير كدة هتفتح ال world و تبحث عن
CommandsAI("@restart");
أو اى اوتو انفيت عامة ..
و ارزع دول
#region Weather && ScreenColor && Twin Effect
foreach (var client in Kernel.GamePool.Values)
{
if ((!Constants.QuestMaps.Contains(client.Entity.MapID)))
{
#region Twin Effect
if (client.Entity.MapID == 1002)
{
if (((Kernel.GetDistance(client.Entity.X, client.Entity.Y, 310, 277) < 17 ) || ((Kernel.GetDistance(client.Entity.X, client.Entity.Y, 249, 226) < 17))) && !client.Effect)
{
client.Effect = true;
if (client.Entity.MapID == 1002)
{
Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true);
floorItem.ItemID = 1024;
floorItem.MapID = 1002;
floorItem.X = 312;
floorItem.Y = 279;
floorItem.Type = Network.GamePackets.FloorItem.Effect;
client.Send(floorItem);
}
}
else
{
if (Kernel.GetDistance(client.Entity.X, client.Entity.Y, 312, 279) > 17)
{
client.Effect = false;
}
}
}
#endregion
#region Weather
if (client.Entity.Weather == 5)
{
Weather Weather = new Weather(true);
Weather.WeatherType = Weather.Snow;
Weather.Intensity = 255;
Weather.Appearence = 255;
Weather.Direction = 255;
Weather.Send(client);
}
if (client.Entity.Weather == 6)
{
Weather Weather = new Weather(true);
Weather.WeatherType = Weather.Rain;
Weather.Intensity = 255;
Weather.Appearence = 255;
Weather.Direction = 255;
Weather.Send(client);
}
if (client.Entity.Weather == 7)
{
Weather Weather = new Weather(true);
Weather.WeatherType = Weather.RainWind;
Weather.Intensity = 255;
Weather.Appearence = 255;
Weather.Direction = 255;
Weather.Send(client);
}
if (client.Entity.Weather == 8)
{
Weather Weather = new Weather(true);
Weather.WeatherType = Weather.AutumnLeaves;
Weather.Intensity = 255;
Weather.Appearence = 255;
Weather.Direction = 255;
Weather.Send(client);
}
if (client.Entity.Weather == 9)
{
Weather Weather = new Weather(true);
Weather.WeatherType = Weather.CherryBlossomPetals;
Weather.Intensity = 255;
Weather.Appearence = 255;
Weather.Direction = 255;
Weather.Send(client);
}
if (client.Entity.Weather == 10)
{
Weather Weather = new Weather(true);
Weather.WeatherType = Weather.CherryBlossomPetalsWind;
Weather.Intensity = 255;
Weather.Appearence = 255;
Weather.Direction = 255;
Weather.Send(client);
}
if (client.Entity.Weather == 11)
{
Weather Weather = new Weather(true);
Weather.WeatherType = Weather.BlowingCotten;
Weather.Intensity = 255;
Weather.Appearence = 255;
Weather.Direction = 255;
Weather.Send(client);
}
if (client.Entity.Weather == 12)
{
Weather Weather = new Weather(true);
Weather.WeatherType = Weather.Atoms;
Weather.Intensity = 255;
Weather.Appearence = 255;
Weather.Direction = 255;
Weather.Send(client);
}
#endregion
#region ScreenColor
if (client.Entity.ScreenColor == 15)
{
Server.ScreenColor = 97358;
Data datas = new Data(true);
datas.UID = client.Entity.UID;
datas.ID = 104;
datas.dwParam = 97358;
client.Send(datas);
}
if (client.Entity.ScreenColor == 16)
{
Server.ScreenColor = 3358767;
Data datas = new Data(true);
datas.UID = client.Entity.UID;
datas.ID = 104;
datas.dwParam = 3358767;
client.Send(datas);
}
if (client.Entity.ScreenColor == 17)
{
Server.ScreenColor = 69852;
Data datas = new Data(true);
datas.UID = client.Entity.UID;
datas.ID = 104;
datas.dwParam = 69852;
client.Send(datas);
}
if (client.Entity.ScreenColor == 18)
{
Server.ScreenColor = 4532453;
Data datas = new Data(true);
datas.UID = client.Entity.UID;
datas.ID = 104;
datas.dwParam = 4532453;
client.Send(datas);
}
if (client.Entity.ScreenColor == 19)
{
Server.ScreenColor = 684533;
Data datas = new Data(true);
datas.UID = client.Entity.UID;
datas.ID = 104;
datas.dwParam = 684533;
client.Send(datas);
}
if (client.Entity.ScreenColor == 20)
{
Server.ScreenColor = 838915;
Data datas = new Data(true);
datas.UID = client.Entity.UID;
datas.ID = 104;
datas.dwParam = 838915;
client.Send(datas);
}
if (client.Entity.ScreenColor == 21)
{
Server.ScreenColor = 824383;
Data datas = new Data(true);
datas.UID = client.Entity.UID;
datas.ID = 104;
datas.dwParam = 824383;
client.Send(datas);
}
if (client.Entity.ScreenColor == 22)
{
Server.ScreenColor = 456828;
Data datas = new Data(true);
datas.UID = client.Entity.UID;
datas.ID = 104;
datas.dwParam = 456828;
client.Send(datas);
}
if (client.Entity.ScreenColor == 23)
{
Server.ScreenColor = 5547633;
Data datas = new Data(true);
datas.UID = client.Entity.UID;
datas.ID = 104;
datas.dwParam = 5547633;
client.Send(datas);
}
if (client.Entity.ScreenColor == 24)
{
Server.ScreenColor = 453450;
Data datas = new Data(true);
datas.UID = client.Entity.UID;
datas.ID = 104;
datas.dwParam = 453450;
client.Send(datas);
}
if (client.Entity.ScreenColor == 25)
{
Server.ScreenColor = 5855577;
Data datas = new Data(true);
datas.UID = client.Entity.UID;
datas.ID = 104;
datas.dwParam = 5855577;
client.Send(datas);
}
#endregion
}
}
#endregio ملحوظة ..
اولا هيجيب معاك ايرور فى QuestMaps
دية انا عاملها علشان لو فية مابات معينة مش عايز التغيرات تأثر فيها احطهم فيها لو عايز تعملها ضيف دة
لو مش عايز امسح
if ((!Constants.QuestMaps.Contains(client.Entity.MapID))) لو هتضفها افتح Constants و ضيف
public static readonly List<ushort> QuestMaps = new List<ushort>()
{
2102,3846,3055
}; و دور ع رسالة الدروب بتاعتك
لنفرض انها
killer.Owner.Send(new Message("Congratulations! You have got " + rates.Drop + " Cps", Message.System)); if ( killer.MosnterPlayerInfo== true ) { killer.Owner.Send(new Message("Congratulations! You have got " + rates.Drop + " Cps", Message.System)); } #region Player Control
case 9874:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello " + client.Entity.Name + " here you can control your acc langage, weather, ScreenColor and more soon!");
dialog.Option("Dialog Langage.", 1);
dialog.Option("Weather.", 4);
dialog.Option("ScreenColor.", 14);
dialog.Option("Drop Message.", 27);
dialog.Option("Not Now...", 255);
dialog.Send();
break;
}
#region Dialog lang case 1 to 3
case 1:
{
dialog.Text("Please Choose Your Language ! ");
dialog.Option("En.", 2);
dialog.Option("Ar.", 3);
dialog.Option("Not Now...", byte.MaxValue);
dialog.Send();
break;
}
case 2:
{
client.Language = Enums.Languages.English;
break;
}
case 3:
{
client.Language = Enums.Languages.Arabic;
break;
}
#endregion
#region weather case 4 to 13
case 4:
{
dialog.Text("which kind of weather you want?");
dialog.Option("Snow.", 5);
dialog.Option("Rain.", 6);
dialog.Option("RainWind.", 7);
dialog.Option("AutumnLeaves.", 8);
dialog.Option("CherryBlossomPetals.", 9);
dialog.Option("CherryBlossomPetalsWind.", 10);
dialog.Option("BlowingCotten.", 11);
dialog.Option("Atoms.", 12);
dialog.Option("Rest to normal.", 13);
dialog.Option("Not Now...", 255);
dialog.Send();
break;
}
case 5:
{
client.Entity.Weather = 5;
break;
}
case 6:
{
client.Entity.Weather = 6;
break;
}
case 7:
{
client.Entity.Weather = 7;
break;
}
case 8:
{
client.Entity.Weather = 8;
break;
}
case 9:
{
client.Entity.Weather = 9;
break;
}
case 10:
{
client.Entity.Weather = 10;
break;
}
case 11:
{
client.Entity.Weather = 11;
break;
}
case 12:
{
client.Entity.Weather = 12;
break;
}
case 13:
{
if (Server.ConsoleOn == true) { Console.WriteLine("" + client.Entity.Name + " default his weather Successfully."); }
client.Entity.Weather = 0;
dialog.Text("Plz Re-open your acc to load your original weather. !");
dialog.Option("OK...", 255);
dialog.Send();
break;
}
#endregion
#region ScreenColor case 14 to 26
case 14:
{
dialog.Text("which Color off screen you want?");
dialog.Option("Night 1.", 15);
dialog.Option("Night 2.", 16);
dialog.Option("Blue 1.", 17);
dialog.Option("Blue 2.", 18);
dialog.Option("Blue 3.", 19);
dialog.Option("Green 1.", 20);
dialog.Option("Green 2.", 21);
dialog.Option("Green 3.", 22);
dialog.Option("Green 4.", 23);
dialog.Option("Green 5.", 24);
dialog.Option("Green 6.", 25);
dialog.Option("Dark.", 25);
dialog.Option("Rest to normal.", 26);
dialog.Option("Not Now...", 255);
dialog.Send();
break;
}
case 15:
{
client.Entity.ScreenColor = 15;
break;
}
case 16:
{
client.Entity.ScreenColor = 16;
break;
}
case 17:
{
client.Entity.ScreenColor = 17;
break;
}
case 18:
{
client.Entity.ScreenColor = 18;
break;
}
case 19:
{
client.Entity.ScreenColor = 19;
break;
}
case 20:
{
client.Entity.ScreenColor = 20;
break;
}
case 21:
{
client.Entity.ScreenColor = 21;
break;
}
case 22:
{
client.Entity.ScreenColor = 22;
break;
}
case 23:
{
client.Entity.ScreenColor = 23;
break;
}
case 24:
{
client.Entity.ScreenColor = 24;
break;
}
case 25:
{
client.Entity.ScreenColor = 25;
break;
}
case 26:
{
if (Server.ConsoleOn == true) { Console.WriteLine("" + client.Entity.Name + " default his screen color Successfully."); }
Server.ScreenColor = 0;
Data datas = new Data(true);
datas.UID = client.Entity.UID;
datas.ID = 104;
datas.dwParam = 0;
client.Send(datas);
client.Entity.ScreenColor = 0;
break;
}
#endregion
#region Drop Message case 27
case 27:
{
client.Send(new Message("Congratulations! You have got " + rates.Drop + " Cps", Message.System));
dialog.Text("Did you sure you want to disable this Message!");
dialog.Option("Yeah.", 28);
dialog.Option("Not Now...", 255);
dialog.Send();
break;
}
case 28:
{
dialog.Text("remember you have to disable it every time you login to game !");
dialog.Option("OKI...", 255);
dialog.Send();
client.Entity.MosnterPlayerInfo = false;
break;
}
#endregion
#region case 14
#endregion
}
break;
}
#endregion client.Language = Enums.Languages.Arabic; /**/ dialog.Option("Dialog Langage.", 1); //dialog.Option("Dialog Langage.", 1); القاعدة هتدخل ع entities ::
Weather bigint 18 0 x
ScreenColor bigint 18 0 x سلامو عليكوا
هل أعجبك الموضوع؟! ↓

0 التعليقات