Help with Npc

05/20/2010 21:04 alex4war#1
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 Arcо#2
Make sure after you add the npc to press f5.
05/21/2010 07:42 pro4never#3
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 .Summer#4
And make sure you dont put if (Control == 1) as the first control, but use if (Control == 0)
05/21/2010 13:51 alex4war#5
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
05/22/2010 04:58 Arcо#6
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?
05/22/2010 09:27 alex4war#7
its an error and i need to choose between send report and not send. maybe I do something wrong?
05/22/2010 10:15 Arcо#8
You mean you're not opening the project file itself?
05/22/2010 11:45 alex4war#9
o nvm.I did something wrong. could you tell me how you add a NPC?
05/22/2010 12:02 Arcо#10
Just look at the npc's in your source and use them as examples.
05/22/2010 18:13 alex4war#11
one question. do i need to add the npc's in c#/c++ or in the .txt?
05/22/2010 18:19 DePredaTe#12
you add the NPCs in the NPCs.txt, you make the NPC do things in C# npcdialog.cs
05/22/2010 18:35 pro4never#13
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.
05/22/2010 18:57 DePredaTe#14
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 alex4war#15
ok, so from te beginning, what should i do.

Sorry i am new with the private server thing :s