قديم 2019-08-22, 05:24 PM
المشاركة 2
محمد ياسر
*
  • غير متواجد
افتراضي رد: مشكلة بسيطة
افتح
Nobility.cs
ابحث عن

كود:
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.UIDclient.NobilityInformation);
                            try
                            {
                                
Database.NobilityTable.InsertNobilityInformation(client.NobilityInformation);
                            }
                            catch
                            {
                                
Database.NobilityTable.UpdateNobilityInformation(client.NobilityInformation);
                            }
                        }
                        else
                        {
                            
Database.NobilityTable.UpdateNobilityInformation(client.NobilityInformation);
                        }
                        
Sort(client.Entity.UID);
                        break;
                    } 


قديم 2019-08-22, 06:33 PM
المشاركة 3
Tefa
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: مشكلة بسيطة
عاش

قديم 2019-08-22, 07:53 PM
المشاركة 4
Hassan Emprator
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: مشكلة بسيطة
افتح
nobility.cs
ابحث عن

كود:
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.uidclient.nobilityinformation);
                            try
                            {
                                
database.nobilitytable.insertnobilityinformation(client.nobilityinformation);
                            }
                            catch
                            {
                                
database.nobilitytable.updatenobilityinformation(client.nobilityinformation);
                            }
                        }
                        else
                        {
                            
database.nobilitytable.updatenobilityinformation(client.nobilityinformation);
                        }
                        
sort(client.entity.uid);
                        break;
                    } 
وااااااااااااو معقول حازم رجع لولولولي

قديم 2019-08-22, 08:31 PM
المشاركة 5
Avengers-Co
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: مشكلة بسيطة
افتح
Nobility.cs
ابحث عن

كود:
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.UIDclient.NobilityInformation);
                            try
                            {
                                
Database.NobilityTable.InsertNobilityInformation(client.NobilityInformation);
                            }
                            catch
                            {
                                
Database.NobilityTable.UpdateNobilityInformation(client.NobilityInformation);
                            }
                        }
                        else
                        {
                            
Database.NobilityTable.UpdateNobilityInformation(client.NobilityInformation);
                        }
                        
Sort(client.Entity.UID);
                        break;
                    } 
شكراً جداً ليك

قديم 2019-08-22, 08:49 PM
المشاركة 6
محمد ياسر
*
  • غير متواجد
افتراضي رد: مشكلة بسيطة
وااااااااااااو معقول حازم رجع لولولولي
مرجعتش ده رايدر الي كاتبه ليه كده يا رايدر هههههه

قديم 2019-08-24, 03:41 AM
المشاركة 7
Avengers-Co
.:: عضو نشيط ::.
  • غير متواجد
افتراضي رد: مشــكــلة بسـيطـةة
يا رجالة المشكلة رجعت تاني الاكونتات الجديدة فقط بتقدر تتبرع في الرانك عادي من الدونيشن مش من الان بي سي

تعديل خلاص عرفت المشكلة فين تم الحل


العلامات المرجعية



الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 

الانتقال السريع

المواضيع المتشابهه للموضوع: مشــكــلة بسـيطـةة
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
مشــكــلة فــي اللـوتــري !! osama مشكلات السيرفيرات كونكر الشخصيه 8 2019-08-21 11:50 PM


الساعة الآن 08:59 AM

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.