forked from mochja/l2.net-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFastCast_OnFly_Test.l2s
41 lines (33 loc) · 1.33 KB
/
FastCast_OnFly_Test.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
PRINT_TEXT "SCRIPT STARTED!]"
INCLUDE "Include/EngineX.l2c"
DEFINE_GLOBAL ENGINEX ENGINEX 0
INCLUDE "Include/FastCast.l2c"
DEFINE_GLOBAL FASTCAST FASTCAST 0
// start this script in ingame mode and type in chat "-fastcast" and you will see ;)
// loads the shortcuts
FASTCAST.LOAD_SHORTCUTS VOID 0
// creates a castlist with the specified name
FASTCAST.CREATE_CASTLIST VOID 1 #$TestList1
// configurate the castlist
// you dont need to... look at the castlist-class-file to see the default values
FASTCAST.CASTLISTS.#$TestList1.TIMEOUT = #i1000
FASTCAST.CASTLISTS.#$TestList1.REPEATS = #i0
FASTCAST.CASTLISTS.#$TestList1.USE_CTRL = FALSE
FASTCAST.CASTLISTS.#$TestList1.USE_SHIFT = FALSE
FASTCAST.CASTLISTS.#$TestList1.ON_MAXREPEATS = #i1
FASTCAST.CASTLISTS.#$TestList1.ON_NOTARGET = #i0
FASTCAST.CASTLISTS.#$TestList1.ON_WRONGTARGET = #i1
FASTCAST.CASTLISTS.#$TestList1.ON_CANCEL = #i1
FASTCAST.CASTLISTS.#$TestList1.ON_PEACEZONE = #i1
FASTCAST.CASTLISTS.#$TestList1.ON_FAIL = #i1
FASTCAST.CASTLISTS.#$TestList1.ON_COOLDOWN = #i0
// onerror-actions:
// 0 = nothing, continue trying to cast current skill
// 1 = next skill
// 2 = abort castlist (will automaticly resets the casting-position)
// add all shortcuts skills to a castlist
FASTCAST.ADD_ALL_SHORTCUTS VOID 1 #$TestList1
WHILE (TRUE == TRUE)
SLEEP 10
WEND
END_SCRIPT