1
Stealth scripts / [py] LazyDay - Auto Bandage Healer, Auto Buff Casting
« on: October 15, 2020, 06:33:01 AM »
Source: https://github.com/Daymorn/LazyDay
Python: v3.6+
Stealth Client: 8.11.2
Last Updated: 10/29/20
This script can/will:
NOTE: A lot of credit goes to user Unisharp for both examples and functions that got me started.
http://www.scriptuo.com/index.php?action=profile;u=3879
I am trying to focus on game play assistance for actions that I think are more tedious than fun. This is a work in progress and can be extended out to cover quite a bit more. This is particularly true for the list of spells defined and the number of character templates to choose from. I will likely extend this more over time, otherwise please feel free to look up the ClilocIDs yourself and share.
Installation
Download or clone LazyDay into your StealthClient scripts folder.
Run
edit lazyday.py to what suits your needs
load LazyDay\lazyday.py into the Stealth Client and push play.
lazyday.py - snippet
I've started with a small list of buffs that personally irritate me the most. This list can easily be expanded upon inside the JSON formated file,
json/dicts.json - current character templates
'reqs' currently supports:
Python: v3.6+
Stealth Client: 8.11.2
Last Updated: 10/29/20
This script can/will:
- Auto bandage heal on self - char.bandageSelf()
- Auto cast buffs on self - char.checkBuffs('PeaceBard Tamer')
- Auto bandage heal party member - char.bandageParty()
- Auto bandage heal pets - char.bandagePets()
NOTE: A lot of credit goes to user Unisharp for both examples and functions that got me started.
http://www.scriptuo.com/index.php?action=profile;u=3879
I am trying to focus on game play assistance for actions that I think are more tedious than fun. This is a work in progress and can be extended out to cover quite a bit more. This is particularly true for the list of spells defined and the number of character templates to choose from. I will likely extend this more over time, otherwise please feel free to look up the ClilocIDs yourself and share.
Installation
Download or clone LazyDay into your StealthClient scripts folder.
Code: [Select]
cd \Stealth_v#.#.#\Scripts
git clone https://github.com/Daymorn/LazyDay.git
Run
edit lazyday.py to what suits your needs
load LazyDay\lazyday.py into the Stealth Client and push play.
lazyday.py - snippet
Code: [Select]
if __name__ == '__main__':
char = Character(Self())
while True:
# Check if you need to bandage yourself.
# Optional
char.bandageSelf()
# Uncomment if you want to auto bandage party members
# It attempts to heal the most damaged player first, if within 1 tile.
# Optional
#char.bandageParty()
# Check if you need to bandage a pet.
# Pet must be guilded/green.
# Will bandage guildmates pets as well, most damaged first.
# Optional
#char.bandagePets()
# Check if need to cast desired buffs
# Defined in json\dicts.json -> templates.<name>
# Currently supports: 'Death Knight', 'Paladin', 'Mage', 'Skald'
# 'ProvoBard Tamer', 'PeaceBard Tamer'
# Optional
char.checkBuffs('Death Knight')
# Millisecond interval between each cycle
# 1000ms works well for me
# 500ms is very responsive
Wait(1000)
I've started with a small list of buffs that personally irritate me the most. This list can easily be expanded upon inside the JSON formated file,
json/dicts.json - current character templates
Code: [Select]
"templates": {
"Death Knight": {
"buffs": [ "curse weapon" ]
},
"Paladin": {
"buffs": [ "consecrate weapon", "divine fury" ]
},
"Skald": {
"buffs": [ "protection", "invigorate", "inspire" ]
},
"Mage": {
"buffs": [ "bless" ]
},
"ProvoBard Tamer": {
"buffs": [ "protection", "invigorate" ]
},
"PeaceBard Tamer": {
"buffs": [ "protection", "resilience", "perseverance" ]
}
}
Optionally modifying spell/action requirements.'reqs' currently supports:
- war
- peace
- rhand
- undamaged
- self_<over|under><1-99>%hp
- party_<over|under><1-99>%hp
- pet_<over|under><1-99>%hp
Code: [Select]
"actions": {
"bandage pet": {
"reqs": [ "peace", "pet_under90%hp" ]
},
"bandage party": {
"reqs": [ "party_under98%hp" ]
}
},
...
"curse weapon": {
"mana": 7,
...
"reqs": [ "war", "rhand", "self_over50%hp" ]
}