Uosteam taming macro question

Chuck

Novice
Here is the macro I'm using. It was the first one found when googling it:

//TamerHelpervUOF By Vlek, Grunt of the Bloodclan (Bloodclan.org)
//Get close to your target, press your associated key.
//CAUTION: Must watch this script. It's not as intelligent as the regular one.
if not listexists 'NameTheTamed'
//Set this name to whatever you want.
createlist 'NameTheTamed'
pushlist 'NameTheTamed' 'JewJew'
endif
if not listexists 'tameables'
createlist 'tameables'
pushlist 'tameables' 0x7t //Hellcat (Large)
pushlist 'tameables' 0x62 //Hellhound
pushlist 'tameables' 0xbc //Savage Ridgeback
pushlist 'tameables' 0xbb //Ridgeback
pushlist 'tameables' 0x17 //Dire Wolf
pushlist 'tameables' 0xce //Lava Lizard
pushlist 'tameables' 0x14 //Frost spider
pushlist 'tameables' 0xc9 //Hellcat (Small)
pushlist 'tameables' 0xda //Frenzied Ostard
pushlist 'tameables' 0x50 //Giant Toad
pushlist 'tameables' 0xe8 //Bull
pushlist 'tameables' 0xe9 //Bull2
pushlist 'tameables' 0x22 //White Wolf
pushlist 'tameables' 0x25 //White Wolf2
pushlist 'tameables' 0x1c //Giant Spider
pushlist 'tameables' 0xd4 //Grizzly Bear
pushlist 'tameables' 0xea //Great Hart
pushlist 'tameables' 0x41 //Snow leopard
pushlist 'tameables' 0x40 //Snow leopard
pushlist 'tameables' 0x19 //Gray wolf
pushlist 'tameables' 0x1b //Gray wolf2
pushlist 'tameables' 0x30 //Scorpion
pushlist 'tameables' 0xca //Alligator
pushlist 'tameables' 0x3f //Cougar
pushlist 'tameables' 0xd6 //Panther
pushlist 'tameables' 0xa7 //Brown Bear
pushlist 'tameables' 0xdd //Walrus
pushlist 'tameables' 0xd5 //Polar Bear
pushlist 'tameables' 0xd3 //Black Bear
pushlist 'tameables' 0xdc //Llama
pushlist 'tameables' 0x124 //Pack Llama
pushlist 'tameables' 0x123 //Pack Horse
pushlist 'tameables' 0xc8 //Horse
pushlist 'tameables' 0xe2 //Horse2
pushlist 'tameables' 0xcc //Horse3
pushlist 'tameables' 0xed //Giant Rat
pushlist 'tameables' 0xdb //Forest Ostard
pushlist 'tameables' 0xd2 //Desert Ostard
pushlist 'tameables' 0x122 //Boar
pushlist 'tameables' 0xe1 //Timber Wolf
pushlist 'tameables' 0xed //Hind
pushlist 'tameables' 0x51 //Bullfrog
endif
if not @inrange 'tobetamed' 2
@unsetalias 'tobetamed'
for 0 in 'tameables'
if @findtype tameables[] 'any' 'ground' 1 2
@setalias 'tobetamed' 'found'
break
endif
endfor
endif
if not @inrange 'tobetamed' 2
headmsg 'No new creatures near you!'
replay
endif
clearjournal
while name 'tobetamed' != NameTheTamed[0]
autotargetobject 'tobetamed'
useskill 'animal taming'
@rename 'tobetamed' NameTheTamed[0]
pause 1000
if not @inrange 'tobetamed' 1
if @x 'tobetamed' > x 'self' and @y 'tobetamed' > y 'self'
walk 'Southeast'
elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' > y 'self'
walk 'Southwest'
elseif @x 'tobetamed' > x 'self' and @y 'tobetamed' < y 'self'
walk 'Northeast'
elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' < y 'self'
walk 'Northwest'
elseif @x 'tobetamed' > x 'self' and @y 'tobetamed' == y 'self'
walk 'East'
elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' == y 'self'
walk 'West'
elseif @x 'tobetamed' == x 'self' and @y 'tobetamed' > y 'self'
walk 'South'
elseif @x 'tobetamed' == x 'self' and @y 'tobetamed' < y 'self'
walk 'North'
endif
endif
endwhile
waitforcontext 'tobetamed' 8 20000
waitforgump 0x909cc741 15000
@replygump 0x909cc741 2
@ignoreobject 'tobetamed'
@unsetalias 'tobetamed'
replay






