Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 12:26

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

Advertisement



Problem when make an NPC

Discussion on Problem when make an NPC within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 32
Received Thanks: 0
Problem when make an NPC

hello everyone,
I have a problem when i make NPCs
I use this code :
#region npcname
case 987787:
{
if (Control == 0 && GC.MyChar.Inventory.Count <= 39)
{
GC.AddSend(Packets.NPCSay("Would you like a free item"));
GC.AddSend(Packets.NPCLink("Yes.", 2));
GC.AddSend(Packets.NPCLink("No.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 2)
{
GC.MyChar.AddItem(721010);
GC.AddSend(Packets.NPCSay("Here you go."));
GC.AddSend(Packets.NPCLink("Thank you.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
break;
}
#endregion

i build it and add it to npc.txt , but when i try to speak with him it say :
"Don't talk with my ID is : 313121"

Can someone help me?
xConquerianOx is offline  
Old 06/17/2010, 17:04   #2
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
you haven't change the id from 313121 to 987787.
case = id
please in future use the code tag
.Summer is offline  
Old 06/17/2010, 17:07   #3
 
elite*gold: 0
Join Date: Sep 2008
Posts: 494
Received Thanks: 120
u have added it wrong... lol do u know how to make npc's?? look at the case and at this "ID is : 313121" maybe u forget or dont know that case in NPCDialog.cs is ID of that NPc in npc.txt
Adziunia is offline  
Old 06/17/2010, 17:10   #4
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
dats what i just said.
You just said it more confusing for him.
LOL

you could have wrote like me:
Quote:
case = id
.Summer is offline  
Old 06/17/2010, 17:26   #5
 
elite*gold: 0
Join Date: Feb 2010
Posts: 32
Received Thanks: 0
i change it but still dont working too...
xConquerianOx is offline  
Old 06/17/2010, 18:04   #6
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
whats your npc.txt, what did u put in there?
.Summer is offline  
Old 06/17/2010, 18:10   #7
 
elite*gold: 0
Join Date: Feb 2010
Posts: 32
Received Thanks: 0
313121 1600 2 54 1002 422 378
xConquerianOx is offline  
Old 06/17/2010, 18:22   #8
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
u still didnt change the id as i just said.
you see you case is the id:
Quote:
case 987787:
in your npc.txt you got this as id:
Quote:
313121
now what do you think you should change?
oh right.
you have to change 313121 to 987787

simply fix.
nothing knowledge needed for this.
just a general iq over 50.
.Summer is offline  
Thanks
2 Users
Old 06/19/2010, 22:02   #9
 
elite*gold: 0
Join Date: Feb 2010
Posts: 32
Received Thanks: 0
Ehm, man i have the same in source and in npc.txt now its 313121 (I error to copy the first part of code i take it from another NPCm in the code the case in 313121) it dont work alwayz say same things
xConquerianOx is offline  
Old 06/19/2010, 22:44   #10
 
elite*gold: 0
Join Date: Sep 2008
Posts: 494
Received Thanks: 120
frankly it is difficult to understand you u can just show the error or pics of how u added that npc to txt and cs files
Adziunia is offline  
Reply


Similar Threads Similar Threads
Problem mit make /make.sh core segmentation fault core dumped Bitte hilfe
09/09/2010 - Metin2 Private Server - 8 Replies
Hey Hab n kleines Problem, wenn ich make mache um die Quests übernehmen zu lassen kommt folgender fehler: http://www.abload.de/img/fehlerservery5fp.jpg Was kann ich tun? LG Saaja
Problem mit make.sh
06/23/2010 - Metin2 Private Server - 1 Replies
Guten Abend Com! Ich habe aus irgendwelchen Gründen die make.sh aus dem P-Server Ordner gelöscht! Deshalb die Frage ob sich jemand die Zeit dafür nehmen könnte und die Datei hochladen könnte! Wäre echt super nett! Danke im Vorraus mfg finni
Problem mit Make.sh
05/20/2010 - Metin2 Private Server - 4 Replies
Hey Com. Ich hab ein Problem.Ich hab grade meinen quest ordner durch nen neuen ersetzt die vorher bei mir schonmal drauf waren und jetzt kommt immer wenn ich make.sh ausführe will ./qc: Permission denied. Weiss wer woran es liegt?
Make.sh Problem
03/18/2010 - Metin2 Private Server - 5 Replies
Heyho Commu. Ich hab ein kleines Problem. Neuerdings kommt immer, wenn ich make.sh ausführe nur noch ./qc: Permission denied. Ja, die chmod-Rechte sind 777. Wer weiss woran es liegt? Danke schonmal :)



All times are GMT +1. The time now is 12:29.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.