Register for your free account! | Forgot your password?

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

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

Advertisement



201 erros in C# lol xD

Discussion on 201 erros in C# lol xD within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2010
Posts: 174
Received Thanks: 13
201 erros in C# lol xD

So ive started the npc for my 3rd rebirth quest, i have this so far (i think its right)

#region Jon the third rebirth NPC
case 5467:
{
if (Control ==0)
{
GC.AddSend(Packets.NPCSay("Hello young one, would you like to attempt the third rebirth quest? You need to be atleast level 140."));
GC.AddSend(Packets.NPCLink("Yes please!", 1));
GC.AddSend(Packets.NPCLink("Pfft no thanks, im not up for it.", 2));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
break;
}
#endregion

I add this then i added 5467 1200 2 0 1002 385 324 to the npcs.txt for the npc and when i go back into C# i check for errors and i get 8 errors... does anybody know why?

Also sorry i just checked and its gone down from 201 errors to 8 errors now for some reason...
2010mrsurfer is offline  
Old 07/26/2010, 12:44   #2
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
#region Jon the third rebirth NPC
case 5467:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello young one, would you like to attempt the third rebirth quest? You need to be atleast level 140."));
GC.AddSend(Packets.NPCLink("Yes please!", 1));
GC.AddSend(Packets.NPCLink("Pfft no thanks, im not up for it.", 2));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
} // This one closes this section of the dialog
break;
} // This closes the whole Dialog
#endregion

When you have opening { make sure you have closed them.

So case 7264:
{ < You open its here
if (Control == 0)
{ << Open it here

NPCFinish());
} < Close it here
break;
} < Close it here
.Beatz is offline  
Thanks
1 User
Old 07/26/2010, 12:57   #3
 
elite*gold: 0
Join Date: May 2010
Posts: 174
Received Thanks: 13
Ahhhh thats simple, ive been trying to fix it for ages, big thanks mattyc
2010mrsurfer is offline  
Old 07/26/2010, 15:05   #4
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
always make sure you got same { as }.
ex.
you got
case 292:
{//1
if (hehe = haha)
{//2

}//2
break;
}//1

for having 1 { and 1 } it should be:

case 292:
{//1

break;
}//1

For having 3, it should be:

case 292:
{//1
if (hehe = haha)
{//2
if (haha == hehe)
{//3

}//3
}//2
break;
}//1
Fish* is offline  
Thanks
1 User
Old 07/26/2010, 15:12   #5
 
elite*gold: 0
Join Date: May 2010
Posts: 174
Received Thanks: 13
Quote:
Originally Posted by grillmad View Post
always make sure you got same { as }.
ex.
you got
case 292:
{//1
if (hehe = haha)
{//2

}//2
break;
}//1

for having 1 { and 1 } it should be:

case 292:
{//1

break;
}//1

For having 3, it should be:

case 292:
{//1
if (hehe = haha)
{//2
if (haha == hehe)
{//3

}//3
}//2
break;
}//1
Thanks grill, ive made progress with this, ive got the start npc working and ive got a second npc sort of working, just a little confused on how to add a item into the players inventory, i also (think i did it right) edited a item in the items.txt and added it in the additem file as 8899 (is this right? changed some things around)
2010mrsurfer is offline  
Old 07/26/2010, 15:15   #6
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
GC.MyChar.AddItem(ID, +);
Fish* is offline  
Thanks
1 User
Old 07/26/2010, 15:26   #7
 
elite*gold: 0
Join Date: May 2010
Posts: 174
Received Thanks: 13
Thanks
2010mrsurfer is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[help] all my erros
10/28/2008 - CO2 Private Server - 4 Replies
if someone can help me :handsdown:
Wierd Erros Help PLZ!!!
02/02/2008 - Silkroad Online - 1 Replies
hey guyz i've just downloaded silkroad Private server and some wierd erro showed up like right afther i pressed start could any one help me...? tnx :(



All times are GMT +2. The time now is 16:36.


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.