|
You last visited: Today at 21:00
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.
02/22/2010, 13:40
|
#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?
|
|
|
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
>.<
|
|
|
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
|
|
|
|
02/22/2010, 23:23
|
#4
|
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
|
*** your brackets are terrible
|
|
|
02/22/2010, 23:31
|
#5
|
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
|
|
|
02/22/2010, 23:32
|
#6
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by -Shunsui-
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.
|
|
|
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.
|
|