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
/
NEWREVOLUTIONBUFFER.l2s
105 lines (91 loc) · 2.14 KB
/
NEWREVOLUTIONBUFFER.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// Kratky popis
// Server:
// Autor: mochitto
// Date:
// Special thanks for L2.NET contributors
// rev.: 0
PRINT_TEXT "SCRIPT STARTED!]"
DEFINE_GLOBAL INT SUBCLASS 0
bypass -h npc_<&TARGET_ID&>_Subclass 0
bypass -h npc_<&TARGET_ID&>_Subclass 2
bypass -h npc_<&TARGET_ID&>_Subclass 5 <&SUBCLASS&>
// Main section
// ===============================
PRINT_TEXT "SCRIPT STOPED!]"
END_SCRIPT
FUNCTION BUFFER_L2UNIT
IF IN_PROGRESS == 1
RETURN VOID
ENDIF
IN_PROGRESS = 1
SWITCH MESSAGE
CASE #i1 // full buff
BREAK 1
CASE #i2 // specialy me buff
BREAK 1
CASE #i3 // counter crit and blazing skin
ENDSWITCH
IN_PROGRESS = 0
RETURN VOID
FUNCTION NPCHTMLWINDOW
DEFINE STRING _html
DEFINE INT N1
DEFINE INT N2
DEFINE INT N3
PACKET.READ_BYTE NULL
PACKET.READ_INT32 NULL
PACKET.READ_STRING _html
SLEEP 800
DEFINE STRING LINK1 "bypass -h npc_<&TARGET_ID&>_Subclass 0"
DEFINE STRING LINK2 "bypass -h npc_<&TARGET_ID&>_Subclass 2"
DEFINE STRING LINK3 "bypass -h npc_<&TARGET_ID&>_Subclass 5 <&SUBCLASS&>"
SWITCH COMM
CASE #i1
IF "_html.CONTAINS LINK1" == TRUE
COMM = #i2
NPC_DIALOG "<&LINK1&>"
PRINT_TEXT "Click <&LINK1&>"
ENDIF
BREAK 1
CASE #i2
IF "_html.CONTAINS LINK2" == TRUE
COMM = #i10
NPC_DIALOG "<&LINK2&>"
PRINT_TEXT "Click <&LINK2&>"
SLEEP 5000
COMMAND "/TARGET Cruma Border"
SLEEP 1000
TALK_TARGET
COMM = #i3
ENDIF
BREAK 1
//buff
CASE #i3
IF "_html.CONTAINS LINK3" == TRUE
COMM = #i10
NPC_DIALOG "<&LINK3&>"
PRINT_TEXT "Click <&LINK3&>"
ENDIF
BREAK 1
CASE #i4
IF "_html.CONTAINS LINK4" == TRUE
COMM = #i5
NPC_DIALOG "<&LINK4&>"
PRINT_TEXT "Click <&LINK4&>"
ENDIF
BREAK 1
CASE #i5
IF "_html.CONTAINS LINK5" == TRUE
COMM = #i10
NPC_DIALOG "<&LINK5&>"
PRINT_TEXT "Click <&LINK5&>"
SLEEP 5000
GO_TO VOID 3 -79448 -174904 -10728
SLEEP 1000
BOTSET ACTIVE_TARGET_ON "<&TRUE&>"
BOTSET ACTIVE_ATTACK_ON "<&TRUE&>"
USE_SKILL 312 // VISIOU STANCE
ENDIF
BREAK 1
ENDSWITCH
RETURN VOID