ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Gemviper on November 16, 2014, 11:42:41 AM

Title: Quick "locked down" check
Post by: Gemviper on November 16, 2014, 11:42:41 AM
Heya,

I'm tweaking a script and am having some trouble with locked down items. What's happening is that it tries to pick up an item once to read the journal for the locked down message but I'd rather it not do that. Is it possible to scan the item for "locked down" before trying to drag it? This would eliminate the need to check the journal at all for me. Here is a quick routine I'd be fitting it into... but am not sure how to do the check without initiating a drag event. I know it's simple but ... yeah, i must be tired cuz I'm not getting it, lol.

Code: [Select]
sub itemPickup
FINDITEM %itemList G_2
  IF #FINDCNT > 0
     {
     event Drag #findID
findItem %backpackId
set #findMod 139_217
     wait 20
     click #findX #findY p
     }

Thanks
Title: Re: Quick "locked down" check
Post by: Crome969 on November 16, 2014, 01:22:02 PM
Event Property %ItemID
then make a quick if Locked_Down in #Property.

Think that will resolve your issue :)
Title: Re: Quick "locked down" check
Post by: Gemviper on November 16, 2014, 10:21:29 PM
/facepalm, property....  thanks.

I was able to add a property check that, if it finds a locked down item, continues to check but once the lock down comes off the rest of the script runs without checking for locked down again. Works great. I really didn't want to get into IGNORE loops and didn't have to.
Title: Re: Quick "locked down" check
Post by: The Ghost on November 17, 2014, 08:03:15 AM
Nice, should post your  little snippet. 

 I just have a small one that lock everything down and set security.   Might need to borrow ur idea and add Evet property. will be usefull for deco houses.