Script for [L%C]Amadeus by DaKlue
Related: RemoveTrap script for [l%c]amadeus
Description: Script for [L%C]Amadeus
1///CASTING//////////////////////
2@setvar! castMS 1
3@setvar! castChainLightning 1
4@setvar! castFlamestrike 1
5////////////////////////////////
6
7/////Auto Invisability//////////////////
8@setvar! automaticallyCastIvis 1
9////////////////////////////////////////
10
11/////////DO NOTHING BELOW///////////
12@setvar! isDiscorded 0
13
14if not varexist isStealthing
15 @setvar! isStealthing 0
16endif
17
18if not timerexists useSkillTimer
19 createtimer useSkillTimer
20 settimer useSkillTimer 11000
21endif
22////////////////////////////////
23
24if insysmsg 'world is saving'
25 for 60
26 overhead 'Waiting for world save...'
27 wait 100
28 if insysmsg 'save complete'
29 overhead 'Save complete - continue on!' 88
30 break
31 endif
32 endfor
33endif
34
35if findtype "moongate" ground -1 1 2 or findtype "blue moongate" ground -1 1 2 as jGate
36 dclick jGate
37 wait 500
38 while not gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as jGate
39 dclick jGate
40 endwhile
41
42 if gumpexists 3899019871 and findtype "blue moongate" ground 0 1 2 as jGate
43 gumpresponse 2 3899019871
44 replay
45 endif
46else
47 overhead "No gate nearby!" 34
48 wait 5000
49 replay
50endif
51
52hotkey 'Target Closest Non-Friendly Monster' as myKillTarget
53target myKillTarget
54
55if skill "Discordance" >= 50
56 if isDiscorded = 0
57 getlabel myKillTarget discordDesc
58 if "discord" in discordDesc
59 @setvar! isDiscorded 1
60 elseif timer useSkillTimer >= 11000
61 useskill 'Discordance'
62 wft 500
63 if insysmsg "What instrument"
64 if findtype "bamboo flute" backpack as inny
65 target inny
66 elseif findtype "tambourine" backpack as inny
67 elseif findtype "drum" backpack as inny
68 elseif findtype "lute" backpack as inny
69 elseif findtype "harp" backpack as inny
70 elseif findtype "lap harp" backpack as inny
71 else
72 overhead "I do not have an inny" 34
73 @setvar! isDiscorded 1
74 endif
75 wft 500
76 endif
77 if targetexists
78 target myKillTarget
79 overhead "Discorded" 88 myKillTarget
80 settimer useSkillTimer 5000
81 endif
82 endif
83endif
84
85if skill "magery" >= 100
86 if castMS = 1 and mana > 52
87 while not targetexists harmful and mana > 50
88 cast 'Meteor Swarm'
89 wft 500
90 endwhile
91
92 if targetexists harmful
93 target myKillTarget
94 wait 500
95 endif
96 endif
97
98 if castChainLightning = 1 and mana > 52
99 while not targetexists harmful and mana > 50
100 cast 'Chain Lightning'
101 wft 500
102 endwhile
103
104 if targetexists harmful
105 target myKillTarget
106 wait 500
107 endif
108 endif
109
110 if castFlamestrike = 1 and mana > 42
111 while not targetexists harmful and mana > 40
112 cast 'Flamestrike'
113 wft 500
114 endwhile
115
116 if targetexists harmful
117 target myKillTarget
118 wait 500
119 endif
120 endif
121endif
122
123if automaticallyCastIvis = 1
124 if not hidden or findbuff "Invisibility"
125 @setvar! isStealthing 0
126 useskill 'hiding'
127 wait 200
128 if hidden
129 overhead "Successfully hidden" 88
130 settimer useSkillTimer 0
131 elseif not hidden or findbuff "Invisibility"
132 if skill "Magery" >= 80
133 overhead "Casting Invisability" 34
134 cast 'Invisibility'
135 wft 500
136 if targetexists
137 target self
138 @setvar! isStealthing 0
139 wait 200
140 if findbuff "Invisibility" or hidden
141 overhead "Successfully used Invisability" 34
142 settimer useSkillTimer 0
143 endif
144 endif
145 endif
146 endif
147 endif
148endif