Seriously... just learn to log your own packets. This is like the 3rd thread you have made about trying to upgrade your packets.
Simply use my proxy to log some packets and then structure them. You already know it's type 1022 so just fill in the blanks yourself.
There is no actual offset in the packet for direction (it's simply the last digit in the mesh offset) and interaction is most likely the script number.. that being said I don't know how the actual packet is structured cause you only posted yourself USING it.
Seriously... just learn to log your own packets. This is like the 3rd thread you have made about trying to upgrade your packets.
am not trying to upgrade am making a server from scratch(C++)
Quote:
Originally Posted by pro4never
Simply use my proxy to log some packets and then structure them. You already know it's type 1022 so just fill in the blanks yourself.
i will
Quote:
Originally Posted by pro4never
There is no actual offset in the packet for direction (it's simply the last digit in the mesh offset) and interaction is most likely the script number.. that being said I don't know how the actual packet is structured cause you only posted yourself USING it.
what am trying to say is:
NPC_ID(means what or what should i pass as it?)= MAPID?
and u already told me about NPC_Type_Direction and NPC_Interaction
My bad. But without knowing which offset he's writing each value to we have no idea what they mean. For all I know he's writing the NPC ID to the MapX offset. That's what I meant by structuring the packet :P
My bad. But without knowing which offset he's writing each value to we have no idea what they mean. For all I know he's writing the NPC ID to the MapX offset. That's what I meant by structuring the packet :P
NpcID should be the ID of the npc (this means the npc script the client will try to use when clicking it)
X should be offset 12
Y should be offset 14
Direction is part of the mesh (offset 16) as the last digit so mesh 1 would be 10-18
Interaction is what many call flag which is simply type of npc which goes at offset 18. 2 is normal npcs which you use. Other interaction types for things like shops and avatar change npcs.
NpcID should be the ID of the npc (this means the npc script the client will try to use when clicking it)
X should be offset 12
Y should be offset 14
Direction is part of the mesh (offset 16) as the last digit so mesh 1 would be 10-18
Interaction is what many call flag which is simply type of npc which goes at offset 18. 2 is normal npcs which you use. Other interaction types for things like shops and avatar change npcs.
yeah got it now but u didnt tell me about :
where should i add the Map_ID?
You have to control all your maps, x and y from the server. What is sent in the packet simply controls how the entity is displayed in the client. The client removes entities if they go above a distance of 18 from you meaning that you cannot possibly have something visible on a different map.
Obviously you will need a map id in your monster structure to control where and when it is being spawned but it has NOTHING to do with packets.
When you move your character you essentially want to query nearby objects pulling everything within a 18x18 grid and if the entity is not already spawned to the user, you need to spawn it using your spawn packets (spawn sob, npc, player/monster, item)
x5 Spawn Req? 12/27/2009 - Grand Chase - 2 Replies i nid x5 spawn for spearman quest. can any1 make me please.
im trying to learn the editing atm. and cant seem to get it :<
lab 2 spawn 07/19/2006 - Conquer Online 2 - 2 Replies i was just wandering where is the best spawn to lvl archer in lab 2 or the best spawn of agile rat
MZ Spawn Map? 04/27/2006 - Conquer Online 2 - 23 Replies i just wanna no does any1 have a map of where the MetDove spawns in MZ.
Thx In Advance