var a:array[1..100] of string;
i,n:integer;
id,withdraw,openwh,useite m,wh,enchant:string;
begin
//Item id need to be captured.For example from UseItem packet
id:=hstr(' ===========ITEM ID HERE======== ');
useitem:=hstr('14')+id+hs tr('00 00 00 00');
wh:=hstr('31 01 00 00 00')+id+hstr('01 00 00 00');
enchant:=hstr('58')+id;
//openwh need to be captured:RequestBypassToS erver
openwh:=hstr(' =======BYPASSSERVER HERE========== ');
withdraw:=hstr('32 01 00 00 00')+id+hstr('01 00 00 00');
if (fromclient) and (pck=hstr('1B 02 00 00 00 ')) then
begin
buf:=withdraw;
sendtoserver;
buf:=openwh;
sendtoserver;
end;
if (fromclient) and (pck=hstr('1B 03 00 00 00 ')) then
begin
buf:=useitem;
sendtoserver;
buf:=wh;
sendtoserver;
buf:=wh;
sendtoserver;
buf:=enchant;
sendtoserver;
end;
now i know that is the warehouse enchant. but can someone please explain to me how to use it. when ever i try to it doesnt go at all.
sorry i just started using phx yesterday






