[Help] How to deal with empty string data in packet?

03/26/2015 07:16 anonentity#1
Hi All,

I'm trying to send a packet to load a skill but I can't seem to be able to reproduce the packet that's being sent when a skill hotkey is pressed. Here's the packet for loading smash:
Code:
 Opcode: 00006982
 00 T_WORD : 20002 [4E22]
 01 T_STR  :
I have tried to treat the T_STR data as "" and '\0' but neither of them worked. The client simply crashes when executing len = pkt_XXXX.BuildPacket( &p );
I've also tried to ignore the second data and send the packet with only T_WORD, this brings up the skill bubble but the skill was actually not loaded.
Could anyone tell me how to solve this problem?

Thanks.
03/26/2015 08:13 Caesarw#2
if you are using a str data, don't forget to set len, in your example, len should be 0.