Back to "attack pk" tags

WIP: Dexxer Attack PK script (4) by Jaseowns

1# Dexxer Attack PK? by jaseowns
2# UO Outlands
3
4@setvar! jaseowns_ChugHealPotAtThisHealth 70
5@setvar! jaseowns_AttackAgainTimerCD 5000
6
7##################
8
9
10settimer jaseowns_AttackAgainTimer jaseowns_AttackAgainTimerCD
11
12@setvar! myKillTarget lasttarget 
13
14while not dead 
15    if noto myKillTarget = "murderer" or noto myKillTarget = "hostile" or noto myKillTarget = "criminal" or noto myKillTarget = "enemy"
16        if timer jaseowns_AttackAgainTimer >= jaseowns_AttackAgainTimerCD
17            attack myKillTarget
18            settimer jaseowns_AttackAgainTimer 0
19        endif
20    endif 
21    
22    if not bandaging and skill "Healing" >= 50
23        if hp < maxhp or poisoned or findbuff "bleed" or findbuff "disease" 
24            hotkey "Bandage Self"
25        endif
26    endif
27    
28    // white pot
29    if findbuff "weaken" and findtype 3849 backpack as jaseowns_Potion
30        dclick jaseowns_Potion
31        wait 650
32    endif
33    
34    // black pot
35    if not findbuff "Magic resist" and findtype 3846 backpack as jaseowns_Potion
36        dclick jaseowns_Potion
37        wait 650
38    endif
39    
40    // yellow pot
41    if hp < jaseowns_ChugHealPotAtThisHealth and findtype 3852 backpack as jaseowns_Potion
42        dclick jaseowns_Potion
43        wait 650
44    endif
45    
46    
47    wait 200
48    overhead "● ▼▼ HERE ▼▼ ●" 88 myKillTarget    
49
50endwhile