Показать сообщение отдельно
Старый 11.05.2009, 16:29   #23
Новичок
 
Регистрация: 09.05.2009
Сообщений: 16
Сказал Спасибо: 1
Имеет 0 спасибок в 0 сообщенях
Horus пока неопределено
По умолчанию

Цитата:
Сообщение от alexteam Посмотреть сообщение
sendtoserverex/sendtoclientex

automaticaly? what you mean?
there no buildin parsers. you must 'read' objid from packet. remember it and only then use it.
for example : peace of the code from this topick
will remember current character position
delphi Код:
var MyX, MyY, MyZ : integer; begin if (ConnectName = 'MyCharName') and FromClient then    case pck[1] of     #$48: begin //ValidatePosition:d(X)d(Y)d(Z)d(Heading)d(Data)            MyX:= ReadD(2); //read d(4 bytes). offset 2. (offsets: 1-packettype=pck[1], 2 - x, 6 - y, 10 - z, look on comment below)            MyY:= ReadD(6);            MyZ:= ReadD(10);           end;    end; end.

Добавлено через 4 минуты
also. 3 (spoil-"bot") and 7(autouse hp poitions) scripts.
http://coderx.ru/showthread.php?t=14
Ya smth like that. Yuck this is ugly you should have used java .
Anyway I suppose the pck[1] means the first packet in the packet array that was obtained from the client ? What does te #$48 stand for?
And is there any place where I can check the PHX 's Script Syntax and available methods,etc ?
Horus вне форума   Ответить с цитированием