Register for your free account! | Forgot your password?

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

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

Advertisement



Creating my first npc.

Discussion on Creating my first npc. within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
CriticallyDev's Avatar
 
elite*gold: 0
Join Date: May 2012
Posts: 87
Received Thanks: 4
Post Creating my first npc.

I'm going to keep this brief and short just because it's already 12 am... ._.

I've been trying to implement my first Npc on Impulses base but I can't seem to make it happen. And for some reason the Npcs that spawn in-game are the ones I saw on the Albetros source which I use to mess around with before I realized I couldn't really do anything in terms of progress on it.

I did create a npcs table following the information given in the NpcSpawn packet but that however did not make a difference. I tried a couple of ways to change the Npcs name that appear in-game but i'm not sure if they even exist because there's no SQL table that stores NPC information.

The closest I was able to get towards moving/creating/changing an NPC was on the Npcs.txt.

If this is confusing I do apologize,

Here's an
summarizing my issue.

Thanks in advance.
CriticallyDev is offline  
Old 07/11/2013, 06:38   #2
 
elite*gold: 0
Join Date: Sep 2012
Posts: 775
Received Thanks: 329
with common sense i would tell you that it's client side, there is an ini at the client for adding an effect on npc or even rename it (if i recall that correctly)
gimme a sec
edit :
it called npc.ini
here is a snippet from inside
Quote:
[NpcType1]
Name=Storekeeper
SimpleObjID=0211
StandByMotion=999001100
BlazeMotion=999001190
RestMotion=999001101
Effect=none
ASB=5
ADB=6
FixDir=0
i duno if that would work or not but it's definitely worth a shoot, maybe anyone could confirm what i just said
go for it is offline  
Thanks
1 User
Old 07/11/2013, 07:33   #3
 
CriticallyDev's Avatar
 
elite*gold: 0
Join Date: May 2012
Posts: 87
Received Thanks: 4
That's one way of changing the Npc's name I suppose..

It is a successful method but wouldn't that require constant client-sided updates when changing and/or editing an NPC? :s
CriticallyDev is offline  
Old 07/11/2013, 08:10   #4
 
elite*gold: 0
Join Date: Sep 2012
Posts: 775
Received Thanks: 329
Quote:
Originally Posted by CriticallyDev View Post
That's one way of changing the Npc's name I suppose..

It is a successful method but wouldn't that require constant client-sided updates when changing and/or editing an NPC? :s
well of what i know is that npc mesh isn't just a mesh, what i mean is
when server tell the client to show x npc, the client goes to the ini files and get the effect to add on the npc, it's name and other stuff (motion/face/whatsoever)
so yeah i think the only way possible is to constantly update clients, won't be a big deal with a nice auto-patching system/server (which what tq does anyway)

but i think it's possible with some reversing to change the client packet structure to get the name/effects from packets but this would definitely need a nice RE skills (which i personally don't have yet, i guess umm code cave with redirection both ways, saving the new bytes and patch the client to use them instead of the one at npc.ini, that's how i think it could be done but again im struggling to get better at asm)

anyway goodluck
go for it is offline  
Old 07/11/2013, 17:50   #5
 
CriticallyDev's Avatar
 
elite*gold: 0
Join Date: May 2012
Posts: 87
Received Thanks: 4
I don't think all of that is really necessary just to implement NPC's onto the world server. :x

I was wondering though if making the source read the npcs.ini(copied from the original client) would have the real npcs showing and could be edited/updated without the need to constantly update the client.
CriticallyDev is offline  
Old 07/11/2013, 20:08   #6
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
You always need to update the client unless you're going to do some reverse engineering.

TQ is dumb and does everything static, rather than being dynamic.
Super Aids is offline  
Old 07/11/2013, 22:04   #7
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,381
Quote:
Originally Posted by Super Aids View Post
You always need to update the client unless you're going to do some reverse engineering.

TQ is dumb and does everything static, rather than being dynamic.
The client supports npc names being sent as part of the packet.

There's no need at all to force the client side files when you can just send the name from your server's db.
pro4never is offline  
Old 07/12/2013, 01:50   #8
 
CriticallyDev's Avatar
 
elite*gold: 0
Join Date: May 2012
Posts: 87
Received Thanks: 4
Quote:
Originally Posted by pro4never View Post
The client supports npc names being sent as part of the packet.

There's no need at all to force the client side files when you can just send the name from your server's db.
Are you suggesting to have the source read the npcs SQL table and send npc updates to the client? o.o
CriticallyDev is offline  
Old 07/12/2013, 02:23   #9
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,381
... The server already has to send a spawn npc packet for the client to see npcs. As part of that spawn npc packet you can specify the npcs name (which the server already knows when it originally loaded the database)


Look at any number of public sources for how to add the npc name explicitly in the spawn packet. I know we did it in albetros and many other sources do the same.
pro4never is offline  
Thanks
2 Users
Old 07/12/2013, 03:10   #10
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Quote:
Originally Posted by pro4never View Post
The client supports npc names being sent as part of the packet.

There's no need at all to force the client side files when you can just send the name from your server's db.
I know. I am storing the names on the server, you have to use flag 2 I think for it to work.

I was referring to updating the other things though lols. Just like how useless monster.dat is.
Super Aids is offline  
Reply


Similar Threads Similar Threads
(HELP)Creating bot
06/02/2013 - DarkOrbit - 12 Replies
I want to create a bot like kbot,ibot but i dont know how can i start it,its hard to create one? i dont want pixelbots,but real bot.. where can i start it? thanks for all!
Help me on creating
05/06/2013 - Metin2 Private Server - 1 Replies
Hey guys i am looking for how to create a metin2 private server the easy way that i think its hamatchi one so please if some one could help me or something i would be glad... i dont know germat but we can work it through translate so its not a problem...or if could some one create me and show me how to create one i would be very glad.. if you want we can chat on skype:pavel.nikolaou99 or by email me on:[email protected] no useles coments please as i seen like(everyone knows how to...
Creating bot.. Asking for help
03/17/2011 - SRO Coding Corner - 20 Replies
Hi guys, I'm starting to create a new bot for private server. I have a lot of experience with JAVA and Sockets, but not with Silkroad Bot's. this is my first atempt. I know JAVA dont look like the best language to do it. but to what i want to do, its good. I will do my own Tunnel later, but at the beginning i am using SrProxy. At this moment, my program connect to SrProxy and when i open silkroad, and receive my first packet, the silkroad close.. If i check log packets in SrProxy, it...
Creating a C++ GUI
06/30/2006 - Conquer Online 2 - 4 Replies
First of all, sorry to bother putting up a wasteful post. I have searched google for creating a C++ GUI but everything ends up going to creating multi-threading for a process. Maybe I just am not using the correct search terms but I have run out of narrowing keywords and anything too specific gives me no results. Through reading most articles a few articles in the MSDN library, I found nothing useful that could help me. I did learn that I could use C# for this task, but I really want to...
Creating Lag
02/27/2006 - Conquer Online 2 - 6 Replies
I wanna know how do you create lag for yourself in conquer, besides downloading some programme? LAg can be used in TG to leevel yourself hella crazy. Help please?



All times are GMT +1. The time now is 13:38.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.