Author Topic: [python] Taming macro  (Read 7832 times)

0 Members and 1 Guest are viewing this topic.

Offline willian_iiTopic starter

  • Newbie
  • *
  • Posts: 4
  • Activity:
    0%
  • Reputation Power: 1
  • willian_ii has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
[python] Taming macro
« on: April 01, 2014, 06:12:31 PM »
0
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

Offline Boydon

  • Moderator
  • **
  • *****
  • Posts: 76
  • Activity:
    0%
  • Reputation Power: 3
  • Boydon has no influence.
  • Respect: +16
  • Referrals: 0
    • View Profile
Re: [python] Taming macro
« Reply #1 on: April 02, 2014, 02:57:48 AM »
0
Wow nice first post, but remember to introduce you. ;)

PS I though nobody was using my gump library. :)
Member of the Stealth development team.

Offline willian_iiTopic starter

  • Newbie
  • *
  • Posts: 4
  • Activity:
    0%
  • Reputation Power: 1
  • willian_ii has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: [python] Taming macro
« Reply #2 on: April 04, 2014, 03:50:00 PM »
0
Introduced!

Yes I liked the lib!

StealthUO is awesome but lacks a few things.
Gump management is one that confused me a little =P

Offline Boydon

  • Moderator
  • **
  • *****
  • Posts: 76
  • Activity:
    0%
  • Reputation Power: 3
  • Boydon has no influence.
  • Respect: +16
  • Referrals: 0
    • View Profile
Re: [python] Taming macro
« Reply #3 on: April 07, 2014, 06:32:32 AM »
0
You need to get used to Stealth gump facilities. Once you are, you'll never go back. :D
Member of the Stealth development team.

Offline Crome969

  • Moderator
  • *
  • *****
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: [python] Taming macro
« Reply #4 on: April 07, 2014, 07:47:27 AM »
0
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..

Tags: taming  python