Now, at the top where it says 'JewJew' I changed the name to Kilmatic, my tamer's name, but when it renames the tames it renames them JewJew still. How can I change this? Someone else is using this macro and I want to use a different name! Please Help!
 

Chuck

Novice
Yeah I hit save multiple times. Also when I pasted into forum I changed it and then re-pasted into uosteam and tried that. Same thing. It doesn't even say JewJew anywhere in the script but it still renames them that
 

Chuck

Novice
Ahh I fixed it by restarting uosteam and uo. I guess once you play the macro, you can't change the name until you restart client. I am not sure why but it worked! Hope this helps someone else someday.
 
if not listexists 'NameTheTamed'

createlist 'NameTheTamed'

pushlist 'NameTheTamed' 'Kilmatic'

endif

if not listexists 'tameables'

createlist 'tameables'

pushlist 'tameables' 0xcb // pig

pushlist 'tameables' 0x7t //Hellcat (Large)

pushlist 'tameables' 0x62 //Hellhound

pushlist 'tameables' 0xbc //Savage Ridgeback

pushlist 'tameables' 0xbb //Ridgeback

pushlist 'tameables' 0x17 //Dire Wolf

pushlist 'tameables' 0xce //Lava Lizard

pushlist 'tameables' 0x14 //Frost spider

pushlist 'tameables' 0xc9 //Hellcat (Small)

pushlist 'tameables' 0xda //Frenzied Ostard

pushlist 'tameables' 0x50 //Giant Toad

pushlist 'tameables' 0xe8 //Bull

pushlist 'tameables' 0xe9 //Bull2

pushlist 'tameables' 0x22 //White Wolf

pushlist 'tameables' 0x25 //White Wolf2

pushlist 'tameables' 0x1c //Giant Spider

pushlist 'tameables' 0xd4 //Grizzly Bear

pushlist 'tameables' 0xea //Great Hart

pushlist 'tameables' 0x41 //Snow leopard

pushlist 'tameables' 0x40 //Snow leopard

pushlist 'tameables' 0x19 //Gray wolf

pushlist 'tameables' 0x1b //Gray wolf2

pushlist 'tameables' 0x30 //Scorpion

pushlist 'tameables' 0xca //Alligator

pushlist 'tameables' 0x3f //Cougar

pushlist 'tameables' 0xd6 //Panther

pushlist 'tameables' 0xa7 //Brown Bear

pushlist 'tameables' 0xdd //Walrus

pushlist 'tameables' 0xd5 //Polar Bear

pushlist 'tameables' 0xd3 //Black Bear

pushlist 'tameables' 0xdc //Llama

pushlist 'tameables' 0x124 //Pack Llama

pushlist 'tameables' 0x123 //Pack Horse

pushlist 'tameables' 0xc8 //Horse

pushlist 'tameables' 0xe2 //Horse2

pushlist 'tameables' 0xcc //Horse3

pushlist 'tameables' 0xe4 // horse 4

pushlist 'tameables' 0xed //Giant Rat

pushlist 'tameables' 0xdb //Forest Ostard

pushlist 'tameables' 0xd2 //Desert Ostard

pushlist 'tameables' 0x122 //Boar

pushlist 'tameables' 0xe1 //Timber Wolf

pushlist 'tameables' 0xed //Hind

pushlist 'tameables' 0x51 //Bullfrog

endif

if not @inrange 'tobetamed' 2

@unsetalias 'tobetamed'

for 0 in 'tameables'

if @findtype tameables[] 'any' 'ground' 1 2

@setalias 'tobetamed' 'found'

break

endif

endfor

endif

if not @inrange 'tobetamed' 2

headmsg 'No new creatures near you!'

replay

endif

clearjournal

while name 'tobetamed' != NameTheTamed[0]

autotargetobject 'tobetamed'

useskill 'animal taming'

pause 1000

@rename 'tobetamed' NameTheTamed[0]

pause 1000

if not @inrange 'tobetamed' 1

if @x 'tobetamed' > x 'self' and @y 'tobetamed' > y 'self'

walk 'Southeast'

elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' > y 'self'

walk 'Southwest'

elseif @x 'tobetamed' > x 'self' and @y 'tobetamed' < y 'self'

walk 'Northeast'

elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' < y 'self'

walk 'Northwest'

elseif @x 'tobetamed' > x 'self' and @y 'tobetamed' == y 'self'

walk 'East'

elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' == y 'self'

walk 'West'

