Например:
Code: Select all
SetEventProc(evICQDisconnect, '');
SetEventProc(evICQError, '');
SetEventProc(evICQIncomingText, '');
Code: Select all
SetEventProc(evICQDisconnect, '');
SetEventProc(evICQError, '');
SetEventProc(evICQIncomingText, '');
Code: Select all
procedure SetEventProc(Eventname: TPacketEvent; Procname: String);
TPacketEvent = {
evItemInfo,
evItemDeleted,
evSpeech,
evDrawGamePlayer,
evMoveRejection,
evDrawContainer,
evAddItemToContainer,
evAddMultipleItemsInCont,
evRejectMoveItem,
evUpdateChar,
evDrawObject,
evMenu,
evMapMessage,
evAllow_RefuseAttack,
evClilocSpeech,
evClilocSpeechAffix,
evUnicodeSpeech,
evBuff_DebuffSystem,
evClientSendResync,
evCharAnimation,
evICQDisconnect,
evICQConnect,
evICQIncomingText,
evICQError,
evIncomingGump,
evTimer1,
evTimer2
};
Code: Select all
Program evMoveRejection;
procedure OnRejectMoveItem(Reason: Byte);
begin
AddToSystemJournal('Event! Muver);
end;
begin
SetEventProc(evRejectMoveItem,'OnRejectMoveItem');
while True do
wait(50);
end.
Code: Select all
00:13:20:840 [timy]: Compiling
00:13:20:866 [timy]: Compiler: [Error] (ev.inc at 1:1): 'BEGIN' expected
00:13:20:870 [timy]: Compiling failed
00:13:20:871 [timy]: Script fish test2.txt stopped successfuly
Code: Select all
procedure OnRejectMoveItem(Reason: Byte);
begin
TPacketEvent = evMoveRejection;
end;
Code: Select all
procedure OnRejectMoveItem(Reason: Byte);
begin
AddToSystemJournal('Event! Muver);
end;
Code: Select all
[21:41:19:458: ] You put 1 steak in your backpack.
[21:41:20:613: ] You finished looping.
[21:41:20:613: ] You stop fishing.
[21:41:23:296: ] You cannot pick up this item(cannot lift item), ID: $00000000
[21:41:23:296: ] You cannot pick up this item(cannot lift item), ID: $00000000
[21:41:25:707: ] You are stuffed
[21:41:27:873: ] Looping [1 more to go].
[21:41:33:013: ] You finished looping.
[21:41:33:013: ] You stop fishing.
[21:41:34:465: ] You are stuffed
Code: Select all
[21:40:20:504: ] стакаем фишстейки
[21:40:20:504: ] 23898 стейков.
[21:40:40:588: ] стакаем фишстейки
[21:40:40:589: ] 23899 стейков.
[21:41:23:296: ] Event! Muver
[21:41:23:297: ] Event! Muver
[21:41:25:312: ] стакаем фишстейки
[21:41:25:312: ] 23900 стейков.
[21:41:53:566: ] стакаем фишстейки
[21:41:53:567: ] 23901 стейков.