forked from mochja/l2.net-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AlchemistKeys.l2s
54 lines (46 loc) · 1.28 KB
/
AlchemistKeys.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
// Automaticke rozklikavani Alchemist Keyu
// Server: l2-divinty.com
// Autor: mochitto
// Date: 10. 5. 2010
// Special thanks for L2.NET contributors and Divinity Server :P
// rev.: 16
PRINT_TEXT "SCRIPT STARTED]"
// Event section
// ===============================
SET_EVENT "<&SCRIPTEVENT_SERVERPACKETEX&>" "<&SYSTEM_CURRENTFILE&>" exhtml 141
// Define section
// ===============================
DEFINE_GLOBAL STRING _html 0
DEFINE_GLOBAL STRING Link1 "bypass -h Quest 9000_AlchemistChest KEY"
DEFINE_GLOBAL STRING Link2 "bypass -h Quest 9000_AlchemistChest START.htm"
// Main section
// ===============================
WHILE ZERO == ZERO
SLEEP 10000
WEND
END_SCRIPT
// Function section
// ===============================
FUNCTION exhtml
PACKET.READ_BYTE NULL
PACKET.READ_INT16 NULL
PACKET.READ_INT32 NULL
PACKET.READ_STRING _html
DEFINE INT ITEM 0
ITEM_COUNT ITEM 9205 // Item count: Alchemist Key
SLEEP 330
IF ITEM > #i0
IF "_html.CONTAINS Link1" == TRUE
NPC_DIALOG "<&Link1&>"
PRINT_TEXT "== Alchemist Keys: <&ITEM&>]"
ELSE
IF "_html.CONTAINS Link2" == TRUE
NPC_DIALOG "<&Link2&>"
ENDIF
ENDIF
ELSE
PRINT_TEXT "== You don't have next Alchemist Key"
PRINT_TEXT "SCRIPT ENDED]"
SCRIPT_END
ENDIF
RETURN VOID