ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: satorey on March 07, 2012, 04:25:23 AM

Title: pretty basic question about finditem command
Post by: satorey on March 07, 2012, 04:25:23 AM
Sorry guys still new to scripting. My noob question is does this command find the ID of any item in that container?

finditem * C_xxxxxxx
Title: Re: pretty basic question about finditem command
Post by: manwinc on March 07, 2012, 04:35:21 AM
Yes, and then you can go through Every item by doing a for statment for the #Findindex. 


Code: [Select]
Finditem * C_XXXXXX
for #Findindex 1 #Findcnt
{
Display Findid: #Findid $ Findtype: #Findtype $ Findcol: #Findcol
}

The Use of this For #Findindex 1 #Findcnt is pretty much standard for sorting through items found in a container.
Title: Re: pretty basic question about finditem command
Post by: satorey on March 07, 2012, 04:39:46 AM
thank you for your help much appreciated.
Title: Re: pretty basic question about finditem command
Post by: Crome969 on March 07, 2012, 06:18:27 AM
Title: Re: pretty basic question about finditem command
Post by: manwinc on March 07, 2012, 08:00:17 AM
It does chrome. The , represents a parce(Spelling)

so the way the command works is actually

Finditem * C_XXXXXX

But normally the Id is saved to a variable, so to extract the information from the Variable You do A ,

set %Container AIUBXY
Finditem * C_ , %Container

Which turns into C_AIUBXY
Title: Re: pretty basic question about finditem command
Post by: Crome969 on March 07, 2012, 11:02:53 AM
I never thought about that. But right now i must say you are right. But funny i never thought the , in finditem would work like
Code: [Select]
a , b or other stuff.
Thank you MW for clearing that part..

Crome