forked from matsamilla/Razor-Enhanced
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpvm_pvp_Pot_Buff Refresh.py
87 lines (79 loc) · 2.13 KB
/
pvm_pvp_Pot_Buff Refresh.py
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
#buff pots
leftHand = Player.GetItemOnLayer('LeftHand')
chugtime = 650
journalTimeout = 100
msgColor = 66
noBow = True
bows = [0x13B2,0x26C2,0x0F50,0x13FD]
if not leftHand:
noBow = True
elif leftHand.ItemID in bows:
noBow = False
elif leftHand:
noBow = True
def str():
Player.ChatSay( 1 , '[drink GreaterStrengthPotion ')
Misc.Pause( journalTimeout )
if Journal.Search( 'You do not have any of those potions.'):
Player.HeadMessage(msgColor, "No Strenth pots!")
Journal.Clear()
else:
Misc.Pause(chugtime)
def agil():
Player.ChatSay( 1 , '[drink GreaterAgilityPotion')
Misc.Pause( journalTimeout )
if Journal.Search( 'You do not have any of those potions.'):
Player.HeadMessage(msgColor, "No Agility pots!")
Journal.Clear()
else:
Misc.Pause(chugtime)
def refresh():
Player.ChatSay( 1 , '[drink totalrefreshpotion')
Misc.Pause(100)
if Journal.Search( 'You do not have any of those potions.'):
Player.HeadMessage(msgColor, "No Refresh pots!")
Journal.Clear()
else:
Misc.Pause(chugtime)
def clearHands():
if leftHand and noBow:
Player.UnEquipItemByLayer('LeftHand')
Misc.Pause(650)
return True
else:
return False
def reArm():
Player.EquipItem(leftHand)
Misc.Pause(50)
def buffUp():
if Player.Str <= 100:
if clearHands():
disarmed = True
else:
disarmed = False
str()
agil()
refresh()
if disarmed:
reArm()
elif Player.Dex <= 100:
if clearHands():
disarmed = True
else:
disarmed = False
str()
agil()
refresh()
if disarmed:
reArm()
elif Player.Stam <= Player.StamMax:
if clearHands():
disarmed = True
else:
disarmed = False
refresh()
if disarmed:
reArm()
else:
Player.HeadMessage(msgColor, 'Buffed and full stam')
buffUp()