Register for your free account! | Forgot your password?

You last visited: Today at 13:06

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

Advertisement



Help with Npc

Discussion on Help with Npc within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2008
Posts: 98
Received Thanks: 6
Question Help with Npc

Everytime when i put a Npc in my private server it says: Hi,i dont talk enything useful yet. my ID is 666. can anybody help me?
alex4war is offline  
Old 05/21/2010, 07:40   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,766
Received Thanks: 5,293
Make sure after you add the npc to press f5.
Arcо is offline  
Old 05/21/2010, 07:42   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,377
Also make sure that the coding you did in your server matches the case number for the npc (in that case 666)

... I'm assuming that lotf or w/e source you are using has the npcs coded in C# and isn't using .ini files or whatever for scripting?
pro4never is offline  
Old 05/21/2010, 11:13   #4
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
And make sure you dont put if (Control == 1) as the first control, but use if (Control == 0)
.Summer is offline  
Old 05/21/2010, 13:51   #5
 
elite*gold: 0
Join Date: Jul 2008
Posts: 98
Received Thanks: 6
Quote:
Originally Posted by .Arco View Post
Make sure after you add the npc to press f5.
Where do i press f5? i have pressed f5 in the Npcs.txt. when i did that i started newestco server and after that i got an error xd
alex4war is offline  
Old 05/22/2010, 04:58   #6
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,766
Received Thanks: 5,293
Quote:
Originally Posted by alex4war View Post
Where do i press f5? i have pressed f5 in the Npcs.txt. when i did that i started newestco server and after that i got an error xd
In newestcoserver.
What error did you get?
Arcо is offline  
Old 05/22/2010, 09:27   #7
 
elite*gold: 0
Join Date: Jul 2008
Posts: 98
Received Thanks: 6
its an error and i need to choose between send report and not send. maybe I do something wrong?
alex4war is offline  
Old 05/22/2010, 10:15   #8
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,766
Received Thanks: 5,293
You mean you're not opening the project file itself?
Arcо is offline  
Old 05/22/2010, 11:45   #9
 
elite*gold: 0
Join Date: Jul 2008
Posts: 98
Received Thanks: 6
o nvm.I did something wrong. could you tell me how you add a NPC?
alex4war is offline  
Old 05/22/2010, 12:02   #10
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,766
Received Thanks: 5,293
Just look at the npc's in your source and use them as examples.
Arcо is offline  
Thanks
1 User
Old 05/22/2010, 18:13   #11
 
elite*gold: 0
Join Date: Jul 2008
Posts: 98
Received Thanks: 6
one question. do i need to add the npc's in c#/c++ or in the .txt?
alex4war is offline  
Old 05/22/2010, 18:19   #12
 
elite*gold: 0
Join Date: Apr 2007
Posts: 208
Received Thanks: 43
you add the NPCs in the NPCs.txt, you make the NPC do things in C# npcdialog.cs
DePredaTe is offline  
Old 05/22/2010, 18:35   #13
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,377
Quote:
Originally Posted by DePredaTe View Post
you add the NPCs in the NPCs.txt, you make the NPC do things in C# npcdialog.cs
Keeping in mind you will need to debug after editing the .cs file before any changes will be made on the server (meaning server needs to restart between edits)

It's best to open the whole project for simplicity and then do your edits in the .cs file you want... editing just the single file isn't what you really wanna be doing.
pro4never is offline  
Old 05/22/2010, 18:57   #14
 
elite*gold: 0
Join Date: Apr 2007
Posts: 208
Received Thanks: 43
yeah, sorry. my bad.
i meant like, once he gets the project file open thats where it is. thats what i always do. i just forgot some people dont do it like that. XD
DePredaTe is offline  
Old 05/22/2010, 19:44   #15
 
elite*gold: 0
Join Date: Jul 2008
Posts: 98
Received Thanks: 6
ok, so from te beginning, what should i do.

Sorry i am new with the private server thing :s
alex4war is offline  
Reply




All times are GMT +2. The time now is 13:06.


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.