Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - daymorn

Pages: [1]
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:
  • 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" ]
}


2
Stealth Client / Can't get simple Python UOSay hello to run in game.
« on: August 29, 2020, 04:19:39 AM »
Hi all,

Windows 10
Stealth_v8.10.2 (program says 8.10.6)

I can't get any snippets of python code to run through Stealth. Not even one liner hello worlds.
Code: [Select]
UOSay("Hello world")
I am creating files, such as test.py, with the above content. I've tried other Python snippets, such as UseSkill('Anatomy')

I am able to execute scripts with python directly.
C:\Python32\python.exe C:\Users\####\Desktop\Stealth_v8.10.2\Scripts\test.py

In Stealth settings I have Python 3.2 selected.

I figured out a Pascal hello world script and can get that to run without issue, causing my character to speak in game.

I'm sure it's a stupid issue, but can someone please help? If I can get a simple script to run I should be able to play with it from there.

3
New member introductions / Hola, third time returning player
« on: August 14, 2020, 01:39:08 PM »
Hola,

My main character name is Daymorn, anymore. I originally started playing UO on the 3rd week of its release and my brother was a beta tester. We were in a guild called The Nobility on GL. TN was even listed in the original UO handbook. So, the last two times I played I tell myself, no I'm not going to script at all. Programming is a small part of my career (linux admin type of guy) so eventually something pisses me off in game that I can't automate and here I am again. I'll be honest, I'm still at the tipping point, but f it ya know? It is inevitable.

Pages: [1]