Hello,
What case means?? and how do I know the exact number of case I should type?
For example, for Barber NPC, it's:
#region Barber
case 10002:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Would you like to change your hairstyle? I can offer you a change for 500 silvers. You can choose from the styles below."));
Why case here is (10002)??!! I thought the case number should be the NPC ID, please any help, so I can write the case for the NPC I add.
I have added a new NPC and made a code for him by editing it in NPCDialog in
rikardo updated>PacketHandling>NPCDialog but the NPC still tells me I am a blank npc I still don't talk anything useful my ID is 1270, I also edited an already existed NPC Dialog which is (Barber) in TwinCity, I edited it and then saved the changes and logged in my server but she still say the old message although I changed it, here is the example:-
#region Barber
case 10002:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Would you like to change your hairstyle? I can offer you a change for 500 silvers. You can choose from the styles below."));
GC.AddSend(Packets.NPCLink("New Styles", 1));
GC.AddSend(Packets.NPCLink("Nostalgic Styles", 2));
GC.AddSend(Packets.NPCLink("Special Styles", 3));
GC.AddSend(Packets.NPCLink("No thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
GC.Paid = false;
And I changed the message which is in:
GC.AddSend(Packets.NPCSay("Would you like to change your hairstyle? I can offer you a change for 500 silvers. You can choose from the styles below."));
I made it:
GC.AddSend(Packets.NPCSay("What do you want?"));
and saved the changes and when I logged into the server she still says:-
Would you like to change your hairstyle? I can offer you a change for 500 silvers. You can choose from the styles below.
Anyone can say, why the hell the changes can't be modified into the server?
Am I doing something wrong or I missed anything?? Should I modify any file else than the NPCDialog.c3
No, I only modified the NPCDialog.c3 file by opening it as a Notepad..
Should I build or debug the NPCDialog file in the C# after editing it in the Notepad??
You should do all of your modifications through Visual Studio/C# Express, never in notepad. And then you should build your project using F6 if you just wish to build, F5 if you wish to perform some debugging.
Hi I got little Problems here at 5165 source(NPCDialog.cs) 09/16/2010 - CO2 Private Server - 3 Replies #region Gw Winner npc
case 8888:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello if you win guild war you can recive good prizes!"));
GC.AddSend(Packets.NPCSay("I Can Give You 100k Cps For Wining!!"));
GC.AddSend(Packets.NPCLink("My...
npcdialog (5018) 08/01/2010 - CO2 Private Server - 5 Replies does this look right for npc dialog?
(arco's)
case 333333://test id
{
if (Client.Money >= 100)
{
dialog(Client, new string {
"AVATAR 30",
"TEXT You got 100Silvers",
Npcdialog 06/19/2010 - CO2 Private Server - 0 Replies Helo all i am working on 5180 source i aded mobs spawn some more futures,now i wan add npc dialog not from cq_acion but normal like in coemu etc,but i stacket can any one help my?
NPCDialog.cs (LOTF v5017) 04/08/2010 - CO2 PServer Guides & Releases - 15 Replies This is old...
Replace case 2031 and case 2032 (in client.cs) with these
case 2031:
{
MyChar.Ready = false;
int NPCID = (Data << 24) + (Data << 16) + (Data << 8) + Data;