Redux (Sashes)

11/19/2018 03:01 LepEatWorld#1
So, I'm looking at the warehouses and the script is the following:
Code:
public class NPC_48 : INpc
    {

        public NPC_48(Game_Server.Player _client)
            : base(_client)
        {
            ID = 48;
        }

        public override void Run(Game_Server.Player _client, ushort _linkback)
        {
            _client.Send(GeneralActionPacket.Create(_client.UID, Enum.DataAction.OpenWindow, 4));
        }
    }
I was looking around at the Enum.WarehouseAction and the Managers.WarehouseManager to see if I get an idea on how to create a script for the sashes, but I could not figure anything out. Are there any tips that someone could offer up? I don't see how I could make the sashes actually store items.
11/19/2018 03:25 Spirited#2
Here are some ancient packet dumps I made from 2013. I'm sure they're still relevant.

Opening the sash:

Code:
Packet 55 -- TQServer -- Length: 76 | 84 -- Type: 1102
4C 00 4E 04 DA BD 5A 12 00 1E 01 00 00 00 00 00 ;   L NڽZ      
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 00 00 00 00 54 51 43 6C ;               TQCl
69 65 6E 74                                     ;   ient


Packet 56 -- TQClient -- Length: 76 | 84 -- Type: 1102
4C 00 4E 04 DA BD 5A 12 03 1E 00 00 0C 00 00 00 ;   L NڽZ     
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 00 00 00 00 54 51 53 65 ;               TQSe
72 76 65 72                                     ;   rver


Packet 57 -- TQClient -- Length: 388 | 396 -- Type: 1102
84 01 4E 04 DA BD 5A 12 00 1E 00 00 0C 00 00 00 ;   „NڽZ      
00 00 00 00 07 00 00 00 8F C0 54 12 F1 41 06 00 ;          TA 
00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 00 ;                  
00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 ;                  
00 00 00 00 00 00 12 09 00 00 00 00 B8 54 D8 0F ;         	    T
76 71 02 00 00 00 00 00 00 00 00 00 00 00 00 02 ;   vq            
00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 ;                  
00 00 00 00 00 00 00 00 00 00 EA 0F 00 00 00 00 ;                 
38 24 E0 0D B6 4A 02 00 00 00 00 00 00 00 00 00 ;   8$
J         
00 00 00 02 00 00 00 00 00 00 00 03 00 00 00 00 ;                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 70 19 ;                 p
00 00 00 00 B0 F5 54 12 4C C9 01 00 00 00 00 00 ;       TL     
00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 03 ;                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 65 10 00 00 00 00 AD 1B 36 15 83 2C 09 00 ;     e    *6ƒ,	 
00 00 00 00 00 00 00 00 00 01 00 03 00 00 00 00 ;                 
00 00 01 03 00 00 00 00 00 00 00 00 00 00 00 00 ;                 
00 00 00 00 01 00 1D 1C 00 00 00 00 7C BD 50 19 ;            |P
A7 0D 0B 00 00 00 00 00 00 00 00 00 00 00 00 00 ;   
             
00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 ;                  
00 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00 ;                 
F4 B6 C6 16 48 13 02 00 00 00 00 00 00 00 00 00 ;   H         
00 00 00 01 00 00 00 00 00 00 00 03 00 00 00 00 ;                 
00 00 00 00 00 00 00 00 00 00 00 00 01 00 04 0E ;                
00 00 00 00 54 51 53 65 72 76 65 72             ;       TQServer


Packet 58 -- TQClient -- Length: 16 | 24 -- Type: 2048
10 00 00 08 39 F6 16 00 04 00 00 00 00 00 00 00 ;     9        
54 51 53 65 72 76 65 72                         ;   TQServer
Using the sash:
Code:
Packet 0 -- TQClient -- Length: 72 | 80 -- Type: 10017
48 00 21 27 39 F6 16 00 02 00 00 00 FF FF FF FF ;   H !'9    
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
08 00 00 00 2D 00 00 00 00 00 00 00 00 00 00 00 ;      -           
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 54 51 53 65 72 76 65 72 ;           TQServer