elseif @x 'tobetamed' == x 'self' and @y 'tobetamed' > y 'self'

walk 'South'

elseif @x 'tobetamed' == x 'self' and @y 'tobetamed' < y 'self'

walk 'North'

endif

endif

endwhile

waitforcontext 'tobetamed' 8 20000

waitforgump 0x909cc741 15000

@replygump 0x909cc741 2

@ignoreobject 'tobetamed'

@unsetalias 'tobetamed'

replay
 

ProdigyOsi

Grandmaster
didn't read all the replies to see if this was stated already but this is because you didn't clear your lists. You already have a list entry "namethetamed" which needs to be deleted.
 
if not listexists 'NameTheTamed'

createlist 'NameTheTamed'

pushlist 'NameTheTamed' 'Kilmatic'

endif

if not listexists 'tameables'

createlist 'tameables'

pushlist 'tameables' 0xcb // pig

pushlist 'tameables' 0x7t //Hellcat (Large)

pushlist 'tameables' 0x62 //Hellhound

pushlist 'tameables' 0xbc //Savage Ridgeback

pushlist 'tameables' 0xbb //Ridgeback

pushlist 'tameables' 0x17 //Dire Wolf

pushlist 'tameables' 0xce //Lava Lizard

pushlist 'tameables' 0x14 //Frost spider

pushlist 'tameables' 0xc9 //Hellcat (Small)

pushlist 'tameables' 0xda //Frenzied Ostard

pushlist 'tameables' 0x50 //Giant Toad

pushlist 'tameables' 0xe8 //Bull

pushlist 'tameables' 0xe9 //Bull2

pushlist 'tameables' 0x22 //White Wolf

pushlist 'tameables' 0x25 //White Wolf2

pushlist 'tameables' 0x1c //Giant Spider

pushlist 'tameables' 0xd4 //Grizzly Bear

pushlist 'tameables' 0xea //Great Hart

pushlist 'tameables' 0x41 //Snow leopard

pushlist 'tameables' 0x40 //Snow leopard

pushlist 'tameables' 0x19 //Gray wolf

pushlist 'tameables' 0x1b //Gray wolf2

pushlist 'tameables' 0x30 //Scorpion

pushlist 'tameables' 0xca //Alligator

pushlist 'tameables' 0x3f //Cougar

pushlist 'tameables' 0xd6 //Panther

pushlist 'tameables' 0xa7 //Brown Bear

pushlist 'tameables' 0xdd //Walrus

pushlist 'tameables' 0xd5 //Polar Bear

pushlist 'tameables' 0xd3 //Black Bear

pushlist 'tameables' 0xdc //Llama

pushlist 'tameables' 0x124 //Pack Llama

pushlist 'tameables' 0x123 //Pack Horse

pushlist 'tameables' 0xc8 //Horse

pushlist 'tameables' 0xe2 //Horse2

pushlist 'tameables' 0xcc //Horse3

pushlist 'tameables' 0xe4 // horse 4

pushlist 'tameables' 0xed //Giant Rat

pushlist 'tameables' 0xdb //Forest Ostard

pushlist 'tameables' 0xd2 //Desert Ostard

pushlist 'tameables' 0x122 //Boar

pushlist 'tameables' 0xe1 //Timber Wolf

pushlist 'tameables' 0xed //Hind

pushlist 'tameables' 0x51 //Bullfrog

endif

if not @inrange 'tobetamed' 2

@unsetalias 'tobetamed'

for 0 in 'tameables'

if @findtype tameables[] 'any' 'ground' 1 2

@setalias 'tobetamed' 'found'

break

endif

endfor

endif

if not @inrange 'tobetamed' 2

headmsg 'No new creatures near you!'

replay

endif

clearjournal

while name 'tobetamed' != NameTheTamed[0]

autotargetobject 'tobetamed'

useskill 'animal taming'

pause 1000

@rename 'tobetamed' NameTheTamed[0]

pause 1000

if not @inrange 'tobetamed' 1

if @x 'tobetamed' > x 'self' and @y 'tobetamed' > y 'self'

walk 'Southeast'

elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' > y 'self'

walk 'Southwest'

elseif @x 'tobetamed' > x 'self' and @y 'tobetamed' < y 'self'

walk 'Northeast'

elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' < y 'self'

walk 'Northwest'

elseif @x 'tobetamed' > x 'self' and @y 'tobetamed' == y 'self'

walk 'East'

elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' == y 'self'

walk 'West'

