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 pathBerserker.l2s
97 lines (84 loc) · 2.35 KB
/
Berserker.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
// Automatic berserker dance on Join pt
// Server: l2-divinty.com
// Autor: mochitto
// Date: 5. 6. 2010
// Special thanks for L2.NET contributors and Divinity Server :P
// rev.: 82
// Script nabizi 2 moznosti
// 1. Automaticke prijeti pt kazdemu a nasledne zatancovani
// 2. Prijeti party pouze urcitym lidem a nasledne zatancovani
PRINT_TEXT "SCRIPT STARTED!]"
// Event section
// ===============================
SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" JOINPT 57
//SET_EVENT "<&SCRIPTEVENT_SERVERPACKET&>" "<&SYSTEM_CURRENTFILE&>" JOINPT2 57
// Main section
// ===============================
WHILE ZERO == ZERO
SLEEP 60000
WEND
PRINT_TEXT "STOP SCRIPT!]"
END_SCRIPT
// Function section
// ===============================
FUNCTION JOINPT
DEFINE INT REUSE 0
DEFINE STRING PartyLeader 0
DEFINE ARRAYLIST NICKLIST 0
PACKET.READ_BYTE NULL
PACKET.READ_STRING PartyLeader
PACKET.READ_INT32 NULL
SLEEP 800
INJECT "43 01 00 00 00" //Party Invite CONFIRM...
LOCK UI_MUTEX
SKILL_GET_REUSE REUSE 915
REUSE = REUSE + #i300
IF REUSE > #i300
SAY_TEXT "<&CHANNEL_PARTY&>" "reuse w8 pls"
ENDIF
SLEEP "<&REUSE&>"
PRINT_TEXT "== GIVING DANCE OF BERS <&PartyLeader&>"
SLEEP 300
USE_SKILL 915
SLEEP 3000
UNLOCK UI_MUTEX
COMMAND "/leave"
RETURN VOID
FUNCTION JOINPT2
DEFINE INT REUSE 0
DEFINE STRING PartyLeader 0
DEFINE ARRAYLIST NICKLIST 0
PACKET.READ_BYTE NULL
PACKET.READ_STRING PartyLeader
PACKET.READ_INT32 NULL
NICKLIST.ADD "#$mochitto"
NICKLIST.ADD "#$EidolonR"
NICKLIST.ADD "#$Brainstorm"
NICKLIST.ADD "#$PutaNero"
NICKLIST.ADD "#$Kozel11"
NICKLIST.ADD "#$DarkWind"
NICKLIST.ADD "#$PockejteNaMe"
NICKLIST.ADD "#$Jamie"
FOREACH A STRING NICKLIST
IF "NICKLIST.A.CONTAINS PartyLeader" == TRUE
SLEEP 800
INJECT "43 01 00 00 00" //Party Invite confirm...
SKILL_GET_REUSE REUSE 915
REUSE = REUSE + #i300
IF REUSE > #i300
SAY_TEXT "<&CHANNEL_PARTY&>" "reus cekej..."
ENDIF
SLEEP "<&REUSE&>"
PRINT_TEXT "GIVING DANCE OF BERS TO <&PartyLeader&>"
SLEEP 300
USE_SKILL 915 // Use Skill: Dance of Berserker
SLEEP 3000
COMMAND "/leave"
RETURN VOID
ENDIF
NEXTEACH
SLEEP 1000
PRINT_TEXT "FUCKING YOU <&PartyLeader&>"
INJECT "43 00 00 00 00" //Party Invite decline...
SLEEP 1000
RETURN VOID