|
MsgNobility.cs
switch (donationtyp)
switch (donationtyp)
{
case DonationTyp.Money:
{
#if Encore
if (user.Player.Money >= (long)UID)
{
user.Player.Money -= (long)UID;
user.Player.SendUpdate(stream,user.Player.Money, MsgUpdate.DataType.Money);
user.Player.Nobility.Donation += UID;
user.Send(stream.NobilityIconCreate(user.Player.Nobility));
Program.NobilityRanking.UpdateRank(user.Player.Nobility);
}
#else
if (user.Player.Money >= (long)UID)
{
user.Player.Money -= (long)UID;
user.Player.SendUpdate(stream, user.Player.Money, MsgUpdate.DataType.Money);
user.Player.Nobility.Donation += UID;
user.Send(stream.NobilityIconCreate(user.Player.Nobility));
Program.NobilityRanking.UpdateRank(user.Player.Nobility);
}
#endif
break;
}
case DonationTyp.ConquerPoints:
{
if (user.Player.Money >= (long)UID)
{
user.Player.Money -= (long)UID;
user.Player.Nobility.Donation += UID;
user.Send(stream.NobilityIconCreate(user.Player.Nobility));
Program.NobilityRanking.UpdateRank(user.Player.Nobility);
}
break;
}
}
public unsafe static void ConsoleCMD(string cmd)
case "reset50nobility":
{
WindowsAPI.IniFile ini = new WindowsAPI.IniFile("");
foreach (string fname in System.IO.Directory.GetFiles(Program.ServerConfig.DbLocation + "\\Users\\"))
{
ini.FileName = fname;
ulong nobility = ini.ReadUInt64("Character", "DonationNobility", 0);
nobility = nobility * 30 / 100;
ini.Write<ulong>("Character", "DonationNobility", nobility);
}
Console.WriteLine("DonationRank Reset Done");
break;
}
MsgNobility.cs
switch (donationtyp)
switch (donationtyp)
{
case DonationTyp.Money:
{
#if Encore
if (user.Player.Money >= (long)UID)
{
user.Player.Money -= (long)UID;
user.Player.SendUpdate(stream,user.Player.Money, MsgUpdate.DataType.Money);
user.Player.Nobility.Donation += UID;
user.Send(stream.NobilityIconCreate(user.Player.Nobility));
Program.NobilityRanking.UpdateRank(user.Player.Nobility);
}
#else
if (user.Player.Money >= (long)UID)
{
user.Player.Money -= (long)UID;
user.Player.SendUpdate(stream, user.Player.Money, MsgUpdate.DataType.Money);
user.Player.Nobility.Donation += UID;
user.Send(stream.NobilityIconCreate(user.Player.Nobility));
Program.NobilityRanking.UpdateRank(user.Player.Nobility);
}
#endif
break;
}
case DonationTyp.ConquerPoints:
{
if (user.Player.Money >= (long)UID)
{
user.Player.Money -= (long)UID;
user.Player.Nobility.Donation += UID;
user.Send(stream.NobilityIconCreate(user.Player.Nobility));
Program.NobilityRanking.UpdateRank(user.Player.Nobility);
}
break;
}
}
public unsafe static void ConsoleCMD(string cmd)
case "reset50nobility":
{
WindowsAPI.IniFile ini = new WindowsAPI.IniFile("");
foreach (string fname in System.IO.Directory.GetFiles(Program.ServerConfig.DbLocation + "\\Users\\"))
{
ini.FileName = fname;
ulong nobility = ini.ReadUInt64("Character", "DonationNobility", 0);
nobility = nobility * 30 / 100;
ini.Write<ulong>("Character", "DonationNobility", nobility);
}
Console.WriteLine("DonationRank Reset Done");
break;
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
يلا صفحه لسورس اليكس انا معدلها عشان تتظبط مع اليكس | midoazoz | صفحات التسجيل كونكر اونلاين | 107 | 2024-07-31 01:21 AM |
بخصوص سورس رايزو لو سمحت | nova | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-03-29 01:44 PM |
سورس اليكس | tekatop0 | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-03-23 08:43 PM |
طلب فى سورس اليكس | Hunter | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-12-24 09:48 PM |
سورس اليكس | محمد ياسر | مشكلات السيرفيرات كونكر الشخصيه | 6 | 2019-08-02 04:31 PM |