|
You last visited: Today at 13:06
Advertisement
Help with Npc
Discussion on Help with Npc within the CO2 Private Server forum part of the Conquer Online 2 category.
05/20/2010, 21:04
|
#1
|
elite*gold: 0
Join Date: Jul 2008
Posts: 98
Received Thanks: 6
|
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?
|
|
|
05/21/2010, 07:40
|
#2
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,766
Received Thanks: 5,293
|
Make sure after you add the npc to press f5.
|
|
|
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?
|
|
|
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)
|
|
|
05/21/2010, 13:51
|
#5
|
elite*gold: 0
Join Date: Jul 2008
Posts: 98
Received Thanks: 6
|
Quote:
Originally Posted by .Arco
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
|
|
|
05/22/2010, 04:58
|
#6
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,766
Received Thanks: 5,293
|
Quote:
Originally Posted by alex4war
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?
|
|
|
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?
|
|
|
05/22/2010, 10:15
|
#8
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,766
Received Thanks: 5,293
|
You mean you're not opening the project file itself?
|
|
|
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?
|
|
|
05/22/2010, 12:02
|
#10
|
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.
|
|
|
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?
|
|
|
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
|
|
|
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
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.
|
|
|
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
|
|
|
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
|
|
|
All times are GMT +2. The time now is 13:06.
|
|