Author Topic: Quick "locked down" check  (Read 1902 times)

0 Members and 1 Guest are viewing this topic.

Offline GemviperTopic starter

  • Sr. Member
  • *
  • Posts: 481
  • Activity:
    0%
  • Reputation Power: 0
  • Gemviper hides in shadows.
  • Respect: +57
  • Referrals: 2
    • View Profile
Quick "locked down" check
« on: November 16, 2014, 11:42:41 AM »
0
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

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Quick "locked down" check
« Reply #1 on: November 16, 2014, 01:22:02 PM »
0
Event Property %ItemID
then make a quick if Locked_Down in #Property.

Think that will resolve your issue :)

Offline GemviperTopic starter

  • Sr. Member
  • *
  • Posts: 481
  • Activity:
    0%
  • Reputation Power: 0
  • Gemviper hides in shadows.
  • Respect: +57
  • Referrals: 2
    • View Profile
Re: Quick "locked down" check
« Reply #2 on: November 16, 2014, 10:21:29 PM »
0
/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.

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: Quick "locked down" check
« Reply #3 on: November 17, 2014, 08:03:15 AM »
0
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. 

Tags: