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
/
Copy pathEvilKeys.l2s
87 lines (74 loc) · 1.85 KB
/
EvilKeys.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// Automatic click Ewil Weapons
// Server: l2-divinty.com
// Autor: mochitto
// Date: 5. 6. 2010
// Special thanks for L2.NET contributors and Divinity Server :P
// rev.: 14
PRINT_TEXT "== SCRIPT STARTED]"
// Event section
// ===============================
SET_EVENT "<&SCRIPTEVENT_SERVERPACKETEX&>" "<&SYSTEM_CURRENTFILE&>" exhtml 141
SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" html 25
// Define section
// ===============================
DEFINE_GLOBAL STRING _html 0
DEFINE_GLOBAL INT ObjID 0
DEFINE_GLOBAL INT COMM 0
DEFINE_GLOBAL STRING Link2 "bypass -h Quest 690_JudesRequest 32356-09.htm"
// Main section
// ===============================
CANCEL_TARGET
SLEEP 100
COMMAND "/target Jude"
COMM = #i1
SLEEP 1000
TALK_TARGET
WHILE ZERO == ZERO
SLEEP 10000
WEND
END_SCRIPT
// Function section
// ===============================
FUNCTION html
PACKET.READ_BYTE NULL
PACKET.READ_INT32 NULL
PACKET.READ_STRING _html
DEFINE STRING Link1 "bypass -h npc_<&TARGET_ID&>_Quest"
SLEEP 330
SWITCH COMM
CASE #i1
IF "_html.CONTAINS Link1" == TRUE
NPC_DIALOG "<&Link1&>"
PRINT_TEXT "DIALOG CLICK 1"
COMM = #i2
ENDIF
BREAK 1
ENDSWITCH
RETURN VOID
FUNCTION exhtml
PACKET.READ_BYTE NULL
PACKET.READ_INT16 NULL
PACKET.READ_INT32 NULL
PACKET.READ_STRING _html
SLEEP 330
DEFINE INT ITEM 0
ITEM_COUNT ITEM 10327 // Item Count: Ewil WeaponsS
IF ITEM > #i4
SWITCH COMM
CASE #i2
IF "_html.CONTAINS Link2" == TRUE
NPC_DIALOG "<&Link2&>"
PRINT_TEXT "DIALOG CLICK 2"
COMM = #i1
SLEEP 1000
TALK_TARGET
ENDIF
BREAK 1
ENDSWITCH
ELSE
PRINT_TEXT "========================================"
PRINT_TEXT "== You don't have next 5 Evil Weapons"
PRINT_TEXT "== SCRIPT STOPED]"
END_SCRIPT
ENDIF
RETURN VOID