View Full Version : Error On Packet Object Methods

01-21-2014, 03:08 AM
Hi guys,

I'm trying to open a vendor list in lua by sending a specified packet to the player, but it opens a vendor list with no items in it.

Another strange thing is the vendor list window shows nearly 60000 pages.

Can someone solve my problem? Thanks.

Here is my code:

function OnChat(event, player, msg, _, lang)
if(msg == "open") then
local packet = CreatePacket(31920, 8+1+1*8*4)
packet:WriteGUID(401298) --vendor Guid
packet:WriteUByte(1) --item count
packet:WriteULong(0) --item1 slot
packet:WriteULong(19019) --item1 entry
packet:WriteULong(30606) --item1 displayID
packet:WriteLong(4294967295) --item1 in stock
packet:WriteULong(615704) --item1 price
packet:WriteULong(125) --item1 durability
packet:WriteULong(1) --item1 buyCount
packet:WriteULong(0) --item1 extendedCost


01-21-2014, 03:38 AM
What do you mean by "error" in your title? Are you receiving an error when this happens or? This is so much as an error but some kind of issue with the packet being sent. Are you sure you're sending the correct information? What source did you read off of for the vendor packet structure?

01-21-2014, 05:02 AM
Sorry about the title, it's not an error, just not working.

01-21-2014, 08:21 AM
Where did you get the packet format from?
Looks way way wayyy off from what it should be. Probably yours is WOTLK format.

Also, I am not sure TC cata has enough methods to pull that off atm Hmm ..