ScriptUO

Official ScriptUO EasyUO Scripts => Script Library => Script development tools => Topic started by: Cerveza on July 12, 2011, 03:20:06 PM

Title: Cerv's Insure It Sub
Post by: Cerveza on July 12, 2011, 03:20:06 PM
I wondered why this wasn't around. A sub you can call to insure an item type.

Sub will insure ALL of the same type items.

gosub CervsInsureIt UG ; bracelet

Will insure all bracelet type UG in your backpack.

Feedback is welcomed and encourage, shout out if you find it useful.

Thanks to TrailMyx for the HandleContextMenu and OCR

*If you've already downloaded this you'll notice it messages the ID of the item it's insuring. That was in there for testing purposes. You can either d-load again or remove this line from the script:

      msg #findID $
Title: Re: Cerv's Insure It Sub
Post by: Hoby on July 12, 2011, 05:54:40 PM
Ill have to try it.  Ive been farming miasamo alot lately and I collect all rings and bracelets with fc/fcr just so I don't have to imbue that property. 
Title: Re: Cerv's Insure It Sub
Post by: Adenocard on July 12, 2011, 06:52:18 PM
Wonderful idea I wonder who started you on the path to thinking about needing something like that... Nice work  ;)
Title: Re: Cerv's Insure It Sub
Post by: Canuker on July 12, 2011, 07:13:34 PM
This is a good idea...I'll have to see how best to use it.
Title: Re: Cerv's Insure It Sub
Post by: Cerveza on July 13, 2011, 03:07:48 AM
Wonderful idea I wonder who started you on the path to thinking about needing something like that... Nice work  ;)

Yeah, I wonder ;)

You can make lists of stuff to insure, so next artifact hunt you just put the lootables into the list. I believe it will work with specific item ID's as well as generic TYPE's, so you could "filter" what your looking for, and if found then send it to the sub.

Something like those defiler katana's that were dropping before... In your main script you would do something like:

Code: [Select]
finditem Katana C_ , %corpseID
if #findCnt > 0
  event property #findID
  if defiler in #property
    gosub CervsInsureIt #findID
Title: Re: Cerv's Insure It Sub
Post by: JustAnotherFace on July 13, 2011, 04:15:25 AM
"Oh yeah, I've been using one I wrote for years"


JaF