[Request]Stall Add Item Pkt

12/01/2011 06:34 12k#1
Any chance any of you are willing to share the add item packet for 5017 player shops. :D
12/01/2011 07:05 Lateralus#2
It's a subtype in packet 1009, not a separate packet.
12/01/2011 07:37 12k#3
Ahh, i see. Care to share the subtype o.o?
12/01/2011 08:39 BaussHacker#4
Code:
switch (PacketID)
{
 case 1009:
 {
  switch (SubID)
  {
   default:
    Console.WriteLine("Unknown subid: {0}", SubID);
    break;
  }
  break;
 }
}
Now try add an item and you got the subid.
12/02/2011 00:56 12k#5
Ah, so its the same as the receive to send the add? Like when someone is viewing the shop?

Edit: sorry,guess i should of been more specific it was for viewing
12/02/2011 03:46 pro4never#6
Look at any source or use a bit of trial/error...

Personally I used hybrids second source as an example when I coded shops in albetros but that's just me...

<edit> just from memory I can just about guarentee it uses the same item subtype as when you view gear on another player... or maybe it was a slightly different subtype.

Adding/removing/buying item from shop uses the item usage packet (easily logged and handled through handling client requests)

Displaying shop items is done through a combination of request (request shop, server sends reply similar to how you would display items on a character when viewed). Same packet, possibly different subtype for displaying items in shop.
12/02/2011 05:05 12k#7
alrighty, ill see what i can find. I couldnt find any for version 5017. So thats why i was asking. I tried the following from coemu:

Quote:
PWR.Fill((ushort)56, 0);
PWR.Fill((ushort)1108, 2);
PWR.Fill((uint)stallItem.Item.UID, 4);
PWR.Fill((uint)StallID, 8); //correct
PWR.Fill((uint)stallItem.Price, 12);
PWR.Fill((uint)stallItem.Item.ID, 16);
PWR.Fill((ushort)stallItem.Item.Durability, 20);
PWR.Fill((ushort)stallItem.Item.ItemInfo.MaxDurabi lity, 22);
PWR.Fill((uint)(stallItem.Silver == true ? 1 : 0), 24);
PWR.Fill((uint)0, 28);
PWR.Fill((byte)stallItem.Item.SocketOne, 32);
PWR.Fill((byte)stallItem.Item.SocketTwo, 33);
PWR.Fill((ushort)stallItem.Item.SpecialType, 34);
PWR.Fill((byte)stallItem.Item.Plus, 36);
PWR.Fill((ushort)stallItem.Item.Bless, 37);
PWR.Fill((byte)stallItem.Item.Enchant, 39);
PWR.Fill((uint)stallItem.Item.Progress, 40);
PWR.Fill((uint)0, 44);
PWR.Fill((uint)stallItem.Item.Color, 48);
PWR.Fill((uint)stallItem.Item.Progress, 52);
Ive tried messing with different offsets etc, but no luck. So thought I would ask here. Dont want you guys to think I just simply asked before trying hah.

#bump

Still having this problem :(