ScriptUO

Scripting Resources & Utilities => Stealth Client => Stealth scripts => Topic started by: willian_ii on April 01, 2014, 06:12:31 PM

Title: [python] Taming macro
Post by: willian_ii on April 01, 2014, 06:12:31 PM
Hey folks,

I Developed 2 or 3 months ago a taming macro in Python

It requires peacemaking and instruments, to kill the tamed pets.

Here's what it does:

Starting, if there's no rail file, it begins writing a rail. just run through the path you want, and it begins writing a new rail.
walk in a circular path, and when you get close to the end, the rail is written to a file.

If there's already a rail, he scans for pets around you.

then he goes on each spot on the reail, tames a pet, then calms it and kills it. And repeats until there are no more animals close to that spot.

It's not working 100%, but I got to 94.4 taming on it, so it's good enough. I was going to implement a gui using tk, but lost the interest(started implementing a player vendor item search bot).
I should also probably fix some things before releasing, but I would probably just postpone it forever, and never release it.

I developed and tested it on Demise.

What to change:

on the begining of the file, you can see:
Code: [Select]
polar_bear = [0x00D5]
white_wolf = [0x0025, 0x0022]
walrus = [0x00DD]
snow_panther = [0x0041, 0x0040]

types = snow_panther + white_wolf
instruments = [0x0E9C, 0x0EB2]
REWRITE_RAIL = False

the types of animals to be tamed are defined on
Code: [Select]
types = snow_panther + white_wolfIf you want to tame an animal not pre defined, all you have to to is create a new variable for this animal, like :
Code: [Select]
new_animal = [0xnewcode]and then
Code: [Select]
types = snow_panther + white_wolf + new_animal
You also have to put the types of instruments to play on the "instruments" list.

The code can be downloaded here:https://www.dropbox.com/s/9n27z1bhkpbjpiq/tamingmacro.zip (https://www.dropbox.com/s/9n27z1bhkpbjpiq/tamingmacro.zip)
Title: Re: [python] Taming macro
Post by: Boydon on April 02, 2014, 02:57:48 AM
Wow nice first post, but remember to introduce you. ;)

PS I though nobody was using my gump library. :)
Title: Re: [python] Taming macro
Post by: willian_ii on April 04, 2014, 03:50:00 PM
Introduced!

Yes I liked the lib!

StealthUO is awesome but lacks a few things.
Gump management is one that confused me a little =P
Title: Re: [python] Taming macro
Post by: Boydon on April 07, 2014, 06:32:32 AM
You need to get used to Stealth gump facilities. Once you are, you'll never go back. :D
Title: Re: [python] Taming macro
Post by: Crome969 on April 07, 2014, 07:47:27 AM
Introduced!

Yes I liked the lib!

StealthUO is awesome but lacks a few things.
Gump management is one that confused me a little =P
Gumps and properties are strong points in Stealth. They are complex but when you once get a drill into it, you never will have any issues. I can handle gumps generic in a speed wich the client is unable to draw a gump.
You should check Boydons library about in python..