Back to "b" tags

Not Better Ultimate Lazy Dexxer Lazier than Jaseowns by SINGsingFan

1# Lazy Ass Dexxer Script by SingSingFan v2.0
2# UO Outlands
3# One Script to Rule them all
4
5#If you want to auto attack next target, set this to 1
6@setvar! SeekNextTarget 1
7
8#Select your Offensive Chiv Skills
9@setvar! useRemoveCurse 0
10@setvar! useDispelEvil 0
11@setvar! useConsecrateWeapon 1
12@setvar! useEnemyofOne 0
13@setvar! useDivineFury 1
14
15#Select your Defensive Chiv Skills
16@setvar! useCloseWounds 1
17@setvar! useCleansebyFire 1
18
19#Set Default Shield Codex Stance
20#Shieldbash as 1
21#Warding as 2
22#Testudo as 3
23#Mirror as 4
24#Bulwark as 5
25@setvar! defaultCodex 5
26
27#Misc Variables
28@setvar! chivCD 30000
29@setvar! useCurePotionBelowHp 50
30@setvar! cdStance 10000
31
32#Timers
33if not timerexists "RedPot"
34    createtimer "RedPot"
35    settimer "RedPot" 1500
36endif
37if not timerexists "Uneq"
38    createtimer "Uneq"
39    settimer "Uneq" 1500
40endif
41if not timerexists "Eq"
42    createtimer "Eq"
43    settimer "Eq" 1500
44endif
45if not timerexists "HPots"
46    createtimer "HPots"
47    settimer "HPots" 10000
48endif
49
50if not timerexists "CloseWounds"
51    createtimer "CloseWounds"
52    settimer "CloseWounds" 30000
53endif
54
55if not timerexists "CleanseFire"
56    createtimer "CleanseFire"
57    settimer "CleanseFire" 30000
58endif
59
60#Chiv Timers
61if not timerexists chivRemoveCurse
62    createtimer chivRemoveCurse
63    settimer chivRemoveCurse chivCD
64endif
65
66if not timerexists chivDispelEvil
67    createtimer chivDispelEvil
68    settimer chivDispelEvil chivCD
69endif
70
71if not timerexists chivCleansebyFire
72    createtimer chivCleansebyFire
73    settimer chivCleansebyFire chivCD
74endif
75
76if not timerexists chivConsecrateWeapon
77    createtimer chivConsecrateWeapon
78    settimer chivConsecrateWeapon chivCD
79endif
80
81if not timerexists chivCloseWounds
82    createtimer chivCloseWounds
83    settimer chivCloseWounds chivCD
84endif
85
86if not timerexists chivEnemyofOne
87    createtimer chivEnemyofOne
88    settimer chivEnemyofOne chivCD
89endif
90
91if not timerexists chivDivineFury
92    createtimer chivDivineFury
93    settimer chivDivineFury chivCD
94endif
95
96if not timerexists "ChivHeal1"
97    createtimer "ChivHeal1"
98    settimer "ChivHeal1" 30000
99endif
100
101if not timerexists "ChivHeal2"
102    createtimer "ChivHeal2"
103    settimer "ChivHeal2" 30000
104endif
105
106if not timerexists codexShield
107    createtimer codexShield
108    settimer codexShield cdStance 
109endif
110
111
112
113//Initialize Setup
114    
115#Finding Your Weapons and Shield
116    if findlayer self righthand as item
117        @setvar! rightEquip item
118    endif
119
120    if findlayer self lefthand as item
121        @setvar! leftEquip item
122    endif
123#Finding your Shield Codex Default Setup
124    if skill "Parrying" >= 80 and findtype "shield codex" backpack as item
125        
126        getlabel item codexDesc
127        
128        while not gumpexists 1066647553
129            overhead "Loading Codex Hotbar"
130            say "[CodexHotBar"
131            wait 350
132        endwhile
133
134    endif
135
136
137
138
139
140
141  //initiate Combat and attack closest
142  //non friendly with priority to PVP
143    warmode "on"
144    hotkey "Set Last Target"
145    hotkey "Target Closest Non-Friendly Monster"
146    hotkey "Attack Last Target"
147    hotkey "Attack Last Combatant"
148    wait 250
149  
150    if targetexists 
151        hotkey "Cancel Current Target"
152        hotkey "Clear Target Queue"
153    endif
154    
155    @setvar! myKillTarget lasttarget
156    
157#ShowTarget
158
159    if not find myKillTarget ground -1 -1 10
160        overhead "No Target Found"
161        wait 500
162    else 
163        overhead " ◆◆  Target ◆◆  " 38 myKillTarget 
164        overhead " ◆◆ ↓↓↓©◆◆ " 38 myKillTarget
165    endif
166
167while hp > 0
168
169    //*****GEAR AND BUFF CHECK MODULE*****
170    
171
172    #check for low stamina
173        if diffstam > 10 and findtype "Red Potion" backpack
174        
175            if not lhandempty and skill 'alchemy' < 79 and timer "Uneq" > 2000 and timer "RedPot" > 1000
176                hotkey "Arm/Disarm Left Hand"
177                settimer "Uneq" 0
178                wait 550
179            endif
180            
181            hotkey 'Drink Refresh'
182            settimer "RedPot" 0
183            wait 550
184            
185        endif
186
187    #if overweight use str pot
188        if weight > maxweight and findtype "White Potion" backpack and not findbuff "Strength" 
189        
190            if not lhandempty and skill 'alchemy' < 79 and timer "Uneq" > 2000
191                hotkey "Arm/Disarm Left Hand"
192                settimer "Uneq" 0
193                wait 550
194            endif
195
196            hotkey 'Drink Strength'
197            wait 550
198            
199        endif
200
201    #Check and Equip all gear
202        if rhandempty and find rightEquip backpack as item
203            dclick item
204            wait 750
205        endif
206        
207        if lhandempty and find leftEquip backpack as item
208            dclick item
209            wait 750
210        endif
211        
212        if targetexists 
213            hotkey "Cancel Current Target"
214            hotkey "Clear Target Queue"
215        endif
216        
217        
218    #check for food buffs
219        if not findbuff "food satisfaction" and findtype "tray" backpack as food
220            dclick food
221            wait 500
222        endif
223
224    //*****GEAR AND BUFF CHECK MODULE*****
225
226    //*****COMBAT MODULE*****
227
228    #Remove Para
229        if insysmsg 'you cannot move' or insysmsg 'You must wait before using this command again'
230           say '[pouch'
231        endif
232     
233    //*****COMBAT MODULE*****
234    
235    //*****START OF HEALING MODULE*****
236    #Bandaging
237        if not bandaging and hp < maxhp and not targetexists and count 'bandages' > 0
238            hotkey 'Bandage Self'
239            wait 300
240        endif
241    
242    #poison removal sequence
243        if poisoned and hp > useCurePotionBelowHp and timer "chivCleansebyFire" > chivCD and useCleansebyFire > 0
244          
245          overhead "Cleansing Poison With Fire"
246          wait 250
247          say '[CleanseByFire'
248        if insysmsg "Holy symbols remaining:"
249            settimer "chivCleansebyFire" 0
250        endif
251
252        endif
253
254        if poisoned and hp <= useCurePotionBelowHp 
255          
256            overhead "Emergency Poison Removal Activated"
257          
258            if not findbuff "I cannot gate travel" and timer "ChivHeal1" > 30000
259                say '[HolyLight'
260                if insysmsg "Holy symbols remaining:"
261                    settimer "ChivHeal1" 0
262                endif
263            endif
264              
265            wait 250
266            
267            if not lhandempty and skill 'alchemy' < 79 and timer "Uneq" > 2000
268                hotkey "Arm/Disarm Left Hand"
269                settimer "Uneq" 0
270                wait 550
271            endif
272              
273                wait 250
274                
275            while poisoned
276                hotkey "Drink Cure"
277            endwhile
278        
279        endif
280
281    //Reduce Bleed Damage
282    
283        if findbuff "bleed" and timer "chivCloseWounds" > chivCD and useCloseWounds > 0
284            
285            overhead "Bleed Detected. Closing wounds."
286            say '[closewounds'
287            wait 500
288            if insysmsg "Holy symbols remaining:"
289                settimer "chivCloseWounds" 0
290                wait 350
291                
292            else 
293                settimer "chivCloseWounds" 27000
294            endif
295            
296        endif
297
298    //Reduce Disease Damage
299        if findbuff "disease" and timer "chivCloseWounds" > 30000 and useCloseWounds > 0
300            
301            say '[closewounds'
302            overhead "You got diseased. Closing Wounds."
303            if insysmsg "Holy symbols remaining:"
304                settimer "chivCloseWounds" 0
305                wait 350
306            else 
307                settimer "chivCloseWounds" 27000
308            endif
309            
310        endif
311
312    //Emergency Heal Sequence
313        if diffhits > 40
314            
315            if timer "ChivHeal1" > 30000 
316                say '[holylight'
317                wait 250
318                if insysmsg "Holy symbols remaining:"
319                    settimer "ChivHeal1" 0
320                endif
321
322            endif  
323            wait 350
324            if diffhits > 50
325            
326                if timer "ChivHeal2" > 30000
327                    
328                    say '[NobleSacrifice'
329                    wait 350
330                    target self
331                    wait 350
332
333                    if targetexists
334                      hotkey 'cancel current target'
335                      hotkey 'clear target queue'
336                    endif
337
338                    if insysmsg "Holy symbols remaining:"
339                        settimer "ChivHeal2" 0
340                    endif
341                        
342                endif
343                    
344                if diffhits > 50 and timer "HPots" > 10000
345                      
346                    if not lhandempty and skill 'alchemy' < 79 and timer "Uneq" > 2000
347                        hotkey "Arm/Disarm Left Hand"
348                        settimer "Uneq" 0
349                        wait 550
350                    endif
351                      
352                    wait 250
353                    hotkey 'Drink Heal'
354                    overhead "Healing Pot Used"
355                    settimer "HPots" 0
356                    wait 550
357                    
358                endif
359                
360            endif
361        endif
362    //*****END OF HEALING MODULE*****
363    
364    //*****CHIVALRY MODULE         
365    
366    if find myKillTarget ground -1 -1 2
367
368        if useDivineFury > 0 and timer chivDivineFury > chivCD
369        
370            say "[DivineFury"
371            wait 250
372            if insysmsg "Holy symbols remaining:"
373                settimer "chivDivineFury" 0
374            endif
375            
376        endif
377        
378        if useEnemyofOne > 0 and timer chivEnemyofOne > chivCD
379        
380            say "[EnemyofOne"
381            wait 250
382            if insysmsg "Holy symbols remaining:"
383                settimer "chivEnemyofOne" 0
384            endif
385            
386        endif
387        
388
389        
390        if useConsecrateWeapon > 0 and timer chivConsecrateWeapon > chivCD
391        
392            say "[ConsecrateWeapon"
393            wait 250
394            if insysmsg "Holy symbols remaining:"
395                settimer "chivConsecrateWeapon" 0
396            endif
397            
398        endif
399        
400        if useDispelEvil > 0 and timer chivDispelEvil > chivCD
401        
402            say "[DispelEvil"
403            wait 250
404            if insysmsg "Holy symbols remaining:"
405                settimer "chivDispelEvil" 0
406            endif
407            
408        endif
409        
410        if useRemoveCurse > 0 and timer chivRemoveCurse > chivCD
411        
412            say "[RemoveCurse"
413            wait 250
414            if insysmsg "Holy symbols remaining:"
415                settimer "chivRemoveCurse" 0
416            endif
417            
418        endif
419        
420    endif
421
422    //*****CHIVALRY MODULE*****
423    
424    //*****CODEX MODULE*****
425    @setvar! switchWarding 0
426    
427    if skill "Parrying" >= 80 and findtype "shield codex" backpack as item
428        
429        getlabel item codexDesc
430        
431        while not gumpexists 1066647553
432            overhead "Loading Codex Hotbar"
433            say "[CodexHotBar"
434            wait 350
435        endwhile
436        
437        if findbuff "bleed" and codexShield >= cdStance
438            @setvar! switchWarding 1
439        elseif findbuff "disease" and codexShield >= cdStance
440            @setvar! switchWarding 1
441        elseif poisoned and codexShield >= cdStance
442            @setvar! switchWarding 1
443        elseif switchWarding > 0
444            @setvar! switchWarding 0
445        endif 
446                
447        if switchWarding = 1 and codexShield >= cdStance
448        
449            if "Warding" in codexDesc
450                // we good
451            else
452                yell [ShieldsStance2
453                wait 200
454                settimer codexShield 0
455            endif    
456            
457            if "Last Stand" in codexDesc
458                yell [ShieldsFinisher2
459                wait 200
460            endif 
461            
462        endif 
463        
464        if switchWarding = 0 and codexShield >= cdStance
465        
466            if defaultCodex = 1 and "Warding" in codexDesc
467                yell [ShieldsStance1
468            elseif defaultCodex = 2 and "Warding" in codexDesc
469                yell [ShieldsStance2
470            elseif defaultCodex = 3 and "Warding" in codexDesc
471                yell [ShieldsStance3
472            elseif defaultCodex = 4 and "Warding" in codexDesc
473                yell [ShieldsStance4                
474            elseif defaultCodex = 5 and "Warding" in codexDesc
475                yell [ShieldsStance5
476            endif
477            
478            
479            if "Barrier" in codexDesc
480                yell [ShieldsFinisher1
481                wait 200
482            endif 
483            
484        endif 
485        
486
487        
488    endif
489    
490    //*****END OF CODEX MODULE*****
491    
492    //*****RETARGETING MODULE*****
493    if not dead myKillTarget
494      //nothing
495    elseif dead myKillTarget and SeekNextTarget > 0
496        hotkey "Target Closest Non-Friendly Monster"
497        @setvar myNextTarget lasttarget 
498        wait 250
499        
500        if not find myNextTarget ground -1 -1 10
501            overhead "No Target Found"
502            wait 500
503        else 
504            overhead " ◆◆  Target ◆◆  " 38 myNextTarget 
505            overhead " ◆◆ ↓↓↓©◆◆ " 38 myNextTarget
506        endif
507        
508        if find myNextTarget ground -1 -1 2
509            @setvar myKillTarget myNextTarget
510            hotkey "Attack Last Target"
511            wait 250
512        endif
513    endif
514    //*****END OF RETARGETING MODULE*****
515    
516endwhile