احصائياتى

الردود
0

المشاهدات
14
 
Hazem
.:: المدير العام::.

    متواجد  الان

المشاركات
2,308

+التقييم
0.84

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

الاقامة
Egypt

نظام التشغيل
windows 7

رقم العضوية
1
2021-08-17, 04:17 PM
المشاركة 1
2021-08-17, 04:17 PM
المشاركة 1
افتراضي NPC Selling Lv6 Refinary.

New NPC to selling Lv6Refinary.


كود:
   #region Lv6Refinary All Rights Reserved © Ąbdṳallah Môhsen
                    
case 35245:
                        {
                            
dialog.Avatar(84);
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("Hello. You can chose a Lve.6 Refinery.");
                                        
dialog.Option("[1]-handed.", 29);
                                        
dialog.Option("[2]-handed.", 30);
                                        
dialog.Option("Armor.", 40);
                                        
dialog.Option("Boots.", 31);
                                        
dialog.Option("Ring.", 32);
                                        
dialog.Option("Necklace.", 33);
                                        
dialog.Option("Headgear.", 34);
                                        
dialog.Option("Shield.", 35);
                                        
dialog.Option("Bracelet.", 36);
                                        
dialog.Option("Bag.", 37);
                                        
dialog.Option("Bow.", 38);
                                        
dialog.Option("Backsword.", 39);
                                        
dialog.Option("No, thanks.", 255);
                                        
dialog.Avatar(0);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
29:
                                    {
                                        
dialog.Text("Choose the its you want to gets!");
                                        
dialog.Option("CriticalStrike.", 15);
                                        
dialog.Option("Breakthrough.", 17);
                                        
dialog.Option("Let~me~think.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
30:
                                    {
                                        
dialog.Text("Choose the its you want to gets!");
                                        
dialog.Option("CriticalStrike.", 16);
                                        
dialog.Option("Breakthrough.", 18);
                                        
dialog.Option("Let~me~think.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
31:
                                    {
                                        
dialog.Text("Choose the its you want to gets!");
                                        
dialog.Option("Detoxication.", 23);
                                        
dialog.Option("Immunity.", 6);
                                        
dialog.Option("Let~me~think.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
32:
                                    {
                                        
dialog.Text("Choose the its you want to gets!");
                                        
dialog.Option("CriticalStrike.", 10);
                                        
dialog.Option("Breakthrough.", 12);
                                        
dialog.Option("M-Defense.", 8);
                                        
dialog.Option("Let~me~think.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
33:
                                    {
                                        
dialog.Text("Choose the its you want to gets!");
                                        
dialog.Option("Counteraction.", 11);
                                        
dialog.Option("Detoxication.", 24);
                                        
dialog.Option("M-Defense.", 1);
                                        
dialog.Option("Let~me~think.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
34:
                                    {
                                        
dialog.Text("Choose the its you want to gets!");
                                        
dialog.Option("Intensification.", 41);
                                        
dialog.Option("Block.", 4);
                                        
dialog.Option("Detoxication.", 21);
                                        
dialog.Option("Penetration.", 25);
                                        
dialog.Option("Let~me~think.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
35:
                                    {
                                        
dialog.Text("Choose the its you want to gets!");
                                        
dialog.Option("Block.", 20);
                                        
dialog.Option("Let~me~think.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
36:
                                    {
                                        
dialog.Text("Choose the its you want to gets!");
                                        
dialog.Option("Breakthrough.", 13);
                                        
dialog.Option("Penetration.", 27);
                                        
dialog.Option("M-Defense.", 9);
                                        
dialog.Option("Let~me~think.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
37:
                                    {
                                        
dialog.Text("Choose the its you want to gets!");
                                        
dialog.Option("Detoxication.", 26);
                                        
dialog.Option("Penetration.", 7);
                                        
dialog.Option("M-Defense.", 5);
                                        
dialog.Option("Let~me~think.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
38:
                                    {
                                        
dialog.Text("Choose the its you want to gets!");
                                        
dialog.Option("CriticalStrike.", 14);
                                        
dialog.Option("Breakthrough.", 19);
                                        
dialog.Option("Let~me~think.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
39:
                                    {
                                        
dialog.Text("Choose the its you want to gets!");
                                        
dialog.Option("SkillC.Strike.", 28);
                                        
dialog.Option("Let~me~think.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
40:
                                    {
                                        
dialog.Text("Choose the its you want to gets!");
                                        
dialog.Option("Counteraction.", 3);
                                        
dialog.Option("Detoxication.", 22);
                                        
dialog.Option("Immunity.", 2);
                                        
dialog.Option("Let~me~think.", 255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
2:
                                    {
                                        
client.Entity.IDs = 3004139;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
3:
                                    {
                                        
client.Entity.IDs = 3004142;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
4:
                                    {
                                        
client.Entity.IDs = 3004144;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
5:
                                    {
                                        
client.Entity.IDs = 3004146;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
6:
                                    {
                                        
client.Entity.IDs = 3004149;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
7:
                                    {
                                        
client.Entity.IDs = 3004154;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
8:
                                    {
                                        
client.Entity.IDs = 3004155;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
9:
                                    {
                                        
client.Entity.IDs = 3004157;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
10:
                                    {
                                        
client.Entity.IDs = 3004158;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
11:
                                    {
                                        
client.Entity.IDs = 3004160;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
12:
                                    {
                                        
client.Entity.IDs = 3004163;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
13:
                                    {
                                        
client.Entity.IDs = 3004164;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
14:
                                    {
                                        
client.Entity.IDs = 3004281;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
15:
                                    {
                                        
client.Entity.IDs = 3004282;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
16:
                                    {
                                        
client.Entity.IDs = 3004283;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
17:
                                    {
                                        
client.Entity.IDs = 3004284;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
18:
                                    {
                                        
client.Entity.IDs = 3004285;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
19:
                                    {
                                        
client.Entity.IDs = 3004286;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
20:
                                    {
                                        
client.Entity.IDs = 3004287;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
21:
                                    {
                                        
client.Entity.IDs = 3004288;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
22:
                                    {
                                        
client.Entity.IDs = 3004289;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
23:
                                    {
                                        
client.Entity.IDs = 3004290;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
24:
                                    {
                                        
client.Entity.IDs = 3004291;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
25:
                                    {
                                        
client.Entity.IDs = 3004292;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
26:
                                    {
                                        
client.Entity.IDs = 3004293;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
27:
                                    {
                                        
client.Entity.IDs = 3004294;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
28:
                                    {
                                        
client.Entity.IDs = 3004295;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                                case 
41:
                                    {
                                        
client.Entity.IDs = 3004140;
                                        
GiveItemIDs(client);
                                        break;
                                    }
                            }
                            break;
                        }
                    
#endregion 

تحت الكود دا في ملف ال Npcs


كود:
public class Npcs
    
{ 

ضيف دا.

كود:
        private static void GiveItemIDs(GameClient client)
        {
            
/* 
             *All Rights Reserved © Ąbdṳallah Môhsen.
             */
            
if (client.Inventory.Count != 40)
            {
                if (
client.Entity.ConquerPoints >= 20000)
                {
                    
client.Entity.ConquerPoints -= 20000;
                    
ConquerItem _item = new ConquerItem(true);
                    
_item.ID = client.Entity.IDs;
                    
_item.Durability = _item.MaximDurability = WarthOfEmperor.Database.ConquerItemInformation.BaseInformations[client.Entity.IDs].Durability;
                    
client.Inventory.Add(_item, Game.Enums.ItemUse.CreateAndAdd);
                    
client.Entity.IDs = 0;
                }
                else
                {
                    
client.Send("You don't have 20,000 CPs.");
                }
            }
            else
            {
                
client.Send("Your inventory is full, Please make some place empty.");
            }
        } 

وفي ملف Entity.cs هتضيف الكود دا فوق خالص

كود:
public uint IDs; 




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



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

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



الساعة الآن 08:08 PM