-
Notifications
You must be signed in to change notification settings - Fork 7
/
Casting.js
69 lines (67 loc) · 2.15 KB
/
Casting.js
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
////////////////////////////////////////////////////////////////////////////////
// ~ Casting ~ //
// - Taldor / Quin - //
////////////////////////////////////////////////////////////////////////////////
//
// Ukazka casteni ze scrollu na lasttarget a self, pokud nejsou svitky casti z hlavy
//
// Pouziti:
// Hotkey -> Run script :
// KVF_scroll()
// self_gh()
//
// ~~~~~~~~~~~~~~~ID scrollu~~~~~~~~~~~~~~~
// ----------------HARMFUL----------------
// var Paralyze_scroll = '0x1F52';
// var FlameStrike_scroll = '0x1F5F';
// var EnergyBolt_scroll = '0x1F56';
// var Harm_scroll = '0x1F38';
// var ParalyzeField_scroll = '0x1F5B';
// ----------------NEUTRAL----------------
// var NightSight_scroll = '0x1F33';
// var BladeSpirits_scroll = '0x1F4D';
// var WallOfStone_scroll = '0x1F44';
// var Teleport_scroll = '0x1F42';
// var Recall_scroll = '0x1F4C';
// ----------------BENEFIT----------------
// var Dispel_scroll = '0x1F55';
// var ReactiveArmor_scroll = '0x1F2D';
// var Ressurection_scroll = '0x1F67';
// var MagicReflection_scroll = '0x1F50';
// var GreaterHeal_scroll = '0x1F49';
//
////////////////////////////////////////////////////////////////////////////////
function KVF_scroll() {
var FlameStrike_scroll = '0x1F5F';
if (Orion.Count(FlameStrike_scroll) < 1) {
Orion.Print("Flame Strike Scroll = 0");
}
if (Player.Mana() < 10) {
Orion.Print("Not enough mana!");
return;
}
Orion.WaitTargetObject(lasttarget);
if (Orion.Count(FlameStrike_scroll) != 0) {
Orion.UseType(FlameStrike_scroll);
} else {
Orion.Print("Scrolls not found, cast from Book");
Orion.Cast('Flame Strike');
}
}
function self_gh() {
var GreaterHeal_scroll = '0x1F49';
if (Orion.Count(GreaterHeal_scroll) < 1) {
Orion.Print("GH Scroll = 0");
}
if (Player.Mana() < 10) {
Orion.Print("Not enough mana!");
return;
}
Orion.WaitTargetObject(self);
if (Orion.Count(GreaterHeal_scroll) != 0)
Orion.UseType(GreaterHeal_scroll);
else {
Orion.Print("Scrolls Not Found, cast from Book");
Orion.Cast('Greater Heal');
}
}