Difference between revisions of "FindType"

From Wiki
Jump to: navigation, search
 
(Example)
Line 4: Line 4:
 
== Example ==
 
== Example ==
 
<pre>
 
<pre>
 
+
finditem * C_ , #BACKPACKID
 +
for #FINDINDEX 1 #FINDCNT
 +
{
 +
event sysmessage Found item, the type of that item is #FINDTYPE
 +
wait 20
 +
}
 +
halt
 
</pre>
 
</pre>
  

Revision as of 00:25, 4 September 2007

The #findType system variable contains the type of the object returned by findItem.


Example

finditem * C_ , #BACKPACKID
for #FINDINDEX 1 #FINDCNT
{
 event sysmessage Found item, the type of that item is #FINDTYPE
 wait 20
}
halt

Related Commands

ignoreItem findItem #findCnt
#findID #findType #findX
#findY #findZ #findDist
#findKind #findStack #findBagID
#findMod #findRep #findCol
#findIndex

See also

Main Page Documentation