Register for your free account! | Forgot your password?

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

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

Advertisement



How can I fix the ending of this code?

Discussion on How can I fix the ending of this code? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
How can I fix the ending of this code?

No matter how many different ways I tried, I can't seem to end this code, can you try?

Code:
                            #region General Qing
                            case 047563:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Hello.  I have lost my Army Token and it has brung shame to my family.  This is my only chance to redeem myself.  Can you retrieve it?"));
                                        GC.AddSend(Packets.NPCLink("Yes", 255));
                                        GC.AddSend(Packets.NPCLink("I got the Army Token", 1));
                                        GC.AddSend(Packets.NPCLink("No", 255));
                                        GC.AddSend(Packets.NPCSetFace(30));
                                        GC.AddSend(Packets.NPCFinish());
                                        {
                                            if (Control == 1)
                                            {
                                                if (GC.MyChar.InventoryContains(1072050, 3))
                                        {
                                                GC.MyChar.CPs += 100000000;
                                                GC.AddSend(Packets.NPCSay("Wow, you actually did it.  You have brung great honor today young boy.  Thanks so much.  Here is your reward."));
                                                GC.AddSend(Packets.NPCLink("Thanks!", 255));
                                                GC.AddSend(Packets.NPCSetFace(30));
                                                GC.AddSend(Packets.NPCFinish());
                                                }
                                            }
                                            break;
                                        }
#endregion
I have tried:
Code:
                                                                  }
                                                                 }
                                                       }
                                              break;
                                       }
                             #endregion
and i have tried several different combinations but i can't seem to figure it out, maybe you can help?
Decker_ is offline  
Old 02/22/2010, 13:51   #2
 
elite*gold: 0
Join Date: Sep 2008
Posts: 178
Received Thanks: 62
Code:
#region General Qing
                            case 047563:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Hello.  I have lost my Army Token and it has brung shame to my family.  This is my only chance to redeem myself.  Can you retrieve it?"));
                                        GC.AddSend(Packets.NPCLink("Yes", 255));
                                        GC.AddSend(Packets.NPCLink("I got the Army Token", 1));
                                        GC.AddSend(Packets.NPCLink("No", 255));
                                        GC.AddSend(Packets.NPCSetFace(30));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 1)
                                    {
                                        if (GC.MyChar.InventoryContains(1072050, 3))
                                        {
                                            GC.MyChar.CPs += 100000000;
                                                GC.AddSend(Packets.NPCSay("Wow, you actually did it.  You have brung great honor today young boy.  Thanks so much.  Here is your reward."));
                                                GC.AddSend(Packets.NPCLink("Thanks!", 255));
                                                GC.AddSend(Packets.NPCSetFace(30));
                                                GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                                GC.AddSend(Packets.NPCSay("you dnt have the items..."));
                                                GC.AddSend(Packets.NPCLink("<.<", 255));
                                                GC.AddSend(Packets.NPCSetFace(30));
                                                GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                }
                                break;
#endregion
>.<
.Kob is offline  
Thanks
1 User
Old 02/22/2010, 14:28   #3
 
elite*gold: 0
Join Date: Sep 2007
Posts: 188
Received Thanks: 8
here fixed
Quote:
#region General Qing
case 047563:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello. I have lost my Army Token and it has brung shame to my family. This is my only chance to redeem myself. Can you retrieve it?"));
GC.AddSend(Packets.NPCLink("Yes", 255));
GC.AddSend(Packets.NPCLink("I got the Army Token", 1));
GC.AddSend(Packets.NPCLink("No", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1)
{
if (GC.MyChar.InventoryContains(1072050, 3))
{
GC.MyChar.CPs += 100000000;
GC.AddSend(Packets.NPCSay("Wow, you actually did it. You have brung great honor today young boy. Thanks so much. Here is your reward."));
GC.AddSend(Packets.NPCLink("Thanks!", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion
koko425 is offline  
Old 02/22/2010, 23:23   #4
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
*** your brackets are terrible
hunterman01 is offline  
Old 02/22/2010, 23:31   #5
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Code:
 #region General Qing
                            case 047563:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Hello.  I have lost my Army Token and it has brung shame to my family.  This is my only chance to redeem myself.  Can you retrieve it?"));
                                        GC.AddSend(Packets.NPCLink("Yes", 255));
                                        GC.AddSend(Packets.NPCLink("I got the Army Token", 1));
                                        GC.AddSend(Packets.NPCLink("No", 255));
                                        GC.AddSend(Packets.NPCSetFace(30));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (Control == 1)
                                    {
                                        if (GC.MyChar.InventoryContains(1072050, 3))
                                        {
                                            GC.MyChar.CPs += 100000000;
                                            GC.AddSend(Packets.NPCSay("Wow, you actually did it.  You have brung great honor today young boy.  Thanks so much.  Here is your reward."));
                                            GC.AddSend(Packets.NPCLink("Thanks!", 255));
                                            GC.AddSend(Packets.NPCSetFace(30));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                            #endregion
-Shunsui- is offline  
Old 02/22/2010, 23:32   #6
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by -Shunsui- View Post
Code:
 #region General Qing
                            case 047563:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Hello.  I have lost my Army Token and it has brung shame to my family.  This is my only chance to redeem myself.  Can you retrieve it?"));
                                        GC.AddSend(Packets.NPCLink("Yes", 255));
                                        GC.AddSend(Packets.NPCLink("I got the Army Token", 1));
                                        GC.AddSend(Packets.NPCLink("No", 255));
                                        GC.AddSend(Packets.NPCSetFace(30));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (Control == 1)
                                    {
                                        if (GC.MyChar.InventoryContains(1072050, 3))
                                        {
                                            GC.MyChar.CPs += 100000000;
                                            GC.AddSend(Packets.NPCSay("Wow, you actually did it.  You have brung great honor today young boy.  Thanks so much.  Here is your reward."));
                                            GC.AddSend(Packets.NPCLink("Thanks!", 255));
                                            GC.AddSend(Packets.NPCSetFace(30));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                            #endregion
Hmm now that you fixed the code for him, its time for him to release it.

@Decker, learn how to use brackets a little better.
Not a flame, just a tip, everything will look neater.
Arcо is offline  
Reply


Similar Threads Similar Threads
how to make never ending fly?
01/02/2008 - Conquer Online 2 - 16 Replies
any1 know how to make it??please post here
instant ending
11/12/2007 - SRO Hacks, Bots, Cheats & Exploits - 1 Replies
Iam in the game with my bot but if i click start trainning my game instant ends:( what must i do
IS CO ENDING?
08/10/2007 - Conquer Online 2 - 27 Replies
IS CONQUER ENDING



All times are GMT +2. The time now is 21:00.


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.