Register for your free account! | Forgot your password?

You last visited: Today at 13:49

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

Advertisement



Cant Add NPC.Dialog

Discussion on Cant Add NPC.Dialog within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2007
Posts: 12
Received Thanks: 0
Cant Add NPC.Dialog

Alright everytime im adding a npc dialog i always get the do not talk anything useful yet. Well looking at guides they tell them to put npc.txt file or w.e, add the npc code there. I have the npc and the dialog goes to that npc. So far 5 codes havnt worked ,dunno what im doing wrong,

This is a example of how the npc dialog starts off
Attached Images
File Type: jpg show.jpg (14.0 KB, 45 views)
peoplebot is offline  
Old 06/20/2010, 06:38   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Have you rebuilt your project in C# after editing/adding the new npc?

Make sure the case number matches what you've put in the npcs.txt file also or else it won't link up to the correct code.

You MUST rebuild/restart your server before any changes will show ingame.
pro4never is offline  
Old 06/20/2010, 06:44   #3
 
elite*gold: 0
Join Date: Jan 2007
Posts: 12
Received Thanks: 0
yup, i pressed f6 after adding the npc and then f5. Then all server info loaded. i log in . same problem
peoplebot is offline  
Old 06/20/2010, 06:45   #4
 
elite*gold: 0
Join Date: Jan 2007
Posts: 12
Received Thanks: 0
btw, 2008 c# or 2010
peoplebot is offline  
Old 06/20/2010, 12:51   #5
 
~Master's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 118
Received Thanks: 23
Make sure your case number matches with the one inside npc.txt "30160"
~Master is offline  
Old 06/20/2010, 17:18   #6
 
dodolinobobo's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 162
Received Thanks: 26
your project name -> properties -> build -> change the bin/release to bin/debug then press F6 and you're done
dodolinobobo is offline  
Old 06/20/2010, 17:59   #7
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
erm
Code:
#region Vote For Server NPc
case 30166:
if (Control == 0)
{
//;
}
if (Control == 1)
{
GC.LocalMessage(2105, "http://siteurl.com");
}
I even made it so that it will only open-up for u
_DreadNought_ is offline  
Old 06/20/2010, 20:24   #8
 
elite*gold: 0
Join Date: Sep 2008
Posts: 494
Received Thanks: 120
like they said ur added ID of that NPC in txt file is different than his case it must be same eg case 12345 < this is npc ID
Adziunia is offline  
Old 06/20/2010, 20:49   #9
 
elite*gold: 0
Join Date: Jan 2007
Posts: 12
Received Thanks: 0
did this and still same thing, and yes the case and the npc id in npcs.txt match
Attached Images
File Type: jpg failed.jpg (10.3 KB, 15 views)
peoplebot is offline  
Old 06/20/2010, 20:52   #10
 
elite*gold: 0
Join Date: Jan 2007
Posts: 12
Received Thanks: 0
here look, this is my npc dialog and npc.txt, afterwards i built it then debugged
Attached Images
File Type: png test 1.PNG (5.0 KB, 20 views)
File Type: jpg test 2.jpg (15.5 KB, 22 views)
peoplebot is offline  
Old 06/20/2010, 21:43   #11
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
ugh....
Code:
#region npc
case 12345:
{
switch (Control)
{
case 0:
GC.AddSend(Packets.NPCSay("Please vote for us!"));
GC.AddSend(Packets.NPCLink("Yes", 1));
GC.AddSend(Packets.NPCLink("No", 255));
break;

case 1:
GC.LocalMessage(2105, "http://siteurl.com");
GC.AddSend(Packets.NPCSay("There."));
break;
}
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
break;
there copy + past and it should work.
_DreadNought_ is offline  
Old 06/20/2010, 23:34   #12
 
elite*gold: 0
Join Date: Sep 2008
Posts: 494
Received Thanks: 120
well u got some errors :P or u have fixed them ..
Adziunia is offline  
Old 06/21/2010, 03:45   #13
 
elite*gold: 0
Join Date: Jan 2007
Posts: 12
Received Thanks: 0
kk got it working thank u guys =D
close please . Thx all for the help
peoplebot is offline  
Reply


Similar Threads Similar Threads
Popup dialog help.
08/02/2010 - CO2 Private Server - 11 Replies
Well, I know that a few servers, take Impule's for example when you login you get a popup dialog. When Ali's/Impule's/Kinshi's proxy turns the aimbot on a dialog pop's up and says some crap :) I want to know what the ID of that is so I can make this work client.Send(new GamePackets.Message("Test", System.Drawing.Color.Gray, GamePackets.Message.Popup)); Where 'Popup' is defined it looks like Popup = 1002, That bit in red is what I need the correct value/id/type/whatever you wonna...
NPC Dialog
06/14/2010 - Flyff Private Server - 3 Replies
Hallo ElitePvPers, Ich wuerde gerne wissen wie ich den Dialog von NPC's aendern kann. Z.b weiss ich das wenn ich den Dialog von Isruel aendern will, muss ich eine Datei oeffnen die "MaFl_Isruel.txt". Ich finde dieses .txt leider nirgendwo und frage euch nun, koennt ihr mir helfen mit dem problem? Bitee bitee bitee!! XD
NPC Dialog
12/12/2009 - CO2 Private Server - 6 Replies
Can anyone tell me what its wrong with this for some reason it is not working =\ This is for 5165 FTW! #region TOP TRO PK TOURNEY case 2772: { if (Control == 0) { GC.AddSend(Packets.NPCSay("Hey there i hold every Class PK Tournament for Trojans, Warriors, Ninjas, Taoists And Archers, So Tell me your Class so i can...
[HELP] Where is the NPC Dialog?
09/15/2009 - CO2 Private Server - 3 Replies
I'm copying and pasting codes and it says to go to NPC Dialog but I don't know where that is, can you help me find it?
Help me please i need Dialog.ini
08/18/2008 - Conquer Online 2 - 0 Replies
Hi all, i have a private server CO 2 and i want the file: Dialog.ini of NPCsStuff Because some npc. Ej: ArcherGod, he change your class, and all the npc that changes the class to you, nobody of those can speak. Please say me some download of Dialog.ini or say me the information of they. -edit- I want the npc to learn skills please



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


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.