منتـدى تيم اكسور - TeamXor
منتـدى تيم اكسور | TeamXor |
ad ad ad
ad ad ad
ad ad ad

[ كويستات ] كويستة Treasure In Blue

احصائياتى
الردود
3
المشاهدات
520

saeedshaarawy

.:: المدير العام ::.
طاقم الإدارة
الإدارة العليا
معلومات saeedshaarawy
إنضم
4 فبراير 2020
المشاركات
512
مستوى التفاعل
1,005
النقاط
2,000
الإقامة
المقطم - القاهرة - مصر
Facebook
saeedshaarawy
Twitter
saeed_shaarawy
كويستة Treasure In Blue


ناس كتير كانت عاوزة تعمل عندها كويستة الأخطبوط
لكن مش عارفين ازاى
النهاردة انا جايبلكم ازاى تضيفوها كاملة
تابعوا الشرح


اول حاجة نضيف الكود فى كلاس Npc.cs
C#:
                #region Treasure In Blue By Teamxor
                #region Treasure In Blue
                case 9650:
                    switch (npcRequest.OptionID)
                    {
                        case 0:
                            dialog.Text("Hello! You want to exchange for rewards of the `Treasure In The Blue` event? I can send you to the Prize Center. If I just sent you to somewhere, you need to wait 3 minutes to use");
                            dialog.Text("~the teleporter again, since there are too many people. So, where do you want to go?");
                            dialog.Option("The~Prize~Center.", 1);
                            dialog.Option("Twin~City.", 2);
                            dialog.Option("I`m~just~passing~by.", 0xff);
                            dialog.Avatar(14);
                            dialog.Send();
                            break;
                        case 1:
                            client.Entity.Teleport(19199, 70, 63);
                            break;

                        case 2:
                            client.Entity.Teleport(1002, 410, 354);
                            break;
                    }
                    break;

                case 9651:
                    switch (npcRequest.OptionID)
                    {
                        case 0:
                            dialog.Text("Hello! You want to exchange for rewards of the `Treasure In The Blue` event? I can send you to the Prize Center. If I just sent you to somewhere, you need to wait 3 minutes to use");
                            dialog.Text("~the teleporter again, since there are too many people. So, where do you want to go?");
                            dialog.Option("The~Prize~Center.", 1);
                            dialog.Option("Twin~City.", 2);
                            dialog.Option("I`m~just~passing~by.", 0xff);
                            dialog.Avatar(14);
                            dialog.Send();
                            break;

                        case 1:
                            client.Entity.Teleport(19199, 70, 63);
                            break;

                        case 2:
                            client.Entity.Teleport(1002, 410, 354);
                            break;
                    }
                    break;

                case 9653:
                    switch (npcRequest.OptionID)
                    {
                        case 0:
                            dialog.Text("Hello! You want to exchange for rewards of the `Treasure In The Blue` event? I can send you to the Prize Center. If I just sent you to somewhere, you need to wait 3 minutes to use");
                            dialog.Text("~the teleporter again, since there are too many people. So, where do you want to go?");
                            dialog.Option("The~Prize~Center.", 1);
                            dialog.Option("Twin~City.", 2);
                            dialog.Option("I`m~just~passing~by.", 0xff);
                            dialog.Avatar(14);
                            dialog.Send();
                            break;

                        case 1:
                            client.Entity.Teleport(19199, 70, 63);
                            break;

                        case 2:
                            client.Entity.Teleport(1002, 410, 354);
                            break;
                    }
                    break;
                case 9622:
                    switch (npcRequest.OptionID)
                    {
                        case 0:
                            dialog.Text("Hello! You want to exchange for rewards of the `Treasure In The Blue` event? I can send you to the Prize Center. If I just sent you to somewhere, you need to wait 3 minutes to use");
                            dialog.Text("~the teleporter again, since there are too many people. So, where do you want to go?");
                            dialog.Option("The~Prize~Center.", 1);
                            dialog.Option("Twin~City.", 2);
                            dialog.Option("I`m~just~passing~by.", 0xff);
                            dialog.Avatar(14);
                            dialog.Send();
                            break;
                        case 1:
                            client.Entity.Teleport(19199, 70, 63);
                            break;

                        case 2:
                            client.Entity.Teleport(1002, 410, 354);
                            break;
                    }
                    break;

                case 9621:
                    switch (npcRequest.OptionID)
                    {
                        case 0:
                            dialog.Text("Hello! You want to exchange for rewards of the `Treasure In The Blue` event? I can send you to the Prize Center. If I just sent you to somewhere, you need to wait 3 minutes to use");
                            dialog.Text("~the teleporter again, since there are too many people. So, where do you want to go?");
                            dialog.Option("The~Prize~Center.", 1);
                            dialog.Option("Twin~City.", 2);
                            dialog.Option("I`m~just~passing~by.", 0xff);
                            dialog.Avatar(14);
                            dialog.Send();
                            break;

                        case 1:
                            client.Entity.Teleport(19199, 70, 63);
                            break;

                        case 2:
                            client.Entity.Teleport(1002, 410, 354);
                            break;
                    }
                    break;

                case 9620:
                    switch (npcRequest.OptionID)
                    {
                        case 0:
                            dialog.Text("Hello! You want to exchange for rewards of the `Treasure In The Blue` event? I can send you to the Prize Center. If I just sent you to somewhere, you need to wait 3 minutes to use");
                            dialog.Text("~the teleporter again, since there are too many people. So, where do you want to go?");
                            dialog.Option("The~Prize~Center.", 1);
                            dialog.Option("Twin~City.", 2);
                            dialog.Option("I`m~just~passing~by.", 0xff);
                            dialog.Avatar(14);
                            dialog.Send();
                            break;

                        case 1:
                            client.Entity.Teleport(19199, 70, 63);
                            break;

                        case 2:
                            client.Entity.Teleport(1002, 410, 354);
                            break;
                    }
                    break;
                case 9619:
                    switch (npcRequest.OptionID)
                    {
                        case 0:
                            dialog.Text("Hello! You want to exchange for rewards of the `Treasure In The Blue` event? I can send you to the Prize Center. If I just sent you to somewhere, you need to wait 3 minutes to use");
                            dialog.Text("~the teleporter again, since there are too many people. So, where do you want to go?");
                            dialog.Option("The~Prize~Center.", 1);
                            dialog.Option("Twin~City.", 2);
                            dialog.Option("I`m~just~passing~by.", 0xff);
                            dialog.Avatar(14);
                            dialog.Send();
                            break;

                        case 1:
                            client.Entity.Teleport(19199, 70, 63);
                            break;

                        case 2:
                            client.Entity.Teleport(1002, 410, 354);
                            break;
                    }
                    break;
                #endregion
                #region Treasure In Blue
                case 4657:
                    dialog.Avatar(0);
                    switch (npcRequest.OptionID)
                    {
                        case 0:
                            if (!Kernel.TreasureinBlue)
                            {
                                dialog.Text("Hey! Have you ever heard the Proud Sea? Yeah, I mean the place where lots of pirates` ships sank and treasures lost. Well, our ship will be at sea at and 20:00-21:00, Every Saturday - Sunday - Monday - Tuesday - Wednesday.");
                                dialog.Text("~Want to join us to hunt treasures? I promise that will be an unforgettable adventure. Moreover, you can win great rewards, if you find us the treasures. I await your decision!");
                                dialog.Option("Treasure~hunting?", 5);
                                dialog.Option("What~are~the~rewards?", 3);
                                dialog.Option("I`ll~think~it~over.", 0xff);
                                dialog.Send();
                                break;
                            }
                            dialog.Text("Ladies and gentlemen, the `Treasure In The Blue` has started! No matter you are male or female, old or young, if you have interested in treasure hunting or pirates and have reached,");
                            dialog.Text("~Level 80, sign up with me for a sea adventure! Rewards? Of course!");
                            dialog.Option("Send~me~to~the~Proud~Sea!", 1);
                            dialog.Option("Treasure~hunting?", 5);
                            dialog.Option("What~are~the~rewards?", 3);
                            dialog.Option("I`ll~think~it~over.", 0xff);
                            dialog.Send();
                            break;

                        case 1:
                            dialog.Text("It seems you have made up the mind. Wait, have you put away all the valuables? You know, the Proud Sea is so dangerous that you wouldn`t know what strong enemies you may meet. So, I suggest you recheck your inventory.");
                            dialog.Option("Don`t~worry.~I`m~ready.", 2);
                            dialog.Option("I`ll~be~back~soon.", 0xff);
                            dialog.Send();
                            break;

                        case 2:
                            client.Entity.RemoveFlag(MsgUpdate.Flags.Ride);
                            client.Entity.Teleport(3071, 201, 79);
                            break;

                        case 3:
                            dialog.Text("Trust me, you will be more than satisfied with the rewards. I can take some examples. When you exchange the Gold Coin with Mammon Envoy in the Prize Center, you`ll receive a Small");
                            dialog.Text("~Lottery Ticket and have a chance to get a rare mount armor. For the Silver Coin, you can get an Endurance Book and a small gift. When you exchange the Copper Coin, you`ll receive a");
                            dialog.Text("~mysterious gift. Interested? You`d better be quick, since the rewards are limited.");
                            dialog.Option("What~do~you~mean~limited?", 4);
                            dialog.Send();
                            break;

                        case 4:
                            dialog.Text("Eh... You know we are a small team with limited human resources, so we accept Gold Coins exchange 100 times at most; Silver Coins exchange 200 times at most and Copper Coins exchange");
                            dialog.Text("~400 times at most. When all the rewards are taken or it is 1 hour after the event time, we won`t accept any exchange. Hope you get what you like!");
                            dialog.Option("I~know,~time~is~money.", 0xff);
                            dialog.Send();
                            break;

                        case 5:
                            dialog.Text("Our ship will send treasure hunters to the Proud Sea at 12:30-13:29 and 20:30-21:29, Monday - Saturday. If you have reached Level 80, I`d be glad to count you in. Join our `Treasure In The Blue` adventure!");
                            dialog.Option("What?~`Treasure~In~The~Blue`?", 6);
                            dialog.Send();
                            break;

                        case 6:
                            dialog.Text("Alas... That`s what I want, but you came too late and all the gifts have been claimed. So, come earlier in the next hour!");
                            dialog.Option("What~are~the~treasures?", 7);
                            dialog.Send();
                            break;

                        case 7:
                            dialog.Text("Stop kidding me! You don`t bring any Gold Coins with you. Do I look like a fool?");
                            dialog.Option("Special~sea~monsters?", 8);
                            dialog.Send();
                            break;

                        case 8:
                            dialog.Text("Really? You have the Silver Coin? If you give it to me, you`ll receive an Endurance Book. Not enough? How about adding a Weapon Accessory Pack or a Mount Armor?");
                            dialog.Text("~So, what do you say? Deal?");
                            dialog.Option("I`ll~think~it~over.", 9);
                            dialog.Send();
                            break;

                        case 9:
                            dialog.Text("Mammon Envoy is in the Prize Center and he is my partner. You can find any one of the 8 PC Teleporters in the Proud Sea to send you there.");
                            dialog.Text("~If you just returned from the Prize Center, you need to wait 3 minutes to go there again. Did I miss anything?");
                            dialog.Option("Any~tips?", 10);
                            dialog.Send();
                            break;

                        case 10:
                            dialog.Text("Let me see... Yeah, I mentioned that you can get coins from other treasure hunters. Whereas, you may be the target of others, too. Though no PK point will be counted in the Proud Sea,");
                            dialog.Text("~the items in your inventory may drop, including the coins, if you were killed. Take care!");
                            dialog.Option("Sure,~I~will.", 0xff);
                            dialog.Send();
                            break;
                    }
                    break;
                #endregion
                #region TreasureReward
                case 9623:
                    switch (npcRequest.OptionID)
                    {
                        case 0:
                            {
                                dialog.Text("Welcome to the Prize Center! Did you bring the treasure we want? So, which kind of coins you want to exchange, the Gold, Silver or the Copper?");
                                dialog.Option("Gold.~(Remain:" + Kernel.GoldCoins + ")", 1);
                                dialog.Option("Silver.(Remain:" + Kernel.SilverCoins + ")", 2);
                                dialog.Option("Copper.(Remain:" + Kernel.CoperCoins + ")", 3);
                                dialog.Option("Send~me~to~Twin~City.", 4);
                                dialog.Option("I`ll~think~it~over.", 0xff);
                                dialog.Avatar(60);
                                dialog.Send();
                                break;
                            }
                        case 1:
                            {
                                if (Kernel.GoldCoins == 0)
                                {
                                    dialog.Text("OH,Sorry but i dont need GoldCoins any More sorry");
                                    dialog.Option("Oh,my god", 255);
                                    dialog.Send();
                                    break;
                                }
                                dialog.Text("Really? You got a Gold Coin? That`s great! So, are you sure you want to exchange now?  [5.000.000] ConquerPoints & 5 [BrightStarStone]");
                                dialog.Option("Yeah,~please!", 5);
                                dialog.Option("i want InventorySpace(5)", 0xff);
                                dialog.Avatar(60);
                                dialog.Send();
                                break;
                            }
                        case 2:
                            {
                                if (Kernel.SilverCoins == 0)
                                {
                                    dialog.Text("OH,Sorry but i dont need SilverCoins any More sorry");
                                    dialog.Option("Oh,my god", 255);
                                    dialog.Send();
                                    break;
                                }
                                dialog.Text("Are you sure you want to exchange the Silver Coin, now? You`ll receive a gift [3.000.000] ConquerPoints & 2 [BrightStarStone]");
                                dialog.Option("Yeah,~please!", 6);
                                dialog.Option("i want InventorySpace(3)", 0xff);
                                dialog.Avatar(60);
                                dialog.Send();
                                break;
                            }
                        case 3:
                            {
                                if (Kernel.CoperCoins == 0)
                                {
                                    dialog.Text("OH,Sorry but i dont need CoperCoins any More sorry");
                                    dialog.Option("Oh,my god", 255);
                                    dialog.Send();
                                    break;
                                }
                                dialog.Text("You have a Copper Coin, right? Let me see what you can get. Oh, here. You`ll receive a gift [5.000.000] ConquerPoints & 5 [TwilightStarStone]");
                                dialog.Option("Yeah,~please!", 7);
                                dialog.Option("i want InventorySpace(5) ?", 0xff);
                                dialog.Avatar(60);
                                dialog.Send();
                                break;
                            }
                        case 4:
                            {
                                client.Entity.Teleport(1002, 410, 354);
                                break;
                            }
                        case 5:
                            {
                                if (client.Inventory.Count < 35)
                                {
                                    if (client.Inventory.Contains(711609, 1))
                                    {
                                        Kernel.GoldCoins -= 1;
                                        client.Inventory.Remove(711609, 1);
                                        client.Entity.ConquerPoints += 3000000;
                                        client.Inventory.Add(3009001, 0, 5, false);
                                        client.Send(new NpcReply(NpcReply.MessageBox, "Congratulations You Got [3.000.000] ConquerPoints & 5 [BrightStarStone] For Exchange GoldCoin!"));
                                    }
                                    else
                                    {
                                        dialog.Text("Are you kidding? You don`t have the Gold Coin we want. It isn`t a right place to play jokes, okay?");
                                        dialog.Option("Sorry,~bye!", 0xff);
                                        dialog.Avatar(60);
                                        dialog.Send();
                                    }
                                }
                                break;
                            }
                        case 6:
                            {
                                if (client.Inventory.Count < 35)
                                {
                                    if (client.Inventory.Contains(711610, 1))
                                    {
                                        Kernel.SilverCoins -= 1;
                                        client.Inventory.Remove(711610, 1);
                                        client.Entity.ConquerPoints += 1500000;
                                        client.Inventory.Add(3009001, 0, 2, false);
                                        client.Send(new NpcReply(NpcReply.MessageBox, "Congratulations You Got [1.500.000] ConquerPoints & 2 [BrightStarStone] For Exchange SilverCoins!"));
                                    }
                                    else
                                    {
                                        dialog.Text("Sorry, but I can`t find it in your inventory. Did you lose the Silver Coin somewhere? ");
                                        dialog.Option("Oh,~no!", 0xff);
                                        dialog.Avatar(60);
                                        dialog.Send();
                                    }
                                }
                                break;
                            }
                        case 7:
                            {
                                if (client.Inventory.Count < 35)
                                {
                                    if (client.Inventory.Contains(711611, 1))
                                    {
                                        Kernel.CoperCoins -= 1;
                                        client.Inventory.Remove(711611, 1);
                                        client.Entity.ConquerPoints += 800000;
                                        client.Inventory.Add(3009000, 0, 5, false);
                                        client.Send(new NpcReply(NpcReply.MessageBox, "Congratulations You Got [800.000] ConquerPoints & 5 [TwilightStarStone] For Exchange CoperCoins!"));
                                    }
                                    else
                                    {
                                        dialog.Text("Stop kidding me, okay? You don`t have any Copper Coins with you. A hero wouldn`t try to cheat someone!");
                                        dialog.Option("Sorry,~bye!", 0xff);
                                        dialog.Avatar(60);
                                        dialog.Send();
                                    }
                                }
                                break;
                            }
                    }
                    break;
                #endregion
                #endregion
