|
You last visited: Today at 07:37
Advertisement
[Request]Stall Add Item Pkt
Discussion on [Request]Stall Add Item Pkt within the CO2 Private Server forum part of the Conquer Online 2 category.
12/01/2011, 06:34
|
#1
|
elite*gold: 0
Join Date: Jul 2011
Posts: 218
Received Thanks: 33
|
[Request]Stall View Add Item Packet
Any chance any of you are willing to share the add item packet for 5017 player shops.
|
|
|
12/01/2011, 07:05
|
#2
|
elite*gold: 0
Join Date: May 2005
Posts: 1,892
Received Thanks: 920
|
It's a subtype in packet 1009, not a separate packet.
|
|
|
12/01/2011, 07:37
|
#3
|
elite*gold: 0
Join Date: Jul 2011
Posts: 218
Received Thanks: 33
|
Ahh, i see. Care to share the subtype o.o?
|
|
|
12/01/2011, 08:39
|
#4
|
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
|
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
|
#5
|
elite*gold: 0
Join Date: Jul 2011
Posts: 218
Received Thanks: 33
|
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
|
#6
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
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
|
#7
|
elite*gold: 0
Join Date: Jul 2011
Posts: 218
Received Thanks: 33
|
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
|
|
|
 |
Similar Threads
|
[REQUEST]stall patch for sw1 after update
04/07/2011 - SRO Private Server - 3 Replies
Request Close
|
Any servers with stall / stall network?
01/24/2010 - SRO Private Server - 21 Replies
Any p server with it? NO I DO NOT WANT TO DUPE! Its a simple yes or no answer. (if yes which server) thanks
|
Special Item from Stall.
06/30/2009 - SRO Private Server - 6 Replies
Hello guys !
I just want to say that when you get this item : (from SjSro)
http://img14.imageshack.us/img14/3808/sro20090630 12473741.jpg
It isn't because you stall a lot ! For proof it's the first Item I sell on SjSro by Stall ! (Yes today i've been up from lvl 1 to lvl 41)
So as I heard this item increase gold ammount droped ?
|
[Request] Stall script
06/18/2008 - Silkroad Online - 5 Replies
hi there,
Dont you hate it too when you have a stall character and it only sell's 10 Items ALL NIGHT.
In the morning i see that everything is sold ... cant help wonder if more stuff could be sold without me having to put stuf in the stall window MANUALY.
So any of you programmers feel the need to make somthing happening.
GREAT!!
P.S.
|
All times are GMT +1. The time now is 07:38.
|
|