Register for your free account! | Forgot your password?

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

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

Advertisement



Packets 2030/2031 Requesting NPCs

Discussion on Packets 2030/2031 Requesting NPCs within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
Packets 2030/2031 Requesting NPCs

So I am trying to figure out how this system works in 5065 and I feel like I am missing something.

From what I understand, anytime you use a guild statue scroll, guild teleporter scroll or any kind of furniture voucher. The server sends packet 2031 to the client with the action (offset 12) to add (value 5). Followed by the sub action (offset 14) with the value depending on the item. 8 for GC, 9 for Statue, 25/26 for Furniture.

This brings up either the statue window or places an npc on the mouse for you to place at the location of your choice.
After rotating or whatever you desire, you click on OK and then the client sends the server packet 2030 to request the NPC.

This is all fine and good so far, but receiving this packet 2030 is where I am struggling.
The packet coming back, as far as I can tell, has no value to distinguish the type of NPC it is. I don't know if its a guild statue, guild teleporter or a piece of furniture.
This is where I appear to be missing something as I feel there should be some kind of type value to tell me what specific code I need to execute.
Statues require packet 1014 to be visible.
GCs and Furniture require NPC packets but are also handled somewhat differently.

My only thinking is that I can use the map ID to sort through what exactly is being used. Guild Map, House Maps and then everything else is placing a GC.
But if there is a 'correct' way of doing it, I would much prefer to go that route.

Anyone have any ideas or can point me in the right direction?
Aceking is offline  
Old 08/08/2014, 11:09   #2
 
InsomniacPro's Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 205
I know this is a bit old, but I'm giving this a bump. Research on this topic is very limited. I'm also working on this at the moment.
InsomniacPro is offline  
Old 08/08/2014, 11:38   #3


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
I`ve never done this TBH but you said that you send 2031 based on the item. At that given point as far as I understand you know what the type of NPC is, so just store it and use that data when you receive the 2030 packet. I know it sounds hack-ish but for me it seems that this is how it works (based on nothing just reading your post, I might be completely wrong).
KraHen is offline  
Old 08/08/2014, 11:44   #4
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 238
most will do it by the same way by storing the item or item uid to be removed when spwan confirmed.
abdoumatrix is offline  
Old 08/08/2014, 12:40   #5
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
Quote:
Originally Posted by KraHen View Post
I`ve never done this TBH but you said that you send 2031 based on the item. At that given point as far as I understand you know what the type of NPC is, so just store it and use that data when you receive the 2030 packet. I know it sounds hack-ish but for me it seems that this is how it works (based on nothing just reading your post, I might be completely wrong).
Essentially this is what I did, along with checking map ID's and executing code based on certain maps.
Guild map has statues, House maps have furniture, everything else is a GC.

I just know that there has to be a better and more efficient way of handling it.

This is especially true when handling GC's through this system. Statues and furniture can be done without the need of knowing what item was used. But GC's are different because the packet being received by the server gives you NO clue as to what GC it is. The only way you can distinguish what it is, is by storing the item ID that was last used and checking that against scroll ID's. Or, I suppose you could also do a check against the Mesh of the npc contained in the packet. Just have to remember to account for the direction.

I dunno, it just all seems a bit wishy washy to me.
Aceking is offline  
Old 08/08/2014, 13:15   #6


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
Quote:
Originally Posted by Aceking View Post
Essentially this is what I did, along with checking map ID's and executing code based on certain maps.
Guild map has statues, House maps have furniture, everything else is a GC.

I just know that there has to be a better and more efficient way of handling it.

This is especially true when handling GC's through this system. Statues and furniture can be done without the need of knowing what item was used. But GC's are different because the packet being received by the server gives you NO clue as to what GC it is. The only way you can distinguish what it is, is by storing the item ID that was last used and checking that against scroll ID's. Or, I suppose you could also do a check against the Mesh of the npc contained in the packet. Just have to remember to account for the direction.

I dunno, it just all seems a bit wishy washy to me.
There are worse things out there, I think that this (although ugly) is acceptable. Also you`d have the last used item ID for other stuff as well later on (dunno, maybe combo item usage or whatever - like that equipment bonus quest where you had to take 3 potions in a given order).
KraHen is offline  
Thanks
1 User
Old 08/08/2014, 13:18   #7
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
Quote:
Originally Posted by KraHen View Post
There are worse things out there, I think that this (although ugly) is acceptable. Also you`d have the last used item ID for other stuff as well later on (dunno, maybe combo item usage or whatever - like that equipment bonus quest where you had to take 3 potions in a given order).
That is true. I just don't like doing things in an unconventional way when there is a much better option available. So I was just looking to see if anyone had ideas on that option
Aceking is offline  
Old 08/10/2014, 04:45   #8
 
InsomniacPro's Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 205
Quote:
Originally Posted by KraHen View Post
There are worse things out there, I think that this (although ugly) is acceptable.
You'd think there's a more conventional way to do this though. I mean, we all know TQ isn't the smartest, but even this seems kind of too unconventional for them.
InsomniacPro is offline  
Reply


Similar Threads Similar Threads
[S] Root Server 2 Monate [B] 2030 Egold
01/30/2014 - elite*gold Trading - 3 Replies
Würde auch vorrausbezahlen, Computerdaten bitte in als Kommentar
[Release] +5500 Packets structure , client/packets constants
10/07/2012 - CO2 PServer Guides & Releases - 10 Replies
edit : if u know nothing about packets go to this post first explaining what is packets , and explaining a packet with details and everything http://www.elitepvpers.com/forum/co2-pserver-disc ussions-questions/2162344-packets-packets-packets. html#post19074533 i start making my very own packet structure to use them on my new proxy but i thought of ripping them from the source so yeah the following packets is ripped of trinity base source right now im just providing the packets structure...
Statue packet 2030
06/25/2012 - CO2 Private Server - 5 Replies
Am looking for Statue packet 2030 Strucutre .. So if any1 Got its Structure And willing to Share it i'd be Gratful Regards Shadowman123
WTS EU ACCOUNT LVL 30. 2030 ELO
05/03/2011 - League of Legends Trading - 0 Replies
Account Pics Here
Packet 2031 Unknowns
01/19/2011 - CO2 Private Server - 6 Replies
Hey everyone, I'm a fan of multiple projects and servers. I want to make an NPC server so that my game servers can all access one NPC server. After some thinking, I concluded that just like the 1051 packet, there must be another packet that connects to the NPC server. Would that packet be (possibly) 2031? So far, we know that the structure is like this: Offset Type Value 0 ushort 16 2 ushort 2031 4 ...



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


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.