-
Notifications
You must be signed in to change notification settings - Fork 0
/
train-peace.py
86 lines (74 loc) · 2.99 KB
/
train-peace.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
from Scripts.utilities.items import FindItem
from Scripts.glossary.colors import colors
from System.Collections.Generic import List
from Scripts.glossary.enemies import GetEnemyNotorieties
from System import Byte, Int32
def Disco():
mobFilter = Mobiles.Filter()
mobFilter.RangeMin = 0
mobFilter.RangeMax = 12
mobFilter.IsHuman = 0
mobFilter.IsGhost = 0
mobFilter.Friend = 0
mobFilter.Notorieties = GetEnemyNotorieties()
enemies = Mobiles.ApplyFilter( mobFilter )
Player.HeadMessage(colors[ 'cyan' ], "checking for targets")
Misc.Pause(50)
if len( enemies ) == 0:
Player.HeadMessage(138, "No targets found")
else:
drums = Items.FindByID(0x0E9C,-1,Player.Backpack.Serial)
if not drums:
drums = Items.FindByID(0x0EB3,-1,Player.Backpack.Serial)
if drums:
Items.UseItem(drums)
for enemy in enemies:
Mobiles.Message(enemy,170,"> PEACE TARGET <",1000)
Journal.Clear()
Misc.Pause(100)
Player.UseSkill("Peacemaking")
Target.WaitForTarget(1000, False)
Target.TargetExecute(enemy)
Misc.Pause(200)
if Journal.Search("You play poorly, and there is no effect."):
Player.HeadMessage(colors[ 'cyan' ], "play poorly")
Misc.Pause(10250)
elif Journal.Search("You play jarring music"):
Player.HeadMessage(colors[ 'cyan' ], "play jarring music")
Misc.Pause(10250)
elif Journal.Search("You attempt to calm your target, but fail."):
Player.HeadMessage(colors[ 'cyan' ], "fail to disrupt")
Misc.Pause(5000)
elif Journal.Search("Target cannot be seen."):
Misc.Pause(1500)
elif Journal.Search("That creature is already being calmed."):
Misc.Pause(1500)
elif Journal.Search("That is too far away."):
Misc.Pause(1500)
else:
Misc.Pause(10250)
while not Player.IsGhost and Player.GetSkillValue('Peacemaking') < 110:
# PathFinding.PathFindTo(1459,1668,3)
# PathFinding.PathFindTo(1468,1653,10)
# PathFinding.PathFindTo(1482,1659,10)
# #Misc.ScriptRun('heal_lowest-hp_pet.py')
# Disco()
# PathFinding.PathFindTo(439,1173,23)
# Disco()
# PathFinding.PathFindTo(433,1175,23)
# Disco()
# PathFinding.PathFindTo(421,1177,23)
# Disco()
# PathFinding.PathFindTo(421,1185,23)
# PathFinding.PathFindTo(413,1190,23)
# Disco()
# PathFinding.PathFindTo(418,1196,23)
# PathFinding.PathFindTo(431,1195,23)
# Disco()
# PathFinding.PathFindTo(443,1193,23)
# Disco()
# PathFinding.PathFindTo(445,1177,23)
Player.UseSkill("Peacemaking")
Target.WaitForTarget(1000, False)
Target.Self()
Misc.Pause(5250)