Author Topic: [py] LazyDay - Auto Bandage Healer, Auto Buff Casting  (Read 125 times)

0 Members and 1 Guest are viewing this topic.

Offline daymornTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Activity:
    1.6%
  • Reputation Power: 1
  • daymorn has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
[py] LazyDay - Auto Bandage Healer, Auto Buff Casting
« on: October 15, 2020, 06:33:01 AM »
0
Source: https://github.com/Daymorn/LazyDay
Python: v3.6+
Stealth Client: 8.11.2
Last Updated: 10/16/20

This script will auto bandage heal you, as well as auto cast buffs on your own player. You can also uncomment the bandageParty() section to auto heal any damaged party member that you are near..

NOTE: A lot of credit goes to user Unisharp for both examples and functions that I am using. 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()
       
        # Uncomment if you want to bandage a specific party member or pet
        # Must replace <player objectid> with the proper id via stealth
        # You can find this under the 'World' tab in stealth
        # Optional
        #other = character(<player objectid>) # 0x********
        #char.bandageOther(other)
       
        # 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')
       
        # Unique to the 'Treasures of the Undead Lords' event
        # Will check for 'the three' loot and auto insure them
        # Optional
        InsureTheThree()
       
        # Millisecond interval between each cycle
        # 1000ms works well for me
        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 - snippet
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" ]
}
}

« Last Edit: October 16, 2020, 06:53:57 PM by daymorn »

Offline daymornTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Activity:
    1.6%
  • Reputation Power: 1
  • daymorn has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
Re: [py] LazyDay - Auto Bandage Healer, Auto Buff Casting
« Reply #1 on: October 15, 2020, 09:22:07 AM »
0
I verified that bandageOther() works with pets as well. i will likely add bandageParty() and bandagePets() functions so that the player/pet objectiDs don't have to be specified in the script.

Offline unisharp

  • Full Member
  • ***
  • Posts: 171
  • Activity:
    2.2%
  • Reputation Power: 4
  • unisharp has no influence.
  • Gender: Male
  • Respect: +39
  • Referrals: 0
    • View Profile
Re: [py] LazyDay - Auto Bandage Healer, Auto Buff Casting
« Reply #2 on: October 15, 2020, 10:21:36 AM »
0
Great addition nice work!
 :D

Offline daymornTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Activity:
    1.6%
  • Reputation Power: 1
  • daymorn has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
Re: [py] LazyDay - Auto Bandage Healer, Auto Buff Casting
« Reply #3 on: October 16, 2020, 06:57:40 PM »
0
bandageParty() has been added. It auto cycles through each party member and attempts to to bandage the most damaged first, if near them. I'll work on a BandagePets() function next.

Tags: