Cant Add NPC.Dialog

06/20/2010 06:27 peoplebot#1
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
06/20/2010 06:38 pro4never#2
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.
06/20/2010 06:44 peoplebot#3
yup, i pressed f6 after adding the npc and then f5. Then all server info loaded. i log in . same problem
06/20/2010 06:45 peoplebot#4
btw, 2008 c# or 2010
06/20/2010 12:51 ~Master#5
Make sure your case number matches with the one inside npc.txt "30160"
06/20/2010 17:18 dodolinobobo#6
your project name -> properties -> build -> change the bin/release to bin/debug then press F6 and you're done
06/20/2010 17:59 _DreadNought_#7
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 :D
06/20/2010 20:24 Adziunia#8
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
06/20/2010 20:49 peoplebot#9
did this and still same thing, and yes the case and the npc id in npcs.txt match
06/20/2010 20:52 peoplebot#10
here look, this is my npc dialog and npc.txt, afterwards i built it then debugged
06/20/2010 21:43 _DreadNought_#11
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.
06/20/2010 23:34 Adziunia#12
well u got some errors :P or u have fixed them ..
06/21/2010 03:45 peoplebot#13
kk got it working thank u guys =D
close please . Thx all for the help :):):)