|
أفضل جواب - كتبه Tefa |
كود مسئول عن اضافة ايتم في السورس كود:
اسحبهم هما كمان من سورس خالد محمد اي كود:
او remove اسحبهم للسورس بتاعك |
case NobilityInfo.Donate:
case NobilityInfo.Donate:
{
if (client.Trade.InTrade)
return;
ulong silvers = information.dwParam;
bool newDonator = false;
client.NobilityInformation.Gender = (byte)(client.Player.Body % 10);
if (client.NobilityInformation.Donation == 0)
newDonator = true;
if (information.MoneyType == 1)
{
ulong cps = silvers / 1;
if (client.Player.ConquerPoints >= cps)
{
client.Player.ConquerPoints -= (uint)cps;
client.NobilityInformation.Donation += silvers;
}
}
else
{
if (client.Player.Money >= silvers)
{
client.Player.Money -= (ulong)silvers;
client.NobilityInformation.Donation += silvers;
}
}
if (!Board.ContainsKey(client.Player.UID) && client.NobilityInformation.Donation == silvers && newDonator)
{
Board.Add(client.Player.UID, client.NobilityInformation);
try
{
Database.NobilityTable.InsertNobilityInformation(client.NobilityInformation);
}
catch
{
Database.NobilityTable.UpdateNobilityInformation(client.NobilityInformation);
}
}
else
{
Database.NobilityTable.UpdateNobilityInformation(client.NobilityInformation);
}
Sort(client.Player.UID);
break;
}
case nobilityinfo.donate:
case nobilityinfo.donate:
{
if (client.trade.intrade)
return;
ulong silvers = information.dwparam;
bool newdonator = false;
client.nobilityinformation.gender = (byte)(client.player.body % 10);
if (client.nobilityinformation.donation == 0)
newdonator = true;
if (information.moneytype == 1)
{
ulong cps = silvers / 1;
if (client.player.conquerpoints >= cps)
{
client.player.conquerpoints -= (uint)cps;
client.nobilityinformation.donation += silvers;
}
}
else
{
if (client.player.money >= silvers)
{
client.player.money -= (ulong)silvers;
client.nobilityinformation.donation += silvers;
}
}
if (!board.containskey(client.player.uid) && client.nobilityinformation.donation == silvers && newdonator)
{
board.add(client.player.uid, client.nobilityinformation);
try
{
database.nobilitytable.insertnobilityinformation(client.nobilityinformation);
}
catch
{
database.nobilitytable.updatenobilityinformation(client.nobilityinformation);
}
}
else
{
database.nobilitytable.updatenobilityinformation(client.nobilityinformation);
}
sort(client.player.uid);
break;
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
أدوات الموضوع | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
بخـصــووص فــي بيــ اس !! | MeGoo | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2019-08-24 01:41 PM |
مشــكــلة فــي اللـوتــري !! | osama | مشكلات السيرفيرات كونكر الشخصيه | 8 | 2019-08-21 11:50 PM |