وبعدين نعمل بحث عن
C#:
    public sealed class Kernel
وضيف فيه الكود دا
C#:
        public static bool TreasureinBlue = false;
        public static byte GoldCoins = 100;
        public static byte SilverCoins = 150;

        public static byte CoperCoins = 200;
وبعدين نعمل بحث عن
C#:
 public static readonly System.Collections.Generic.List<ulong> NotReady
وضيف تحته الكود دا
C#:
            19199,
وبعدين نعمل بحث عن
C#:
        public static readonly System.Collections.Generic.List<ushort> PKForbiddenMaps
وضيف تحته الكود دا
C#:
            19199,
وبعدين نعمل بحث عن
C#:
      private unsafe void BuffersCallback
وضيف تحته الكود دا
C#:
            #region Treasure in Blue
            if (Now64.DayOfWeek == DayOfWeek.Saturday || Now64.DayOfWeek == DayOfWeek.Sunday || Now64.DayOfWeek == DayOfWeek.Monday || Now64.DayOfWeek == DayOfWeek.Wednesday || Now64.DayOfWeek == DayOfWeek.Thursday)
            {
                if ((Now64.Hour == 20 && Now64.Minute == 0))
                {
                    {
                        if (client.Entity.MapID == 8881 || client.Entity.MapID == 8880 || client.Entity.MapID == 1858 || client.Entity.MapID == 10137 || client.Entity.MapID == 3999)
                            return;
                        if (!client.InQualifier() && client.PlayRouletteUID == 0 && client.Entity.MapID != 10137 && client.Map.BaseID != 6001 && client.Map.BaseID != 3399 && client.Map.BaseID != 3999 && client.Map.BaseID != 1005 && client.Map.BaseID != 1004 && client.Map.BaseID != 1036 && client.Map.BaseID != 3055 && client.Map.BaseID != 3846 && client.Map.BaseID != 6000 && !client.Entity.Dead)
                        {
                            object[] name = new object[] { "Treasure in Blue has begun! Go to Twin City to signup at SquidwardOctopus!" };
                            Kernel.SendWorldMessage(new Message(string.Concat(name), "ALLUSERS", "Treasure Blue", System.Drawing.Color.Red, 2500), Program.GamePool);
                            foreach (var clients in Program.GamePool)
                                client.MessageBox("Treasure in Blue has begun! Would you like to join?",
                                p => { p.Entity.Teleport(1002, 371, 364); }, null);
                            Kernel.TreasureinBlue = true;
                            Kernel.CoperCoins = 200;
                            Kernel.GoldCoins = 100;
                            Kernel.SilverCoins = 150;
                        }
                    }
                }
            }
            if (Now64.DayOfWeek == DayOfWeek.Saturday || Now64.DayOfWeek == DayOfWeek.Sunday || Now64.DayOfWeek == DayOfWeek.Monday || Now64.DayOfWeek == DayOfWeek.Wednesday || Now64.DayOfWeek == DayOfWeek.Thursday)
            {
                if ((Now64.Hour == 21 && Now64.Minute == 0))
                {
                    foreach (var clients in Program.Values)
                    {
                        if (client.Entity.MapID == 8881 || client.Entity.MapID == 8880 || client.Entity.MapID == 1858 || client.Entity.MapID == 10137 || client.Entity.MapID == 3999)
                            return;
                        if (!client.InQualifier() && client.PlayRouletteUID == 0 && client.Entity.MapID != 10137 && client.Map.BaseID != 6001 && client.Map.BaseID != 3399 && client.Map.BaseID != 3999 && client.Map.BaseID != 1005 && client.Map.BaseID != 1004 && client.Map.BaseID != 1036 && client.Map.BaseID != 3055 && client.Map.BaseID != 3846 && client.Map.BaseID != 6000 && !client.Entity.Dead)
                        {
                            Game.Entity.name = new object[] { "Treasure in Blue has been closed. Please try next time!" };
                            Kernel.SendWorldMessage(new Message(string.Concat(Game.Entity.name), "ALLUSERS", "[Treasure in Blue]", System.Drawing.Color.Red, 2500), Program.GamePool);
                            Kernel.TreasureinBlue = false;
                            {
                                if (client.Entity.MapID == 3071)
                                {
                                    client.Entity.Teleport(1002, 410, 354);
                                }
                            }
                        }
                    }
                }
            }
            #endregion