Packet 1 -- TQClient -- Length: 72 | 80 -- Type: 10017
48 00 21 27 39 F6 16 00 02 00 00 00 FF FF FF FF ;   H !'9    
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
1C 00 00 00 E8 47 48 00 00 00 00 00 00 00 00 00 ;      GH         
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 54 51 53 65 72 76 65 72 ;           TQServer


Packet 2 -- TQServer -- Length: 76 | 84 -- Type: 1102
4C 00 4E 04 DA BD 5A 12 00 1E 01 00 00 00 00 00 ;   L NڽZ      
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 00 00 00 00 54 51 43 6C ;               TQCl
69 65 6E 74                                     ;   ient


Packet 3 -- TQClient -- Length: 76 | 84 -- Type: 1102
4C 00 4E 04 DA BD 5A 12 03 1E 00 00 0C 00 00 00 ;   L NڽZ     
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 00 00 00 00 54 51 53 65 ;               TQSe
72 76 65 72                                     ;   rver


Packet 4 -- TQClient -- Length: 76 | 84 -- Type: 1102
4C 00 4E 04 DA BD 5A 12 00 1E 00 00 0C 00 00 00 ;   L NڽZ      
00 00 00 00 01 00 00 00 8F C0 54 12 F1 41 06 00 ;          TA 
00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 00 ;                  
00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 ;                  
00 00 00 00 00 00 12 09 00 00 00 00 54 51 53 65 ;         	    TQSe
72 76 65 72                                     ;   rver


Packet 5 -- TQClient -- Length: 16 | 24 -- Type: 2048
10 00 00 08 39 F6 16 00 04 00 00 00 00 00 00 00 ;     9        
54 51 53 65 72 76 65 72                         ;   TQServer


Packet 6 -- TQClient -- Length: 72 | 80 -- Type: 10017
48 00 21 27 39 F6 16 00 02 00 00 00 FF FF FF FF ;   H !'9    
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
1C 00 00 00 00 44 48 00 00 00 00 00 00 00 00 00 ;       DH         
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 54 51 53 65 72 76 65 72 ;           TQServer


Packet 7 -- TQClient -- Length: 72 | 80 -- Type: 10017
48 00 21 27 39 F6 16 00 02 00 00 00 FF FF FF FF ;   H !'9    
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
08 00 00 00 30 00 00 00 00 00 00 00 00 00 00 00 ;      0           
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 54 51 53 65 72 76 65 72 ;           TQServer


Packet 8 -- TQClient -- Length: 72 | 80 -- Type: 10017
48 00 21 27 39 F6 16 00 02 00 00 00 FF FF FF FF ;   H !'9    
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
1C 00 00 00 18 40 48 00 00 00 00 00 00 00 00 00 ;      @H         
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 54 51 53 65 72 76 65 72 ;           TQServer


Packet 9 -- TQClient -- Length: 72 | 80 -- Type: 10017
48 00 21 27 39 F6 16 00 02 00 00 00 FF FF FF FF ;   H !'9    
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
1C 00 00 00 30 3C 48 00 00 00 00 00 00 00 00 00 ;      0<H         
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 54 51 53 65 72 76 65 72 ;           TQServer


Packet 12 -- TQClient -- Length: 72 | 80 -- Type: 10017
48 00 21 27 39 F6 16 00 02 00 00 00 FF FF FF FF ;   H !'9    
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
08 00 00 00 33 00 00 00 00 00 00 00 00 00 00 00 ;      3           
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 54 51 53 65 72 76 65 72 ;           TQServer


Packet 13 -- TQClient -- Length: 72 | 80 -- Type: 10017
48 00 21 27 78 45 1A 00 02 00 00 00 FF FF FF FF ;   H !'xE    
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
19 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 ;                 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 54 51 53 65 72 76 65 72 ;           TQServer


