ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: NObama on August 30, 2009, 04:57:58 AM

Title: Adding looting to OMG's autotamer
Post by: NObama on August 30, 2009, 04:57:58 AM
Good morning.

I'm trying to figure out the best way to add looting options to OMG's taming script, simply because I can't bear to let that many gaman horns and so much leather decay.  I'm torn between trying to code something into the main loop, or to use TM's advclawlite.

I think this is my starting point, but please tell me if I'm off:

if #RESULT = FOUND
   {
   set %tamingsuccess TRUE
   gosub movetocreature %closeid
   gosub tamecreature %closeid
   gosub renamerelease %closeid
   gosub killtamedpet %closeid
****insert line here****  <---------------
   ignoreitem %closeid
   if %healthwatcher = TRUE
      gosub healthwatcher
   }

Am I at least in the right place to start tweaking?

Thanks!
Title: Re: Adding looting to OMG's autotamer
Post by: rana70 on August 30, 2009, 06:38:30 AM
Hi,

you insert spot would work.

You need a sub to
- check weigthlimit of your char to prevent from overload
- cut the corpse with a bladed item
- drag leather and horns into your backpack
- cut down the leather
- and finally you have to decide what to do when weightlimit is reached

cu
Title: Re: Adding looting to OMG's autotamer
Post by: UOMaddog on August 30, 2009, 07:24:18 AM
Just curious, can you use a bovine slayer on gaman's? then you can skip the leather cutting if I remember correctly
Title: Re: Adding looting to OMG's autotamer
Post by: rana70 on August 30, 2009, 08:39:03 AM
Just curious, can you use a bovine slayer on gaman's? then you can skip the leather cutting if I remember correctly

Hi,

I think you speak about a Butchers War Cleaver
basicly you are right .. this weapon will cut the leather automaticly
and it will go into your backpack ....
but the trouble is ... this automatic function really has a little issue
it has a stupid overweight test ... you have to recall way before you are
really fully loaded ... otherwise the leather will be dropped into the corpse.

cu
Title: Re: Adding looting to OMG's autotamer
Post by: NObama on August 30, 2009, 08:53:36 AM
Thanks for telling me I'm in the right spot and for the script outline.

I think, as a first attempt, I'll just grab the horns.  Good newb place to start.

=D
Title: Re: Adding looting to OMG's autotamer
Post by: NObama on August 30, 2009, 09:12:55 AM
Well, after looking at the script libraries I have already downloaded, I decided to try frankensteining some of Freddy's subroutines from another script into OMG's.  So far, it's working like a charm.

Feels like I cheated though.

 :-\
Title: Re: Adding looting to OMG's autotamer
Post by: OMGBurgers on August 30, 2009, 09:27:39 AM
haha good going! :)

i totally never thought about working taming & gathering horns at the same time.

i had about 40k of those horns at one point till i let my house on atlantic fall
Title: Re: Adding looting to OMG's autotamer
Post by: Scrripty on August 30, 2009, 10:51:36 AM
I don't even know what gaman horns are used for.  haha :)   Also, you're not cheating getting that script to work.  Everyone does that.  Why reinvent the wheel when it's already been invented 100 times?  The only time you should do something yourself is if you think you can do it better. :)  Or to fit your personal needs.
Title: Re: Adding looting to OMG's autotamer
Post by: TrailMyx on August 30, 2009, 10:56:48 AM
One of the prime places they are used is the Strong Box quests in Heartwood.
Title: Re: Adding looting to OMG's autotamer
Post by: NObama on August 30, 2009, 11:05:35 AM
TM hit the nail on the head.  The gaman horns = strongboxes = chance at good loot.

Although, with imbuing on the horizon, the strongbox quests will be much less attractive.  Mostly, I just wanted to see if I could do it.

Thanks to OMG for his amazing, fantastic, awesome script.

 :)
Title: Re: Adding looting to OMG's autotamer
Post by: Scrripty on August 30, 2009, 11:11:25 AM
Imbueing isn't going to be as good as people think... Are you going to want to use an imbued weapon to pvm when you cant repair it?  Probly not. :)  If you had 250 durability on an imbued weapon and you used it to farm a monster, how many repairs would you get before it broke?  8?  10?  Barely worth the cost/trouble.  Not sure how they are going to do jewels and such, that might definately be worth it, but I'm guessing they are going to put durability on those too.  You watch.
Title: Re: Adding looting to OMG's autotamer
Post by: NObama on August 30, 2009, 07:11:38 PM
For PvM (think: Tamers) imbuing will be the bee's knees.

Any template that doesn't engage in melee is going to benefit enormously.

*break break*

My cobbled together looting subs are working great.  I've got a bug in my check_weight routine that sends me to the bank way too often, but I'm working it out.

Thanks for the encouragement, everyone!

=D