forked from ScriptB3ast/razor-enhanced
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtrain_ArmsLore.py
35 lines (26 loc) · 1.05 KB
/
train_ArmsLore.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
'''
Author: TheWarDoctor95
Other Contributors:
Last Contribution By: TheWarDoctor95 - May 30, 2019
Description: Uses the selected target to train Arms Lore to its cap
'''
from Scripts.glossary.colors import colors
armsLoreTimerMilliseconds = 1200
# Select what to run Arms Lore on
armsLoreTarget = Target.PromptTarget( 'Select item to train on' )
def TrainArmsLore():
'''
Trains Arms Lore with the selected target
'''
global armsLoreTarget
Timer.Create( 'armsLoreTimer', 1 )
while not Player.IsGhost and Player.GetRealSkillValue( 'Arms Lore' ) < Player.GetSkillCap( 'Arms Lore' ):
if not Timer.Check( 'armsLoreTimer' ):
Player.UseSkill( 'Arms Lore' )
Target.WaitForTarget( 2000, False )
Target.TargetExecute( armsLoreTarget )
Timer.Create( 'armsLoreTimer', armsLoreTimerMilliseconds )
if Player.GetRealSkillValue( 'Arms Lore' ) >= Player.GetSkillCap( 'Arms Lore' ):
Player.HeadMessage( colors[ 'green' ], 'Arms Lore training complete!' )
# Start Training
TrainArmsLore()