Показать сообщение отдельно
Старый 22.07.2008, 23:52   #452
Пользователь
 
Аватар для charly911
 
Регистрация: 20.05.2008
Адрес: Arg.
Сообщений: 35
Сказал Спасибо: 2
Имеет 3 спасибок в 2 сообщенях
charly911 пока неопределено
По умолчанию

Hello ppl, im new in the forum. Sry i dont know Russian... im from Argentina (South America).
First of all i would like to tell u that i love this forum and l2phx best botting tool ever
I know little programming, but i could write some scripts that worked excelent.
I have a problem with one script posted in this thread, i cant understand this:
delphi Код:
--------------------------------------------------------------------- for i:= 1 to 100 do  begin   if MobID[i] <> '' then    begin    tempX1:=ord(MobX[i][3])*256*256  + ord(MobX[i][2]) * 256 + ord(MobX[i][1]);    tempY1:=ord(MobY[i][3])*256*256  + ord(MobY[i][2]) * 256 + ord(MobY[i][1]);    if (MobX[i][4] = #$FF) then tempX1:=16777215-tempX1;    if (MobY[i][4] = #$FF) then tempY1:=16777215-tempY1;    tempLenght:= sqrt((MyCoordXex-tempx1)*(MyCoordXex-tempx1) + (MyCoordYex-tempy1)*(MyCoordYex-tempy1));     if (tempLenght<MinPutLenght) then     begin      MinPutLenght:=tempLenght;      MinPutID:=i;     end;   end;  end; ------------------------------------------------------------------
Can someone tell me what does it do???? what is "ord" for??? Why is MobID,MobX, etc string and not integer??? o.O

Thnx, Charly.

Последний раз редактировалось QaK, 23.07.2008 в 08:42.
charly911 вне форума   Ответить с цитированием