ونضيف الكود دا فى القاعدة تابل Map
C#:
19199    4006    7    0
وبكدا نكون ضيفنا الكويستة وكمان ضيفنا المابة بتاعتها
ودلوقتى لو عاوز تعدل على الجوائز بتاعتها
اعمل بحث عن الكود دا

C#:
                                        client.Inventory.Remove(711609, 1);
تحته على طول هتلاقى الكود دا
C#:
                                        client.Entity.ConquerPoints += 3000000;
3000000 دا عدد الكبس اللى هياخده لم يسلم الكوينز اللى معاه
عدل بقى على الرقم دا باللى انت عاوزه

 
التعديل الأخير:

ЄⱢ-₭ᴓɄ₥Ɏ 亗

.:: المدير العام ::.
طاقم الإدارة
الإدارة العليا
معلومات ЄⱢ-₭ᴓɄ₥Ɏ 亗
إنضم
16 يناير 2020
المشاركات
10,055
مستوى التفاعل
10,003
النقاط
10,112
العمر
30
الإقامة
Egypt
الموقع الالكتروني
www.tmxor.com
هوا دا الكلام المظبوط

عاش يا فنان

وتسلم ايدك ومجهودك
 

saeedshaarawy

.:: المدير العام ::.
طاقم الإدارة
الإدارة العليا
معلومات saeedshaarawy
إنضم
4 فبراير 2020
المشاركات
512
مستوى التفاعل
1,005
النقاط
2,000
الإقامة
المقطم - القاهرة - مصر
Facebook
saeedshaarawy
Twitter
saeed_shaarawy

ЄⱢ-₭ᴓɄ₥Ɏ 亗

.:: المدير العام ::.
طاقم الإدارة
الإدارة العليا
معلومات ЄⱢ-₭ᴓɄ₥Ɏ 亗
إنضم
16 يناير 2020
المشاركات
10,055
مستوى التفاعل
10,003
النقاط
10,112
العمر
30
الإقامة
Egypt
الموقع الالكتروني
www.tmxor.com

Users Who Are Viewing This الموضوع (Users: 0, Guests: 1)

من نحن ؟؟

منتـدى تيم اكسور - TeamXor : منتدى عربي يقدم شروحات حصرية لتطوير المواقع و تعليم التصميم والبرمجه و يهتم بتطوير لعبة كونكر. ..

أعلى