ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: NObama on December 30, 2009, 08:38:42 AM

Title: Using Event Property
Post by: NObama on December 30, 2009, 08:38:42 AM
Greetings -

My intent is to create a snippet that scans your pack for a particular item, checks it for insurance, insures it if uninsured, then ignores that item forever more.

So...how do I properly syntax this concept:

Code: [Select]
if $insured$ not in #property

Thanks!
 :)


EDIT: Spelling is hard.
Title: Re: Using Event Property
Post by: NObama on December 30, 2009, 08:55:32 AM
To be clear, I already get this part:

Code: [Select]
finditem XXX C_
event Property #findID
Title: Re: Using Event Property
Post by: Scrripty on December 30, 2009, 09:14:02 AM
To be clear, I already get this part:

Code: [Select]
finditem XXX C_
event Property #findID

You'll probly want to use #findindex.  Then do a scan for everything in your backpack, and something like for %scan 1 #findindex.... and parse the #property for "insured".
Title: Re: Using Event Property
Post by: NObama on December 30, 2009, 09:51:00 AM
Gah - back to the tutorials and documentation...never used findindex before...

Thanks for pointing me in the right direction, Twinkle McNugget.

 :)