Mero
2019-04-28, 04:44 PM
عفواً لايمكن عرض الروابط في الإرشيف
قي Class Nobility
ضيف دول
if (Place >= 50)
{
if (entry.Donation >= 200000000)
{
Rank = NobilityRank.Earl;
}
else if (entry.Donation >= 100000000)
{
Rank = NobilityRank.Baron;
}
else if (entry.Donation >= 30000000)
{
Rank = NobilityRank.Knight;
}
}
else
{
if (Program.Nobility == true)
{
if (Place < 50)//serverrank
{
Rank = NobilityRank.King;
}
}
else
{
if (Place < 3)//serverrank
{
Rank = NobilityRank.King;
}
else if (Place < 24)
{
Rank = NobilityRank.Prince;
}
else
{
Rank = NobilityRank.Duke;
}
}
}
قي class Program.cs or Server.cs
ضيف السطر ده
public static bool Nobility = false;
قي Class World.cs or Thread.cs
ضيف الكود ده
if (Now64.Hour == 14 && Now64.Minute == 00 && Now64.Second == 00) //Time Start
{
Program.Nobility = true;
Database.NobilityTable.Load();
}
if (Now64.Hour == 16 && Now64.Minute == 00 && Now64.Second == 00) //Time End
{
Program.Nobility = false;
Database.NobilityTable.Load();
}
تمام
عفواً لايمكن عرض الروابط في الإرشيف
قي Class Nobility
ضيف دول
if (Place >= 50)
{
if (entry.Donation >= 200000000)
{
Rank = NobilityRank.Earl;
}
else if (entry.Donation >= 100000000)
{
Rank = NobilityRank.Baron;
}
else if (entry.Donation >= 30000000)
{
Rank = NobilityRank.Knight;
}
}
else
{
if (Program.Nobility == true)
{
if (Place < 50)//serverrank
{
Rank = NobilityRank.King;
}
}
else
{
if (Place < 3)//serverrank
{
Rank = NobilityRank.King;
}
else if (Place < 24)
{
Rank = NobilityRank.Prince;
}
else
{
Rank = NobilityRank.Duke;
}
}
}
قي class Program.cs or Server.cs
ضيف السطر ده
public static bool Nobility = false;
قي Class World.cs or Thread.cs
ضيف الكود ده
if (Now64.Hour == 14 && Now64.Minute == 00 && Now64.Second == 00) //Time Start
{
Program.Nobility = true;
Database.NobilityTable.Load();
}
if (Now64.Hour == 16 && Now64.Minute == 00 && Now64.Second == 00) //Time End
{
Program.Nobility = false;
Database.NobilityTable.Load();
}
تمام
عفواً لايمكن عرض الروابط في الإرشيف