Показать сообщение отдельно
Старый 03.10.2009, 04:07   #1024
Новичок
 
Регистрация: 23.09.2009
Сообщений: 12
Сказал Спасибо: 2
Имеет 0 спасибок в 0 сообщенях
60HD пока неопределено
По умолчанию

Хм помогите немогу понять.
Вобше расчитано на блес точки. пытался переделать на обычные.

Код:
begin
    if FromServer and (pck[1]=#$87) then case ReadD(2) of
       0: begin
          CurrentEnch:=CurrentEnch+1;
          if CurrentEnch=Enchant then Timer01.enabled:=false;
          end;
       3: CurrentEnch:=0;
       end;
    if FromServer and (pck[1]=#$FE) then
       if ReadD(4)=ItemID then key:=2 else key:=1;

    if FromClient and (pck[1]=#$19) then UseItem:=pck;
    if FromClient and (pck[1]=#$5F) then
       begin
       ItemID:=ReadD(4);
       SelectItem:=pck;
       end;
    if FromClient and (pck[1]=#$5F) then EnchantItem:=pck;
    if FromClient and (pck[1]+pck[2]=#$56#$0C) then
       begin
          pck:='';
          Timer01.enabled:=not(Timer01.enabled);
       end;
end.
в пакетах неочень понимаю =(.
60HD вне форума   Ответить с цитированием