Jump to content

Recommended Posts

Posted

i tried today to record some packets with l2phx, what exactly i did was buffing at clanhall buffer

 

when i sent the packets in order what i needed manually, it was ok, i got ch buff

but when i tried to make a script from that which catches /socialsomething, and executes it, it stopped to work

begin
  if FromClient and (pck=HStr('1b 03 00 00 00')) then begin
  buf:=HStr('04 A9 9F 00 10 59 B4 01 00 69 59 03 00 AA F1 FF FF 00');
  SendToServer;
  buf:=HStr('04 A9 9F 00 10 59 B4 01 00 69 59 03 00 AA F1 FF FF 00');
  SendToServer;
  buf:=HStr('21 6E 00 70 00 63 00 5F 00 32 00 36 00 38 00 34 00 37 00 36 00 32 00 37 00 36 00 5F 00 51 00 75 00 65 00 73 00 74 00 20 00 39 00 39 00 39 00 39 00 5F 00 4E 00 50 00 43 00 42 00 75 00 66 00 66 00 65 00 72 00 00 00');
  SendToServer;
  buf:=HStr('21 51 00 75 00 65 00 73 00 74 00 20 00 39 00 39 00 39 00 39 00 5F 00 4E 00 50 00 43 00 42 00 75 00 66 00 66 00 65 00 72 00 20 00 68 00 70 00 6D 00 70 00 00 00');
  SendToServer;
  buf:=HStr('21 51 00 75 00 65 00 73 00 74 00 20 00 39 00 39 00 39 00 39 00 5F 00 4E 00 50 00 43 00 42 00 75 00 66 00 66 00 65 00 72 00 20 00 32 00 2E 00 68 00 74 00 6D 00 00 00');
  SendToServer;
  pck:='';
  end;
end.

 

where i did a misstake?

Posted

Well i don't know much about the L2Phx Syntax I prefer the WPC of Sauron it's easier.

Try to put this:

begin

  if FromClient and (pck=HStr('1b 03 00 00 00')) then

begin

  buff:=HStr('04 A9 9F 00 10 59 B4 01 00 69 59 03 00 AA F1 FF FF 00');

  SendToServer;

  buff:=HStr('04 A9 9F 00 10 59 B4 01 00 69 59 03 00 AA F1 FF FF 00');

  SendToServer;

  buff:=HStr('21 6E 00 70 00 63 00 5F 00 32 00 36 00 38 00 34 00 37 00 36 00 32 00 37 00 36 00 5F 00 51 00 75 00 65 00 73 00 74 00 20 00 39 00 39 00 39 00 39 00 5F 00 4E 00 50 00 43 00 42 00 75 00 66 00 66 00 65 00 72 00 00 00');

  SendToServer;

  buff:=HStr('21 51 00 75 00 65 00 73 00 74 00 20 00 39 00 39 00 39 00 39 00 5F 00 4E 00 50 00 43 00 42 00 75 00 66 00 66 00 65 00 72 00 20 00 68 00 70 00 6D 00 70 00 00 00');

  SendToServer;

  buff:=HStr('21 51 00 75 00 65 00 73 00 74 00 20 00 39 00 39 00 39 00 39 00 5F 00 4E 00 50 00 43 00 42 00 75 00 66 00 66 00 65 00 72 00 20 00 32 00 2E 00 68 00 74 00 6D 00 00 00');

  SendToServer;

  pck:='';

  end;

end.

Or always you can use insert a var.

  • 1 month later...
  • 1 year later...
Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock