Register for your free account! | Forgot your password?

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

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

Advertisement



[Help] MyFirstNPC , it gives me an error :/

Discussion on [Help] MyFirstNPC , it gives me an error :/ within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2010
Posts: 85
Received Thanks: 0
[Help] MyFirstNPC , it gives me an error :/

Heya, Well I tried to create a Pkp Decrease NPC.
its my first one but

Quote:
#region PkPointLowerer
case 37272:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello there, I can lower your pkpoints for some Cps"));
GC.AddSend(Packets.NPCLink("Decrease 100 pkpoints for 5000 cps", 1));
GC.AddSend(Packets.NPCLink("Decrease 1000 pkpoints for 50000 cps", 2));
}
else if (Control == 1 && GC.MyChar.PKPoints > 100)
{
if (GC.MyChar.CPs >= 5000)
{
GC.MyChar.CPs -= 5000;
GC.MyChar.PKPoints -= 100;
GC.AddSend(Packets.NPCSay("There you go"));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough CPs."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());


}
}

else if (Control == 2 && GC.MyChar.PKPoints > 1000)
{
if (GC.MyChar.CPs >= 50000)
{
GC.MyChar.CPs -= 50000;
GC.MyChar.PKPoints -= 1000;
GC.AddSend(Packets.NPCSay("There you go"));
GC.AddSend(Packets.NPCLink("Thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have enough CPs."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());


}
}
}
#endregion
Error : Error 1 Control cannot fall through from one case label ('case 37272:') to another C:\rikardo updated\PacketHandling\NPCDialog.cs 9959 29 NewestCOServer

Thanks in advance
HackProvider is offline  
Old 02/28/2011, 22:30   #2

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Add a break;
Kiyono is offline  
Thanks
1 User
Old 02/28/2011, 22:49   #3
 
elite*gold: 0
Join Date: Dec 2010
Posts: 85
Received Thanks: 0
im stupid xd thanks
HackProvider is offline  
Old 03/01/2011, 01:02   #4
 
elite*gold: 0
Join Date: Oct 2008
Posts: 7
Received Thanks: 1
Lol how long have we been looking at this, did you fix it on the laptop?

I just logged on to ya computer mate, trying to fix that bug to, but guess its already fixed...
thomastur is offline  
Reply


Similar Threads Similar Threads
MySro Error~>Microsoft Error Visual C++ Runtime...
08/18/2009 - SRO Private Server - 3 Replies
Hello, i have got a problem: http://image.cp-g.net/pics/4a8971bd15c0d.jpg. I have already installed Microsoft Visual C++ Runtime Library 2005 and after that i installed 2007. It didnīt work. Who can help me? thanks Alucard15



All times are GMT +1. The time now is 22:04.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.