Register for your free account! | Forgot your password?

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

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

Advertisement



Addind npcs!!! is it that hard ?

Discussion on Addind npcs!!! is it that hard ? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2009
Posts: 920
Received Thanks: 3,514
Question Addind npcs!!! is it that hard ?

Hello everyone
im looking for someone that can help me to Fix this problem an i hope that im gonna find him here
i want to add an NPC somewhere in my privet server let me know if im doing it the right way and if not plzzzz i need to know right way to do it ......HOW DID I DO IT .
OK here is the thing i went to the file that calld NPCDialog.Cs opened it than scrolling down to the end of the codes and right where it says #endregion i added the following code
Code:
  #region Celestial tao
case 21155:
{
{
GC.AddSend(Packets.NPCSay("Heya do u want to rellot your points!?"));
GC.AddSend(Packets.NPCLink("Yep!.", 200));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 200)
{
GC.AddSend(Packets.NPCSay("Alright I'll need an DragonBall."));
GC.AddSend(Packets.NPCLink("Okay here is it.", 201));
GC.AddSend(Packets.NPCLink("Its too expensive.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 201)
{
if (GC.MyChar.Reborns > 0)
{
if (GC.MyChar.InventoryContains(1088000, 1))
{
Game.Item DB = null;
foreach (Game.Item I in GC.MyChar.Inventory)
if (I.ID == 1088000)
{ DB = I; break; }
if (DB != null)
{
int AllAtributes = GC.MyChar.Str +
GC.MyChar.Agi +
GC.MyChar.Spi +
GC.MyChar.Vit + GC.MyChar.StatPoints;
GC.MyChar.Str = 0;
GC.MyChar.Agi = 0;
GC.MyChar.Spi = 0;
GC.MyChar.Vit = 1;
GC.MyChar.StatPoints = (ushort)(AllAtributes - 1);
GC.MyChar.CurHP = 1;
GC.MyChar.RemoveItem(DB);
GC.AddSend(Packets.NPCSay("Okay, Done."));
GC.AddSend(Packets.NPCLink("Thank you.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else
{
GC.AddSend(Packets.NPCSay("You dont have the dragonball..."));
GC.AddSend(Packets.NPCLink("Ahh.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else
{
GC.AddSend(Packets.NPCSay("Your not reborn...Come back when you are reborned."));
GC.AddSend(Packets.NPCLink("Alright.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion
and than i went to the NPCs.txt file and i added this line

21155 8360 2 67 1002 440 370


and finally its time to test it so i started the server went to where i added the npc and clicked on him it says the WTFF is going on it says I DONT DO ANYTHING USEFUL YET MY ID IS 21155
an i dont know how to Fix it and whenever i try to change any of the things that is in the NPCDialog.Cs like the words that the nps shuold say it dosent change it and I EVEN tryed to delete the NPCDialog.Cs file and still the NPCS that i want to change is still talking and giveing me the same lines when i click on them and the ones that im adding they NEVER WORKS ((((((
so i really need some help down here
WHT IS THE RIGHT WAY TO DO IT !!!!
:
m7mdxlife is offline  
Thanks
1 User
Old 08/25/2010, 21:00   #2
 
~Master's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 118
Received Thanks: 23
Make sure you are opening the project".csproj " file and once you are done with your modifications press F6, F5.
~Master is offline  
Old 08/25/2010, 21:28   #3
 
elite*gold: 0
Join Date: Oct 2008
Posts: 342
Received Thanks: 66
You say to open the solution and refer to the project file?

.sln = Solution.
.csproj = C Sharp Project
µ~Xero~µ is offline  
Old 08/25/2010, 21:31   #4
 
elite*gold: 0
Join Date: Feb 2009
Posts: 920
Received Thanks: 3,514
ok i understand that i need to look for the main file that contain the codes and the stuff that the npcs shuold say when i click on one of them like the welcome message or even the prices for the stuff that the npcs r selling and thats what i found NPCDialog.Cs and btw im working on 2165 source and here is the NPCDialog.Cs file

and if you guys take a look at it it has all the commands and the scripts for the npcs but whn i change anything inside it it dosent make any changes to the game or the npcs
and about the ".csproj " and the C# i dont have them and im not useing any Mysql database or anything its just Hamachi so any ideas ?
m7mdxlife is offline  
Thanks
1 User
Old 08/25/2010, 21:59   #5
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
Quote:
Originally Posted by m7mdxlife View Post
ok i understand that i need to look for the main file that contain the codes and the stuff that the npcs shuold say when i click on one of them like the welcome message or even the prices for the stuff that the npcs r selling and thats what i found NPCDialog.Cs and btw im working on 2165 source and here is the NPCDialog.Cs file

and if you guys take a look at it it has all the commands and the scripts for the npcs but whn i change anything inside it it dosent make any changes to the game or the npcs
and about the ".csproj " and the C# i dont have them and im not useing any Mysql database or anything its just Hamachi so any ideas ?
So you are not using c#? If you are not there is your problem. There should eb a file called YourSourceName.csproj

You need to open this in C# and then change the things you want to change. Then recompile the source by hitting F6. Debug it using F5.
.Beatz is offline  
Old 08/25/2010, 22:09   #6
 
~Master's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 118
Received Thanks: 23
Quote:
Originally Posted by µ~Xero~µ View Post
You say to open the solution and refer to the project file?

.sln = Solution.
.csproj = C Sharp Project
fixed
~Master is offline  
Old 08/26/2010, 15:43   #7
 
elite*gold: 0
Join Date: Sep 2008
Posts: 494
Received Thanks: 120
lolz..its not hard u just dont know how to do it..... get compiler like microsoft visual c# then open project file.. find npcdialog.cs add ur npc hit F6 then f5 and done, u cant compile ur server with just 1 file and u NEED compiler for it not notepad or whatever
Adziunia is offline  
Reply


Similar Threads Similar Threads
Addind npcs!!! is it that hard ?
08/25/2010 - Conquer Online 2 - 3 Replies
lmao i posted it in the wrong place :P CO2 PServer - Discussions / Questions
How hard for +8
07/11/2010 - Battle of the Immortals - 7 Replies
Does anyone know how much money I will need if I want to +8 and +10 (boost) a pet? Thanks ^^
Is it so hard?
08/01/2008 - SRO Private Server - 11 Replies
Hi all.I wondering is it so hard to create sro private server?so many ppl tryng and no one can`t make it.There is no one working PSRO in the world?It cant be.Maybe we need try to search harder?
GOD HOW HARD IT IT TO GET A BOT
08/23/2006 - Conquer Online 2 - 21 Replies
:cry: why can i not get a bot!!!!IT is driving me cazy i donwload like 5 of them an none of them work.Trying to found one is even harder.WTF is up wiht this bullshit you click to download an it send you to a site that you have to pay money for a bot.We hack to make it easy for lazyass like me that do not have time to play a game for like a week to get ONE FUCKING LVL.COME ON HACKER.put up your bot an make it easy to download.PLEASE :bandit: :bandit:



All times are GMT +1. The time now is 22:05.


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