|
public void Die(Entity killer)
case NobilityInfo.Donate:
case NobilityInfo.Donate:
{
if (client.Trade.InTrade)
return;
ulong silvers = information.dwParam;
bool newDonator = false;
client.NobilityInformation.Gender = (byte)(client.Entity.Body % 10);
if (client.NobilityInformation.Donation == 0)
newDonator = true;
if (information.MoneyType == 1)
{
ulong cps = silvers / 50000;
// client.MessageBox("Can`t Donate With CPs, Only Gold/ OCCs");
if (client.Entity.Money >= cps)
{
client.MessageBox("Sorry Donation from npc only");
////client.Player.ConquerPointsFake -= (uint)cps;
client.NobilityInformation.Donation += silvers;
}
}
else
{
if (client.Entity.Money >= silvers)
{
client.MessageBox("Sorry Donation from npc only");
}
else
{
ulong BoundCps = silvers / 50000;
// client.MessageBox("Proximamente Podran Donar con la SpecialMoney");
return;
//if (client.Entity.OverConquerCoins >= BoundCps)
//{
// client.Entity.OverConquerCoins -= (uint)BoundCps;
// client.NobilityInformation.Donation += silvers;
//}
}
}
if (!Board.ContainsKey(client.Entity.UID) && client.NobilityInformation.Donation == silvers && newDonator)
{
Board.Add(client.Entity.UID, client.NobilityInformation);
try
{
Database.NobilityTable.InsertNobilityInformation(client.NobilityInformation);
}
catch
{
Database.NobilityTable.UpdateNobilityInformation(client.NobilityInformation);
}
}
else
{
Database.NobilityTable.UpdateNobilityInformation(client.NobilityInformation);
}
Sort(client.Entity.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.entity.body % 10);
if (client.nobilityinformation.donation == 0)
newdonator = true;
if (information.moneytype == 1)
{
ulong cps = silvers / 50000;
// client.messagebox("can`t donate with cps, only gold/ occs");
if (client.entity.money >= cps)
{
client.messagebox("sorry donation from npc only");
////client.player.conquerpointsfake -= (uint)cps;
client.nobilityinformation.donation += silvers;
}
}
else
{
if (client.entity.money >= silvers)
{
client.messagebox("sorry donation from npc only");
}
else
{
ulong boundcps = silvers / 50000;
// client.messagebox("proximamente podran donar con la specialmoney");
return;
//if (client.entity.overconquercoins >= boundcps)
//{
// client.entity.overconquercoins -= (uint)boundcps;
// client.nobilityinformation.donation += silvers;
//}
}
}
if (!board.containskey(client.entity.uid) && client.nobilityinformation.donation == silvers && newdonator)
{
board.add(client.entity.uid, client.nobilityinformation);
try
{
database.nobilitytable.insertnobilityinformation(client.nobilityinformation);
}
catch
{
database.nobilitytable.updatenobilityinformation(client.nobilityinformation);
}
}
else
{
database.nobilitytable.updatenobilityinformation(client.nobilityinformation);
}
sort(client.entity.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.Entity.Body % 10);
if (client.NobilityInformation.Donation == 0)
newDonator = true;
if (information.MoneyType == 1)
{
ulong cps = silvers / 50000;
// client.MessageBox("Can`t Donate With CPs, Only Gold/ OCCs");
if (client.Entity.Money >= cps)
{
client.MessageBox("Sorry Donation from npc only");
////client.Player.ConquerPointsFake -= (uint)cps;
client.NobilityInformation.Donation += silvers;
}
}
else
{
if (client.Entity.Money >= silvers)
{
client.MessageBox("Sorry Donation from npc only");
}
else
{
ulong BoundCps = silvers / 50000;
// client.MessageBox("Proximamente Podran Donar con la SpecialMoney");
return;
//if (client.Entity.OverConquerCoins >= BoundCps)
//{
// client.Entity.OverConquerCoins -= (uint)BoundCps;
// client.NobilityInformation.Donation += silvers;
//}
}
}
if (!Board.ContainsKey(client.Entity.UID) && client.NobilityInformation.Donation == silvers && newDonator)
{
Board.Add(client.Entity.UID, client.NobilityInformation);
try
{
Database.NobilityTable.InsertNobilityInformation(client.NobilityInformation);
}
catch
{
Database.NobilityTable.UpdateNobilityInformation(client.NobilityInformation);
}
}
else
{
Database.NobilityTable.UpdateNobilityInformation(client.NobilityInformation);
}
Sort(client.Entity.UID);
break;
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
أدوات الموضوع | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
مشــكــلة فــي اللـوتــري !! | osama | مشكلات السيرفيرات كونكر الشخصيه | 8 | 2019-08-21 11:50 PM |