عرض مشاركة واحدة
قديم 2020-03-29, 02:11 PM
المشاركة 3
Users
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: محتاج كود ال myesty fruit (التقاط التعزيزية لرفع الدم او الخفة)
packethandler

هتبحث عن
كود:
#region misc 

هتضيف في الريجون ده


كود:

#region mysteryfruit
                    
case 3001044:
                    {
                        
npcs dialog = new npcs(client);
                        
dialog.text("you~can~directly~use~mystery~fruit~to~receive~1 - 3~attribute~points. You~can");
                        
dialog.text("also~use~it~with~mystery~dew~or~pay~270~cps~to~get~the~best~effect~(3");
                        
dialog.text("attribute~points~without~fail). What~do~you~think");
                        
dialog.option("use~mystery~dew!"1);
                        
dialog.option("pay~270~cps!"2);
                        
dialog.option("use~mystery~fruit~directly."3);
                        
dialog.option("i'll~think~about~it."255);
                        
dialog.send();
                        
client.activenpc item.id;
                        break;
                    }
                    
#endregion 

بعد كده هتبحث عن


كود:
#region npcdialog 

وهتضيف الكود ده


كود:
#region mysteryfruit
                            
if (client.activenpc == 3001044)
                            {
                                if (
req.optionid == 255) return;
                                switch (
req.optionid)
                                {
                                    case 
1:
                                        {
                                            
dialog.text("are~you~sure~youwant~to~use~a~mystery~dew~gain~the~best~effect");
                                            
dialog.option("ok."5);
                                            
dialog.option("cancel."255);
                                            
dialog.send();
                                            break;
                                        }
                                    case 
2:
                                        {
                                            
dialog.text("are~you~sure~youwant~to~pay~270~cps~to~gain~the~best~effect");
                                            
dialog.option("ok."6);
                                            
dialog.option("cancel."255);
                                            
dialog.send();
                                            break;
                                        }
                                    case 
3:
                                        {
                                            
dialog.text("you~will~randomly~gain~1 - 3~attribute~points~by~directly~using~the~mystery~fruit.~if");
                                            
dialog.text("you~use~it~together~with~a~mystery~dew,you~will~gain~3~attribute~points~without");
                                            
dialog.text("fail!~would~you~like~to~use~fruit~right~away?");
                                            
dialog.text("tip:mystery~dew~can~be~bought~from~aren");
                                            
dialog.option("ok."7);
                                            
dialog.option("cancel"255);
                                            
dialog.send();
                                            break;
                                        }
                                    case 
5:
                                        {
                                            if (
client.inventory.contains(30010451))
                                            {
                                                
random random3 = new random();
                                                switch (
random3.next(15))
                                                {
                                                    
#region fruit
                                                    
case 1:
                                                        
Client.entity.agility += 3;
                                                        
client.entity.mysteryfruit += 3;
                                                        
client.inventory.remove(30010451);
                                                        
client.inventory.remove(30010441);
                                                        
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increased~by~3~!"nullnull0);
                                                        break;
                                                    case 
2:
                                                        
Client.entity.strength += 3;
                                                        
client.entity.mysteryfruit += 3;
                                                        
client.inventory.remove(30010451);
                                                        
client.inventory.remove(30010441);
                                                        
client.messagebox("you~used~the~mystery~fruit~and~your~strength~increased~by~3~!"nullnull0);
                                                        break;
                                                    case 
3:
                                                        
Client.entity.vitality += 3;
                                                        
client.entity.mysteryfruit += 3;
                                                        
client.inventory.remove(30010451);
                                                        
client.inventory.remove(30010441);
                                                        
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~increased~by~3~!"nullnull0);
                                                        break;
                                                    case 
4:
                                                        
Client.entity.spirit += 3;
                                                        
client.entity.mysteryfruit += 3;
                                                        
client.inventory.remove(30010451);
                                                        
client.inventory.remove(30010441);
                                                        
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increased~by~3~!"nullnull0);
                                                        break;
                                                    
#endregion
                                                   
                                                
}
                                            }
                                            else
                                            {
                                                
client.messagebox("you~don't~have~a~mystery~dew~to~gain~the~best~effects!~the~dew~can~be~bought~in~arena~store."nullnull0);
                                            }
                                            break;
                                        }
                                    case 
6:
                                        {
                                            if (
client.entity.conquerpoints >= 270)
                                            {
                                                
random random3 = new random();
                                                switch (
random3.next(15))
                                                {
                                                    
#region fruit
                                                    
case 1:
                                                        
Client.entity.agility += 3;
                                                        
client.entity.mysteryfruit += 3;
                                                        
client.entity.conquerpoints -= 270;
                                                        
client.inventory.remove(30010441);
                                                        
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increased~by~3~!"nullnull0);
                                                        break;
                                                    case 
2:
                                                        
Client.entity.strength += 3;
                                                        
client.entity.mysteryfruit += 3;
                                                        
client.entity.conquerpoints -= 270;
                                                        
client.inventory.remove(30010441);
                                                        
client.messagebox("you~used~the~mystery~fruit~and~your~strength~increased~by~3~!"nullnull0);
                                                        break;
                                                    case 
3:
                                                        
Client.entity.vitality += 3;
                                                        
client.entity.mysteryfruit += 3;
                                                        
client.entity.conquerpoints -= 270;
                                                        
client.inventory.remove(30010441);
                                                        
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~increased~by~3~!"nullnull0);
                                                        break;
                                                    case 
4:
                                                        
Client.entity.spirit += 3;
                                                        
client.entity.mysteryfruit += 3;
                                                        
client.entity.conquerpoints -= 270;
                                                        
client.inventory.remove(30010441);
                                                        
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increased~by~3~!"nullnull0);
                                                        break;
                                                    
#endregion
                                                
}
                                            }
                                            else
                                            {
                                                
client.messagebox("you~don't~have~a~270~cps~to~gain~the~best~effects!~the~dew~can~be~bought~in~arena~store."nullnull0);
                                                break;
                                            }
                                            break;
                                        }
                                    case 
7:
                                        {
                                            
random random3 = new random();
                                            switch (
random3.next(144))
                                            {
                                                
#region agility
                                                
case 1:
                                                    
Client.entity.agility += 1;
                                                    
client.entity.mysteryfruit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
2:
                                                    
Client.entity.agility += 1;
                                                    
client.entity.mysteryfruit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
3:
                                                    
Client.entity.agility += 1;
                                                    
client.entity.mysteryfruit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
4:
                                                    
Client.entity.agility += 2;
                                                    
client.entity.mysteryfruit += 2;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increased~by~2~!"nullnull0);
                                                    break;
                                                case 
5:
                                                    
Client.entity.agility += 2;
                                                    
client.entity.mysteryfruit += 2;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increased~by~2~!"nullnull0);
                                                    break;
                                                case 
6:
                                                    
Client.entity.agility += 3;
                                                    
client.entity.mysteryfruit += 3;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increased~by~3~!"nullnull0);
                                                    break;
                                                case 
7:
                                                    
Client.entity.agility += 1;
                                                    
client.entity.mysteryfruit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
8:
                                                    
Client.entity.agility += 2;
                                                    
client.entity.mysteryfruit += 2;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increased~by~2~!"nullnull0);
                                                    break;
                                                case 
9:
                                                    
Client.entity.agility += 1;
                                                    
client.entity.mysteryfruit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~agility~increased~by~1~!"nullnull0);
                                                    break;
                                                
#endregion
                                                #region strength
                                                
case 10:
                                                    
Client.entity.strength += 1;
                                                    
client.entity.mysteryfruit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
11:
                                                    
Client.entity.strength += 1;
                                                    
client.entity.mysteryfruit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
12:
                                                    
Client.entity.strength += 1;
                                                    
client.entity.mysteryfruit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
13:
                                                    
Client.entity.strength += 1;
                                                    
client.entity.mysteryfruit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
14:
                                                    
Client.entity.strength += 2;
                                                    
client.entity.mysteryfruit += 2;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~increased~by~2~!"nullnull0);
                                                    break;
                                                case 
15:
                                                    
Client.entity.strength += 1;
                                                    
client.entity.mysteryfruit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
16:
                                                    
Client.entity.strength += 2;
                                                    
client.entity.mysteryfruit += 2;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~increased~by~2~!"nullnull0);
                                                    break;
                                                case 
17:
                                                    
Client.entity.strength += 3;
                                                    
client.entity.mysteryfruit += 3;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~increased~by~3~!"nullnull0);
                                                    break;
                                                case 
18:
                                                    
Client.entity.strength += 1;
                                                    
client.entity.mysteryfruit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
19:
                                                    
Client.entity.strength += 1;
                                                    
client.entity.mysteryfruit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~strenght~increased~by~1~!"nullnull0);
                                                    break;
                                                
#endregion
                                                #region vitality
                                                
case 20:
                                                    
Client.entity.mysteryfruit += 1;
                                                    
client.entity.vitality += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
21:
                                                    
Client.entity.mysteryfruit += 1;
                                                    
client.entity.vitality += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
22:
                                                    
Client.entity.mysteryfruit += 1;
                                                    
client.entity.vitality += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
23:
                                                    
Client.entity.mysteryfruit += 2;
                                                    
client.entity.vitality += 2;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~increased~by~2~!"nullnull0);
                                                    break;
                                                case 
24:
                                                    
Client.entity.mysteryfruit += 1;
                                                    
client.entity.vitality += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
25:
                                                    
Client.entity.mysteryfruit += 1;
                                                    
client.entity.vitality += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
26:
                                                    
Client.entity.mysteryfruit += 3;
                                                    
client.entity.vitality += 3;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~increased~by~3~!"nullnull0);
                                                    break;
                                                case 
27:
                                                    
Client.entity.mysteryfruit += 2;
                                                    
client.entity.vitality += 2;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~increased~by~2~!"nullnull0);
                                                    break;
                                                case 
28:
                                                    
Client.entity.mysteryfruit += 1;
                                                    
client.entity.vitality += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
29:
                                                    
Client.entity.mysteryfruit += 1;
                                                    
client.entity.vitality += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~vitality~increased~by~1~!"nullnull0);
                                                    break;
                                                
#endregion
                                                #region spirit
                                                
case 30:
                                                    
Client.entity.mysteryfruit += 1;
                                                    
client.entity.spirit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
31:
                                                    
Client.entity.mysteryfruit += 1;
                                                    
client.entity.spirit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
32:
                                                    
Client.entity.mysteryfruit += 1;
                                                    
client.entity.spirit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
33:
                                                    
Client.entity.mysteryfruit += 1;
                                                    
client.entity.spirit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
34:
                                                    
Client.entity.mysteryfruit += 1;
                                                    
client.entity.spirit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
35:
                                                    
Client.entity.mysteryfruit += 2;
                                                    
client.entity.spirit += 2;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increased~by~2~!"nullnull0);
                                                    break;
                                                case 
36:
                                                    
Client.entity.mysteryfruit += 3;
                                                    
client.entity.spirit += 3;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increased~by~3~!"nullnull0);
                                                    break;
                                                case 
37:
                                                    
Client.entity.mysteryfruit += 1;
                                                    
client.entity.spirit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
38:
                                                    
Client.entity.mysteryfruit += 1;
                                                    
client.entity.spirit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
39:
                                                    
Client.entity.mysteryfruit += 1;
                                                    
client.entity.spirit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
40:
                                                    
Client.entity.mysteryfruit += 2;
                                                    
client.entity.spirit += 2;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increased~by~2~!"nullnull0);
                                                    break;
                                                case 
41:
                                                    
Client.entity.mysteryfruit += 1;
                                                    
client.entity.spirit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
42:
                                                    
Client.entity.mysteryfruit += 1;
                                                    
client.entity.spirit += 1;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increased~by~1~!"nullnull0);
                                                    break;
                                                case 
43:
                                                    
Client.entity.mysteryfruit += 2;
                                                    
client.entity.spirit += 2;
                                                    
client.inventory.remove(30010441);
                                                    
client.messagebox("you~used~the~mystery~fruit~and~your~spirit~increased~by~2~!"nullnull0);
                                                    break;
                                                
#endregion
                                            
}
                                            break;
                                        }
                                }
                                return;
                            }
                            
