Conquer Universe
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

[NPC] Trocar runas (Melting)

Ir para baixo

[NPC] Trocar runas (Melting) Empty [NPC] Trocar runas (Melting)

Mensagem por Indio Qua 16 Jun 2021, 20:37

Boa noite em breve vou começar a trazer alguns conteúdos para o fórum!
Hoje eu estou trazendo um código para trocar runas em um item especifico você pode pegar o código e também adaptar para como você quiser!
Funciona da seguinte maneira '' você tem 1 runa que não quer usar, você pode trocar em uma caixa nessa caixa ela te da prêmios aleatórios''

Código:
#region Runas Melting
                    case 9624:
                        {
                            switch (npcRequest.OptionID)
                            {
                                case 0:
                                    {
                                        dialog.Text("New Melting Rare Rune skill Prize [Anima P7 P8 P9 P10 -- Stone + 4 5 6 -- CPs 750k -- 1KK CPs ]");
                                        dialog.Option("Barrier9.", 1);
                                        dialog.Option("Sanctity9.", 2);
                                        dialog.Option("FireBlast9.", 3);
                                        dialog.Option("Serenity9.", 4);
                                        dialog.Option("Wonder9.", 5);
                                        dialog.Option("SoulChant9.", 6);
                                        dialog.Option("WideSwipe9.", 7);
                                        dialog.Option("Nirvana9.", 8);
                                        dialog.Option("Sharpness9.", 9);
                                        dialog.Option("Evocation9.", 10);
                                        dialog.Option("Overwhelm9.", 11);
                                        dialog.Option("Judgment9.", 12);
                                        dialog.Option("TidalWave9.", 13);
                                        dialog.Option("DeadlySight9.", 14);
                                        dialog.Option("TacitStrike9.", 15);
                                        dialog.Option("Quench9.", 16);
                                        dialog.Option("BloodFeast9.", 17);
                                        dialog.Option("LifeDrain9.", 18);
                                        dialog.Option("ReverseMagic9.", 19);
                                        dialog.Option("DivineShield9.", 20);
                                        dialog.Option("Deterrence9.", 21);
                                        dialog.Option("NatureChant9.", 22);
                                        dialog.Option("JusticeGuard9.", 23);
                                        dialog.Option("SurgingForce9.", 24);
                                        dialog.Option("MiracleTouch9.", 25);
                                        dialog.Option("CurseBlock9.", 26);
                                        dialog.Option("UniversalShield9.", 27);
                                        dialog.Option("TortoiseSmasher9.", 28);
                                        dialog.Option("I`ll~think~it~over.", 255);
                                        dialog.Avatar(60);
                                        dialog.Send();
                                        break;
                                    }

                                case 1:
                                    {
                                        if (client.Inventory.Contains(4031609, 1))
                                        {


                                            client.Inventory.Remove(4031609, 1);
                                           
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For Barrier9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 Barrier9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the Barrier9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }

                                case 2:
                                    {
                                        if (client.Inventory.Contains(4032009, 1))
                                        {


                                            client.Inventory.Remove(4032009, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For Sanctity9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 Sanctity9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the Sanctity9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 3:
                                    {
                                        if (client.Inventory.Contains(4032109, 1))
                                        {


                                            client.Inventory.Remove(4032109, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For FireBlast9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 FireBlast9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the FireBlast9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 4:
                                    {
                                        if (client.Inventory.Contains(4032209, 1))
                                        {


                                            client.Inventory.Remove(4032209, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For Serenity9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 Serenity9!!!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the Serenity9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 5:
                                    {
                                        if (client.Inventory.Contains(4032309, 1))
                                        {


                                            client.Inventory.Remove(4032309, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For Wonder9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 Wonder9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the Wonder9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 6:
                                    {
                                        if (client.Inventory.Contains(4032409, 1))
                                        {


                                            client.Inventory.Remove(4032409, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For SoulChant9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 SoulChant9!!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the SoulChant9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 7:
                                    {
                                        if (client.Inventory.Contains(4032509, 1))
                                        {


                                            client.Inventory.Remove(4032509, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For WideSwipe9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 WideSwipe9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the WideSwipe9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 8:
                                    {
                                        if (client.Inventory.Contains(4032609, 1))
                                        {


                                            client.Inventory.Remove(4032609, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For Nirvana9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 Nirvana9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the Nirvana9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 9:
                                    {
                                        if (client.Inventory.Contains(4032709, 1))
                                        {


                                            client.Inventory.Remove(4032709, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For Sharpness9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 Sharpness9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the Sharpness9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 10:
                                    {
                                        if (client.Inventory.Contains(4032809, 1))
                                        {


                                            client.Inventory.Remove(4032809, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For Evocation9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 Evocation9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the Evocation9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 11:
                                    {
                                        if (client.Inventory.Contains(4032909, 1))
                                        {


                                            client.Inventory.Remove(4032909, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For Overwhelm9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 Overwhelm9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the Overwhelm9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 12:
                                    {
                                        if (client.Inventory.Contains(4033009, 1))
                                        {


                                            client.Inventory.Remove(4033009, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For Judgment9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 Judgment9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the Judgment9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 13:
                                    {
                                        if (client.Inventory.Contains(4033109, 1))
                                        {


                                            client.Inventory.Remove(4033109, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For TidalWave9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 TidalWave9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the TidalWave9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 14:
                                    {
                                        if (client.Inventory.Contains(4033309, 1))
                                        {


                                            client.Inventory.Remove(4033309, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For DeadlySight9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 DeadlySight9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the DeadlySight9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 15:
                                    {
                                        if (client.Inventory.Contains(4033409, 1))
                                        {


                                            client.Inventory.Remove(4033409, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For TacitStrike9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 TacitStrike9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the TacitStrike9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 16:
                                    {
                                        if (client.Inventory.Contains(4033609, 1))
                                        {


                                            client.Inventory.Remove(4033609, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For Quench9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 Quench9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the Quench9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 17:
                                    {
                                        if (client.Inventory.Contains(4033709, 1))
                                        {


                                            client.Inventory.Remove(4033709, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For BloodFeast9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 BloodFeast9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the BloodFeast9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 18:
                                    {
                                        if (client.Inventory.Contains(4033809, 1))
                                        {


                                            client.Inventory.Remove(4033809, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For LifeDrain9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 LifeDrain9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the LifeDrain9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 19:
                                    {
                                        if (client.Inventory.Contains(4033909, 1))
                                        {


                                            client.Inventory.Remove(4033909, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For ReverseMagic9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 ReverseMagic9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the ReverseMagic9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 20:
                                    {
                                        if (client.Inventory.Contains(4034009, 1))
                                        {


                                            client.Inventory.Remove(4034009, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For DivineShield9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 DivineShield9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the DivineShield9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 21:
                                    {
                                        if (client.Inventory.Contains(4034109, 1))
                                        {


                                            client.Inventory.Remove(4034109, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For Deterrence9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 Deterrence9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the Deterrence9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 22:
                                    {
                                        if (client.Inventory.Contains(4034209, 1))
                                        {


                                            client.Inventory.Remove(4034209, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For NatureChant9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 NatureChant9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the NatureChant9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 23:
                                    {
                                        if (client.Inventory.Contains(4034309, 1))
                                        {


                                            client.Inventory.Remove(4034309, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For JusticeGuard9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 JusticeGuard9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the JusticeGuard9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 24:
                                    {
                                        if (client.Inventory.Contains(4034409, 1))
                                        {


                                            client.Inventory.Remove(4034409, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For SurgingForce9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 SurgingForce9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the SurgingForce9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 25:
                                    {
                                        if (client.Inventory.Contains(4034509, 1))
                                        {


                                            client.Inventory.Remove(4034509, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For MiracleTouch9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 MiracleTouch9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the MiracleTouch9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 26:
                                    {
                                        if (client.Inventory.Contains(4034609, 1))
                                        {


                                            client.Inventory.Remove(4034609, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For CurseBlock9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 CurseBlock9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the CurseBlock9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 27:
                                    {
                                        if (client.Inventory.Contains(4034709, 1))
                                        {


                                            client.Inventory.Remove(4034709, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For UniversalShield9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 UniversalShield9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the UniversalShield9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 28:
                                    {
                                        if (client.Inventory.Contains(4034809, 1))
                                        {


                                            client.Inventory.Remove(4034809, 1);
                                            client.Inventory.Add(3303434, 0, 1);
                                            client.MessageBox("You got Box Melting For TortoiseSmasher9");
                                            Kernel.SendWorldMessage(new MsgTalk("Congratulations! [ " + client.Player.Name + " ] claimed [ BoxMelting ] 1 TortoiseSmasher9!!", System.Drawing.Color.Black, MsgTalk.Tip), Server.GamePool);



                                            client.Player.Update(MsgName.Effect, "zf2-e290", true);

                                        }
                                        else
                                        {
                                            dialog.Text(" You don`t have the TortoiseSmasher9 ");
                                            dialog.Option("Sorry,~bye!", 255);
                                            dialog.Avatar(60);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                            }
                            break;
                        }
                    #endregion

Agora o codigo de quando usar o item:

Código:
# Caixa MeltingRunas
                    case 3303434:
                        {
                            client.Inventory.Remove(3303434, 1);
                            Random R = new Random();
                            int Nr = R.Next(1, 11);
                            if (Nr == 1)
                            {
                                client.Inventory.Add(4200007, 0, 1);
                            }


                            if (Nr == 2)
                            {
                                client.Inventory.Add(4200008, 0, 1);

                            }

                            if (Nr == 3)
                            {
                                client.Inventory.Add(4200009, 0, 1);//


                            }
                            if (Nr == 4)
                            {
                                client.Inventory.Add(730004, 4, 1);
                            }

                            if (Nr == 5)
                            {
                                client.Inventory.Add(730004, 4, 3);
                            }
                            if (Nr == 6)
                            {
                                client.Inventory.Add(730005, 5, 1);)
                            }

                            if (Nr == 7)
                            {
                                client.Inventory.Add(730005, 5, 2);
                            }
                            if (Nr == 8)
                            {
                                client.Inventory.Add(4200010, 0, 1);
                            }
                            if (Nr == 9)
                            {
                                client.Player.ConquerPoints += 750000;
                            }
                            if (Nr == 10)
                            {
                                client.Player.ConquerPoints += 1000000;
                            }



                            break;
                        }
                    #endregion
Obs: Conteúdo retirado de fórum arabe!
Indio
Indio
Knight
Knight

Mensagens : 3
Likes : 0
Data de inscrição : 04/06/2021
Idade : 30

Ir para o topo Ir para baixo

Ir para o topo


 
Permissões neste sub-fórum
Não podes responder a tópicos