-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpshot.cmd
More file actions
47 lines (40 loc) · 1.04 KB
/
pshot.cmd
File metadata and controls
47 lines (40 loc) · 1.04 KB
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
include library.cmd
var powershotweapon $powershotweapon
var powershotammo $powershotammo
var shielditem $shielditem
var manename powershot
if !def(powershotlast) then put #var powershotlast 0
action (combo) on
if_1 then var pvptarget %1
else var pvptarget $pvptarget
var manetest $unixtime
math manetest subtract $powershotlast
if (%manetest > 90) then
{
if ("$righthand" != "Empty") then
{
if (!matchre("$righthand", "%powershotweapon")) then
{
gosub STOW right
gosub GETITEM %powershotweapon
}
}
else gosub GETITEM %powershotweapon
gosub BOWLOADCHECK %powershotweapon
if (%bowloadgood = 0) then
{
gosub GETITEM %powershotammo
var ubowmmo %powershotammo
gosub BOWLOAD %powershotammo
gosub STOWITEM %powershotammo
}
gosub FACETARGET %pvptarget
gosub ATTACKACMCOMBO powershot
gosub STOWFEET
}
else
{
var secondsleft 90
math secondsleft subtract %manetest
put #echo Yellow Powershot is on cooldown! Next use: %secondsleft sec.
}