منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   ايتيم التنقل للمدن (https://code.vpscairo.com/showthread.php?t=1203)

محمد ياسر 2019-07-30 12:36 PM

ايتيم التنقل للمدن
 

السلام عليكم ورحمة الله وبركاته
الفكرة النهاردة ان الايتم دة بدل مكل شوية تشتري رسايل دة هيبقي معاك علطول ف الايتم يوديك اي مدينة ب 100 سي بي بس
نخش علطول ف التنفيذ هنخش ع PacketHandler
تبحث عن
كود PHP:

#region Captchas 

و تحتها ضيف
كود PHP:

#region TorNaDoTeam 
                            
if (client.ActiveNpc == 127894) 
                            { 
                                
//if (client.Inventory.Contains(127894, 1))//TorNaDoTeaM 
                                
{ 
                                    if (
req.OptionID == 2) 
                                    { 
                                        
client.Entity.Teleport(1002, 300, 278); 
                                        
client.Entity.ConquerPoints -= 100; 
                                    } 
                                    if (
req.OptionID == 4)//Youssef-Conan 
                                    
{ 
                                        
client.Entity.Teleport(1011, 189, 263); 
                                        
client.Entity.ConquerPoints -= 100; 
                                    } 
                                    if (
req.OptionID == 6)//Youssef-Conan 
                                    
{ 
                                        
client.Entity.Teleport(1020, 565, 562); 
                                        
client.Entity.ConquerPoints -= 100; 
                                    } 
                                    if (
req.OptionID == 8)//Youssef-Conan 
                                    
{ 
                                        
client.Entity.Teleport(1015, 717, 571); 
                                        
client.Entity.ConquerPoints -= 100; 
                                    } 
                                    if (
req.OptionID == 10)//Youssef-Conan 
                                    
{ 
                                        
client.Entity.Teleport(1000, 500, 650); 
                                        
client.Entity.ConquerPoints -= 100; 
                                         
                                    } 
                                } 
                                break; 
                            } 
                            
#endregion 

و بعدين نبحث عن
كود PHP:

 #region Misc 

ضيف دول تحته
كود PHP:

#region TorNaDoTeaM 
                
case 127894: 
                    { 
                        
Npcs dialog = new Npcs(client); 
                        
dialog.Text("Hello. I can TelePort You For Any City :"); 
                        
dialog.Option("TwinCity ", 2);//Youssef-Conan 
                        
dialog.Option("PhonixCity ", 4);//Youssef-Conan 
                        
dialog.Option("ApyCity ", 6);//Youssef-Conan 
                        
dialog.Option("BirdCity ", 8);//Youssef-Conan 
                        
dialog.Option("DesertCity ", 10);//Youssef-Conan 
                        
dialog.Option("Nevermind.", 255); 
                        
dialog.Send(); 
                        
client.ActiveNpc = item.ID; 
                        break; 
                    } 
                
#endregion 

لو عايز تخلي اي اكونت جديد ينزل بية
هتبحث عن
كود PHP:

   Database.PkExpelTable.Load(client); 

و تضيف تحتوا دة ... !
كود PHP:

#region New 
                
if (client.ItemGive == true) 
                { 
                    if (
client.Entity.Class == 10)//Youssef-Conan 
                    
{ 
                        
client.Inventory.Add(127894, 0, 1); 
                        
client.ItemGive = false; 
                    } 
 
                    if (
client.Entity.Class == 20)//Youssef-Conan 
                    
{ 
                        
client.Inventory.Add(127894, 0, 1); 
                        
client.ItemGive = false; 
 
                    } 
                    if (
client.Entity.Class >= 100) 
                    { 
                        
client.Inventory.Add(127894, 0, 1); 
                        
client.ItemGive = false; 
                    } 
                    if (
client.Entity.Class == 70) 
                    { 
                        
client.Inventory.Add(127894, 0, 1); 
                        
client.ItemGive = false; 
                    } 
                    if (
client.Entity.Class == 80) 
                    { 
                        
client.Inventory.Add(127894, 0, 1); 
                        
client.ItemGive = false; 
                    } 
                    if (
client.Entity.Class == 60) 
                    { 
                        
client.Inventory.Add(127894, 0, 1); 
                        
client.ItemGive = false; 
                    } 
                    if (
client.Entity.Class == 50) 
                    { 
                        
client.Inventory.Add(127894, 0, 1); 
                        
client.ItemGive = false; 
 
                    } 
                    if (
client.Entity.Class == 40) 
                    { 
                        
client.Inventory.Add(127894, 0, 1); 
                        
client.ItemGive = false; 
                    } 
 
                
#endregion 

مش عايز برحتك انتا بقا و بعد كدة الايتم بقا ....
كود PHP:

  127894@@TeleCitys@@0@@0@@0@@0@@0@@0@@0@@0@@9@@0@@0@@98436800@@0@@0@@0@@0@@0@@0@@0@@1@@1@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@800@@0@@0@@1@@16000@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@TelePort~Citys@@From~YoussefConan.@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@ 

و بعدين شكلو ف ItemMainIcon ف الكلينت
كود PHP:

[Item127894] 
FrameAmount=1 
Frame0
=data/ItemMinIcon/727200.dds 

عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع

ALz3em 2019-07-30 02:49 PM

رد: ايتيم التنقل للمدن
 
فكره حلوه
عاش


الساعة الآن 07:53 PM

مرحبا بكم في منتدي اكواد لتطوير الالعاب