Author Topic: pretty basic question about finditem command  (Read 4034 times)

0 Members and 1 Guest are viewing this topic.

Offline satoreyTopic starter

  • Jr. Member
  • **
  • Posts: 11
  • Activity:
    0%
  • Reputation Power: 1
  • satorey has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
pretty basic question about finditem command
« on: March 07, 2012, 04:25:23 AM »
0
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

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2556
  • Activity:
    0%
  • Reputation Power: 32
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +272
  • Referrals: 1
    • View Profile
Re: pretty basic question about finditem command
« Reply #1 on: March 07, 2012, 04:35:21 AM »
0
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.
Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline satoreyTopic starter

  • Jr. Member
  • **
  • Posts: 11
  • Activity:
    0%
  • Reputation Power: 1
  • satorey has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: pretty basic question about finditem command
« Reply #2 on: March 07, 2012, 04:39:46 AM »
0
thank you for your help much appreciated.

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +559
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: pretty basic question about finditem command
« Reply #3 on: March 07, 2012, 06:18:27 AM »
0

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2556
  • Activity:
    0%
  • Reputation Power: 32
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +272
  • Referrals: 1
    • View Profile
Re: pretty basic question about finditem command
« Reply #4 on: March 07, 2012, 08:00:17 AM »
0
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
Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +559
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: pretty basic question about finditem command
« Reply #5 on: March 07, 2012, 11:02:53 AM »
0
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

Tags: