منتدي اكواد

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

Hassan Emprator 2020-02-20 06:50 PM

كويستت Treasure In Blue مقدمه من HassanEmprator
 

الكويتست مقدمه لي zonfor

يله نبدا الانبي سي اهو

كود PHP:

                #region Treasure In Blue
                #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(191997063);
                            break;

                        case 
2:
                            
client.Entity.Teleport(1002410354);
                            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(191997063);
                            break;

                        case 
2:
                            
client.Entity.Teleport(1002410354);
                            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(191997063);
                            break;

                        case 
2:
                            
client.Entity.Teleport(1002410354);
                            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(191997063);
                            break;

                        case 
2:
                            
client.Entity.Teleport(1002410354);
                            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(191997063);
                            break;

                        case 
2:
                            
client.Entity.Teleport(1002410354);
                            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(191997063);
                            break;

                        case 
2:
                            
client.Entity.Teleport(1002410354);
                            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(191997063);
                            break;

                        case 
2:
                            
client.Entity.Teleport(1002410354);
                            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(307120179);
                            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(1002410354);
                                break;
                            }
                        case 
5:
                            {
                                if (
client.Inventory.Count 35)
                                {
                                    if (
client.Inventory.Contains(7116091))
                                    {
                                        
Kernel.GoldCoins -= 1;
                                        
client.Inventory.Remove(7116091);
                                        
client.Entity.ConquerPoints += 3000000;
                                        
client.Inventory.Add(300900105false);
                                        
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(7116101))
                                    {
                                        
Kernel.SilverCoins -= 1;
                                        
client.Inventory.Remove(7116101);
                                        
client.Entity.ConquerPoints += 1500000;
                                        
client.Inventory.Add(300900102false);
                                        
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(7116111))
                                    {
                                        
Kernel.CoperCoins -= 1;
                                        
client.Inventory.Remove(7116111);
                                        
client.Entity.ConquerPoints += 800000;
                                        
client.Inventory.Add(300900005false);
                                        
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 

سيرش عا

كود PHP:

    public sealed class Kernel 

ضيف فيه

كود PHP:

        public static bool TreasureinBlue false;
        public static 
byte GoldCoins 100;
        public static 
byte SilverCoins 150;

        public static 
byte CoperCoins 200

سيرش عا

كود PHP:

 public static readonly System.Collections.Generic.List<ulongNotReady 

ضيف تحته

كود PHP:

            19199

سيرش عا

كود PHP:

        public static readonly System.Collections.Generic.List<ushortPKForbiddenMaps 

ضيف


كود PHP:

            19199

سيرش عا

كود PHP:

      private unsafe void BuffersCallback 

ضيف

كود PHP:

            #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 == && 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.Red2500), Program.GamePool);
                            foreach (var 
clients in Program.GamePool)
                                
client.MessageBox("Treasure in Blue has begun! Would you like to join?",
                                
=> { p.Entity.Teleport(1002371364); }, 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 == && 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.Red2500), Program.GamePool);
                            
Kernel.TreasureinBlue false;
                            {
                                if (
client.Entity.MapID == 3071)
                                {
                                    
client.Entity.Teleport(1002410354);
                                }
                            }
                        }
                    }
                }
            }
            
#endregion 

مابه

كود PHP:

19199    4006    7    0 

سلاممووزز




محمد ياسر 2020-02-20 06:51 PM

رد: كويستت Treasure In Blue مقدمه من HassanEmprator
 
عاش

zonfor 2020-02-20 08:44 PM

رد: كويستت Treasure In Blue مقدمه من HassanEmprator
 
شكرا جدا جدا يخويا هجربها اول مفتح بكرا باذن الله
+ دا انبي سي التاون بس ولا اي
ومكان تعديل هديه التسليم فين ف الكود
وشكرا مقدما كمان مره

محمد ياسر 2020-02-20 08:56 PM

رد: كويستت Treasure In Blue مقدمه من HassanEmprator
 
الكوسته كامله

ElSaher 2020-02-20 08:56 PM

رد: كويستت Treasure In Blue مقدمه من HassanEmprator
 
اقتباس:

المشاركة الأصلية كتبت بواسطة zonfor (المشاركة 29933)
شكرا جدا جدا يخويا هجربها اول مفتح بكرا باذن الله
+ دا انبي سي التاون بس ولا اي
ومكان تعديل هديه التسليم فين ف الكود
وشكرا مقدما كمان مره

دا كود تعديل الهديا

client.Entity.ConquerPoints += 3000000;

Hassan Emprator 2020-02-20 09:07 PM

رد: كويستت Treasure In Blue مقدمه من HassanEmprator
 
اقتباس:

المشاركة الأصلية كتبت بواسطة Hazem (المشاركة 29938)
الكوسته كامله

اها يحب الكوسه كامله مش تقلق
:D:D:D :D:D

افتح ماتركس وابحث ولو لاقيت كود ناقص يبقا بحقق :emoji3:


الساعة الآن 12:42 AM

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