forked from mochja/l2.net-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
New2.l2s
41 lines (37 loc) · 1.02 KB
/
New2.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
// Kratky popis
// Server:
// Autor: mochitto
// Date:
// Special thanks for L2.NET contributors
// rev.: 0
PRINT_TEXT "SCRIPT STARTED!]"
SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" CharList 9
// Main section
// ===============================
DEFINE STRING NAME "Evild"
DEFINE STRING NICK
DEFINE_GLOBAL INT LASTID 0
DEFINE_GLOBAL INT CHARS 0
DEFINE_GLOBAL INT CHARLIST 0
WHILE CHARS < 7
IF CHARLIST == 1
LASTID = LASTID + 1
NICK = "#$<&NAME&><&LASTID&>"
PRINT_TEXT "MAKING CHAR FOR SLOT <&CHARS&> WITH NICK <&NICK&>"
INJECT "0C <&NAME.GET_HEX&> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1C 00 00 00 27 00 00 00 1E 00 00 00 1B 00 00 00 23 00 00 00 0B 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
SLEEP 1000
ENDIF
SLEEP 25
WEND
FOR A 0 7 1
INJECT "0D <&A.GET_HEX32&>"
SLEEP 500
NEXT
PRINT_TEXT "SCRIPT STOPED!]"
END_SCRIPT
FUNCTION CharList
PACKET.READ_BYTE NULL
PACKET.READ_INT32 CHARS
PRINT_TEXT "CHARS ALIVE <&CHARS&>"
CHARLIST = 1
RETURN VOID