Difference between revisions of "FindType"

From Wiki
Jump to: navigation, search
 
 
(One intermediate revision by the same user not shown)
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>
  
== Related Commands ==
+
=See Also=
{| style="background:gainsboro; color:black; border: 2px #aaa solid;"
+
{{FindItem}}
| width=250px align=center | [[ignoreItem]]              || width=250px align=center | [[findItem]]                  || width=250px align=center | [[findCnt|&#0035;findCnt]]
+
|-
+
| width=250px align=center | [[findID|&#0035;findID]]    || width=250px align=center | [[findType|&#0035;findType]]  || width=250px align=center | [[findX|&#0035;findX]]
+
|-
+
| width=250px align=center | [[findY|&#0035;findY]]      || width=250px align=center | [[findZ|&#0035;findZ]]        || width=250px align=center | [[findDist|&#0035;findDist]]
+
|-
+
| width=250px align=center | [[findKind|&#0035;findKind]] || width=250px align=center | [[findStack|&#0035;findStack]] || width=250px align=center | [[findBagID|&#0035;findBagID]]
+
|-
+
| width=250px align=center | [[findMod|&#0035;findMod]]  || width=250px align=center | [[findRep|&#0035;findRep]]    || width=250px align=center | [[findCol|&#0035;findCol]]
+
|-
+
| width=250px align=center | [[findIndex|&#0035;findIndex]]
+
|}
+
{{footer}}
+

Latest revision as of 09:11, 7 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

See Also

FindItem

  • These system variables are set when the FindItem command is used.
#findID Returns the id of the object returned by findItem
#findType Returns the type of the object returned by findItem
#findX Returns the x-coordinate of the object returned by findItem
#findY Returns the y-coordinate of the object returned by findItem
#findZ Returns the z-coordinate of the object returned by findItem
#findDist Returns the distance from the character to the object returned by findItem
#findKind Returns the kind of the object returned by findItem
#findStack Returns the number of stacked items in the object returned by findItem
#findBagID Returns the bag the object returned by findItem is contained in
#findMod Returns displacement for #findX and #findY
#findRep Returns the reputation of the object returned by findItem
#findCol Returns the color of the object returned by findItem
#findIndex Gets the values of all other findItem results without restarting the time-consuming FindItem command.
#findCnt Returns the number of objects that matches what was searched for with the findItem command