Packet 14 -- TQClient -- Length: 72 | 80 -- Type: 10017
48 00 21 27 39 F6 16 00 02 00 00 00 FF FF FF FF ;   H !'9    
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
1C 00 00 00 48 38 48 00 00 00 00 00 00 00 00 00 ;      H8H         
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 00 00 00 00 54 51 53 65 72 76 65 72 ;           TQServer
11/19/2018 04:03 LepEatWorld#3
Quote:
Originally Posted by Spirited View Post
Here are some ancient packet dumps I made
Could you perhaps explain or help me understand how to use this? Never actually seen that before.
11/19/2018 05:39 Spirited#4
Quote:
Originally Posted by LepEatWorld View Post
Could you perhaps explain or help me understand how to use this? Never actually seen that before.
[Only registered and activated users can see links. Click Here To Register...]
11/20/2018 00:34 LepEatWorld#5
Quote:
Originally Posted by Spirited View Post
[Only registered and activated users can see links. Click Here To Register...]
Thanks, I'm trying to understand how to do this. Currently I'm kind of confused. This is what you have on your guide:

Quote:
Originally Posted by Spirited View Post
Introduction

Code:
18 00 15 27 72 00 00 00 29 20 1A 00 00 00 00 00 
82 2D 3F 05 00 00 00 00 54 51 53 65 72 76 65 72
[Offset 04] 72 00 00 00 = 72: The direction of the player mod possible angles (8). 72 mod 8 = direction 0.
[Offset 08] 29 20 1A 00 = 1712169: The unique character ID making the step.
[Offset 12] 00 00 00 00 = 0: The type of movement being sent (walking).
[Offset 16] 82 2D 3F 05 = 88026498: Timestamp ([Only registered and activated users can see links. Click Here To Register...]).
[Offset 20] 00 00 00 00 = 0: Map ID (not always supplied).
[Offset 24] 54 51 53 65 72 76 65 72 = TQServer: The footer of the packet.
I get the following:

Code:
[Offset 0] (INT 16 [Little Endian]) 18 00 = 24
[Offset 2] (INT 16 [Little Endian]) 15 27 = 10005
[Offset 4] (INT 32 [Little Endian]) 72 00 00 00 = 114
[Offset 8] (INT 32 [Little Endian]) 29 20 1A 00 = 1712169
[Offset 12] (INT 32 [Little Endian]) 00 00 00 00 = 0
[Offset 16] (INT 32 [Little Endian]) 82 2D 3F 05 = 88026498
[Offset 20] (INT 32 [Little Endian]) 00 00 00 00 = 0
[Offset 24] (ASCII) 54 51 53 65 72 76 65 72 = TQServer
As you can see, the Offset 4 is not the same on my side. I'm I doing something wrong?

This is what I can get from the "Using Sash"

I'm I doing things right? Is there something I'm doing wrong? This is what I found on the [Only registered and activated users can see links. Click Here To Register...].

I'm using the following [Only registered and activated users can see links. Click Here To Register...]
11/20/2018 04:08 Spirited#6
Quote:
Originally Posted by LepEatWorld View Post
Thanks, I'm trying to understand how to do this. Currently I'm kind of confused. This is what you have on your guide:



I get the following:

Code:
[Offset 0] (INT 16 [Little Endian]) 18 00 = 24
[Offset 2] (INT 16 [Little Endian]) 15 27 = 10005
[Offset 4] (INT 32 [Little Endian]) 72 00 00 00 = 114
[Offset 8] (INT 32 [Little Endian]) 29 20 1A 00 = 1712169
[Offset 12] (INT 32 [Little Endian]) 00 00 00 00 = 0
[Offset 16] (INT 32 [Little Endian]) 82 2D 3F 05 = 88026498
[Offset 20] (INT 32 [Little Endian]) 00 00 00 00 = 0
[Offset 24] (ASCII) 54 51 53 65 72 76 65 72 = TQServer
As you can see, the Offset 4 is not the same on my side. I'm I doing something wrong?

This is what I can get from the "Using Sash"

I'm I doing things right? Is there something I'm doing wrong? This is what I found on the [Only registered and activated users can see links. Click Here To Register...].

I'm using the following [Only registered and activated users can see links. Click Here To Register...]
I'm surprised nobody has pointed that out since I made that tutorial. Yeah, offset 4 in the example is incorrect. It should be 114, which is direction 2. Regarding sashes, it's packet 1102.
11/20/2018 04:43 LepEatWorld#7
Quote:
Originally Posted by Spirited View Post
I'm surprised nobody has pointed that out since I made that tutorial. Yeah, offset 4 in the example is incorrect. It should be 114, which is direction 2. Regarding sashes, it's packet 1102.
So, should I disregard all the types: 2048 and 10017?