احصائياتى

الردود
8

المشاهدات
568
 
ElSaher
.:: مشرف اقسام كونكر ::.
الإجابات المقدمة: 509

المشاركات
3,131

+التقييم
1.16

تاريخ التسجيل
Jun 2019

الاقامة
الزقازيق

نظام التشغيل
ويندوز 0

رقم العضوية
279
2020-04-22, 07:23 AM
المشاركة 1
2020-04-22, 07:23 AM
المشاركة 1
افتراضي تمت الإجابة عايز npc بتاع vote
محتاج npc فوت يديك الفوت في اي وقت ولو عملت مسلن 100فوت يديك 400مليون سبس ولو عملت 250فوت يديك 700مليون سبس ولو عملت 500فوت يديك 1000


أفضل جواب - كتبه Mr~Rayzo

كود:
#region Vote System
                                
case 333012:
                                    {

                                        
dialog.Avatar(241);

                                        switch (
npcRequest.OptionID)
                                        {

                                            case 
0:
                                                {

                                                    
dialog.Text("Hey, " + client.Player.Name + "This Vote System if You Voteing Will Get 10 Mellion [Cps] & 2 VotePoints Can Vote Agin After 12 Hours");

                                                    
dialog.Text("Your VotePoints`s Count is :[ " + client.VotePoints + " ] .");

                                                    
dialog.Option("Yes, I Wanna Vote", 1);

                                                    
dialog.Option("ExchangePoint's", 2);

                                                    
dialog.Option("No thank you", 255);

                                                    
dialog.Send();

                                                    break;

                                                }

                                            case 
1:
                                                {

                                                    if (!
Kernel.VotePool.ContainsKey(client.Account.IP))
                                                    {

                                                        if (!
Kernel.VotePoolUid.ContainsKey(client.Player.UID))
                                                        {

                                                            
client.VotePoints += 2;

                                                           
//client.Player.ConquerPoints += 10000000;

                                                            
client.Voted = true;

                                                            
PlayersVot Vot = new PlayersVot();

                                                            
Vot.AdressIp = client.Account.IP;

                                                            
Vot.Uid = client.Player.UID;

                                                            
Kernel.VotePool.Add(Vot.AdressIp, Vot);

                                                            
Kernel.VotePoolUid.Add(Vot.Uid, Vot);

                                                            
Database.EntityTable.SavePlayersVot(Vot);

                                                            
client.Send(new Message("هنا", System.Drawing.Color.Red, Network.GamePackets.Message.Website));

                                                        }

                                                        else
                                                        {

                                                            
dialog.Text("Sorry, But You Already Voted Come Back After 12 Hour.");

                                                            
dialog.Option("Oh, Sorry I Foget", 255);

                                                            
dialog.Send();

                                                        }

                                                    }

                                                    else
                                                    {

                                                        
dialog.Text("Sorry, But You  Already Voted Come Back After 12 Hour.");

                                                        
dialog.Option("Oh, Sorry I Foget", 255);

                                                        
dialog.Send();

                                                    }

                                                    break;



                                                }

                                            case 
2:
                                                {
                                                    
dialog.Text("Hello Player, I'm here to give you rewards for your votes !.");
                                                    
dialog.Option("About VotePoints", 15);//Done
                                                    
dialog.Option("Check my Points.", 20);//Done
                                                    
dialog.Option("SoulS[P8] (20 VotePoints)\n", 30);//Done
                                                    
dialog.Option("DeathConquer[Cup] -- 1 Days (20 VotePoints)\n", 3);//Done
                                                    
dialog.Option("GoldPrize[CUP] -- 1 Days (10 VotePoints)\n", 29);//Done
                                                    
dialog.Option("SavagePone 30 (10 VotePoints)", 5);//Done
                                                    
dialog.Option("VIP [7] Days 1 (10 VotePoints)", 6);//Done
                                                    
dialog.Option("VIP [8] Days 1 (20 VotePoints)", 8);//Done
                                                    
dialog.Option("ConquerPoints [100M] (5 VotePoints)", 9);//Done
                                                    
dialog.Send();
                                                    break;
                                                }
                                            case 
25:
                                            case 
3:
                                            case 
9:
                                            case 
5:
                                            case 
6:
                                            case 
8:
                                            case 
15:
                                            case 
20:
                                            case 
29:
                                            case 
30:
                                                if (
npcRequest.OptionID == 3)
                                                {
                                                    if (
client.Inventory.Count == 40)
                                                    {
                                                        
dialog.Text("Please make a free space in your inventory.");
                                                        
dialog.Option("okay", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                    if (
client.VotePoints >= 50)
                                                    {
                                                        
client.VotePoints -= 50;
                                                        
client.Inventory.Add(2100245, 0, 0, 0, 0, 0, 1, 1, true, 0, 0, 0, false);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don't have 50 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 29)
                                                {
                                                    if (
client.Inventory.Count == 40)
                                                    {
                                                        
dialog.Text("Please make a free space in your inventory.");
                                                        
dialog.Option("okay", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                    if (
client.VotePoints >= 15)
                                                    {
                                                        
client.VotePoints -= 15;
                                                        
client.Inventory.Add(2100235, 0, 0, 0, 0, 0, 1, 1, true, 0, 0, 0, false);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don't have 15 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 6)
                                                {
                                                    if (
client.VotePoints >= 10)
                                                    {
                                                        
client.VotePoints -= 10;
                                                        
client.VIPDays.Insert(DateTime.Now, DateTime.Now.AddDays(1), 5, client.Player.VIPLevel, client);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 10 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 30)
                                                {
                                                    if (
client.VotePoints >= 20)
                                                    {
                                                        
client.VotePoints -= 20;
                                                        
client.Inventory.Add(3004248, 0, 1);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 20 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 9)
                                                {
                                                    if (
client.VotePoints >= 6)
                                                    {
                                                        
client.VotePoints -= 6;
                                                        
client.Player.ConquerPoints += 5000;
                                                        
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 6 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 8)
                                                {
                                                    if (
client.VotePoints >= 20)
                                                    {
                                                        
client.VotePoints -= 20;
                                                        
client.VIPDays.Insert(DateTime.Now, DateTime.Now.AddDays(1), 7, client.Player.VIPLevel, client);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 20 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 5)
                                                {
                                                    if (
client.VotePoints >= 10)
                                                    {
                                                        
client.VotePoints -= 10;
                                                        
client.Inventory.Add(3004181, 0, 3);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 10 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                break;



                                        }

                                        break;

                                    }

                                
#endregion 

قديم 2020-04-22, 08:16 AM
المشاركة 2
Mr~Rayzo
::. المدير العام ::.
الإجابات المقدمة: 174
  • غير متواجد
افتراضي رد: عايز npc بتاع vote

كود:
#region Vote System
                                
case 333012:
                                    {

                                        
dialog.Avatar(241);

                                        switch (
npcRequest.OptionID)
                                        {

                                            case 
0:
                                                {

                                                    
dialog.Text("Hey, " + client.Player.Name + "This Vote System if You Voteing Will Get 10 Mellion [Cps] & 2 VotePoints Can Vote Agin After 12 Hours");

                                                    
dialog.Text("Your VotePoints`s Count is :[ " + client.VotePoints + " ] .");

                                                    
dialog.Option("Yes, I Wanna Vote", 1);

                                                    
dialog.Option("ExchangePoint's", 2);

                                                    
dialog.Option("No thank you", 255);

                                                    
dialog.Send();

                                                    break;

                                                }

                                            case 
1:
                                                {

                                                    if (!
Kernel.VotePool.ContainsKey(client.Account.IP))
                                                    {

                                                        if (!
Kernel.VotePoolUid.ContainsKey(client.Player.UID))
                                                        {

                                                            
client.VotePoints += 2;

                                                           
//client.Player.ConquerPoints += 10000000;

                                                            
client.Voted = true;

                                                            
PlayersVot Vot = new PlayersVot();

                                                            
Vot.AdressIp = client.Account.IP;

                                                            
Vot.Uid = client.Player.UID;

                                                            
Kernel.VotePool.Add(Vot.AdressIp, Vot);

                                                            
Kernel.VotePoolUid.Add(Vot.Uid, Vot);

                                                            
Database.EntityTable.SavePlayersVot(Vot);

                                                            
client.Send(new Message("هنا", System.Drawing.Color.Red, Network.GamePackets.Message.Website));

                                                        }

                                                        else
                                                        {

                                                            
dialog.Text("Sorry, But You Already Voted Come Back After 12 Hour.");

                                                            
dialog.Option("Oh, Sorry I Foget", 255);

                                                            
dialog.Send();

                                                        }

                                                    }

                                                    else
                                                    {

                                                        
dialog.Text("Sorry, But You  Already Voted Come Back After 12 Hour.");

                                                        
dialog.Option("Oh, Sorry I Foget", 255);

                                                        
dialog.Send();

                                                    }

                                                    break;



                                                }

                                            case 
2:
                                                {
                                                    
dialog.Text("Hello Player, I'm here to give you rewards for your votes !.");
                                                    
dialog.Option("About VotePoints", 15);//Done
                                                    
dialog.Option("Check my Points.", 20);//Done
                                                    
dialog.Option("SoulS[P8] (20 VotePoints)\n", 30);//Done
                                                    
dialog.Option("DeathConquer[Cup] -- 1 Days (20 VotePoints)\n", 3);//Done
                                                    
dialog.Option("GoldPrize[CUP] -- 1 Days (10 VotePoints)\n", 29);//Done
                                                    
dialog.Option("SavagePone 30 (10 VotePoints)", 5);//Done
                                                    
dialog.Option("VIP [7] Days 1 (10 VotePoints)", 6);//Done
                                                    
dialog.Option("VIP [8] Days 1 (20 VotePoints)", 8);//Done
                                                    
dialog.Option("ConquerPoints [100M] (5 VotePoints)", 9);//Done
                                                    
dialog.Send();
                                                    break;
                                                }
                                            case 
25:
                                            case 
3:
                                            case 
9:
                                            case 
5:
                                            case 
6:
                                            case 
8:
                                            case 
15:
                                            case 
20:
                                            case 
29:
                                            case 
30:
                                                if (
npcRequest.OptionID == 3)
                                                {
                                                    if (
client.Inventory.Count == 40)
                                                    {
                                                        
dialog.Text("Please make a free space in your inventory.");
                                                        
dialog.Option("okay", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                    if (
client.VotePoints >= 50)
                                                    {
                                                        
client.VotePoints -= 50;
                                                        
client.Inventory.Add(2100245, 0, 0, 0, 0, 0, 1, 1, true, 0, 0, 0, false);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don't have 50 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 29)
                                                {
                                                    if (
client.Inventory.Count == 40)
                                                    {
                                                        
dialog.Text("Please make a free space in your inventory.");
                                                        
dialog.Option("okay", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                    if (
client.VotePoints >= 15)
                                                    {
                                                        
client.VotePoints -= 15;
                                                        
client.Inventory.Add(2100235, 0, 0, 0, 0, 0, 1, 1, true, 0, 0, 0, false);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don't have 15 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 6)
                                                {
                                                    if (
client.VotePoints >= 10)
                                                    {
                                                        
client.VotePoints -= 10;
                                                        
client.VIPDays.Insert(DateTime.Now, DateTime.Now.AddDays(1), 5, client.Player.VIPLevel, client);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 10 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 30)
                                                {
                                                    if (
client.VotePoints >= 20)
                                                    {
                                                        
client.VotePoints -= 20;
                                                        
client.Inventory.Add(3004248, 0, 1);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 20 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 9)
                                                {
                                                    if (
client.VotePoints >= 6)
                                                    {
                                                        
client.VotePoints -= 6;
                                                        
client.Player.ConquerPoints += 5000;
                                                        
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 6 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 8)
                                                {
                                                    if (
client.VotePoints >= 20)
                                                    {
                                                        
client.VotePoints -= 20;
                                                        
client.VIPDays.Insert(DateTime.Now, DateTime.Now.AddDays(1), 7, client.Player.VIPLevel, client);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 20 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 5)
                                                {
                                                    if (
client.VotePoints >= 10)
                                                    {
                                                        
client.VotePoints -= 10;
                                                        
client.Inventory.Add(3004181, 0, 3);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 10 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                break;



                                        }

                                        break;

                                    }

                                
#endregion 


قديم 2020-04-22, 09:36 AM
المشاركة 3
ElSaher
.:: مشرف اقسام كونكر ::.
الإجابات المقدمة: 509
  • غير متواجد
افتراضي رد: عايز npc بتاع vote
طيب انا هضيف رابط الفوت فين

قديم 2020-04-22, 11:42 AM
المشاركة 4
Rider
.:: نائب المدير ::.
الإجابات المقدمة: 989
  • غير متواجد
افتراضي رد: عايز npc بتاع vote
طيب انا هضيف رابط الفوت فين

كود:
 client.Send(new Message("هنا", System.Drawing.Color.Red, Network.GamePackets.Message.Website)); 


قديم 2020-04-23, 04:51 AM
المشاركة 5
ElSaher
.:: مشرف اقسام كونكر ::.
الإجابات المقدمة: 509
  • غير متواجد
افتراضي رد: عايز npc بتاع vote
جالي ايرورات في VotePoints وانا حليتو

جالي ايرور في SavePlayersVot
وايرور في PlayersVot
وايرور في VotePoolUid
وايرور في VotePool

قديم 2020-04-23, 05:22 AM
المشاركة 6
Mr~Rayzo
::. المدير العام ::.
الإجابات المقدمة: 174
  • غير متواجد
افتراضي رد: عايز npc بتاع vote
هفضى وانزلك شرح كامل

قديم 2020-04-24, 01:44 AM
المشاركة 7
ElSaher
.:: مشرف اقسام كونكر ::.
الإجابات المقدمة: 509
  • غير متواجد
افتراضي رد: عايز npc بتاع vote
انا حليت كل الايرورات بس فاضل 3بس

الاكواد


كود:
 XMeGo.Database.VipTable.PlayersVot Vot = new XMeGo.Database.VipTable.PlayersVot.PlayersVot(); 

في كلمت PlayersVot 2 ايرور
الايرور الاخير في

كود:
 Database.EntityTable.SavePlayersVot(Vot); 

كلمت SavePlayersVot

قديم 2020-04-24, 06:04 AM
المشاركة 8
ElSaher
.:: مشرف اقسام كونكر ::.
الإجابات المقدمة: 509
  • غير متواجد
افتراضي رد: عايز npc بتاع vote
حليتهم خلاص

قديم 2020-06-23, 06:46 AM
المشاركة 9
abdohazem96
.:: عضو نشيط ::.
الإجابات المقدمة: 5
  • غير متواجد
افتراضي رد: عايز npc بتاع vote
طب متنزل الحل يبرو عايزين نعملوه احنا كمان


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



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

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

المواضيع المتشابهه للموضوع: عايز npc بتاع vote
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
طريقة اعلى بيها الـ vote على موقع xtremetop100 Mohammed Hossam مشكلات السيرفيرات كونكر الشخصيه 8 2020-04-29 03:26 PM
ان بي سي فوت Vote Tyranny-Team's مشكلات السيرفيرات كونكر الشخصيه 2 2020-04-17 01:38 AM
لو سمحتو يا يا شباب عايز حل لمكشله فى البولا بتاع الحروب ابو مروان مشكلات السيرفيرات كونكر الشخصيه 3 2019-09-25 01:25 PM
عايز npcراجل بتاع برفكشن ElSaher مشكلات السيرفيرات كونكر الشخصيه 1 2019-07-24 09:21 PM
Vote salahsayed مشكلات السيرفيرات كونكر الشخصيه 1 2019-04-30 10:50 AM


الساعة الآن 06:00 AM