#endregion 

لحد هنا تمام اوووي نخش علي لود وسيف

هتبحث في entitytable عن




كود:
client.entity.conquerpoints reader.readuint64("conquerpoints"); 

وهتضيف تحتها دي


كود:
client.entity.mysteryfruit reader.readuint16("mysteryfruit"); 

بعد كده هتبحث في نفس الكلاس عن



كود:
.set("strength"e.strength

وهتضيف تحتها



كود:
.set("mysteryfruit"e.mysteryfruit

صح نسيت عشان تعملها save لما تغير الشخصيه او ترستر البوينتات ضيف ده

في كلاس handle بس مش بتاع الاتاك التاني

ابحث عن

كود:
(ushort)(client.extraatributepoints(client.entity.firstrebornlevelclient.entity.firstrebornclass) + 

وخلي الكود كلو كده بقا




كود:
(ushort)(client.extraatributepoints(client.entity.firstrebornlevelclient.entity.firstrebornclass) +
                          
client.extraatributepoints(client.entity.secondrebornlevelclient.entity.secondrebornclass) +62 client.entity.mysteryfruit); 

بعد كده هنخش علي الريسترت ابحث عن في كلاس npc


كود:
case 59558

وهتنزل لحد

كود:
#region attribute 8
case 4

وهتبدل الكود الي شبه الكود ده هتبدلو في else


كود:

client
.entity.atributes = (ushort)(client.extraatributepoints(client.entity.firstrebornlevelclient.entity.firstrebornclass) +
                                                                        
client.extraatributepoints(client.entity.secondrebornlevelclient.entity.secondrebornclass) + 52 client.entity.mysteryfruit * (client.entity.level 15)); 
شكراا يا رايس على تعبك بس استهدى بالله كده الوا\ هيتوه منك هى موجوده عندو وعاوز يعملها شوب مش اكتر ههههههههه امال مبنشوفش منك كده ليه