Opcode 0x7046 - Opening NPC - Client crashes

09/13/2015 19:00 mxii#1
Hey all,

I want to open the NPC and sell some items.

I am working with proxy, so with the client running.

If i send the opcode 0x7046:

[C -> S][7046]
54 02 00 00 T...............
01 ................

The client crashes.
But if i open the NPC one time via client first and close it, my code works.

Seems like if i do it just without the client, there are so informations missing?!
But which infos?
All packets are redirected to the client..
Any1 have done this so?
Is the client doing something internally if it opens the NPC?

Thanks.

****** EDIT ******

Ok, there is no need to "open" the NPC!

Just selecting and interacting with it is enough! :)
09/15/2015 22:48 qoaway#2
54 02 00 00 this part of packet is NPC's Unique ID which sent in spawn or group spawn packet so It's dynamic ID for NPC.You should parse spawn packets to do this operation
09/17/2015 08:05 mxii#3
yes, i know. :)

see my edit, i already solved it. ;)

but thanks for your reply!
09/18/2015 08:33 theking200051#4
the problem source is the client , so if u working in a clientless tool u will not face any dc .
if u work in a client based tool u need to block the server replay packet (b045,b046) from reaching the client via proxy (phconnector support blocking opcode)

and what do u mean by ? explain that pls
Quote:
there is no need to "open" the NPC!

Just selecting and interacting with it is enough
09/18/2015 09:13 Devsome#5
Quote:
Originally Posted by theking200051 View Post
the problem source is the client , so if u working in a clientless tool u will not face any dc .
if u work in a client based tool u need to block the server replay packet (b045,b046) from reaching the client via proxy (phconnector support blocking opcode)

and what do u mean by ? explain that pls
That it isn't needed to "open" the NPC like leftclick->buy/sell stuff

The only thing you need is to select the NPC and buy you stuff via packets.
09/19/2015 01:57 sarkoplata#6
Remember when you buy items from the NPC, you gotta show them on your inventory because they wont just 'appear'.
You have to fake the pick up packet, as far as i remember, it was some time ago.
09/19/2015 10:03 mxii#7
Quote:
Originally Posted by theking200051 View Post
the problem source is the client , so if u working in a clientless tool u will not face any dc .
if u work in a client based tool u need to block the server replay packet (b045,b046) from reaching the client via proxy (phconnector support blocking opcode)

and what do u mean by ? explain that pls
You don't have to send the packet with opcode 0x7046, just selecting is enought to "speak" with the NPC. :)

@sarkoplata: yes, your are right! The client isnt prepared to receive buy-responses cause he did not initiate the buy process.
You have to block these packets and simulate them as pick-up packets.
11/06/2018 02:53 oksn123#8
Quote:
Originally Posted by mxii View Post
You don't have to send the packet with opcode 0x7046, just selecting is enought to "speak" with the NPC. :)

@sarkoplata: yes, your are right! The client isnt prepared to receive buy-responses cause he did not initiate the buy process.
You have to block these packets and simulate them as pick-up packets.
How ? How Im gonan block packets and send fake response please some body help me ?

Someone gonna help me please ?