Author Topic: Using Event Property  (Read 1767 times)

0 Members and 1 Guest are viewing this topic.

Offline NObamaTopic starter

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +235
  • Referrals: 2
    • View Profile
Using Event Property
« on: December 30, 2009, 08:38:42 AM »
0
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.
« Last Edit: December 30, 2009, 08:53:16 AM by NObama »

Offline NObamaTopic starter

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +235
  • Referrals: 2
    • View Profile
Re: Using Event Property
« Reply #1 on: December 30, 2009, 08:55:32 AM »
0
To be clear, I already get this part:

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

Scrripty

  • Guest
Re: Using Event Property
« Reply #2 on: December 30, 2009, 09:14:02 AM »
0
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".

Offline NObamaTopic starter

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +235
  • Referrals: 2
    • View Profile
Re: Using Event Property
« Reply #3 on: December 30, 2009, 09:51:00 AM »
0
Gah - back to the tutorials and documentation...never used findindex before...

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

 :)

Tags: