الموضوع: حل لو سمحتو
عرض مشاركة واحدة
قديم 2019-10-06, 12:33 AM
المشاركة #2  
Hassan Emprator
  • غير متواجد
Thumbs up رد: حل لو سمحتو
ازاي تعمل صندوق بس انا معرفش حاجه في سورس رايزو لانه مليان مشاكل اصلا كدا كدا
انتظر النسخه الجديده ولو بتحب تو دي انتظر سورس مستر خالد الجديد
انشاء الله
................................................
ازاي انزل بي صندوق
اولا كدا هتروح
تبحث عن الكود دا

كود:
 public static void LoginMessages(Client.GameState client

بعد كدا هضيف دا تحته


كود:
#region GiftItems
                
if (client.Entity.Class >= 100 && client.Entity.Class <= 145)//Taoist
                
{
                    
//client.Inventory.AddBound99(3100007, 2592000, 0, 0, 1);
                  //  client.Inventory.AddBound99(3100010, 2592000, 0, 0, 1);
                  //  client.Inventory.AddBound99(3301026, 2592000, 0, 0, 1);
                    //client.Inventory.Add(3000550, 0, 1);
                
}
                if (
client.Entity.Class >= 80 && client.Entity.Class <= 85)//DragonWarrior
                
{
                    
//client.Inventory.AddBound99(3100006, 2592000, 0, 0, 1);
                   // client.Inventory.AddBound99(3100010, 2592000, 0, 0, 1);
            //        client.Inventory.AddBound99(3301026, 2592000, 0, 0, 1);
                    //client.Inventory.Add(3000550, 0, 1);
                
}
                if (
client.Entity.Class >= 70 && client.Entity.Class <= 75)//Pirate
                
{
                    
//client.Inventory.AddBound99(3100005, 2592000, 0, 0, 1);
                   // client.Inventory.AddBound99(3100010, 2592000, 0, 0, 1);
                //    client.Inventory.AddBound99(3301026, 2592000, 0, 0, 1);
                    //client.Inventory.Add(3000550, 0, 1);
                
}
                if (
client.Entity.Class >= 60 && client.Entity.Class <= 65)//Monk
                
{
                    
//client.Inventory.AddBound99(3100004, 2592000, 0, 0, 1);
                    //  client.Inventory.AddBound99(3100010, 2592000, 0, 0, 1);
                    
client.Inventory.AddBound99(33010262592000001);
                    
//client.Inventory.Add(3000550, 0, 1);
                
}
                if (
client.Entity.Class >= 50 && client.Entity.Class <= 55)//Ninja
                
{
                    
//client.Inventory.AddBound99(3100003, 2592000, 0, 0, 1);
                    //   client.Inventory.AddBound99(3100010, 2592000, 0, 0, 1);
                 //   client.Inventory.AddBound99(3301026, 2592000, 0, 0, 1);
                    //client.Inventory.Add(3000550, 0, 1);
                
}
                if (
client.Entity.Class >= 40 && client.Entity.Class <= 45)//Archer
                
{
                    
//client.Inventory.AddBound99(3100002, 2592000, 0, 0, 1);
                    // client.Inventory.AddBound99(3100010, 2592000, 0, 0, 1);
                  //  client.Inventory.AddBound99(3301026, 2592000, 0, 0, 1);
                    //client.Inventory.Add(3000550, 0, 1);
                
}
                if (
client.Entity.Class >= 20 && client.Entity.Class <= 25)//Warrior
                
{
                    
//client.Inventory.AddBound99(3100001, 2592000, 0, 0, 1);
                    // client.Inventory.AddBound99(3100010, 2592000, 0, 0, 1);
                 //   client.Inventory.AddBound99(3301026, 2592000, 0, 0, 1);
                    //client.Inventory.Add(3000550, 0, 1);
                
}
                if (
client.Entity.Class >= 10 && client.Entity.Class <= 15)//Trojan
                
{
                    
//client.Inventory.AddBound99(3100000, 2592000, 0, 0, 1);
                    //  client.Inventory.AddBound99(3100010, 2592000, 0, 0, 1);
                  //  client.Inventory.AddBound99(3301026, 2592000, 0, 0, 1);
                    //client.Inventory.Add(3000550, 0, 1);
                
}
                if (
client.Entity.Class >= 160 && client.Entity.Class <= 165)//Windwalker
                
{
                    
//client.Inventory.AddBound99(626003, 0, 0, 0, 1);
                   // client.Inventory.AddBound99(3301719, 0, 0, 0, 1);
                    //client.Inventory.AddBound99(3100010, 2592000, 0, 0, 1);
                    //client.Inventory.AddBound99(3301026, 2592000, 0, 0, 1);
                    //client.Inventory.Add(3000550, 0, 1);
                
}
                
#endregion 

بس حضرتك انت كل الي هتعمله هنا انك هتغير رقم الايدي الي مكتوب في الاول الكود الي الكود بي
بتاع الايتم الجديد الي انت هتحطه وتشيل علامه //
دي تمام شعانا ساحبهولك من سرفري تمام ؟
وي 1 الي في الاخر دا معناه انك عايز تككرره كام مرا هوا كدا هييجي مرا
تمام ننكمل
.................................................. ........................................


بعدين سرش عا الكود دا


كود:
 client.Inventory.Add(itemPack01); 

ضيف دا تحته

كود:
#region GiftItems
                
if (client.Entity.Class >= 100 && client.Entity.Class <= 145)//Taoist
                
{
                    
//client.Inventory.AddBound99(3100007, 2592000, 0, 0, 1);
                    
client.Inventory.AddBound99(31000102592000001);
                    
//  client.Inventory.AddBound99(3301026, 2592000, 0, 0, 1);
                    //client.Inventory.Add(3000550, 0, 1);
                
}
                if (
client.Entity.Class >= 80 && client.Entity.Class <= 85)//DragonWarrior
                
{
                    
//client.Inventory.AddBound99(3100006, 2592000, 0, 0, 1);
                    
client.Inventory.AddBound99(31000102592000001);
                    
//   client.Inventory.AddBound99(3301026, 2592000, 0, 0, 1);
                    //client.Inventory.Add(3000550, 0, 1);
                
}
                if (
client.Entity.Class >= 70 && client.Entity.Class <= 75)//Pirate
                
{
                    
//client.Inventory.AddBound99(3100005, 2592000, 0, 0, 1);
                    
client.Inventory.AddBound99(31000102592000001);
                    
//  client.Inventory.AddBound99(3301026, 2592000, 0, 0, 1);
                    //client.Inventory.Add(3000550, 0, 1);
                
}
                if (
client.Entity.Class >= 60 && client.Entity.Class <= 65)//Monk
                
{
                    
//client.Inventory.AddBound99(3100004, 2592000, 0, 0, 1);
                    
client.Inventory.AddBound99(31000102592000001);
                    
// client.Inventory.AddBound99(3301026, 2592000, 0, 0, 1);
                    //client.Inventory.Add(3000550, 0, 1);
                
}
                if (
client.Entity.Class >= 50 && client.Entity.Class <= 55)//Ninja
                
{
                    
//client.Inventory.AddBound99(3100003, 2592000, 0, 0, 1);
                    
client.Inventory.AddBound99(31000102592000001);
                    
//      client.Inventory.AddBound99(3301026, 2592000, 0, 0, 1);
                    //client.Inventory.Add(3000550, 0, 1);
                
}
                if (
client.Entity.Class >= 40 && client.Entity.Class <= 45)//Archer
                
{
                    
//client.Inventory.AddBound99(3100002, 2592000, 0, 0, 1);
                    
client.Inventory.AddBound99(31000102592000001);
                    
//client.Inventory.AddBound99(3301026, 2592000, 0, 0, 1);
                    //client.Inventory.Add(3000550, 0, 1);
                
}
                if (
client.Entity.Class >= 20 && client.Entity.Class <= 25)//Warrior
                
{
                    
//client.Inventory.AddBound99(3100001, 2592000, 0, 0, 1);
                    
client.Inventory.AddBound99(31000102592000001);
                    
//client.Inventory.AddBound99(3301026, 2592000, 0, 0, 1);
                    //client.Inventory.Add(3000550, 0, 1);
                
}
                if (
client.Entity.Class >= 10 && client.Entity.Class <= 15)//Trojan
                
{
                    
//client.Inventory.AddBound99(3100000, 2592000, 0, 0, 1);
                    
client.Inventory.AddBound99(31000102592000001);
                    
//client.Inventory.AddBound99(3301026, 2592000, 0, 0, 1);
                    //client.Inventory.Add(3000550, 0, 1);
                
}
                if (
client.Entity.Class >= 160 && client.Entity.Class <= 165)//Windwalker
                
{
                    
//client.Inventory.AddBound99(626003, 0, 0, 0, 1);
                   // client.Inventory.AddBound99(3301719, 0, 0, 0, 1);
             //       client.Inventory.AddBound99(3100010, 2592000, 0, 0, 1);
                    //client.Inventory.AddBound99(3301026, 2592000, 0, 0, 1);
                    //client.Inventory.Add(3000550, 0, 1);
                
}
                
#endregion 

وهتعمل زي الكود الي فوق كدا ضفته انت كدا لاصندوق

طيب حبيت بقا ناي اضيف صناديق الشخصيات لان دي كدا ايتمات عاديه

سيرش عا الكود دا


كود:
uint itemPack 0

وضيف تحته دا


كود:
 switch (client.Entity.Class)
                {
                    case 
10itemPack 3100000; break;
                     case 
20itemPack 3100001; break;
                     case 
40itemPack 3100002; break;
                    case 
50itemPack 3100003; break;
                    case 
60itemPack 3100004; break;
                    case 
70itemPack 3100005; break;
                    case 
80itemPack 3100006; break;
                      case 
100itemPack 3100007; break;
                    case 
160itemPack 3100008; break;
                } 

بس كدا لو في ايه مشاكل اكتبها واحلهالك