الموضوع: طلب صغير
عرض مشاركة واحدة
قديم 2019-11-11, 04:12 AM
المشاركة #3  
Mostafa Shalby
  • غير متواجد
افتراضي رد: طلب صغير
ده الانبسي ال يديلك الاصطفا برفكشن يا صحبي


كود:
#region perfectionlevel 54 item npc !
                    
Case 808134:
                        {
                            switch (
npcrequest.optionid)
                            {
                                case 
0:
                                    {
                                        
dialog.text("hello pro i am here to perfection full your gear... To beautify you special items for 100k cps in server [blackblock-co].");
                                        
dialog.option("open necklace", (byte)conqueritem.necklace);
                                        
dialog.option("open armor", (byte)conqueritem.armor);
                                        
dialog.option("open tower", (byte)conqueritem.tower);
                                        
dialog.option("open fan", (byte)conqueritem.fan);
                                        
dialog.option("open crop", (byte)conqueritem.steedcrop);
                                        
dialog.option("open wing", (byte)conqueritem.wing);
                                        
dialog.option("open ring", (byte)conqueritem.ring);
                                        
dialog.option("open head", (byte)conqueritem.head);
                                        
dialog.option("open boots", (byte)conqueritem.boots);
                                        
dialog.option("open steed", (byte)conqueritem.steed);
                                        
dialog.option("open rightweapon", (byte)conqueritem.rightweapon);
                                        
dialog.option("open leftweapon", (byte)conqueritem.leftweapon);
                                        
dialog.send();
                                        break;
                                    }
                                case (
byte)conqueritem.necklace:
                                Case (
byte)conqueritem.armor:
                                Case (
byte)conqueritem.ring:
                                Case (
byte)conqueritem.boots:
                                Case (
byte)conqueritem.head:
                                Case (
byte)conqueritem.tower:
                                Case (
byte)conqueritem.fan:
                                Case (
byte)conqueritem.steedcrop:
                                Case (
byte)conqueritem.steed:
                                Case (
byte)conqueritem.rightweapon:
                                Case (
byte)conqueritem.leftweapon:
                                    {
                                        
conqueritem item;
                                        if ((
item client.equipment.trygetitem(npcrequest.optionid)) != null)
                                        {
                                            if (
item.perfectionlevel == && client.player.conquerpoints >= 100000)
                                            {
                                                
client.player.conquerpoints -= 100000;
                                                
item.stars 54;
                                                
item.mode game.enums.itemmode.update;
                                                
item.send(client);
                                                
database.conqueritemtable.updateperfection(item);
                                            }
                                            else
                                            {
                                                
dialog.text("please come back to me with 100k conquerpoints.");
                                                
dialog.option("ahh sorry."255);
                                                
dialog.send();
                                            }
                                        }
                                        break;
                                    }
                                case (
byte)conqueritem.wing:
                                    {
                                        
conqueritem item;
                                        if ((
item client.equipment.trygetitem(npcrequest.optionid)) != null)
                                        {
                                            if (
item.perfectionlevel == && client.player.conquerpoints >= 100000)
                                            {
                                                
client.player.conquerpoints -= 100000;
                                                
item.stars 54;
                                                
item.mode game.enums.itemmode.update;
                                                
item.send(client);
                                                
database.conqueritemtable.updateperfection(item);
                                            }
                                            else
                                            {
                                                
dialog.text("please come back to me with 100k conquerpoints.");
                                                
dialog.option("ahh sorry."255);
                                                
dialog.send();
                                            }
                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion 

ياريت الحل يكون وصل
مش قصدي الانبي سي في اضافة في السورس نفسة عشان الانبي سي يشتغل تمام معاك