This repository has been archived by the owner on Nov 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
NewScript.l2s
121 lines (52 loc) · 1.59 KB
/
NewScript.l2s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* Created by mochitto 2011
* For Kamael.cz freya server
* Last Update: 8. 3. 11
* Happy Botting!
*
*/
PRINT_TEXT "SCRIPT STARTED!]"
SET_EVENT "<&SCRIPTEVENT_SERVERPACKETEX&>" "<&SYSTEM_CURRENTFILE&>" ExShowScreenMessage 57
BLOCKEX 68
WHILE ZERO == ZERO
SLEEP 978679791723
WEND
PRINT_TEXT "SCRIPT STOPED!]"
END_SCRIPT
FUNCTION ExShowScreenMessage
DEFINE STRING STR1 "Opiste tento kod:"
DEFINE STRING KEY
DEFINE STRING MESSAGE
DEFINE STRING TMP
PACKET.READ_BYTE NULL
PACKET.READ_BYTE NULL
PACKET.READ_BYTE NULL
PACKET.READ_INT32 NULL
PACKET.READ_INT32 NULL
PACKET.READ_INT32 NULL
PACKET.READ_INT32 NULL
PACKET.READ_INT32 NULL
PACKET.READ_INT32 NULL
PACKET.READ_INT32 NULL
PACKET.READ_INT32 NULL
PACKET.READ_INT32 NULL
PACKET.READ_INT32 NULL
PACKET.READ_INT32 NULL
PACKET.READ_STRING MESSAGE
IF "<&MESSAGE.CONTAINS STR1&>" == TRUE
PRINT_TEXT "Recrived key"
SLEEP 2123
TMP = "MESSAGE.TRIM"
TMP = TMP.REPLACE "STR1.TRIM" "#$"
TMP = TMP.REPLACE "#$-" "#$"
KEY = TMP.TRIM
DEFINE BYTEBUFFER REPLYPACKET 1024
REPLYPACKET.WRITE_BYTE 0xD0
REPLYPACKET.WRITE_INT16 0x19
REPLYPACKET.WRITE_STRING KEY
REPLYPACKET.WRITE_INT16 #i0
REPLYPACKET.TRIM_TO_INDEX
INJECTBB REPLYPACKET
PRINT_TEXT "Sending key: <&KEY&>"
ENDIF
RETURN VOID