Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 11:20

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



HelpMe m Coded NPC For GuildWinner aWARED

Discussion on HelpMe m Coded NPC For GuildWinner aWARED within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2010
Posts: 40
Received Thanks: 0
HelpMe m Coded NPC For GuildWinner aWARED

today imaked npc for guild winner award but in her code smaal worng im not know it pleasa alll help me that is code


pleas help me
Code:
#region Awarder
                case 108074:
                    {
                        if (Conquer_Online_Server.Game.ConquerStructures.Society.GuildWar.IsWar == false)
                        {
                            switch (npcRequest.OptionID)
                            {
                                case 0:
                                    {
                                        dialog.Text("Do you wish to enter the guild area?");
                                        dialog.Option("Yes.", 1);
                                        dialog.Option("Your guild won the guild war??", 2);
                                        dialog.Option("Just passing by.", 255);
                                        dialog.Send();
                                        break;
                                    }
                                case 2:
                                    {
                                        dialog.Text("Your guild Won the GuildWar?if so,you are rewarded with CPs and the special Aura.");
                                        dialog.Option("Yes.", 3);
                                        dialog.Option("Ah, sorry my guild lost.", 255);
                                        dialog.Send();
                                        break;
                                    }
                                case 3:
                                    {
                                        if (Conquer_Online_Server.Game.ConquerStructures.Society.GuildWar.IsWar == false)
                                        {
                                            if (client.Guild.PoleKeeper)
                                            {
                                                if (client.AsMember.Rank == Conquer_Online_Server.Game.Enums.GuildMemberRank.GuildLeader)
                                                {
                                                    if (client.TopGuildLeader != 1)
                                                    {
                                                        Conquer_Online_Server.Database.EntityTable.TopGuildLeaderReset();
                                                        client.TopGuildLeader = 1;
                                                        client.Entity.AddFlag(Conquer_Online_Server.Network.GamePackets.Update.Flags.TopGuildLeader);
                                                        dialog.Text("Congratulation! You Win TopGuildLeader And 20,000 CPS And LordToken Item");
                                                        dialog.Option("Thank You", 255);
                                                        client.Inventory.Add(723467, 0, 1);
                                                        client.Entity.ConquerPoints += 20000;
                                                        dialog.Send();
                                                    }
                                                    else
                                                    {
                                                        dialog.Text("Sorry, but i already gave you the Reward!");
                                                        dialog.Option("Ok,Thanks.I Forget it", 255);
                                                        dialog.Send();

                                                    }
                                                }
                                                else if (client.AsMember.Rank == Conquer_Online_Server.Game.Enums.GuildMemberRank.DeputyLeader)
                                                {
                                                    if (client.TopDeputyLeader != 1)
                                                    {
                                                        Conquer_Online_Server.Database.EntityTable.TopDeputyLeaderReset();
                                                        client.TopDeputyLeader = 1;
                                                        client.Entity.AddFlag(Conquer_Online_Server.Network.GamePackets.Update.Flags.TopDeputyLeader);
                                                        dialog.Text("Congratulation! You Win TopDeputyLeader");
                                                        dialog.Option("Thank You", 255);
                                                        dialog.Send();
                                                    }
                                                    else
                                                    {
                                                        dialog.Text("Sorry, but i already gave you the Reward!");
                                                        dialog.Option("Ok,Thanks.I Forget it", 255);
                                                        dialog.Send();

                                                    }
                                                }
                                                else
                                                {
                                                    dialog.Text("You are not DeputyLeader Or GuildLeader.");
                                                    dialog.Option("Ok,Thanks", 255);
                                                    dialog.Send();

                                                }

                                            }
                                            else
                                            {
                                                dialog.Text("Sorry,you are not a winner!");
                                                dialog.Option("Ah..Ok i see.", 255);
                                                dialog.Send();
                                            }

                                        }
                                        else
                                        {
                                            dialog.Text("The guildwar is already on");
                                            dialog.Option("Ah..Ok i see.", 255);
                                            dialog.Send();
                                        }
                                        break;
                                    }
                                case 1:
                                    {
                                        client.Entity.Teleport(1038, 350, 350);
                                        break;
                                    }

                            }

                        }
                        else if (Conquer_Online_Server.Game.ConquerStructures.Society.GuildWar.IsWar == true)
                        {
                            switch (npcRequest.OptionID)
                            {
                                case 0:
                                    {
                                        dialog.Text("Do you wish to enter the guild arena?");
                                        dialog.Option("Yes.", 6);
                                        dialog.Option("Just passing by.", 255);
                                        dialog.Send();
                                        break;
                                    }
                                case 6:
                                    {
                                        Random R = new Random();
                                        int Nr = R.Next(1, 10);
                                        if (Nr == 1) //Random Spot 1
                                        {
                                            client.Entity.Teleport(1038, 351, 341);
                                        }
                                        if (Nr == 2) //Random Spot 2
                                        {
                                            client.Entity.Teleport(1038, 335, 345);
                                        }
                                        if (Nr == 3) //Random Spot 3
                                        {
                                            client.Entity.Teleport(1038, 309, 369);
                                        }
                                        if (Nr == 4) //Random Spot 4
                                        {
                                            client.Entity.Teleport(1038, 283, 340);
                                        }
                                        if (Nr == 5) //Random Spot 5
                                        {
                                            client.Entity.Teleport(1038, 310, 327);
                                        }
                                        if (Nr == 6) //Random Spot 6
                                        {
                                            client.Entity.Teleport(1038, 318, 297);
                                        }
                                        if (Nr == 7) //Random Spot 7
                                        {
                                            client.Entity.Teleport(1038, 347, 309);
                                        }
                                        if (Nr == 8) //Random Spot 8
                                        {
                                            client.Entity.Teleport(1038, 337, 320);
                                        }
                                        if (Nr == 9) //Random Spot 9
                                        {
                                            client.Entity.Teleport(1038, 309, 293);
                                        }
                                        if (Nr == 10) //Random Spot 10
                                        {
                                            client.Entity.Teleport(1038, 371, 300);
                                        }
                                        break;
                                    }


                            }

                        }
                        break;
                    }
                #endregion













All Coder Help Me Pleas
PePsI_MaN is offline  
Old 07/09/2011, 07:13   #2
 
N.I.G.H.T.M.A.R.E's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 110
Received Thanks: 13
You need edit all sourcer, not only add NPC! You need add in GameState.cs - EntityTable.cs !
N.I.G.H.T.M.A.R.E is offline  
Reply


Similar Threads Similar Threads
HelpME
04/22/2011 - Dekaron Private Server - 5 Replies
when I put the NonAgro and Vac in CE ok enter the game, do not take DC, when I attack a monster takes about 10 seconds i take DC, and how to avoid it stay in the game?
[WTS] Silkroad Website Templates - Coded/Not-Coded. With .PSD!
11/30/2009 - Silkroad Online Trading - 4 Replies
Examples : There Is NO Examples at the moment. Prices : Price for a full coded website, with a CMS - users can register, write comments. Admin panel included , easy write to news. - 60$. Included : PSD , all files, FREE WEB HOSTING - 3 months.
Helpme Ui.cfs
10/17/2009 - C9 - Continent of the Ninth - 0 Replies
who could upload the original Ui.cfs



All times are GMT +2. The time now is 11:20.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.