ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Gemviper on November 02, 2015, 11:23:35 AM

Title: Looting script refinements - weight check possible?
Post by: Gemviper on November 02, 2015, 11:23:35 AM
Scripts are all about refinements aren't they?

I have one that I occasionally use at idocs which focuses on chests. As you know speed matters and so picking up an empty chest or attempting to pick up a chest that is too heavy is time lost. I know that checking weight is simple but In my testing I'm having trouble making that check a quick one, quick being relative as in I can tell I've got a small delay happening. I'd like to speed it up, what's the fastest way to do a quick weight check after a FINDITEM G_2 but before any drag that includes an ignore if the chest fails the check ?

I've got a few examples that work but don't feel efficient enough, I'll post them if a best effort is needed. This should be a simple question but I've looked at a lot of scripts and tried several things on my own and am not happy with the results yet so... suggestions?

edit: what I'm finding challenging is a fast weight check for chests that is "more than xx stones but less than xxx stones". I am already performing an event property but filtering by weight isn't something I've done yet.