elseif @x 'tobetamed' == x 'self' and @y 'tobetamed' > y 'self'

walk 'South'

elseif @x 'tobetamed' == x 'self' and @y 'tobetamed' < y 'self'

walk 'North'

endif

endif

endwhile

waitforcontext 'tobetamed' 8 20000

waitforgump 0x909cc741 15000

@replygump 0x909cc741 2

@ignoreobject 'tobetamed'

@unsetalias 'tobetamed'

replay



This works great, thank you!!!

Can't believe how slow the skill moves though, even in the low 50's. It seems to be 10x slower (or more) than anything else on this shard... though I haven't touched crafting skills yet.

Is it worth going into dungeons before 70 Taming?
 

Aubergine

Neophyte
Hello,
I'm using that same Animal Taming macro
Since they were missing, I added Large Hellcat (0x7f) and Imp (0x4a) to the list but the macro is not incorporating them. The error I get is "name: item or mobile found" (same happens when other items in the list are not found / in range.)
What am I missing here?! Why can't the macro "find" the newly added list objects?

Red = Those that I've incorporated to the existing list

if not listexists 'NameTheTamed'
//Set this name to whatever you want.
createlist 'NameTheTamed'
pushlist 'NameTheTamed' 'Olive'
endif
if not listexists 'tameables'
createlist 'tameables'
pushlist 'tameables' 0x7f //Hellcat (Large)
pushlist 'tameables' 0x4a //Imp

pushlist 'tameables' 0x7t //Hellcat (Large)
pushlist 'tameables' 0x62 //Hellhound
pushlist 'tameables' 0xbc //Savage Ridgeback
(and the list goes on)
endif
if not @inrange 'tobetamed' 2
@unsetalias 'tobetamed'
for 0 in 'tameables'
if @findtype tameables[] 'any' 'ground' 1 2
@setalias 'tobetamed' 'found'
break
endif
endfor
endif
clearjournal
while name 'tobetamed' != NameTheTamed[0]
autotargetobject 'tobetamed'
useskill 'animal taming'
@rename 'tobetamed' NameTheTamed[0]
pause 1000
if not @inrange 'tobetamed' 1
if @x 'tobetamed' > x 'self' and @y 'tobetamed' > y 'self'
walk 'Southeast'
elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' > y 'self'
walk 'Southwest'
elseif @x 'tobetamed' > x 'self' and @y 'tobetamed' < y 'self'
walk 'Northeast'
elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' < y 'self'
walk 'Northwest'
elseif @x 'tobetamed' > x 'self' and @y 'tobetamed' == y 'self'
walk 'East'
elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' == y 'self'
walk 'West'
elseif @x 'tobetamed' == x 'self' and @y 'tobetamed' > y 'self'
walk 'South'
elseif @x 'tobetamed' == x 'self' and @y 'tobetamed' < y 'self'
walk 'North'
endif
endif
endwhile
waitforcontext 'tobetamed' 8 20000
waitforgump 0x909cc741 15000
replygump 0x909cc741 2
ignoreobject 'tobetamed'
unsetalias 'tobetamed'
replay
 

JDXM

Journeyman
if not listexists 'tameables'

This is causing your problem..similar to OP's issue.
The "if" loop is never entered after the first time the macro is played, so it never changes the tamables list.

You need to remove the tamables list from active objects in UOS, the next time you run the macro it will repopulate the list to include your additons.
 

Aubergine

Neophyte
if not listexists 'tameables'

This is causing your problem..similar to OP's issue.
The "if" loop is never entered after the first time the macro is played, so it never changes the tamables list.

You need to remove the tamables list from active objects in UOS, the next time you run the macro it will repopulate the list to include your additons.

Damnnnn son. You're right! I didn't know lists we're kept even after shutting down the client but this makes a lot of sense.
Then this would bring me to my next question: What's the point of having the "if" condition for creating a list? Couldn't we just write the code with an unconditional creatlist command that would overwrite the existing list everytime the macro is activated? Or is it generally better to avoid overwriting active objects by coding macro to refer to existing ones?
 

JDXM

Journeyman
Populating a list every time you run the macro is just bad coding practice, a small conditional statement is more efficient than creating and populating the same list/array every time the script runs.

With UOS being a bit clunky, sometimes a more basic approach is needed! :p
 

Young Star

Grandmaster
You don't want it re-making the list every time it loops, that would take some time to do and is unnecessary. You just need to delete the list using clear active objects if you want the script to re-trigger the if statement for new entries.
 
Top